Solving the Cubic Equation for Dummies
Physics Forums /
Everybody learns the “quadratic formula” for solving equations of the form , even though you don’t really need such a formula, because you can solve for through the technique of “completing the square”. What you need a formula for is the solution to the cubic equation: . There is no obvious way that “completing the cube” makes the solution into a matter of just taking cube roots in the same way that “completing the square” solves the quadratic in terms of square roots. So how could we derive such a cubic formula? Let’s see if I can convince you that you could derive it, if you thought about it hard enough, in the right way.
We’re given . Let’s assume that , so we’re interested in solving an equation of the form . (A moment’s thought will show you that if you can solve that case, you can solve the general case). So by finding a “cubic formula”, we mean finding a function that gives the solution. However, in general, a cubic equation has three solutions. So such a function must be multi-valued, with three possible values.
In the quadratic case, the solution is . We can rewrite this in the following form:
, where is either plus or minus 1, that is, one of the two solutions of .
Generalizing from the quadratic case, let’s assume that the multi-valuedness comes from the three branches of the cube root function. In other words, let’s look for a function of the form:
such that you get a solution whenever the parameter is one of the cube-roots of 1. Let’s fix and consider as a function of . The simplest possible non-constant functions are polynomials. So let’s assume that has the form: (where are implicitly dependent on the coefficients of the original cubic equaion.) Since we ultimately want to be a cube-root of 1, we don’t need to consider terms of the form or higher-order, because those terms are reducible to lower-order terms if
A few facts about the cube roots of 1. There are three cube roots, and they can be written in the form . Concretely,
corresponding to
We can see that is just the square of , so we can just write the three solutions as:
where is . Another interesting fact about the solutions is that
a fact that can be proved by substitution, or geometrically, by representing the cube roots of 1 as vectors in 2-D complex space.
So we know that where is as defined.
So in terms of our function , we want the three solutions to our cubic equation to be: . Using our polynomial for , this means that we want the three solutions to be:
Let’s work out a few symmetric combinations of these solutions that will be needed:
(All other terms vanish, when we use the fact that
(Again, we used to get this).
The significance of these combinations is that zeros of a polynomial can be used to factor the polynomial: If are the three solutions of , then we can write:
Comparing coefficients tells us that
So using our previous results for those combinations of solutions, we find:
. So
. So
.
In the last equation, we can substitute for and to get:
We can multiply by to get:
Oh no! After all that work to find the solution to a 3rd degree equation, we end up with a 6th degree equation for the coefficient . Is that progress? Well, yes it is. Because it’s only a quadratic equation in :
So we can solve this equation for , take the cube root of the result to get (any cube root will do), and then use the previously derived relationship between and to find . We already solved for . So then we know all three coefficients in our function.
Then in terms of these values for , we can find our three solutions to the original cubic equation:
(where, remember, q is one of the complex cube roots of 1)
I’m not going to go to the trouble of writing out the explicit solutions in terms of the coefficients of the original cubic equation. The point here is to convince you that you could compute them yourself, if forced to at gunpoint.
Obviously, this general strategy for solving a polynomial equation generalizes to any degree. However, the last stroke of luck, that the 6th degree polynomial equation for one of the coefficients can be rewritten as a quadratic equation, was unexpected. There is no reason to think that such luck will hold out for higher-degree polynomials. As a matter of fact, the French mathematician Evariste Galois, who tragically died in a duel, proved that techniques along the lines of those used here can’t be used to solve a general 5th order (or higher order) equation.