Step 1: Understanding the Concept
The circle with diameter AB, where \(A(x_1,y_1),B(x_2,y_2)\), is \((x-x_1)(x-x_2)+(y-y_1)(y-y_2)=0\).
Step 2: Roots
From \(x^2+2ax-b^2=0\): \(x_1+x_2=-2a,\ x_1x_2=-b^2\). From \(y^2+2py-q^2=0\): \(y_1+y_2=-2p,\ y_1y_2=-q^2\).
Step 3: Expand
\(x^2-(x_1+x_2)x+x_1x_2+y^2-(y_1+y_2)y+y_1y_2=0\).
Step 4: Substitute
\(x^2+2ax-b^2+y^2+2py-q^2=0\), i.e. \(x^2+y^2+2ax+2py-(b^2+q^2)=0\).
Final Answer:
The circle is x squared plus y squared plus 2ax plus 2py minus (b squared plus q squared) equals 0.
\[ \boxed{\text{(D) }x^{2}+y^{2}+2ax+2py-(b^{2}+q^{2})=0} \]