Let,S1=x2+y2−4x+5=0and,S2=x2+y2+8y+7=0The equation of common chord is;
S1−S2=0⇒(x2+y2−4x+5=0)−(x2+y2+8y+7=0)=0⇒4x+8y+2=0
Also the equation of circle passing through two circles is;
S1+λS2=0⇒(x2+y2−4x+5=0)+λ(x2+y2+8y+7=0)=0⇒(1+λ)x2+(1+λ)y2−4x+8yλ+(5+λ7)=0⇒x2+y2−4x1+λ+8yλ1+λ+5+7λ1+λ=0
This is similar to equation of circle;
x2+y2+2gx+2fy+c=0
where centre is (−g,−f)
now finding value of g and f
g=21+λandf=−4λ1+λ
hence centre of circle is (21+λ,−4λ1+λ)
At this point lie on the common chord above 4x+8y+2=0
it will satisfy the equation
putting the value in 4x+8y+2=0
⇒4.21+λ−8.4λ1+λ+2=0⇒λ=13
Hence equation of circle is;
⇒(1+λ)x2+(1+λ)y2−4x+8yλ+(5+λ7)=0⇒(1+13)x2+(1+13)y2−4x+8y.13+(5+13.7)=0⇒2x2+2y2−6x+4y+11=0