Discriminant of a cubic

The discriminant of a quadratic equation

ax² + bx + c = 0


Δ = b² – 4ac.

If the discriminant Δ is zero, the equation has a double root, i.e. there is a unique x that makes the equation zero, and it counts twice as a root. If the discriminant is not zero, there are two distinct roots.

Cubic equations also have a discriminant. For a cubic equation

ax³ + bx² + cx + d = 0

the discriminant is given by

Δ = 18abcd – 4b³d + b²c² – 4ac³ – 27a²d².

If Δ = 0, the equation has a multiple root, but otherwise it has three distinct roots.

A change of variable can reduce the general cubic equation to a so-called “depressed” cubic equation of the form

x³ + px + q = 0

in which case the discriminant simplifies to

Δ = – 4 – 27q².

Here are a couple interesting connections. The idea reducing a cubic equation to a depressed cubic goes back to Cardano (1501–1576). What’s called a depressed cubic in this context is known as the Weierstrass (1815–1897) form in the context of elliptic curves. That is, an elliptic curve of the form

y² = x³ + ax + b

is said to be in Weierstrass form. In other words, an elliptic curve is in Weierstrass form if the right hand side is a depressed cubic.

Furthermore, an elliptic curve is required to be non-singular, which means it must satisfy

4 + 27b² ≠ 0.

In other words, the discriminant of the right hand side is non-zero. In the context of elliptic curves, the discriminant is defined to be

Δ = -16(4 + 27b²)

which is the same as the discriminant above, except for a factor of 16 that simplifies some calculations with elliptic curves.

A note on fields

In the context of solving quadratic and cubic equations, we’re usually implicitly working with real or complex numbers. Suppose all the coefficients of a quadratic equation are real. If the discriminant is positive, there are two distinct real roots. If the discriminant is negative, there are two distinct complex roots, and these roots are complex conjugates of each other.

Similar remarks hold for cubic equations when the coefficients are all real. If the discriminant is positive, there are three distinct real roots. If the discriminant is negative, there is one real root and a complex conjugate pair of complex roots.

In the first section I only considered whether the discriminant was zero, and so the statements are independent of the field the coefficients come from.

For elliptic curves, one works over a variety of fields. Maybe real or complex numbers, but also finite fields. In most of the blog posts I’ve written about elliptic curves, the field is integers modulo a large prime.

More posts related to cubic equations

7 thoughts on “Discriminant of a cubic

  1. I’m puzzled. How is
    Δ = – 4p³ – 27q²
    the same as
    Δ = -16(a³ + 27b²)

    Isn’t the ratio of the a^3 and b^2 (or p^3 and q^2, if you prefer) multipliers completely different?

  2. “…except for a factor of 16 that simplifies some calculations with elliptic curves.”

    What happens if the underlying field has characteristic 2?

  3. Have you any step by step solution to an equation of degree four?I.e. e.g.4x^4-20x^3-3x^2+100x-64=0

  4. Hey! If 18abcd+(b^2c^2)-(4ac^3)-(4b^3d)-(27a^2d^2) is ∆ then what about the roots of (x^3-3x+2=0) bcoz ∆ of this equation is 0 which implies that roots are equal and real roots exist for this equation but the roots are distinct… Which means ∆ must be greater than 0. Can you explain why this happens…

Comments are closed.