JB Math Club 26-27 · Lecture notes

Cubics and Quartics

Cardano, discriminants and Ferrari

Learn how a cubic identity leads to Cardano’s method, how a discriminant counts real roots, and how a quartic can be reduced to two quadratics.

Route through the lecture. Cube root identities; depressed cubics; Cardano’s method; real roots and discriminants; a root-location problem; Ferrari’s method; complex arithmetic.

1. A surprising cube root

Throughout the real-variable part of this lecture, \(\sqrt[3]{u}\) means the real cube root of a real number \(u\).

Example 1. Evaluate

\[x=\sqrt[3]{2+\sqrt5}+\sqrt[3]{2-\sqrt5}.\]

Let \(a=\sqrt[3]{2+\sqrt5}\) and \(b=\sqrt[3]{2-\sqrt5}\). The second number is negative, which is perfectly valid for a real cube root. We have \(a^3+b^3=4\) and

\[ab=\sqrt[3]{(2+\sqrt5)(2-\sqrt5)}=\sqrt[3]{-1}=-1.\]

Cubing the sum gives

\[x^3=a^3+b^3+3ab(a+b)=4-3x.\]

Thus

\[0=x^3+3x-4=(x-1)(x^2+x+4).\]

The second factor is \((x+\tfrac12)^2+\tfrac{15}{4}>0\) for every real \(x\), so

\[\boxed{x=1.}\]

Finding the candidate \(1\) is not enough: the positive quadratic is what proves that there is no other real possibility. The useful move was to replace an awkward radical expression by a polynomial equation.

One identity behind the method

Cubic factorization. For any \(a,b,c\),

\[a^3+b^3+c^3-3abc=(a+b+c)(a^2+b^2+c^2-ab-bc-ca).\]

Expanding the right-hand side proves the identity. For real \(a,b,c\), its second factor has the useful form

\[a^2+b^2+c^2-ab-bc-ca=\frac12\bigl((a-b)^2+(b-c)^2+(c-a)^2\bigr).\]

It is nonnegative, and it is zero exactly when \(a=b=c\). In particular, if \(a+b+c=0\), then \(a^3+b^3+c^3=3abc\). Over the real numbers, the converse has a second possibility: either \(a+b+c=0\) or \(a=b=c\).

2. Reducing a cubic

A cubic equation is \(ax^3+bx^2+cx+d=0\), where \(a\ne0\). Divide by \(a\) and write

\[x^3+Bx^2+Cx+E=0.\]

We use \(E\) for the constant coefficient so that \(D\) can be reserved for a discriminant-related quantity. Substitute \(x=t+h\). The coefficient of \(t^2\) is \(3h+B\), so choose \(h=-B/3\).

Depressed cubic. The substitution \(x=t-B/3\) transforms the equation into

\[t^3+pt+q=0,\]

where

\[p=C-\frac{B^2}{3},\qquad q=E-\frac{BC}{3}+\frac{2B^3}{27}.\]

“Depressed” means that the quadratic term is absent. The change is a horizontal translation; the number and multiplicities of the roots do not change. After solving for \(t\), remember to translate back to \(x\).

For example,

\[x^3+6x^2+9x+2=0\quad\xrightarrow{x=t-2}\quad t^3-3t=0.\]

Thus \(t=0,\pm\sqrt3\), and the original roots are \(-2,-2+\sqrt3,-2-\sqrt3\). Their sum is \(-6\), as Vieta’s formulas require. For a depressed cubic, the three roots counted with multiplicity sum to zero.

3. Cardano’s method

Start with a factorization

Suppose for the moment that real numbers \(a,b\) satisfy

\[p=-3ab,\qquad q=a^3+b^3.\]

Then the cubic identity gives

\[x^3+px+q=(x+a+b)\bigl(x^2-(a+b)x+a^2+b^2-ab\bigr).\]

Hence \(x=-(a+b)\) is a root. The quadratic factor can be written as

\[\left(x-\frac{a+b}{2}\right)^2+\frac34(a-b)^2.\]

If \(a\ne b\), it is strictly positive for every real \(x\), so \(-(a+b)\) is the only real root. If \(a=b\), the factorization becomes

\[x^3-3a^2x+2a^3=(x+2a)(x-a)^2.\]

For \(a\ne0\), there are two distinct real roots: \(-2a\) and the double root \(a\). For \(a=0\), all three roots coincide at zero. In either case, multiplicities give the sum \(-2a+a+a=0\).

