Equation of circle which passes through the origin is x2+y2+2gx+2fy+c=0 .....(1)
the centre of the circle (1) is (−g,−f)
if the centre lies on the line x+y=4
then −g−f=4⇒g+f=−4 .....(2)
the given equation of the orthogonal circle is x2+y2−4x+2y+4=0 ....(3)
Comparing the circle (2) with the general equation of the circle, we get
g1=−2;f1=1 and c1=4
the circle (1) is orthogonal to circle (2)
∴2gg1+2ff1=c+c1 if two circles x2+y2+2g1x+2f1y+c1=0 and x2+y2+2g2x+2f2y+c2=0 are orthogonal then 2g1g2+2f1f2=c1+c2
⇒2g(−2)+2f(1)=0+4
⇒−4g+2f=4 or −2g+f=2 .....(4)
Solving eqn(2) and eqn(4) we get
g+2g=−4−2 or 3g=−6 or g=−2
f=−4−g=−4−(−2)=−4+2=−2 by subustituting for g=−2
Thus, the equation of the required circle is x2+y2+2×−2x+2×−2y=0
or x2+y2−4x−4y=0