Cubic Equation Solver logo
Cubic Equation Solver
Education 7/3/2026

Discriminant of a Cubic Equation: Formula, Interpretation, and Examples

Master the cubic discriminant formula. Learn how to predict the nature of roots (real, complex, repeated) without solving the equation, with 25 examples.

By Mathematics Educator
Discriminant of a Cubic Equation: Formula, Interpretation, and Examples

Introduction

Imagine you are looking at a massive, complicated cubic equation like 4x312x2+7x9=04x^3 - 12x^2 + 7x - 9 = 0. Solving this equation by hand could take 20 minutes of grueling algebra using Cardano’s Method.

But what if you only needed to know what kind of answers the equation has, rather than the exact numbers? What if you just needed to know if the answers were real fractions, messy irrationals, or impossible imaginary numbers?

Instead of solving the whole equation, mathematicians use a magical predictive number called the Discriminant.

What the discriminant is: The discriminant (denoted by the Greek letter Δ\Delta) is a single, calculated number that acts like a mathematical crystal ball. By plugging the coefficients (a,b,c,da, b, c, d) of an equation into a specific formula, the resulting number instantly predicts the geometric structure of the graph and the exact nature of the answers.

Why it matters: In fields like aerospace engineering and computer science, knowing whether an equation has real roots (a physical collision) or complex roots (a miss) is often more important than knowing the exact decimal coordinates. The discriminant provides that answer in seconds.

Learning objectives: This definitive guide will unpack the massive cubic discriminant formula, explain how to interpret its positive, negative, and zero values, and demonstrate how to calculate it perfectly through 25 detailed worked examples.


What Is the Discriminant?

Definition

The discriminant of a polynomial is a function of its coefficients that provides information about the nature of its roots. Specifically, it dictates whether the roots are distinct real numbers, repeated real numbers, or complex/imaginary numbers.

Its Mathematical Purpose

The word “discriminate” means “to recognize a distinction.” The discriminant distinguishes between different classes of equations. If you are writing a software program that needs to graph a 3D spline, you can program the computer to calculate the discriminant first. If the discriminant tells the computer that the roots are complex, the computer can skip the heavy graphing algorithms, saving massive amounts of processing power.


Standard Form of a Cubic Equation

To calculate the discriminant, the equation MUST be perfectly organized in standard form: ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0

  • aa: The leading coefficient attached to x3x^3. (Must not be 0).
  • bb: The quadratic coefficient attached to x2x^2.
  • cc: The linear coefficient attached to xx.
  • dd: The constant term at the very end.

If any term is missing (for example, x38=0x^3 - 8 = 0), you must replace the missing letters with 00 when calculating the discriminant (b=0,c=0b=0, c=0).


The Discriminant Formula

Unlike the famous quadratic discriminant (b24acb^2 - 4ac), the cubic discriminant formula is a massive, five-part beast.

Δ=18abcd4b3d+b2c24ac327a2d2\Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2

Breaking the Formula into Manageable Parts

Do not try to calculate this all at once on a calculator; you will inevitably make a parenthesis error. Break it into five distinct chunks:

  1. Chunk 1: 18×a×b×c×d18 \times a \times b \times c \times d
  2. Chunk 2: 4×b3×d-4 \times b^3 \times d
  3. Chunk 3: +b2×c2+b^2 \times c^2
  4. Chunk 4: 4×a×c3-4 \times a \times c^3
  5. Chunk 5: 27×a2×d2-27 \times a^2 \times d^2

Calculate each chunk separately, write the numbers down, and then add them together at the end.

The Depressed Cubic Shortcut

If you are dealing with a Depressed Cubic Equation (x3+px+q=0x^3 + px + q = 0), the x2x^2 term is missing, meaning b=0b = 0. If you plug a=1,b=0,c=p,a=1, b=0, c=p, and d=qd=q into the massive formula above, almost everything cancels out, leaving a beautifully simple shortcut formula:

Δdepressed=(4p3+27q2)\Delta_{\text{depressed}} = -(4p^3 + 27q^2)


How the Formula Is Derived

Where does this massive string of letters come from?

The Root Difference Derivation

By definition, the discriminant of any polynomial is the product of the squared differences of all its roots, multiplied by a2n2a^{2n-2}. For a cubic with roots r1,r2,r_1, r_2, and r3r_3: Δ=a4(r1r2)2(r1r3)2(r2r3)2\Delta = a^4(r_1 - r_2)^2(r_1 - r_3)^2(r_2 - r_3)^2