When do real parameters exist?

Put \(A=a^3\) and \(B=b^3\). Their sum and product must be

\[A+B=q,\qquad AB=(ab)^3=-\frac{p^3}{27}.\]

They must therefore be the roots of

\[z^2-qz-\frac{p^3}{27}=0.\]

Define

\[D=q^2+\frac{4p^3}{27}.\]

The quadratic has real roots exactly when \(D\ge0\). Conversely, if it has real roots \(A,B\), their real cube roots satisfy

\[ab=\sqrt[3]{AB}=-\frac p3,\]

so they do give the required representation. Thus real \(a,b\) exist if and only if \(D\ge0\).

For \(D\ge0\) we obtain the real root

\[x=-\sqrt[3]{\frac{q+\sqrt D}{2}}-\sqrt[3]{\frac{q-\sqrt D}{2}}.\]

Equivalently, putting \(u=-a\), \(v=-b\) gives the familiar form

\[\boxed{x=\sqrt[3]{-\frac q2+\sqrt R}+\sqrt[3]{-\frac q2-\sqrt R}},\qquad R=\frac{q^2}{4}+\frac{p^3}{27}=\frac D4.\]

The two cube roots here are real when \(D\ge0\). If \(D=0\), this expression gives a root; use the factorization above to find the other root and its multiplicity.

Example 2. Solve \(x^3+6x-20=0\) over the real numbers.

Here \(p=6\), \(q=-20\) and \(R=100+8=108\). The formula gives

\[x=\sqrt[3]{10+6\sqrt3}+\sqrt[3]{10-6\sqrt3}.\]

But \((1+\sqrt3)^3=10+6\sqrt3\) and \((1-\sqrt3)^3=10-6\sqrt3\). The real cube roots therefore add to \(2\). Also

\[x^3+6x-20=(x-2)(x^2+2x+10),\]

and the quadratic is \((x+1)^2+9>0\). The only real root is \(2\).

For comparison, \(x^3-3x=0\) has roots \(-\sqrt3,0,\sqrt3\), while \(D=-4<0\). The polynomial is easy to solve, but the representation by real \(a,b\) is impossible. This is a limitation of that representation, not a lack of real roots.

4. Counting the real roots

The graph explains the three cases. Let \(f(x)=x^3+px+q\).

A monotone cubic

If \(p\ge0\) and \(y>x\), then

\[f(y)-f(x)=(y-x)\bigl(y^2+xy+x^2+p\bigr)>0.\]

Indeed, \(y^2+xy+x^2=(y+x/2)^2+3x^2/4\) is positive when \(y\ne x\). Thus \(f\) is strictly increasing, including when \(p=0\). Since it takes negative values for sufficiently negative \(x\) and positive values for sufficiently positive \(x\), it has exactly one real root. The root is triple only for \(p=q=0\).

A cubic with two turning points

For \(p<0\), write \(p=-3s^2\) with \(s>0\). Then

