A circle is drawn with its centre on the line $x + y = 2$ to touch the line $4x – 3y + 4 = 0$ and pass through the point $(0, 1)$. Find its equation.
My attempt is as follows:-
Let the equation of circle be $x^2+y^2+2gx+2fy+c=0$
As center lies on the line $x+y=2$
$$-g-f=2$$ $$g+f=-2\tag{1}$$
As circle passes through the point $(0,1)$
$$1+2f+c=0$$ $$2f+c=-1\tag{2}$$
As $4x – 3y + 4 = 0$ is tangent to the circle
$$\dfrac{\left|-4g+3f+4\right|}{5}=\sqrt{g^2+f^2-c}$$
Squaring both sides
$$16g^2+9f^2-24gf+16+8(-4g+3f)=25g^2+25f^2-25c$$ $$9g^2+16f^2+24gf+32g-24f-25c-16=0$$
Eliminating $g$ with the help of equation $(1)$
$$9(-2-f)^2+16f^2+24(-2-f)f+32(-2-f)-24f-25c-16=0$$ $$9(4+f^2+4f)+16f^2-48f-24f^2-64-32f-24f-25c-16=0$$ $$f^2-68f-44-25c=0$$
Eliminating $c$ with the help of equation $(2)$
$$f^2-68f-44-25(-1-2f)=0$$ $$f^2-18f-19=0$$ $$f^2-19f+f-19=0$$ $$f=19,-1$$
$$(g,f,c)\equiv (-1,-1,1),(-21,19,-39)$$
So equations are $x^2+y^2-2x-2y+1=0$, $x^2+y^2-42x+38y-39=0$
But this got too long, any shorter method?
hint...let the centre of the circle be $(p, 2-p)$ so you can use the distances to form a quadratic in $p$