

Let center of the circle is (h,k) and the radius is r.
Since circle touches the y-axis, so x-coordinate of the center of the circle is same as the radius r of the circle.
Now the equation of the circle having center (h,k) and radius r is
(x-h)2 + (y-k)2 = r2
Since h = r, then
(x-r)2 + (y-k)2 = r2
=> x2 - 2rx + r2 + y2 - 2ky + k2 = r2
=> x2 - 2rx + y2 - 2ky + k2 = 0 ..............1
Agian given that the circle passes through the points (-2,1) and (-4,3)
Put (x,y) = (-2, 1) in equation 1, we get
(-2)2 - 2r*(-2) + 12 - 2k*1 + k2 = 0
=> 4 + 4r + 1 - 2k + k2 = 0
=> k2 - 2k + 4r + 5 = 0 .................2
Again put (x,y) = (-4, 3) in equation 1, we get
(-4)2 - 2r*(-4) + 32 - 2k*3 + k2 = 0
=> 16 + 8r + 9 - 6k + k2 = 0
=> k2 - 6k + 8r + 25 = 0 .................3
Multiply by 2 in equation 2, we get
2k2 - 4k + 8r + 10 = 0 .................4
equation 4 - equation 3, we get
k2 + 2k - 15 = 0
=> (k-3)*(k+5) = 0
=> k = 3, -5
To find the value of r corresponding to k = 3, substitute in equation 2, we get
32 - 2*3 + 4r + 5 = 0
=> 9 - 6 + 4r + 5 = 0
=> 8 + 4r = 0
=> 4r = -8
=> r = -8/4
=> r = -2
To find the value of r corresponding to k = -5, substitute in equation 2, we get
(-5)2 - 2*(-5) + 4r + 5 = 0
=> 25 + 10 + 4r + 5 = 0
=> 40 + 4r = 0
=> 4r = -40
=> r = -40/4
=> r = -10
Now put k = 3 and r = -2 in equation1, we get
x2 - 2*(-2)x + y2 - 2*3*y + (3)2 = 0
=> x2 + 4x + y2 - 6y + 9 = 0
=> x2 + y2 + 4x - 6y + 9 = 0
Again put k = 5 and r = -10 in equation1, we get
x2 - 2*(-10)x + y2 - 2*5*y + (-10)2 = 0
=> x2 + 20x + y2 - 10y + 100 = 0
=> x2 + y2 + 20x - 10y + 100 = 0
