I want Mathematica to express the equation $$-11 - 2 x + x^2 - 4 y + y^2 - 6 z + z^2=0$$ in the form $$(x - 1)^2 + (y - 2)^2 + (z - 3)^2 - 25=0$$ How do I tell Mathematica to do that?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
You can use custom transformation rules, for example:
returns
The above rule does not account for cases where |
|||||||||||||||||||
|
Updated:
|
|||||||||
|
|
An algebraic one:
|
|||||
|
|
What about this: This is your left-hand part:
The result is
Now back to old notations:
The result is:
|
|||
|
|
|
A different route:
|
|||
|
|