Cubic Equation Solver logo
Cubic Equation Solver

Cubic Equation Solver

Cubic Discriminant solver

Find real and complex roots, discriminant, and cubic graphs in seconds with our precision solver.

The Equation

Enter the coefficients to compute the discriminant (Δ) and determine whether your cubic has three distinct real roots, a repeated root, or complex roots.

f(x) = 0 = 0

Enter coefficients and solve to view the calculation, graph, and step-by-step explanation.

The Solution

Calculation: Cubic Discriminant Calculator

Cubic Discriminant Calculator

Enter your polynomial coefficients above and click "Calculate Discriminant" to see results.
Graph will appear here after you solve.

The Treatise

What isCubic Discriminant Calculator?

  • For a school student: Think of the discriminant as a weather forecast for your equation. Just as a forecast tells you whether to expect rain or sunshine without stepping outside, the discriminant tells you what kind of answers your cubic equation has, without solving it. One number, three possible forecasts.
  • For a college student: For the general cubic ax³ + bx² + cx + d = 0 with a ≠ 0, the discriminant Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d² classifies the roots completely. Its sign alone decides between three distinct real roots, a multiple root, or one real root with a complex pair. It is the cheapest test in the cubic toolkit: one evaluation instead of a full Cardano solution.
  • For the advanced reader: Up to a factor, the discriminant equals the product of the squared differences of the roots, Δ = a⁴(r₁ − r₂)²(r₁ − r₃)²(r₂ − r₃)². This is exactly why it vanishes when two roots coincide. It also controls the Galois group of the cubic and decides whether Cardano's formula will drag you through complex intermediate numbers even when all three roots are real, the famous casus irreducibilis.
  • Why it matters in practice: Check Δ before choosing a solving method. If Δ > 0, expect three real crossings and head to our cubic roots calculator. If Δ = 0, factor out the repeated root with the factorization tool. If Δ < 0, the complex roots calculator handles the conjugate pair.

The Formula

Formula / Method

  • General form: Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d²
  • Depressed cubic shortcut: If your cubic is already in the form t³ + pt + q = 0, the formula collapses to Δ = −(4p³ + 27q²). Our depressed cubic calculator performs this reduction for you.
  • Reading the sign: Δ > 0 means three distinct real roots. Δ = 0 means a multiple root, with all roots still real. Δ < 0 means one real root plus a pair of complex conjugates.
  • A common trap: This sign convention is the standard one used across modern textbooks, but some older sources define the discriminant with the opposite sign. Always check which convention a source uses before comparing values.

The Method

How To Use

  1. Step 1. Write your equation in standard form ax³ + bx² + cx + d = 0 and read off the four coefficients.
  2. Step 2. Type each coefficient into its field. Missing terms count as zero, so x³ − 8 = 0 means a = 1, b = 0, c = 0, d = −8.
  3. Step 3. Press "Calculate Discriminant".
  4. Step 4. Read Δ and the plain-language verdict, then follow the suggested next step: finding the actual roots or factoring the polynomial.

Key Features

  • Instant verdict on the nature of your roots, with the exact value of Δ shown.
  • Evaluates the full five-term formula without arithmetic slips.
  • Explains the result in plain language alongside the mathematics.
  • Handles missing terms: just enter 0 for any absent coefficient.
  • Suggests the right next tool based on the verdict, so you never wonder what to do with the answer.

The Illustration

Visual Diagram

Compute Δ Δ > 03 distinct real roots Δ = 0Repeated roots Δ < 01 real + 2 complex Curve crosses x-axis 3× Curve tangent to x-axis Curve crosses x-axis 1×
Example Concept
For x³ − 6x² + 11x − 6 = 0, the coefficients are a = 1, b = −6, c = 11, d = −6. Plugging into the formula: Δ = 18(1)(−6)(11)(−6) − 4(−6)³(−6) + (−6)²(11)² − 4(1)(11)³ − 27(1)²(−6)² Δ = 7128 − 5184 + 4356 − 5324 − 972 = 4 Since 4 > 0, the verdict is three distinct real roots. This matches the factorization (x − 1)(x − 2)(x − 3) = 0, giving roots 1, 2, and 3. Verify them yourself with our cubic roots calculator or the factorization tool.

The Deep Dive

Interactive Deep Dive

The discriminant is not a magic formula. It has a concrete geometric meaning: up to the factor a⁴, it equals the product of the squared differences of the three roots, Δ = a⁴(r₁ − r₂)²(r₁ − r₃)²(r₂ − r₃)². Each squared difference measures how far apart a pair of roots sits. When any two roots coincide, one factor becomes zero and the whole product collapses to zero. This single identity explains every property of the discriminant: why it is symmetric in the coefficients, why its sign classifies the roots, and why Δ = 0 is exactly the condition for a multiple root.

The three cases deserve a closer look. When Δ > 0, the cubic crosses the x-axis three times, like x³ − 6x² + 11x − 6 with roots 1, 2, and 3. When Δ = 0, the curve just touches the axis at the repeated root: x³ − 3x² + 3x − 1 = (x − 1)³ is the extreme case of a triple root. When Δ < 0, there is a single real crossing and the other two roots form a complex conjugate pair, which our complex roots calculator finds directly. Sketching these three shapes side by side is the fastest way to build lasting intuition.

There is a shorter road to the discriminant through the depressed cubic. Substituting x = t − b/3a removes the quadratic term and leaves t³ + pt + q = 0, where p and q are fixed combinations of the original coefficients. In this form the discriminant simplifies dramatically to Δ = −(4p³ + 27q²). Two terms instead of five. This is the form Cardano himself worked with, and it is the reason our depressed cubic calculator exists: reduction first, analysis second.