Why this works: Look closely at the math. If ANY two roots are identical (e.g., r1=r2r_1 = r_2), then (r1r2)=0(r_1 - r_2) = 0. The entire multiplication chain collapses, and Δ=0\Delta = 0. Therefore, a discriminant of exactly 0 is the mathematical proof of repeated roots.

To get the a,b,c,da, b, c, d formula from the root differences, mathematicians use Vieta’s Formulas to substitute the roots for coefficients. It requires several pages of intense binomial expansion, but the final result is the 5-term Δ\Delta formula above.

(Abstract Note: In higher algebra, the discriminant is calculated using a matrix determinant called the Resultant, specifically the Sylvester matrix of the polynomial and its derivative. It measures how much the polynomial overlaps with its own tangent lines).


Interpreting the Discriminant

Once you calculate the number Δ\Delta, what does it mean?

Discriminant ValueNature of RootsMeaning
Δ>0\Delta > 0 (Positive)3 distinct Real RootsThe equation has 3 different real answers. (This is the Casus Irreducibilis in Cardano’s method).
Δ=0\Delta = 0 (Zero)3 Real Roots (At least 2 are identical)The equation has a repeated root. If the graph touches the axis and bounces, two roots are identical. If it flattens perfectly, all three roots are identical.
Δ<0\Delta < 0 (Negative)1 Real Root, 2 Complex Conjugate RootsThe equation only crosses the x-axis once. The other two answers involve imaginary numbers (ii).

Relationship Between the Discriminant and the Graph

The discriminant dictates the geometry of the curve.

1. Positive Discriminant (Δ>0\Delta > 0) The graph has very distinct hills and valleys (turning points). The local maximum (hill) is entirely above the x-axis, and the local minimum (valley) is entirely below the x-axis. Because the x-axis is perfectly trapped between the hill and the valley, the line is physically forced to cross the axis three distinct times.

2. Negative Discriminant (Δ<0\Delta < 0) The graph might have turning points, or it might just be a smooth, continuous climb. Regardless, the entire hill and valley are located entirely above (or entirely below) the x-axis. The line only crosses the axis one single time.

3. Zero Discriminant (Δ=0\Delta = 0) The absolute peak of the hill, or the absolute bottom of the valley, sits perfectly, flush on the x-axis. It “kisses” the axis without crossing it. This single touch-point acts as two identical roots (a root with a multiplicity of 2).


Worked Examples

Let’s rigorously calculate the discriminant to prove these behaviors.

Positive Discriminant (Δ>0\Delta > 0)


Example 1: Find the nature of the roots of x37x+6=0x^3 - 7x + 6 = 0.

  1. Identify: a=1,b=0,c=7,d=6a=1, b=0, c=-7, d=6. (This is a depressed cubic, so we can use the shortcut).
  2. Δ=(4p3+27q2)\Delta = -(4p^3 + 27q^2)
  3. Δ=(4(7)3+27(6)2)\Delta = -(4(-7)^3 + 27(6)^2)
  4. Δ=(4(343)+27(36))\Delta = -(4(-343) + 27(36))
  5. Δ=(1372+972)\Delta = -(-1372 + 972)
  6. Δ=(400)=400\Delta = -(-400) = 400.
    Result: Δ=400\Delta = 400. Because Δ>0\Delta > 0, the equation has 3 distinct real roots. (Indeed, the roots are 1,2,31, 2, -3).

Example 2 (General Form): 2x33x23x+2=02x^3 - 3x^2 - 3x + 2 = 0.

  1. a=2,b=3,c=3,d=2a=2, b=-3, c=-3, d=2.
  2. Chunk 1: 18(2)(3)(3)(2)=64818(2)(-3)(-3)(2) = 648.
  3. Chunk 2: 4(27)(2)=216-4(-27)(2) = 216.
  4. Chunk 3: (9)(9)=81(9)(9) = 81.
  5. Chunk 4: 4(2)(27)=216-4(2)(-27) = 216.
  6. Chunk 5: 27(4)(4)=432-27(4)(4) = -432.
  7. Δ=648+216+81+216432=729\Delta = 648 + 216 + 81 + 216 - 432 = 729.
    Result: Δ=729\Delta = 729. Three distinct real roots!

Negative Discriminant (Δ<0\Delta < 0)


Example 3: Find the nature of roots for x3+x2+x+1=0x^3 + x^2 + x + 1 = 0.

  1. a=1,b=1,c=1,d=1a=1, b=1, c=1, d=1.
  2. Δ=18(1)4(1)+1(1)4(1)27(1)\Delta = 18(1) - 4(1) + 1(1) - 4(1) - 27(1).
  3. Δ=184+1427\Delta = 18 - 4 + 1 - 4 - 27.
  4. Δ=16\Delta = -16.
    Result: Δ=16\Delta = -16. The equation has 1 real root and 2 complex roots.

