Cubic equation and Cardano's Formula
We know the quadratic formula for the solution of degree two equations
ax2 + bx + c = 0
with a,b,c in a field containing rationals. A formula for the solution of such equations expresses the roots of the equations as functions of the coefficients through square root extraction operations
We now focus on the resolution of cubic equations with complex coefficients of the form
x3 + ax2 + bx + c = 0 (5.8.1)
Then we shall study a formula for solving cubic equations with real coefficients.
The x2 term, in 5.8.1 can be eliminated via the substitution x = y − a/3, which results in:
(y − a/3)3 + a(y − a/3)2 + b(y − a/3) + c = y3 + (b − a2/3)y + c − ab/3 + 2a3/27 = 0
thus solving 5.8.1 is equivalent to solving the following
y3 + py + q = 0 (5.8.2)
where
p = b − a2/3, q = c − ab/3 + 2a3/27
called the reduced cubic equation or depressed cubic, in which the squared term is missing, a reduction due to Cardano and Ferrari. We will solve it for any coefficient p and q.
The first step towards solving 5.8.2 involves noticing that
(u + v)3 = u3 + 3u2v + 3uv2 + v3 = 3uv(u + v) + (u3 + v3)
(u + v)3 − 3uv(u + v) − v3 − u3 = 0
which compared to (5.8.2), pattern matching suggests that if we are able to find two numbers u and v such that
−3uv = p, −u3 − v3 = q (5.8.3)
then the number u + v is a solution of 5.8.2. We can rewrite these two conditions as
u3v3 = −p3/27, u3 + v3 = −q
Since the previous equations are respectively the product and sum of u3 and v3, there is a quadratic equation with roots u3 and v3. Indeed consider the quadratic equation
(x − u3) (x − v3) = x2 − xv3 − xu3 − v3u3 = x2 − x(u3 + v3) + v3u3
this equation has clearly the solutions v3 and u3. We can write it as
x2 + qx −p3/27 = 0
whose roots are
−q/2 ± (q2/4 + p3/27)1/2
thus
u3 = −q/2 + (q2/4 + p3/27)1/2 (5.8.4)
and
v3 = −q/2 − (q2/4 + p3/27)1/2 (5.8.5)
Let u1, u2, u3 and v1, v2, v3 the roots of 5.8.4. and 5.8.5 respectively. We have
with ω primitive cubic root of unity, ω = −1/2 +√3i/2, ω2 = −1/2 − √3i/2.
The roots of y3 + py + q = 0 are thus given by the following formula, known as Cardano's formula published by Cardano in his Ars Magna of 1545:
where u and v are two solutions of 5.8.4. and 5.8.5. At first glance it may appear that since u and v can assume each three values, u + v could assume more than three values; Out of the nine combinations of these values of u and v, only three cases of u + v will satisfy 5.8.3.
Let u1 one of the three possible values of u and let v1 the corresponding value such that u1v1 = −p/3. Then the value of v corresponding to u2 is v3, because
u2v3 = u1ω ⋅ v1ω2 = u1v2ω3 = u1v1 = −p/3
whilst for any other choice we do not obtain the desired result
u2v2 = u1ωv1ω = u1v1ω2 = −pω2/3 ≠ −p/3
Analogously the value of v corresponding to u3 is v2. The three roots of the depressed equation are thus
y1 = u1 + v1, y2 = u1ω + v1ω2, y3 = u1ω2 + v1ω
Cubic equations with real coefficients
We now want to verify whether Cardano's formula, in the case of a cubic equation with real coefficients gives information on the nature of its roots. A major role is played by the sign of the expression
q2/4 + p3/27
which appears under the square root. The following expression is known as the discriminant of the depressed cubic equation x2 px + q = 0 is
Δ = −4p3 − 27q2 = −108(q2/4 + p3/27)
it has opposite sign to q2/4 + p3/27.
Let's examine the three cases that can be found using Cardano's formula.
Δ < 0: In this case we have a positive sign under the square root, we thus have to extract the cube root of a real number that we know lead to a real solution and two complex conjugate values. Indicating with u1 the real value the corresponding value v1 has to be real as well to have u1v1 = −p/3 ∈ ℝ. Hence u1 + v1 is real. The other two roots are
y2 = u1ω + v1ω2 = u1 (−1/2 + i√3/2) + v1 (−1/2 − i√3/2) = −(u1 + v1)/2 + i√3 (u1 − v1)/2
y3 = u1ω2 + v1ω = (u1 + v1)/2 − i√3 (u1 − v1)/2
they are complex conjugate (and not real).
Δ = 0, In this case
u = (−q/2)1/3, v = (−q/2)1/3
If u1 is the real value of the cubic root, the corresponding v1 value is real as well, since u1v1 = −p/3 and u1 = v1. The roots are
y1 = u1 + v1 = 2u1, y2 = u1(ω + ω2) = −u1, y3 = u1(ω2 + ω) = −u1.
All the roots are real and two are equal.
Δ < 0. In this case the expression under the square root is negative, so we extract the cubic root of a complex number, which are complex as well. Thus all values u + v are be complex. A cubic equation always has at least one real root. Suppose this real root to be y1 = u1 + v1. Then u1 and v1 are complex conjugate, since both their product and sum are real numbers. Similarly we have also the complex conjugates u1ω with v1ω2, and u1ω2 with v1ω. Thus y1 = u1 + v1, y2 = u1ω + u1ω2 and y3 = u1ω2 + v1ω are all real and distinct: indeed if we take y2 = y3 we would have u1(ω − ω2) = v1(ω − ω2) implying u1 = v1 which is an absurd. Hence in this case all roots are real and distinct.
Focusing one this last case of a cubic equations with all real roots, Cardano's formula led us to the extraction of cubic roots of complex numbers that we are able to find thanks to the trigonometric representation of complex numbers. For this reason the practical applicability of Cardano's formula is limited. This case has historically been known as the “casus irreducibilis”, because of the difficulty in showing that these immaginary terms reduce to real terms.
Example 5.8.1. If we take the depressed cubic equation x3 = 7x + 6, and use the standard recipe for its solution, we obtain a negative number under the sign of the square root i.e. the casus irreducibilis. It is easy to find out the roots −1, −2 and 3. Cardano's formula with p = −7 and q = −6 give us the roots
[3 + (36/4 − 343/27)1/2)]1/3 + [3 − (36/4 − 343/27)1/2)]1/3 = [3 + (−100/27)1/2)]1/3 + [3 − (−100/27)1/2)]1/3
To sum up
The roots of y3 + py + q = 0, p,q ∈ ℝ with Δ = −4p3 − 27q2
Δ < 0 one real root and two non-real complex conjugate roots.
Δ = 0 all real roots with two equal.
Δ > 0 the cubic has three distinct real roots