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.
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
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 . Substitute to eliminate the quadratic term, yielding:
Step 2: Apply the Formula
Step 3: Back-Substitute
Convert back to using .
Cubic Discriminant
The expression under the square root, , determines the nature of the roots:
- : One real root and two complex conjugate roots
- : All roots real, at least two equal
- : 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 , published in 1545. It first reduces the cubic to a depressed form by substituting , 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 with no squared term. Any general cubic can be converted to depressed form by the substitution , which eliminates the term.
How does the cubic discriminant work?
The cubic discriminant is . 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