The case Δ = 0 splits further. A double root plus a simple root looks like (x − 2)²(x + 1) = x³ − 3x² + 4: the curve touches the axis at x = 2 and crosses at x = −1. A triple root like (x − 1)³ flattens the curve completely at the contact point. Both give Δ = 0, and telling them apart requires checking whether the derivative shares the root. Our turning points calculator shows this geometry directly: at a multiple root, a turning point sits exactly on the x-axis.

Here is the deepest cut. When Δ > 0 but the cubic is irreducible over the rationals, Cardano's formula expresses the three real roots using cube roots of complex numbers. This is the casus irreducibilis: real answers that can only be reached by passing through the complex plane. It troubled mathematicians for centuries and was one reason complex numbers earned their place in mathematics. The discriminant is the gatekeeper of this phenomenon, which is why the Cardano's method calculator shows every intermediate step, including the complex detour.

The Applications

Real-World Applications

⚙

Engineering Stability

Control engineers meet cubics in characteristic equations of third-order systems. The discriminant decides the system's personality at a glance: three real roots mean an overdamped response that settles without oscillation, while a negative discriminant warns of an oscillatory mode that may need damping. Checking Δ first saves a full root computation during early design iterations.

⚠

Material Science

Phase transitions are often modeled by cubic free-energy equations, where the minima of the energy landscape mark stable phases. The discriminant reveals whether the landscape has one global minimum or competing local minima, which is the mathematical signature of a first-order phase transition. Landau theory builds directly on this classification.

📈

Economics & Optimization

Cubic profit and cost models can have up to three break-even points. A positive discriminant tells the analyst that three crossings exist, which changes pricing strategy completely compared to a single crossing. Optimization routines also use the discriminant to count critical points before running expensive numerical searches.

🎨

Computer Graphics

Ray tracers solve cubic equations when rays meet cubic surfaces and Bezier patches. The discriminant acts as an early rejection test: if it shows the relevant root structure is absent along a ray segment, the expensive intersection solver is skipped entirely. Over millions of rays per frame, this cheap check is a genuine performance win.

⚡

Physics: Equations of State

The van der Waals equation is cubic in volume, and its discriminant marks the boundary between physical and unphysical regimes. Above the critical temperature the discriminant signals a single real volume for each pressure; below it, three mathematical volumes appear and Maxwell's construction selects the physical one. Thermodynamics students meet the discriminant here before they ever hear its name.

The Cautions

Common Mistakes to Avoid

MISTAKE Nº 1

Forgetting the 27a²d² term: The formula has five terms. The last one, 27a²d², is the easiest to drop and the hardest to notice missing. Always count to five before trusting a hand computation.

MISTAKE Nº 2

Assuming Δ = 0 means complex roots: It means the opposite. A zero discriminant guarantees a multiple root, and every root is still real. Complex pairs only appear when Δ < 0.

MISTAKE Nº 3

Mixing up the coefficient order: The formula is not symmetric in a, b, c, d. Writing the equation as dx³ + cx² + bx + a by accident scrambles every term. Always match a to x³ first.

MISTAKE Nº 4

Borrowing quadratic intuition: For quadratics, a negative discriminant means no real roots at all. For cubics, a negative discriminant still leaves one real root standing. The odd degree guarantees at least one real crossing no matter what.

MISTAKE Nº 5

Rounding halfway through: The five terms can nearly cancel, so rounding intermediate values can flip the sign of a small discriminant and misclassify the roots. Keep full precision until the final verdict.

The Reference

Quick Reference Table

Quick Reference TableREF
FormulaΔ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d²
Δ > 0Three distinct real roots
Δ = 0At least two equal real roots
Δ < 0One real root, two complex conjugate roots
InputCoefficients a, b, c, d
OutputDiscriminant value plus root classification

The Questions

Frequently Asked Questions

Does the discriminant tell me the actual roots? +

No. It tells you the type of roots to expect. For the values themselves, use our cubic roots calculator.

Can the discriminant be zero? +

Yes, and it is informative when it happens. A zero discriminant means at least two roots coincide. Try x³ − 3x² + 3x − 1 = (x − 1)³ to see a triple root in action.

Why is the formula so long? +

Because it must be symmetric in all four coefficients while encoding the product of squared root differences. The depressed cubic form Δ = −(4p³ + 27q²) is much shorter; our depressed cubic calculator handles the conversion.

Does a negative discriminant mean no real roots? +

No, that is quadratic thinking. Every cubic has at least one real root. A negative discriminant means exactly one real root plus a complex conjugate pair, which the complex roots calculator finds.

How is this related to Cardano's method? +

The discriminant is computed from the same p and q that appear in Cardano's formula, so it predicts which branch of the solution you will land on. See the full derivation in our Cardano's method calculator.

What if the x³ coefficient is zero? +

Then it is not a cubic at all, just a quadratic or lower in disguise, and this formula does not apply. Check the degree first.

Can the discriminant be used for factoring? +

Indirectly. If Δ = 0 there is a repeated root, and the rational root theorem calculator will usually find it quickly. A positive discriminant means three distinct real roots; rational candidates are worth testing, but an irreducible cubic with Δ > 0 can have no rational roots at all (try x³ − 3x + 1).

Is the sign convention universal? +

Almost. Modern textbooks agree on the convention used here, but some older sources flip the sign. When comparing values across sources, verify the convention first.