How would you go about solving the function: x^2+y^2- 2x + 6y + 9 = 0 in Mathematica?
This function has the solution of: (x-1)^2+(y+ 3)^2 = 1, which is a circle of radius 1 centered at (1,-3).
When using the Solve[] function of:
Solve[x^2 + y^2 - 2 x + 6 y + 9 == 0 {x, y}]
I get {{y -> -3 - Sqrt[2 x - x^2]}, {y -> -3 + Sqrt[2 x - x^2]}}
which is far from my desired answer.
I know I am omitting something from the function, but cannot figure out what.
Please ignore my prior response because it was me at fault - I wasn’t clearing the variables correctly. Your neat example works fine and thanks again.
Thanks Hans, and I did notice that the technique could be used for “Completing the Square”, which I find very interested.
I did come up with one additional question concerning handling coefficient’s to x^2 and y^2 - see attached. I am not quite sure how to handle these additional coefficients in the technique, which is causing Mathematica to generate computational errors. Completing the Square manually, I get:
(x + 3/2)^2 + (y - 3)^2 =1
Another take. This is a function that takes a polynomial in any number of variables. Where all variables appear to the 2nd power, and not higher. The 2nd power terms has to have coefficients of +1: