# Trigonometry/The solution of cubic equations

A **cubic** equation is an equation of the form

to be solved for x. There are three possible values for x, known as the roots of the equation, though two or all three of the values may be equal (repeated root). If a, b, c and d are all real numbers, at least one value of x must be real. There are two possible cases: the other two roots may be real, or they may be a pair of complex conjugate numbers.

The roots can always be expressed exactly as surds. However, if all three roots are real, the surds involve the cube roots of complex numbers. In that case, they are in general most easily calculated using trigonometric functions.

In the above equation, *a* is non-zero (or the equation would be quadratic). Divide through by *a* to get the equation in the form

Let

D is called the **discriminant**. If , two roots are complex; if there is a (real) repeated root; if there are three unequal real roots.

Assume . Clearly, must be less than D so is also negative; thus, and are both positive. Let

Then the three roots are

[Add example and/or exercise]