Since the circle passes through given points A(x1,y1)=(1,1) and B(x2,y2)=(−1,−2)
i.e. that the centre of circle is equidistant from the points A and B.
The slope of line AB=C=m=y2−y1x2−x1=−2−1−1−1=32
Mid point of line AB= (x′,y′)=(x1+x22,y1+y22)
(x′,y′)=(1−12,1−22)
(x′,y′)=(0,−12)
Slope of perpendicular bisector of AB ie C=m′=−1m=−23
So, equation of line CO is y−y′=m′(x−x′)
y−−12=−23(x−0)
6y+3=−4x
4x+6y=−3.........(1)
And given equation of line is
x+2y=1 ….... (2)
By subtracting equations (2)*3 from (1), we get
4x+6y=−3
−(3x+6y=3)
x=−6
put the value of x in equation (2) and we get,
then y=72
now, the centre of circle is at (−6,72).
Since the circle passes through (−1,−2).
Then, radius of circle is =√(−6+1)2+(72+2)2=√2212
Hence the equation of circle is
(x+6)2+(y−72)2=(√2212)2
x2+12x+36+y2−7y+494=2214
x2+12x+36+y2−7y+−1724=0
x2+12x+36+y2−7y−43=0