Ekuation

purpose

Cubic Equation Solver

Solve cubic equations ax^3 + bx^2 + cx + d = 0 using Cardano\'s formula. Find all three roots with step-by-step depressed cubic transformation and interactive graph.

Back to Equation Solver

Supports linear, quadratic, cubic, polynomial, and transcendental equations

Display complex (imaginary) roots when they exist

Quick Tips

Click to show tips

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Quadratic Equation

Solve a classic quadratic with two real roots.

Key values: x^2 - 5x + 6 = 0 · Two real roots

Linear Equation

Solve a simple linear equation for x.

Key values: 3x + 7 = 22 · Single root

Transcendental Equation

Find roots of sin(x) = x/3 using numerical methods.

Key values: sin(x) = x/3 · Numerical solution

Cubic with Complex Roots

Solve a cubic equation and show complex roots.

Key values: x^3 + x + 1 = 0 · Complex roots enabled

Documentation

Cardano's Formula

Published by Gerolamo Cardano in 1545, this was the first formula for solving cubic equations algebraically — a breakthrough that predates the quadratic formula by centuries in terms of mathematical difficulty.

Step 1: Reduce to Depressed Cubic

Start with the general cubic ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0. Substitute x=tb/(3a)x = t - b/(3a) to eliminate the quadratic term, yielding:

t3+pt+q=0t^3 + pt + q = 0

Step 2: Apply the Formula

t=q2+q24+p3273+q2q24+p3273t = \sqrt[3]{-\frac{q}{2} + \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}} + \sqrt[3]{-\frac{q}{2} - \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}}

Step 3: Back-Substitute

Convert back to xx using x=tb/(3a)x = t - b/(3a).


Cubic Discriminant

The expression under the square root, Δ=q2/4+p3/27\Delta = q^2/4 + p^3/27, determines the nature of the roots:

  • Δ>0\Delta > 0: One real root and two complex conjugate roots
  • Δ=0\Delta = 0: All roots real, at least two equal
  • Δ<0\Delta < 0: Three distinct real roots (casus irreducibilis)

Casus irreducibilis: When all three roots are real, Cardano's formula paradoxically requires computing with complex cube roots. This is not a defect in the formula — it's a proven mathematical necessity. The calculator handles this case using trigonometric substitution.


Frequently Asked Questions

What is Cardano's formula?

Cardano's formula is the algebraic solution for cubic equations ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0, published in 1545. It first reduces the cubic to a depressed form t3+pt+q=0t^3 + pt + q = 0 by substituting x=tb3ax = t - \frac{b}{3a}, then solves using cube roots.

How many roots does a cubic equation have?

A cubic equation always has exactly three roots (counting multiplicity). It has either three real roots or one real root and two complex conjugate roots. The cubic discriminant determines which case applies.

What is the casus irreducibilis?

The casus irreducibilis occurs when all three roots of a cubic are real, yet Cardano's formula requires computing with complex cube roots. This is not a defect but a proven mathematical necessity. The calculator handles this case using trigonometric substitution.

What is a depressed cubic?

A depressed cubic has the form t3+pt+q=0t^3 + pt + q = 0 with no squared term. Any general cubic ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0 can be converted to depressed form by the substitution x=tb3ax = t - \frac{b}{3a}, which eliminates the x2x^2 term.

How does the cubic discriminant work?

The cubic discriminant is q24+p327\frac{q^2}{4} + \frac{p^3}{27}. When it is positive, the cubic has one real root and two complex conjugate roots. When it equals zero, all roots are real with at least two equal. When it is negative, all three roots are distinct and real.

Related purpose Variants

Explore more purpose options

More Math Calculators

Explore the category

Calculator Search

Search and find calculators