Cubic Equation Solver logo
Cubic Equation Solver

Cubic Equation Solver

Cardano's Method solver

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

The Equation

Provide your cubic's coefficients to walk through Cardano's classical 16th-century solution method step by step.

f(x) = 0 = 0

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

The Solution

Calculation: Cardano's Method Calculator

Cardano's Method Calculator

Enter your polynomial coefficients above and click "Apply Cardano's Method" to see results.
Graph will appear here after you solve.

The Treatise

What isCardano's Method Calculator?

  • For a school student: Imagine a recipe from 500 years ago that always finds the answers to a cubic equation. You follow the steps in order, mix the ingredients (your numbers), and out come the roots. Cardano's method is exactly that: a fixed recipe, published in 1545, that solves any cubic equation ever written.
  • For a college student: For the depressed cubic t³ + pt + q = 0, Cardano's formula gives every root as t = ∛(−q/2 + √((q/2)² + (p/3)³)) + ∛(−q/2 − √((q/2)² + (p/3)³)). Any general cubic is first reduced to this form by our depressed cubic calculator, then the formula is applied, then the shift is undone. It is the cubic analogue of the quadratic formula you already know.
  • For the advanced reader: The formula is a radical tower of depth two. Radicals suffice for degrees up to four (Ferrari extended the method to quartics), and the Abel-Ruffini theorem proves no general radical formula exists for degree five. The famous casus irreducibilis occurs when the discriminant is positive yet the cubic is irreducible: all three roots are real, but the formula forces a detour through complex cube roots. This paradox, wrestled with by Bombelli around 1572, is what finally made complex numbers respectable.
  • Why it matters in practice: When the rational root theorem finds nothing, Cardano's method still delivers exact answers in radicals instead of decimals. Use it when you need symbolic exactness, then verify the numeric values with our cubic roots calculator.

The Formula

Formula / Method

  • General form: For t³ + pt + q = 0, set t = ∛(−q/2 + √D) + ∛(−q/2 − √D) where D = (q/2)² + (p/3)³.
  • Where it comes from: Write t = u + v and demand 3uv + p = 0. Then u³ and v³ become the two roots of the quadratic z² + qz − (p/3)³ = 0. Solving that quadratic and taking cube roots gives the formula. The whole derivation is a beautiful two-level reduction: cubic to quadratic, then cube roots.
  • Reading the discriminant: The sign of D (equivalently, of the cubic discriminant Δ = −(4p³ + 27q²)) tells you which case you are in: one real root when D > 0, a multiple root when D = 0, and three real roots via complex intermediates when D < 0.
  • A common trap: Each cube root has three complex branches, giving nine combinations, but only three are valid. The constraint uv = −p/3 selects the correct pairings. Picking branches freely produces six impostor "roots" that do not satisfy the equation.

The Method

How To Use

  1. Step 1. Depress your cubic first with the substitution x = t − b/3a. Our depressed cubic calculator computes p and q for you.
  2. Step 2. Enter p and q into the Cardano tool.
  3. Step 3. Press "Solve by Cardano's Method" and read each intermediate value: D, the two cube radicands, and the three roots.
  4. Step 4. Shift back with x = t − b/3a to get the roots of your original equation, and cross-check them with the cubic roots calculator.

Key Features

  • Shows every intermediate value: the depression shift, p and q, the discriminant, and both cube-root radicands.
  • Handles all three cases, including the casus irreducibilis with its complex intermediate steps.
  • Returns exact radical forms, not just decimal approximations.
  • Explains each step in plain language next to the algebra.
  • Warns you when the rational root theorem would have been faster, so you learn method selection.

The Illustration

Visual Diagram

