ALGEBRAAlgebraMathematics Calculator
📊

Cubic Equations

Cubic equations ax³+bx²+cx+d=0 have up to three roots. Cardano's formula (16th century) solves them via the depressed cubic y³+py+q=0. Discriminant Δ determines whether roots are real or complex.

Concept Fundamentals
Max for cubic
3 roots
One real, two complex
Δ>0
Repeated roots
Δ=0
Three real roots
Δ<0

Did our AI summary help? Let us know.

Depressed cubic removes the x² term for easier solution. When Δ<0, all three roots are real (casus irreducibilis). Sum of roots = −b/a, product = −d/a (Vieta).

Key quantities
Max for cubic
3 roots
Key relation
One real, two complex
Δ>0
Key relation
Repeated roots
Δ=0
Key relation
Three real roots
Δ<0
Key relation

Ready to run the numbers?

Why: Cubics arise in optimization, geometry (angle trisection), and physics. The solution formula marked a breakthrough in Renaissance algebra. Vieta's relations link roots to coefficients.

How: Substitute x=y−b/(3a) to depress the cubic. Cardano: solve y³+py+q=0 using u³+v³=−q and uv=−p/3. Roots come from cube roots of u³ and v³. Discriminant Δ=q²/4+p³/27.

Depressed cubic removes the x² term for easier solution.When Δ<0, all three roots are real (casus irreducibilis).

Run the calculator when you are ready.

Solve Cubic EquationsCardano's formula, all roots, Vieta

Cubic Equation — Cardano's Method

Solve ax³+bx²+cx+d=0. All roots, discriminant, Vieta's relations.

cubic_solve.sh
CALCULATED
$ cubic_solve --a=1 --b=-6 --c=11 --d=-6
Nature
Three distinct real roots
Discriminant
-0.0370
Sum of Roots
6.0000
Product
6.0000
Real Roots:
x1=3.0000, x2=1.0000, x3=2.0000

Root Values

Real vs Complex Roots

Calculation Steps

Normalizex³ + -6x² + 11x + -6 = 0
Depressed cubicy³ + -1y + 0 = 0
p (depressed)-1
q (depressed)0
Discriminant Δ-0.037
Roots (Δ < 0)x₁=3, x₂=1, x₃=2
Vieta: Sum of roots6
Vieta: Product of roots6

For educational and informational purposes only. Verify with a qualified professional.

🧮 Fascinating Math Facts

📜

Cardano published the formula in 1545; Tartaglia discovered it.

— History

🔢

Vieta: r₁+r₂+r₃=−b/a, r₁r₂r₃=−d/a.

— Relations

Key Takeaways

  • • Every cubic equation ax³ + bx² + cx + d = 0 has exactly three roots (counting multiplicity), by the Fundamental Theorem of Algebra
  • • The discriminant Δ = q²/4 + p³/27 determines the nature: Δ < 0 → three real roots; Δ > 0 → one real + two complex; Δ = 0 → repeated roots
  • Cardano's formula (1545) solves the depressed cubic y³ + py + q = 0 via substitution and cube roots
  • Vieta's relations: sum of roots = -b/a, product = -d/a — useful for verification
  • • Complex roots always appear in conjugate pairs when coefficients are real
  • • The depressed cubic eliminates the x² term via x = y - b/(3a), simplifying the algebra

Did You Know?

📜Cardano published the cubic formula in Ars Magna (1545), but it was likely discovered by Tartaglia, who shared it under oath. The formula sparked one of math's greatest priority disputes.Source: Math History
🔢The cubic formula was the first 'impossible' problem solved — quadratics were known since antiquity, but cubics resisted solution until the Renaissance.Source: Wikipedia
📐The discriminant of a cubic determines whether the graph has three x-intercepts (Δ<0), one (Δ>0), or a repeated intercept (Δ=0).Source: Polynomial Theory
⚛️Cubic equations appear in physics: van der Waals equation of state, quantum mechanics eigenvalue problems, and beam deflection in engineering.Source: Applied Math
🎓Vieta's relations for cubics: x₁+x₂+x₃=-b/a, x₁x₂+x₂x₃+x₁x₃=c/a, x₁x₂x₃=-d/a — generalize to all degrees.Source: Algebra
🔄When Δ=0, the cubic has a repeated root — the graph is tangent to the x-axis. This occurs at inflection points of the curve.Source: Calculus Connection

How It Works

Cardano's method transforms ax³+bx²+cx+d=0 into a depressed cubic y³+py+q=0 by substituting x = y - b/(3a). The discriminant Δ = q²/4 + p³/27 then determines which formula to apply: for Δ<0 we use trigonometric functions (cosine of one-third angle); for Δ>0 we use cube roots of (-q/2 ± √Δ); for Δ=0 we have simplified formulas for repeated roots.

