A(x1,y1) and B(x2,y2) are the end-points of diameter of a circle. Find the equation of the circle.
(x - x1) (x - x2) + (y - y1) (y - y2) = 0
This is a standard result and we recommend you to remember this formula. We will also see how to derive it.
P(x,y) is a point on the circle .we know the angle ∠ APB=90∘
⇒ slope of PA × slope of PB=-1
⇒ y−y1x−x1 × y−y2x−x2 = −1
⇒ (y−y1)(y−y2) = −(x−x1)(x−x2)
⇒ (x−x1)(x−x2) + (y−y1)(y−y2)=0