Cubic formula
The cubic formula is a very complicated formula used to solve cubics. It is not used very often, as schools don't teach it and problem writers usually hide a simpler tactic instead.
Cardano's formula
Start with the cubic . The constant controls how steep it is. The constant shifts it up and down. The constant controls the slope of the middle. And the constant shifts it left to right. For now, let's just reduce it to , as everyone knows how to do that. Consider the cubic . The first two terms match, and if we let be , we get rid of that annoying term. We'll just add it back at the end. Making the substitution results in: .
By now, let's define and as and . We get the depressed cubic or . First, let's expand . Now, let so matches up with , matches up with , and matches up with . Things are about to get exciting!
Now, , , and . Let's cube p to get and then write the equation . This may not sound exciting until our substitution . We got rid of and now we have
Using the quadratic formula, , so and by symmetry, so is . (If this results in , interpret it as ).
Now, (The two 's need not be the same). As a bonus, if you make the 's and , the resulting root is always real because they become complex conjugates.
Substituting back, we get the cubic formula (remember ): . Simplifying, we get: .
Disadvantages
First of all, even with normal cubics, the square rooting step introduces complex numbers, which can make the cube root more complicated. In the end, if you take and , they will be conjugates but it will go through a awful mess first. It is possible to make another cubic formula that avoids this insanity, but that requires trig. Next, try applying it on . You'll get the right answer of 6, but you need to go through a lot of stuff first. Finally, apply it on . What did you get? (The answer is 4). You got , didn't you? Now how is that equal to 4? It is.