General Cubicax³+bx²+cx+d=0 Depressx = t − b/(3a) Depressed Cubict³ + pt + q = 0 Rootsx₁, x₂, x₃ Key Δ FormulaPath determined by sign of Δ
Example Concept
Solve x³ − 2 = 0. It is already depressed, with p = 0 and q = −2. −q/2 = 1, and D = (q/2)² + (p/3)³ = 1 + 0 = 1. t = ∛(1 + √1) + ∛(1 − √1) = ∛2 + ∛0 = ∛2 ≈ 1.2599 Check: 1.2599³ ≈ 2.0000. Since the equation was already depressed, x = t, so the real root is ∛2. The other two roots are complex: ∛2 · (−1/2 ± i√3/2), which our complex roots calculator displays in full.

The Deep Dive

Interactive Deep Dive

The formula has a dramatic origin story. Around 1515, Scipione del Ferro of Bologna solved the depressed cubic but told almost no one. On his deathbed he confided it to his student Fior. In 1535 Fior challenged the brilliant Niccolò Tartaglia, who re-derived the solution under pressure and won. Gerolamo Cardano then coaxed the secret from Tartaglia under oath, learned del Ferro had priority, and published everything in his Ars Magna of 1545 with credit to both men. Tartaglia never forgave him. Mathematics gained its first great priority dispute, and algebra gained its crown jewel.

The derivation repays close study. Start with t³ + pt + q = 0 and substitute t = u + v. Expanding gives u³ + v³ + q + (3uv + p)(u + v) = 0. The stroke of genius is demanding 3uv + p = 0, which kills the last term and leaves the symmetric system u³ + v³ = −q, u³v³ = −(p/3)³. Two numbers with known sum and product are the roots of a quadratic, so u³ and v³ are the roots of z² + qz − (p/3)³ = 0. Take cube roots, add, and the formula appears. Every step is reversible, so nothing is lost.

The strangest chapter is the casus irreducibilis. Consider t³ − 15t − 4 = 0, which has the obvious root t = 4 since 64 − 60 − 4 = 0. Cardano's formula gives t = ∛(2 + √(−121)) + ∛(2 − √(−121)), square roots of negative numbers for an answer that is plainly 4. Rafael Bombelli noticed around 1572 that (2 + i)³ = 2 + 11i, so the two complex cube roots are 2 + i and 2 − i, summing to 4. Real answers hiding inside complex arithmetic: this single computation did more for the acceptance of complex numbers than any philosophical argument.

The quantity under the square root, D = (q/2)² + (p/3)³, is essentially the discriminant in disguise: Δ = −108D = −(4p³ + 27q²). Its sign is the complete classifier. When D > 0, one real root and a complex pair emerge from real radicals. When D = 0, a repeated root appears and the formula simplifies. When D < 0, you are in the irreducible case with three real roots demanding complex intermediates. Checking this sign before computing saves you from misreading the output.

Why keep a 500-year-old formula when computers can approximate roots in milliseconds? Because exactness matters. Computer algebra systems carry Cardano's method symbolically so that downstream algebra stays exact: simplifying expressions, proving identities, and computing closed forms with parameters. The formula also marks a boundary in mathematics: cubics and quartics yield to radicals, but the Abel-Ruffini theorem proves no such general formula exists for degree five. Cardano's method is therefore both a practical tool and a monument at the edge of what radicals can do.

The Applications

Real-World Applications

💻

Computer Algebra Systems

Systems like Mathematica, Maple, and SymPy implement Cardano's method as their symbolic cubic solver. When you ask for an exact solution, the software depresses your cubic, applies the formula, and simplifies the radicals. Every "solve exactly" button for cubics in these systems is Cardano's 1545 recipe running at machine speed.

⚙

Engineering Design

When a design parameter appears inside a cubic, engineers need the root as a formula in that parameter, not a single number. Cardano's method delivers closed-form expressions that can be differentiated, optimized, and embedded in larger symbolic models, for example in linkage design and control system tuning.

📚

Birth of Complex Numbers

The casus irreducibilis forced mathematicians to take square roots of negative numbers seriously, because real answers demanded them. Bombelli's rules for complex arithmetic, written to make Cardano's formula work, became the foundation of complex analysis. A whole branch of mathematics exists partly because this formula refused to stay real.

🏆

Competition Mathematics

Olympiad and entrance-exam problems sometimes require exact radical forms where decimals earn no credit. Recognizing when a cubic yields to Cardano, versus when the rational root theorem is faster, is a standard piece of contest training. The formula also appears in proofs that certain constructions are impossible with ruler and compass.

📊

Verifying Numerical Solvers

Developers of numerical root-finders test their code against Cardano's exact answers. If Newton's method or a Jenkins-Traub implementation disagrees with the closed form beyond tolerance, the bug is in the numerics, not the formula. Exact solutions are the ground truth that keeps approximate algorithms honest.

The Cautions

Common Mistakes to Avoid

MISTAKE Nº 1

Skipping the depression step: The formula only accepts the depressed form t³ + pt + q = 0. Feeding it a general cubic directly produces nonsense. Always reduce first with the depressed cubic calculator.

MISTAKE Nº 2

Choosing wrong cube-root branches: Nine branch combinations exist but only three satisfy uv = −p/3. Mixing branches gives values that look like roots but fail substitution. When in doubt, test each candidate in the original equation.

MISTAKE Nº 3

Sign errors in p and q: The formulas p = (3ac − b²)/3a² and q = (2b³ − 9abc + 27a²d)/27a³ are sign minefields. One flipped sign in q flips both cube radicands. Compute carefully or let the tool do it.

MISTAKE Nº 4

Forgetting to shift back: The formula returns t, not x. The roots of your original equation are x = t − b/3a. Reporting t as the answer is the most common final-step error students make.

MISTAKE Nº 5

Panicking at complex intermediates: In the irreducible case the formula passes through complex numbers on its way to real answers. This is normal, not an error. Simplify the complex cube roots as Bombelli did and the imaginary parts cancel.

The Reference

Quick Reference Table

Quick Reference TableREF
Substitutionx = t − b/(3a)
Depressed Formt³ + pt + q = 0
Cardano DiscriminantD = q²/4 + p³/27
Published1545 by Gerolamo Cardano
LimitationCasus irreducibilis when D < 0 (cubic discriminant Δ > 0)

The Questions

Frequently Asked Questions

What is Cardano's method? +

A 1545 formula that expresses the roots of any cubic in radicals. It works on the depressed form t³ + pt + q = 0, giving t = ∛(−q/2 + √D) + ∛(−q/2 − √D) with D = (q/2)² + (p/3)³.

Do I need to depress my cubic first? +

Yes. The formula only handles t³ + pt + q = 0. Use our depressed cubic calculator to convert any cubic first; it takes seconds.

Why do complex numbers appear when all roots are real? +

This is the casus irreducibilis: with three real roots and no rational root, real radicals alone cannot express them. The formula detours through complex cube roots whose imaginary parts cancel. Our complex roots calculator shows the full picture.

Who really invented the formula? +

Scipione del Ferro found it first around 1515, Tartaglia re-derived it independently, and Cardano published it in Ars Magna (1545). Credit is shared, though the priority dispute was bitter.

Does a similar formula exist for quartics? +

Yes. Ferrari, Cardano's student, extended the method to quartics by reducing them to a resolvent cubic. For degree five and above, the Abel-Ruffini theorem proves no general radical formula exists.

Is Cardano's method practical by hand? +

Rarely. Try the rational root theorem first; it cracks most textbook cubics in seconds. Reserve Cardano for irreducible cases or when exact radicals are required.

What does a negative discriminant mean here? +

With Δ = −(4p³ + 27q²) < 0 you get one real root and a complex conjugate pair from real radicals, the simplest case. Check the sign anytime with our discriminant calculator.

Can the method fail? +

Only if misapplied: the leading coefficient must be nonzero, the cubic must be depressed first, and cube-root branches must satisfy uv = −p/3. Applied correctly, it cannot fail.