\[f'(x)=3(x^2-s^2),\qquad f(-s)=q+2s^3,\qquad f(s)=q-2s^3.\]

The graph increases up to \(-s\), decreases from \(-s\) to \(s\), and increases afterwards. The first turning point is a local maximum and the second a local minimum. Therefore there are three distinct real roots exactly when

\[q+2s^3>0\quad\hbox{and}\quad q-2s^3<0,\]

or \(|q|<2s^3\). Moreover,

\[f(-s)f(s)=q^2-4s^6=q^2+\frac{4p^3}{27}=D.\]

When \(D=0\), a turning point lies on the axis and gives a double root. When \(D>0\), both turning points lie on the same side of the axis and only one real crossing remains.

Three graphs of x^3-3x+q: q=0 gives three simple roots; q=2 gives one simple and one double root; q=3 gives one real root.

The derivative is a concise way to justify the graph. Without calculus, the signs of differences also prove the same monotonicity: on each outer interval use \(f(y)-f(x)=(y-x)(y^2+xy+x^2-3s^2)\); on \([-s,s]\) use \(y^2+xy+x^2<3s^2\) for distinct \(x,y\) in that interval.

Root classification for real \(p,q\).

Condition Distinct real roots of \(x^3+px+q\)
\(D>0\) One simple real root
\(D=0\), \((p,q)\ne(0,0)\) Two: one simple and one double
\(p=q=0\) One triple root
\(D<0\) Three simple real roots

The boundary can be parametrized by \(p=-3a^2\), \(q=2a^3\), because its polynomial is \((x+2a)(x-a)^2\).

In the (p,q) plane, D=0 is the cusp 27q^2+4p^3=0. The region inside the cusp has three distinct real roots. The origin is the triple-root case.

5. The discriminant

For a monic polynomial \(P(x)=\prod_{j=1}^n(x-r_j)\), with complex roots repeated according to multiplicity, define

\[\Delta(P)=\prod_{1\le i<j\le n}(r_i-r_j)^2.\]

This product vanishes exactly when two roots coincide. Although defined using roots, it is a symmetric polynomial in them, so it can be expressed in the coefficients. We do not need to find the roots explicitly to calculate it.

Quadratic case

For \(P(x)=x^2+bx+c\), Vieta gives \(r_1+r_2=-b\), \(r_1r_2=c\). Hence

\[\Delta=(r_1-r_2)^2=(r_1+r_2)^2-4r_1r_2=b^2-4c.\]

Cubic case

For \(P(x)=x^3+px+q\),

\[\boxed{\Delta=-4p^3-27q^2=-27D.}\]

In particular, \(\Delta\) and \(D\) have opposite signs. Three distinct real roots correspond to \(\Delta>0\), whereas one real root and two nonreal conjugate roots correspond to \(\Delta<0\).

Here is a derivation that avoids solving the cubic. At a root \(r_i\),

\[P'(r_i)=\prod_{j\ne i}(r_i-r_j).\]

Multiplying the three identities gives \(\prod_iP'(r_i)=-\Delta\). On the other hand \(P'(r_i)=3r_i^2+p\). Vieta gives

\[\sum r_i^2=-2p,\qquad \sum_{i<j}r_i^2r_j^2=p^2,\qquad r_1^2r_2^2r_3^2=q^2.\]

The middle equality follows by squaring \(\sum_{i<j}r_ir_j=p\) and using \(r_1+r_2+r_3=0\). Therefore

\[\prod_i(3r_i^2+p)=27q^2+9p\cdot p^2+3p^2(-2p)+p^3=27q^2+4p^3.\]

Negating this gives the formula for \(\Delta\). For a nonmonic polynomial with leading coefficient \(a\), the standard definition adds a factor \(a^{2n-2}\) to the product of squared root differences.

6. Sometimes a factorization is enough

Example 3. Let \(P\) be a monic cubic with three real roots, counted with multiplicity, and suppose \(|P(1)|<1\). Prove that a root lies in \((0,2)\).

Write \(P(x)=(x-r_1)(x-r_2)(x-r_3)\) with all \(r_i\) real. Evaluating at \(1\) gives

\[|1-r_1|\,|1-r_2|\,|1-r_3|=|P(1)|<1.\]

If all three factors were at least \(1\), their product would be at least \(1\). Thus \(|1-r_i|<1\) for some \(i\), which is exactly \(0<r_i<2\).

The assumptions matter. Monicity makes the product equal to \(P(1)\) without another factor, and real roots turn a distance bound into a real interval statement. No cubic formula is needed. The same argument works for any degree if all roots are real.

7. Quartics and Ferrari’s method

Remove the cubic term

After dividing by the leading coefficient, write the quartic as

\[x^4+Bx^3+Cx^2+Ex+F=0.\]

Substituting \(x=y-B/4\) removes the cubic term, leaving

\[y^4+py^2+qy+r=0.\]

We now rename \(y\) as \(x\) while solving the depressed equation. The letters \(p,q,r\) in this section are quartic coefficients.

Build a difference of squares

Seek

\[x^4+px^2+qx+r=(x^2+\alpha)^2-(\beta x+\gamma)^2.\]

Expanding the right-hand side and comparing coefficients gives the system

\[\begin{cases} 2\alpha-\beta^2=p,\\ -2\beta\gamma=q,\\ \alpha^2-\gamma^2=r. \end{cases}\]

Any solution of this system produces a factorization into two quadratics:

\[\begin{aligned} x^4+px^2+qx+r &=(x^2-\beta x+\alpha-\gamma)\\ &\qquad\cdot(x^2+\beta x+\alpha+\gamma). \end{aligned}\]

We only need to find one suitable triple \(\alpha,\beta,\gamma\).

Solve the coefficient system

If \(q=0\), use \(u=x^2\) and solve the quadratic \(u^2+pu+r=0\). For real \(x\), retain only \(u\ge0\). Now assume \(q\ne0\), so the second equation forces \(\beta\ne0\).

Express \(\gamma\) and \(\alpha\) in terms of \(\beta\) using the second and first equations:

\[\gamma=-\frac{q}{2\beta},\qquad \alpha=\frac{p+\beta^2}{2}.\]

Substitute these into \(\alpha^2-\gamma^2=r\):

\[\frac{(p+\beta^2)^2}{4}-\frac{q^2}{4\beta^2}=r.\]

Multiplying by \(4\beta^2\) gives

\[\beta^2(p+\beta^2)^2-q^2=4r\beta^2.\]

Expand and bring all terms to the left:

\[\beta^6+2p\beta^4+(p^2-4r)\beta^2-q^2=0.\]

This equation has degree six in \(\beta\), but it depends only on \(\beta^2\). Set \(z=\beta^2\). We obtain the auxiliary cubic

\[\boxed{z^3+2pz^2+(p^2-4r)z-q^2=0.}\]

Choose a positive solution \(z\), take \(\beta=\sqrt z\), and recover \(\alpha\) and \(\gamma\) from the expressions above. The difference of squares then gives two quadratic equations. Thus solving a quartic reduces to solving a cubic and then two quadratics. This is the general method; no fully expanded quartic formula is needed.

A worked quartic

Example 4. Solve \(x^4-7x^2-2x+8=0\).

Here \(p=-7\), \(q=-2\), \(r=8\). The coefficient system becomes

\[\begin{cases} 2\alpha-\beta^2=-7,\\ \beta\gamma=1,\\ \alpha^2-\gamma^2=8. \end{cases}\]

We do not need to find every solution of this system. One solution is enough, so we can first try integers.

Start with \(\beta\gamma=1\) and try \(\beta=\gamma=1\). The first equation then gives

\[2\alpha-1=-7\quad\Longrightarrow\quad\alpha=-3.\]

Check the third equation:

\[\alpha^2-\gamma^2=(-3)^2-1^2=9-1=8.\]

All three equations hold. Substituting \(\alpha=-3\), \(\beta=1\), \(\gamma=1\) gives

\[\begin{aligned} x^4-7x^2-2x+8 &=(x^2-3)^2-(x+1)^2\\ &=(x^2-x-4)(x^2+x-2). \end{aligned}\]

Now \(x^2+x-2=(x-1)(x+2)\), and the quadratic formula applied to \(x^2-x-4=0\) gives \(x=(1\pm\sqrt{17})/2\). Hence

\[\boxed{x=1,\quad -2,\quad \frac{1+\sqrt{17}}2,\quad \frac{1-\sqrt{17}}2.}\]

8. Why complex numbers enter

Let \(i\) satisfy \(i^2=-1\). A complex number has the form \(u+vi\) with real \(u,v\). Addition and multiplication follow the usual algebraic rules together with \(i^2=-1\). Conjugate numbers \(u+vi\) and \(u-vi\) have real sum and product.

Consider

\[x^3-15x-4=0.\]

It has the evident root \(4\), and factorization gives all three real roots:

\[x^3-15x-4=(x-4)(x^2+4x+1),\qquad x=4,-2+\sqrt3,-2-\sqrt3.\]

Yet Cardano’s radicand is \(R=4-125=-121\). Its formal expression involves cube roots of \(2+11i\) and \(2-11i\). Direct expansion gives

\[(2+i)^3=2+11i,\qquad (2-i)^3=2-11i.\]

These compatible choices add to \(4\) and have product \(5=-p/3\), so they recover the real root.

Over the complex numbers, a nonzero number has three cube roots. One must choose them so that \(uv=-p/3\); arbitrary independent choices do not generally solve the original cubic. Here it is safer to state that \(2+i\) is a cube root of \(2+11i\), rather than silently use an ambiguous radical symbol.

Cubic equations were a major historical stimulus for the development of complex arithmetic: they made imaginary intermediate expressions useful even when the desired answers were real. Bombelli’s Algebra (1572) developed arithmetic that made this possible. It would be too strong to say that every real cubic with three distinct real roots can only be solved using complex numbers; the example \(x^3-3x=0\) already disproves that claim. The point is that Cardano’s radical expression passes through nonreal quantities when \(D<0\).