Let, the equation of the circle S2 be
x2+y2+2gx+2fy+c=0,
whose centre is (−g,−f) and radius is √g2+f2−c.
According to the problem AB is also a chord of S2, so S2 also passes through A(0,1) and B(−2,2).Then,
1+2f+c=0........(1) and
4+4−4g+4f+c=0........(2).
Subtracting (2) from (1) we get,
7−4g+2f=0⇒2(f+1)=4g−5........(3).
Also, given radius of the circle S2 is √10.
Then,
√g2+(f+1)2=√10......(4). [Since the distance of the centre to A is the radius of S2.]
Now, using the value of (f+1) from (3) in (4) we get
g2+(4g−5)24= 10
or, 4g2+16g2−40g+25=40
or, 20g2−40g−15=0
or, 4g2−8g−3=0
⇒g=8±√64+488=2±√72.
Using the value of g in (3) we get,
f=−3±2√72.
So, the equation of S2 be
(x+2±√72)2+(y+−3±2√72)2=10.