Cubic Equation Solver
Solve any cubic equation ax³+bx²+cx+d=0 using Cardano's formula. Get all three roots (real and complex), step-by-step solution, discriminant analysis, and interactive graph.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Cubic Equation Solver
The Cubic Equation Solver finds all three roots of any cubic equation in the form ax³ + bx² + cx + d = 0. Enter the four coefficients and get instant results with step-by-step solution using Cardano's method, discriminant analysis, factored form, Vieta's relations, and an interactive graph.
How to Use the Cubic Equation Solver
- Enter coefficients: Type the values of a, b, c, and d for your cubic equation ax³ + bx² + cx + d = 0. The coefficient a must not be zero.
- Click "Solve Cubic Equation" to compute all three roots.
- View the roots: Each root is displayed with a label indicating whether it is real or complex. Real roots appear in green cards, complex roots in blue.
- Study the step-by-step solution: Follow the full Cardano's method derivation, including the depressed cubic transformation, discriminant calculation, and root extraction.
- Explore the graph: See the cubic function plotted with real roots marked in green and the inflection point in orange.
What Is a Cubic Equation?
A cubic equation is a polynomial equation of degree three:
\(ax^3 + bx^2 + cx + d = 0\)
where \(a \neq 0\). By the Fundamental Theorem of Algebra, every cubic equation has exactly three roots (counting multiplicity), which may be real or complex numbers.
Cardano's Formula
Published in 1545 by Gerolamo Cardano (though discovered earlier by Scipione del Ferro and Niccolo Tartaglia), this method works by:
- Depressing the cubic: Substituting \(x = t - \frac{b}{3a}\) eliminates the \(x^2\) term, yielding \(t^3 + pt + q = 0\)
- Computing p and q: \(p = \frac{3ac - b^2}{3a^2}\), \(q = \frac{2b^3 - 9abc + 27a^2d}{27a^3}\)
- Applying the formula: \(t = \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}}}\)
The Discriminant
The discriminant \(\Delta = -4p^3 - 27q^2\) determines the nature of the roots:
- \(\Delta > 0\): Three distinct real roots (uses the trigonometric/Viete method)
- \(\Delta = 0\): At least two equal roots (a repeated root exists)
- \(\Delta < 0\): One real root and two complex conjugate roots
Vieta's Formulas for Cubic Equations
If \(x_1, x_2, x_3\) are the three roots of \(ax^3 + bx^2 + cx + d = 0\), then:
- \(x_1 + x_2 + x_3 = -\frac{b}{a}\) (sum of roots)
- \(x_1 x_2 + x_1 x_3 + x_2 x_3 = \frac{c}{a}\) (sum of products of pairs)
- \(x_1 x_2 x_3 = -\frac{d}{a}\) (product of roots)
Special Cases
- Depressed cubic (\(b = 0\)): \(x^3 + cx + d = 0\) — already in simplified form
- Pure cubic (\(b = c = 0\)): \(ax^3 + d = 0\) — root is \(x = \sqrt[3]{-d/a}\)
- Sum/difference of cubes: \(x^3 \pm k^3 = (x \pm k)(x^2 \mp kx + k^2)\)
Applications of Cubic Equations
- Engineering: Beam deflection, stress analysis, and control systems
- Physics: Kepler's equation, equations of state (van der Waals)
- Economics: Cost optimization, supply-demand equilibrium models
- Computer graphics: Bezier curves, spline interpolation
- Chemistry: pH calculations involving weak acids/bases
FAQ
What is a cubic equation?
A cubic equation is a polynomial equation of degree 3, written in the form ax³ + bx² + cx + d = 0, where a is not zero. Every cubic equation has exactly three roots, which may be real or complex numbers.
How does Cardano's formula work?
Cardano's formula solves cubic equations by first reducing the equation to a depressed cubic (without the x² term) through a substitution, then applying a formula involving cube roots. The depressed cubic t³ + pt + q = 0 is solved using t = cube_root(-q/2 + sqrt(q²/4 + p³/27)) + cube_root(-q/2 - sqrt(q²/4 + p³/27)).
What does the discriminant of a cubic equation tell you?
The discriminant determines the nature of the roots. If positive, there are three distinct real roots. If zero, there are repeated roots. If negative, there is one real root and two complex conjugate roots.
Can a cubic equation have all complex roots?
No. Every cubic equation with real coefficients has at least one real root. Complex roots always come in conjugate pairs, so a cubic has either three real roots or one real root and two complex conjugate roots.
What is Vieta's formulas for cubic equations?
Vieta's formulas relate the roots to the coefficients. For ax³ + bx² + cx + d = 0 with roots r1, r2, r3: the sum of roots equals -b/a, the sum of products of pairs equals c/a, and the product of all roots equals -d/a.
Reference this content, page, or tool as:
"Cubic Equation Solver" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool.com team. Updated: 2026-03-29
You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.