Given that the equation of a circle is $x^2+y^2+8x+4y-2+k(x^2+y^2+x+y+3)=0$, for some constant k. Determine the value of $k$ such that the center of the circle will be at $(3,1)$.
I have tried a few different things, but I cannot seem to get a solution. I know the final formula should look like $(x-3)^2+(y-1)^2=R$, but how can I know what R is?
Equation can be formulated as
$$x^2+y^2+\frac{8+k}{2(k+1)}x+\frac{4+k}{2(k+1)}y+3k-2=0\\ \left(x+\frac {8+k}{2(k+1)}\right)^2+\left(y+\frac {4+k}{2(k+1)}\right)^2=\underbrace{-\frac {5k^2-10k-44}{2(k+1)^2}}_{R^2}$$ Putting $\color{red}{k=-2}$ gives $$(x-3)^2+(y-1)^2=2$$ i.e. $\color{red}{R=\sqrt2}$