The correct option is C x2+y2−7x+7y+22=0
Let the points be P=(x1,y1), Q=(x2,y2)
x2−7x+10=0 has x1,x2 as roots, so
(x−5)(x−2)=0⇒x=5,2
x2+7x+12=0 has y1,y2 as roots, so
(x+4)(x+3)=0⇒x=−4,−3
Therefore, equation of circle in diameter form is
(x−x1)(x−x2)+(y−y1)(y−y2)=0⇒(x−5)(x−2)+(y+3)(y+4)=0∴x2+y2−7x+7y+22=0
Alternate solution :
Given equations are
x2−7x+10=0y2+7y+12=0
Adding both, we get the required equation of circle,
x2+y2−7x+7y+22=0