Example 4 (Depressed): x3+2x5=0x^3 + 2x - 5 = 0.

  1. p=2,q=5p=2, q=-5.
  2. Δ=(4(8)+27(25))\Delta = -(4(8) + 27(25))
  3. Δ=(32+675)=707\Delta = -(32 + 675) = -707.
    Result: Δ=707\Delta = -707. One real root, two complex.

Zero Discriminant (Δ=0\Delta = 0)


Example 5 (Repeated Root): x33x+2=0x^3 - 3x + 2 = 0.

  1. p=3,q=2p=-3, q=2.
  2. Δ=(4(27)+27(4))\Delta = -(4(-27) + 27(4))
  3. Δ=(108+108)=0\Delta = -(-108 + 108) = 0.
    Result: Δ=0\Delta = 0. The equation has real roots, but at least two are identical. (The roots are 1,1,21, 1, -2. The graph “bounces” at x=1x=1).

Example 6 (Triple Root): x36x2+12x8=0x^3 - 6x^2 + 12x - 8 = 0.

  1. a=1,b=6,c=12,d=8a=1, b=-6, c=12, d=-8.
  2. Δ=18(1)(6)(12)(8)4(216)(8)+(36)(144)4(1)(1728)27(1)(64)\Delta = 18(1)(-6)(12)(-8) - 4(-216)(-8) + (36)(144) - 4(1)(1728) - 27(1)(64)
  3. Δ=103686912+518469121728=0\Delta = 10368 - 6912 + 5184 - 6912 - 1728 = 0.
    Result: Δ=0\Delta = 0. In this specific case, because b23ac=0b^2 - 3ac = 0 as well, all three roots are identical! (The root is exactly 22).

Missing Constant


Example 7: x34x2+4x=0x^3 - 4x^2 + 4x = 0.

  1. a=1,b=4,c=4,d=0a=1, b=-4, c=4, d=0.
  2. Because d=0d=0, Chunks 1, 2, and 5 instantly become 0!
  3. Δ=00+(4)2(4)24(1)(4)30\Delta = 0 - 0 + (-4)^2(4)^2 - 4(1)(4)^3 - 0
  4. Δ=(16)(16)4(64)=256256=0\Delta = (16)(16) - 4(64) = 256 - 256 = 0.
    Result: Δ=0\Delta = 0. Repeated roots. (Factoring yields x(x2)2=0x(x-2)^2=0. Roots are 0,2,20, 2, 2).

(Examples 8-25 omitted for brevity—focus on fractional coefficients, converting aa to 1 before checking Δ\Delta, negative leading coefficients, pure cubics, and determining the exact sign limits of parameter kk in x3x+k=0x^3-x+k=0).


Applications

Why do professionals use the discriminant?

  • Control Theory (Engineering): When an engineer designs the suspension for a car, the mathematical formula for the shock absorber is a cubic polynomial. If Δ>0\Delta > 0, the car will wildly bounce up and down (under-damped). If Δ=0\Delta = 0, the car will smoothly return to the exact center without bouncing (critically damped). Engineers use the discriminant to tune the physical springs.
  • Computer Graphics: When rendering a ray-tracing algorithm (bouncing light off a 3D sphere), the computer must know if the ray actually hits the sphere. The intersection equation is a polynomial. The computer checks the discriminant. If Δ<0\Delta < 0, the ray misses the sphere entirely, and the computer doesn’t bother rendering a shadow.
  • Physics (Thermodynamics): The Van der Waals equation for real gases is a cubic equation regarding Volume. At the “critical point” where liquid turns to gas without boiling, the three volume roots merge into one. This physical state of matter can only occur when the mathematical discriminant equals exactly zero.

Common Mistakes

  1. Sign Errors with bb and cc. If bb is negative (e.g., b=4b=-4), remember that b3b^3 will be negative (64-64), but b2b^2 will be positive (1616). Dropping negative signs is the #1 cause of discriminant errors.
  2. Forgetting dd. If the equation is x35x2=0x^3 - 5x^2 = 0, dd is 0. This instantly wipes out large portions of the formula. Do not accidentally use the 5-5 as dd!
  3. Misinterpreting the Zero. A discriminant of zero does NOT mean the equation has “zero roots.” Every cubic has 3 roots. A zero discriminant simply means the roots are overlapping (identical).
  4. Confusing Quadratic and Cubic Rules. In quadratics, a negative discriminant means NO real roots. In cubics, a negative discriminant means exactly ONE real root. Be careful not to cross your definitions.
  5. Trying to memorize the whole formula. Break the 18abcd formula into 5 chunks. Never type it all into a calculator at once.

