The abscissae of A and B are the roots of the equation x2+2ax−b2=0 and their coordinates are the roots of the
equation y^2 + 2py - q^2 = 0. The equation of the circle with AB as diameter
Let A(x1,y1) and B(x2,y2), then
x1+x2=−2a, x1x2=−b2
y1+y2=−2p, y1y2=−q2
Now find centre and radius and hence the equation of circle.