If the equation $3{x^2}y + 2x{y^2} - 18xy = 0$ represent the sides of a triangle whose centroid is G, then the equation of the circle which touches the line $x-y+1=0$ and passing through G and $(1,1)$ is
A: ${x^2} + {y^2} - x - y = 0$
B: ${x^2} + {y^2} - 9x - y + 8 = 0$
C: ${x^2} + {y^2} - 4x + 2y = 0$
D: ${x^2} + {y^2} + 9x + y + 8 = 0$
I got the answer but had the choice not been provided how would I find the solution.
My steps are elaborated below
$3{x^2}y + 2x{y^2} - 18xy = 0 \Rightarrow xy\left( {3x + 2y - 18} \right) = 0$
The triangle is formed by line x=0, y=0 and 3x+2y-18=0 Centroid $G = \left( {\frac{{6 + 0 + 0}}{3},\frac{{9 + 0 + 0}}{3}} \right) = \left( {2,3} \right)$
Let the centre of the circle is (h,k)
Circle passes through (2,3) and (1,1), hence the radius is
${r^2} = {\left( {h - 1} \right)^2} + {\left( {k - 1} \right)^2} = {\left( {h - 2} \right)^2} + {\left( {k - 3} \right)^2} \Rightarrow 2h + 4k = 11$
${x^2} + {y^2} + 2gx + 2fy + c + \lambda \left( {x - y + 1} \right) = 0$, represent the equation of the circle touching the line x-y+1=0 and passing through (2,3) and (1,1)
${x^2} + {y^2} + 2x\left( {g + \frac{\lambda }{2}} \right) + 2y\left( {f - \frac{\lambda }{2}} \right) + c + \lambda = 0$
$Centre:\left( { - \left( {g - \frac{\lambda }{2}} \right), - \left( {f - \frac{\lambda }{2}} \right)} \right)$
Putting it in 2h+4k=1
$ - 2\left( {g - \frac{\lambda }{2}} \right) - 4\left( {f - \frac{\lambda }{2}} \right) = 11 \Rightarrow - 2g - 4f + \lambda + 2\lambda = 11 \Rightarrow 2g + 4f = 3\lambda - 11$
By Hit and Trial I am getting choice (B) as it satisfies $2h+4k=11$ where $h=\frac{9}{2}$ and $k=\frac{1}{2}$.
Had the option not been given how do I proceed

Start with the general form of a circle:
$$x^2+y^2 + ax+by+c = 0$$
It passes through $(1, 1)$ and $(2,3)$, so $a+b+c = -2$ and $2a+3b+c = -13$. Therefore $(2a + 3b + c) - 2(a+b+c) = b-c = -9 \Rightarrow b = c - 9$.
Now, since the line $x-y+1 =0 \Rightarrow y = x+1$ is tangent to the circle, substitute in $y = x+1$.
This equation gives us the possible values of $x$, so by setting $\Delta = 0$, we ensure there is only one (real) value of $x$ common to both the circle and line, which is what a tangent is:
$$x^2 + (x+1)^2 + ax + b(x+1) + c = 0$$ $$\Rightarrow 2x^2 + (a+b+2)x + (b+c+1) = 0$$ $$\Rightarrow B^2-4AC = 0 : (a+b+2)^2 - 8(b+c+1) = 0$$ $$\Rightarrow (-c)^2 - 8(b+c+1) = 0 \tag{$a+b+c = -2$}$$ $$\Rightarrow c^2 -8(c - 9 + c + 1) = 0 \tag{$b=c-9$}$$
which gives $(a,b,c) = (-9, 1, 8)$ as expected.