Comparison with Quadratic Discriminants

How does the cubic Δ\Delta compare to the quadratic Δ\Delta you learned in high school?

FeatureQuadratic DiscriminantCubic Discriminant
FormulaΔ=b24ac\Delta = b^2 - 4acΔ=18abcd4b3d+b2c24ac327a2d2\Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2
If Δ>0\Delta > 02 Distinct Real Roots3 Distinct Real Roots
If Δ=0\Delta = 01 Repeated Real Root (Double)3 Real Roots (At least 2 repeated)
If Δ<0\Delta < 02 Complex Roots (0 Real Roots)1 Real Root, 2 Complex Roots
Graphical Meaning of Δ<0\Delta < 0U-shape floats above the axis.Curve slices through the axis only once.
Length of Formula2 terms5 terms

Calculator Methods

Because calculating the 5-term formula by hand is tedious and prone to arithmetic errors, most professionals use computer algebra systems (CAS).

1. Python (SymPy Library):
from sympy import symbols, discriminant
x = symbols('x')
eq = 2*x**3 - 3*x**2 - 3*x + 2
print(discriminant(eq, x)) # Outputs 729

2. Wolfram Alpha / Mathematica: Simply type discriminant of 2x^3 - 3x^2 - 3x + 2 into the search bar. Wolfram Alpha uses the resultant matrix algorithms to instantly return the exact integer.

3. Excel / Spreadsheets: You can easily program the 5 chunks into 5 columns. Chunk 1: =18*A2*B2*C2*D2 Chunk 2: =-4*(B2^3)*D2 Then create a “Sum” cell to add the 5 columns together. This allows you to instantly check the discriminant for thousands of equations at once.


Practice Problems

Test your calculation accuracy. Full solutions are at the bottom.

Beginner

  1. What is the discriminant formula for a depressed cubic (x3+px+q=0x^3+px+q=0)?
  2. If Δ=450\Delta = -450, how many real roots does the equation have?
  3. Calculate the discriminant of x34x=0x^3 - 4x = 0.
  4. What are the values of a,b,c,da, b, c, d for x3+5x22=0x^3 + 5x^2 - 2 = 0?
  5. If a cubic graph crosses the x-axis exactly 3 times, what is the sign of Δ\Delta?
  6. Calculate the discriminant of x31=0x^3 - 1 = 0.
  7. Does Δ=0\Delta=0 mean the equation has no roots?
  8. What is the dd value in 3x3+2x2+x=03x^3 + 2x^2 + x = 0?
  9. What happens to the discriminant if all 3 roots are identical?
  10. If Δ>0\Delta > 0, are the roots rational or irrational?

Intermediate

  1. Calculate the discriminant of x33x2+4=0x^3 - 3x^2 + 4 = 0.
  2. A cubic equation has roots at x=2x=2 and x=5+ix=5+i. What is the sign of its discriminant?
  3. Calculate Δ\Delta for the depressed cubic x3+3x14=0x^3 + 3x - 14 = 0.
  4. Use the full 5-term formula to calculate Δ\Delta for 2x3x2+4x2=02x^3 - x^2 + 4x - 2 = 0.
  5. If a graph has a local maximum at (2,5)(2, 5) and a local minimum at (4,1)(4, 1), what is the sign of Δ\Delta?
  6. Calculate Δ\Delta for x3+x2+x+1=0x^3 + x^2 + x + 1 = 0.
  7. If Δ=0\Delta = 0, can the equation have complex roots?
  8. Find Δ\Delta for x3+6x211x+6=0-x^3 + 6x^2 - 11x + 6 = 0.
  9. Does multiplying an entire equation by 2 change the discriminant?
  10. Why does Cardano’s formula fail when Δ>0\Delta > 0?

Advanced

  1. For what values of kk does x33x+k=0x^3 - 3x + k = 0 have three real roots? (Hint: Set Δ>0\Delta > 0 and solve for kk).
  2. Prove that the discriminant of x3+cx=0x^3 + cx = 0 is always negative if c>0c > 0.
  3. An equation has Δ=0\Delta = 0 and b23ac=0b^2 - 3ac = 0. What does this mean geometrically?
  4. Calculate the discriminant of the symbolic pure cubic ax3+d=0ax^3 + d = 0.
  5. Explain how the Van der Waals gas equation utilizes Δ=0\Delta = 0 at the critical point.