Step-by-Step Algorithm

  1. Divide by a to get x³ + (b/a)x² + (c/a)x + (d/a) = 0
  2. Substitute x = y − b/(3a) to eliminate the x² term
  3. Obtain depressed cubic: y³ + py + q = 0 where p = c − b²/3, q = 2b³/27 − bc/3 + d
  4. Compute Δ = q²/4 + p³/27
  5. If Δ < 0: use y = 2√(−p³/27) cos((1/3)arccos(−q/(2r))) with r = √(−p³/27)
  6. If Δ > 0: use y = ∛(−q/2 + √Δ) + ∛(−q/2 − √Δ)
  7. If Δ = 0: use simplified formulas for double/triple roots
  8. Convert back: x = y − b/(3a) for each root

Expert Tips

Check for Rational Roots First

Use the Rational Root Theorem: try ±(factors of d)/(factors of a). If you find one root r, factor out (x-r) and solve the resulting quadratic.

Discriminant Interpretation

Δ < 0 means three distinct real roots — the cubic crosses the x-axis three times. Δ > 0 means one real and two complex — only one crossing.

Numerical Stability

For certain coefficients, direct application of Cardano's formula can suffer from catastrophic cancellation. This calculator uses stable implementations.

Connection to Quadratics

If a=0, the equation becomes quadratic. Always verify a≠0 before applying cubic methods.

Reference Table — Discriminant & Roots

ΔNature of RootsGraph Behavior
Δ < 0Three distinct real rootsCrosses x-axis 3 times
Δ > 0One real, two complex conjugateCrosses x-axis once
Δ = 0, p≠0One single + one double rootTangent at double root
Δ = 0, p=0Triple rootInflection point on x-axis

FAQ

What is Cardano's formula?

Cardano's formula (1545) is an algebraic solution for cubic equations. It reduces the general cubic to a depressed form and uses cube roots. The formula works for all cubics but can produce complex intermediate expressions even when roots are real.

Why does Δ < 0 give three real roots?

When Δ < 0, the expression under the cube root becomes negative. Using complex numbers and De Moivre's theorem, we take the cosine of one-third of an angle — which always yields three distinct real values.

What are Vieta's relations?

For ax³+bx²+cx+d=0 with roots r₁,r₂,r₃: r₁+r₂+r₃=-b/a, r₁r₂+r₂r₃+r₁r₃=c/a, r₁r₂r₃=-d/a. These help verify solutions and connect coefficients to symmetric functions of roots.

When do I get complex roots?

When the discriminant Δ > 0, one root is real and the other two are complex conjugates (a±bi). This happens when the cubic has only one x-intercept.

How is the depressed cubic used?

Substituting x = y - b/(3a) eliminates the x² term, giving y³+py+q=0. This simpler form makes the algebra tractable. The transformation preserves the root structure.

Can I use this for quartics?

Quartic equations have a more complex solution (Ferrari's method). This calculator is for cubics only. See our polynomial calculators for higher degrees.

Quick Reference

3
Roots (always)
Δ
Discriminant
1545
Cardano published
y³+py+q
Depressed form

Applications in Science & Engineering

Physics

Van der Waals equation of state, eigenvalue problems in quantum mechanics, cubic potential wells, and oscillatory systems with cubic nonlinearities.

Engineering

Beam deflection equations, control system characteristic polynomials, cubic spline interpolation, and fluid dynamics models.

Disclaimer: This calculator uses Cardano's method for educational purposes. Results are numerically stable for typical coefficients. For research or high-precision work, verify with symbolic algebra systems (Mathematica, Maple, SymPy).

👈 START HERE
⬅️Jump in and explore the concept!
AI

Related Calculators

Polynomial Root Calculator

Find real and complex roots of polynomials up to degree 4. Uses quadratic formula for exact solutions, numerical methods for cubic and quartic. Includes rational root theorem, Descartes' rule of signs, multiplicity, and upper/lower bounds. Bar and doughnut charts for root visualization.

Mathematics

Polynomial Root Finder Calculator

Find all roots of polynomials up to degree 4 using Newton's method, bisection method, secant method, or analytical formulas. Input coefficients (highest degree first), initial guess, tolerance, and max iterations. Results include roots found, iterations needed, convergence rate, and error estimate. Bar chart of root values, Doughnut showing iteration distribution. Examples: x²-2 (√2), x³-x-1, x⁴-10x²+9, Wilkinson's polynomial, engineering frequency equation, financial IRR. Educational content on numerical methods overview, convergence criteria, Newton vs bisection, when analytical formulas fail.

Mathematics

Rational Zeros Calculator

Apply the Rational Zeros Theorem to list all possible rational zeros p/q of a polynomial with integer coefficients. Test each candidate, find actual zeros...

Mathematics

Box Method Calculator

Multiply polynomials visually using the box method (area model). Step-by-step solutions for binomials, trinomials, and factoring. Interactive grid...

Mathematics

Completing the Square Calculator

Convert quadratic expressions from standard form ax²+bx+c to vertex form a(x-h)²+k. Find vertex, axis of symmetry, x-intercepts, and min/max values....

Mathematics

Diamond Problem Calculator

Solve diamond problems: find two numbers given product and sum, or find product and sum given two numbers. Reverse mode. Direct connection to factoring...

Mathematics