I want Mathematica to put the circle given by $x^2+y^2+a x+b y+c=0$ into the standard form $(x-A)^2+(y-B)^2+C=0$, but I haven't been able to.
I tried:
Solve[
CoefficientList[x^2 + y^2 + a x + b y + c = 0, x] ==
CoefficientList[(x - A)^2 + (y - B)^2 + C = 0,
{x, y}]]
but it's wrong and I don't understand why.
Solve[CoefficientList[x^2+y^2+a x+b y+c-((x-A)^2+(y-B)^2+C),{x,y}]==0,{a,b,c}]
$\endgroup$sol = Solve[ First@SolveAlways[(x - A)^2 + (y - B)^2 + C == x^2 + y^2 + a x + b y + c, {y, x}] /. Rule -> Equal, {A, B, C}]
and then(x - A)^2 + (y - B)^2 + C /. First@sol
$\endgroup$