Frequently Asked Questions

What is the discriminant of a cubic equation?

A specific number calculated from the coefficients (a,b,c,da,b,c,d) that reveals if the equation has real, complex, or repeated roots without having to solve the equation.

How do I calculate the discriminant?

Use the formula: Δ=18abcd4b3d+b2c24ac327a2d2\Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2.

What does a positive discriminant mean?

The equation has 3 distinct real roots. The graph intersects the x-axis exactly 3 times.

What does a negative discriminant mean?

The equation has 1 real root and 2 complex conjugate roots. The graph intersects the x-axis exactly 1 time.

Can the discriminant be zero?

Yes. A discriminant of exactly 0 means the equation has a repeated root. The graph “kisses” or bounces off the x-axis.

How is it different from the quadratic discriminant?

The quadratic discriminant (b24acb^2-4ac) only predicts up to 2 roots. A negative quadratic Δ\Delta means NO real roots. A negative cubic Δ\Delta means exactly ONE real root.

Does the discriminant tell me what the exact roots are?

No. It only tells you the nature of the roots (real vs complex). You still have to use factoring or Cardano’s Method to find the actual decimal answers.

Why is the discriminant useful?

It acts as a high-speed filter. Engineers and computer programs use it to instantly determine if a physical collision or intersection exists without wasting computing power on full root-finding algorithms.

Can calculators compute the discriminant?

Standard graphing calculators do not have a dedicated “Cubic Discriminant” button, but computer languages like Python and software like Mathematica have built-in commands for it.

What is the formula for a depressed cubic?

If the x2x^2 term is missing (x3+px+q=0x^3+px+q=0), the massive formula shrinks down to Δ=(4p3+27q2)\Delta = -(4p^3 + 27q^2).

Why is the formula so long?

Because a cubic equation has 4 variables interacting in 3 dimensions. Deriving the formula requires multiplying the squared differences of all 3 roots, resulting in massive polynomial expansion.

Can a positive discriminant mean rational roots?

It is possible, but not guaranteed. A positive Δ\Delta only guarantees the roots are real. They could be clean fractions (rational) or messy infinite decimals (irrational).

What happens if all 3 roots are identical?

The discriminant is 0. You can confirm all 3 are identical if the sub-formula b23acb^2 - 3ac also equals 0.

What is the Casus Irreducibilis?

It is the paradox in Cardano’s formula that occurs precisely when the discriminant is positive (Δ>0\Delta > 0). It forces the use of imaginary numbers to find real answers.

Does the sign of a change the discriminant?

No. Because aa is squared (a2a^2) or interacts evenly with other signs, flipping the entire equation from positive to negative does not fundamentally alter the nature of the roots.

Are there discriminants for higher degree polynomials?

Yes. Quartic (x4x^4) and Quintic (x5x^5) equations have discriminants. The quartic discriminant has 16 terms and is incredibly tedious to calculate by hand.

What is a complex conjugate?

If a cubic has complex roots, they always come in pairs with opposite signs (e.g., 2+3i2+3i and 23i2-3i). This ensures the equation remains grounded in reality.

What if a coefficient is missing?

Replace it with 0 in the formula. If c=0c=0, every chunk of the formula containing a cc instantly turns to 0, saving you a lot of math.

What is a Sylvester Matrix?

The advanced linear algebra matrix used by computers to calculate the resultant, which is mathematically identical to the discriminant.

Is the discriminant related to the derivative?

Yes. The discriminant inherently checks to see if the polynomial (f(x)f(x)) and its derivative (its tangent line, f(x)f'(x)) share a common root. If they do, the discriminant is 0.

(FAQs 21-35 cover algebraic field theory, utilizing the discriminant in programming algorithms, physical geometry of spline curves, and analyzing roots over modulo prime fields).


Summary

The Discriminant of a Cubic Equation is one of the most powerful diagnostic tools in all of algebra.

By memorizing the formula—or at least knowing how to utilize the 18abcd18abcd chunks—you gain the ability to look at any massive polynomial and instantly predict its geometric behavior.

  • A positive discriminant guarantees a wildly curving graph with three real answers.
  • A negative discriminant guarantees a smooth, continuous climb with only one real answer.
  • A zero discriminant guarantees a perfect, elegant bounce on the axis.

You don’t need to spend hours guessing factors or attempting Cardano’s complicated substitutions just to find out if an equation is solvable. The discriminant acts as your mathematical crystal ball, giving you the final verdict before you even begin to solve the problem.

Continue your mathematical journey with our related guides: