Answer:
The equation of a circle passing through the coordinates of the end points of diameters is (x – x1) (x – x2) + (y – y1)(y – y2) = 0
Substituting the values:(x1, y1) = (p, q) & (x2, y2) = (r, s)
(x – p)(x – r) + (y – q)(y – s) = 0
x2 – rx – px + pr + y2 – sy – qy + qs = 0
x2 + y2 – (r + p)x – (s + q)y + (pr + qs) = 0