How the Cubic Equation Calculator works
A cubic equation has the general form ax³ + bx² + cx + d = 0, where a is nonzero. This calculator solves it exactly using Cardano's formula, the classical closed-form method for cubics, rather than an iterative approximation.
What the calculator does step by step
- Divides through by a and substitutes x = t − b/(3a) to eliminate the x² term, producing the depressed cubic t³ + pt + q = 0, with p = (3ac − b²)/(3a²) and q = (2b³ − 9abc + 27a²d)/(27a³).
- Computes the discriminant Δ = (q/2)² + (p/3)³ to determine how many roots are real.
- Applies Cardano's radical formula (Δ > 0 or Δ = 0) or the equivalent trigonometric form (Δ < 0, three real roots) to solve for t, then converts back to x.
Understanding the output
- Three roots, always: every cubic has exactly three roots counting multiplicity — the mix of real and complex depends only on the sign of Δ.
- Δ > 0: one real root and a complex-conjugate pair (a + bi and a − bi). The cubic's graph crosses the x-axis exactly once.
- Δ = 0: all roots are real and at least two coincide (a repeated root) — the graph is tangent to the x-axis at that point.
- Δ < 0: three distinct real roots — the graph crosses the x-axis three times.
- Checking your answer: substitute each root back into ax³+bx²+cx+d and confirm it evaluates to (approximately) zero.
Common uses
Cubic equations show up whenever a relationship involves a variable raised to the third power — volume problems, polynomial curve fitting, engineering stress-strain models, and as a step inside more advanced algebra and calculus work.