Algebra • Polynomial Solvers

Cubic Equation Solver

Solve any degree-3 cubic equation ax³ + bx² + cx + d = 0 instantly. Get complete step-by-step Cardano derivations, Tschirnhaus depressed cubic reduction, exact real and complex roots, and an interactive curve graph.

|
Last Updated: September 2026
|
Cardano & Viète Formalism
Quick Presets:

Cubic Coefficients

ax³ + bx² + cx + d = 0
Cubic Equation Solutions
x³ - 6x² + 11x - 6 = 0
3 Distinct Real Roots
Root 1 (x₁) 1.0000
Root 2 (x₂) 2.0000
Root 3 (x₃) 3.0000
Interactive Cubic Curve: y = ax³ + bx² + cx + d Domain [-2, 5]
Roots (x-intercepts) Inflection Point
Inflection: (2.00, 0.00)

Cardano's Method & Polynomial Reduction Breakdown

1 Depressed Cubic (t³ + pt + q = 0)

Substituting x = t - b/(3a) eliminates the quadratic term (x²):

p = -1.0000
q = 0.0000

2 Discriminant (Δ = q²/4 + p³/27)

The sign of Cardano's discriminant determines the algebraic nature of the roots:

Δ = -0.0370
Δ < 0 ⇒ 3 Real Roots (Viète)

3 Calculus Derivative Analysis (f')

Derivative 3ax² + 2bx + c = 0 yields turning points:

Local Max: x = 1.4226
Local Min: x = 2.5774
Direct Answer & Overview
Verified Educational Guide

How to Solve a Cubic Equation ax³ + bx² + cx + d = 0

A cubic equation is solved algebraically using Cardano’s method: first substitute x = t - b/(3a) to eliminate the x² term and obtain the depressed cubic t³ + pt + q = 0. Calculate Cardano’s discriminant Δ = (q/2)² + (p/3)³. If Δ > 0, there is 1 real root and 2 complex conjugates; if Δ = 0, multiple real roots; if Δ < 0 (casus irreducibilis), Viète’s trigonometric substitution yields three distinct real roots.

Primary Mathematical Formula Standard Mathematical Model
Standard Equation
ƒ(x)
Q.E.D.
ax3+bx2+cx+d=0  ⟺  t3+pt+q=0(x=t−b3a)ax^3 + bx^2 + cx + d = 0 \iff t^3 + pt + q = 0 \quad \left(x = t - \frac{b}{3a}\right)
Evaluated with exact mathematical formulation • Rigorously verified
Exact Formula
Input Parameters
Required
1
Leading cubic coefficient a (where a ≠ 0)
2
Quadratic coefficient b
3
Linear coefficient c
4
Constant term d
Expected Outputs
Calculated
Three roots (real and complex conjugate pairs)
Cardano discriminant Δ and depressed cubic coefficients p and q
Inflection point coordinate (x_inf, y_inf) of symmetry
Local extrema (critical points from f'(x) = 0)

Cubic Equation Anatomy & Fundamental Theorem

A cubic equation is an algebraic polynomial equation of degree three with real or complex coefficients. In standard form, it is expressed as:

ax³ + bx² + cx + d = 0   (a ≠ 0)

According to the Fundamental Theorem of Algebra, every degree-3 polynomial has exactly three roots in the complex plane, counting algebraic multiplicities. Because complex roots of real-coefficient polynomials always occur in conjugate pairs (u ± iv), an odd-degree polynomial must always cross the horizontal axis at least once, guaranteeing that at least one solution is guaranteed to be a real number.

Cardano’s Method & Tschirnhaus Depressed Reduction

Published in 1545 by Gerolamo Cardano in his landmark treatise Ars Magna (credited originally to Scipione del Ferro and Niccolò Fontana Tartaglia), the algebraic solution of the cubic begins by eliminating the quadratic term bx² using the Tschirnhaus transformation:

Substitute:   x = t − b / (3a)

Yielding the Depressed Cubic:   t³ + pt + q = 0

Where the parameters p and q are given by:

p = (3ac − b²) / (3a²)

q = (2b³ − 9abc + 27a²d) / (27a³)

Cardano’s Discriminant & Root Nature Classification

The nature of the three roots is determined by the sign of Cardano's polynomial discriminant Δ:

Δ = (q / 2)² + (p / 3)³
Δ > 0

1 Real + 2 Complex Roots

The curve crosses the x-axis once and has two complex conjugate solutions.

Δ = 0

Multiple Real Roots

All roots are real, with at least one repeated root where the curve is tangent to the axis.

Δ < 0

3 Distinct Real Roots

The curve crosses the x-axis at three separate locations (Casus Irreducibilis).

Casus Irreducibilis & Viète’s Trigonometric Solution

When Δ < 0, evaluating Cardano’s formula requires taking the square root of a negative quantity, producing complex numbers during intermediate algebraic calculation even though all three final roots are strictly real. In 1591, François Viète discovered that this case can be resolved purely using the triple-angle cosine identity cos(3θ) = 4 cos³(θ) − 3 cos(θ):

θ = arccos((3q / (2p)) · √(−3 / p))

t_k = 2 · √(−p / 3) · cos((θ + 2kπ) / 3),   for k ∈ {0, 1, 2}

x_k = t_k − b / (3a)

Calculus Analysis: Inflection Point & Critical Extrema

Applying differential calculus reveals critical features of the cubic landscape:

Point of Inflection

Setting the second derivative f''(x) = 6ax + 2b = 0 yields the point of inflection at x = -b/(3a). The curve possesses exact 180° point symmetry around this inflection coordinate.

Local Extrema (Max / Min)

Setting f'(x) = 3ax² + 2bx + c = 0 gives the critical points. If 4b² - 12ac > 0, the curve reaches one local peak and one local trough. Otherwise, the curve is strictly monotonic.

Step-by-Step Worked Algebraic Solutions

Example 1: Solve x³ - 6x² + 11x - 6 = 0

Given a = 1, b = -6, c = 11, d = -6.

Shift: x = t - (-6)/3 = t + 2

Depressed parameters: p = (33 - 36)/3 = -1, q = 0

Depressed equation: t³ - t = 0 ⇒ t(t - 1)(t + 1) = 0

Solutions for t: t = -1, 0, 1

Substitute back: x = t + 2 ⇒ x₁ = 1, x₂ = 2, x₃ = 3

Example 2: Complex root cubic x³ - 3x² + 4x - 12 = 0

Given a = 1, b = -3, c = 4, d = -12.

Factor by grouping: x²(x - 3) + 4(x - 3) = (x² + 4)(x - 3) = 0

Roots: x₁ = 3 (real), x₂ = +2i, x₃ = -2i (complex conjugates)

Common Pitfalls & Calculation Errors

Pitfall: Forgetting Complex Roots

If a graphing calculator only shows one x-intercept, students often believe the equation only has one solution. Every cubic has 3 roots; if only one real intersection is visible, the other two roots are complex numbers.

Pitfall: Setting a = 0

If the leading coefficient a = 0, the degree drops to 2, reducing the equation to a quadratic form bx² + cx + d = 0, which must be solved using the quadratic formula.

Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

How does Cardano’s formula solve a general cubic equation?
Cardano’s method begins by substituting x = t - b/(3a) to eliminate the quadratic term, transforming the equation into the depressed cubic t³ + pt + q = 0. It then computes Cardano’s discriminant Δ = (q/2)² + (p/3)³. If Δ > 0, the equation has 1 real root and 2 complex conjugate roots. If Δ < 0, it yields three distinct real roots solved trigonometrically via Viète’s substitution.
What is the "casus irreducibilis" of a cubic equation?
Casus irreducibilis (Latin for "irreducible case") occurs when Cardano’s discriminant is negative (Δ < 0). In this scenario, the cubic equation has three distinct real roots, yet Cardano’s algebraic formula requires taking the square root of a negative number (imaginary numbers) in intermediate steps to produce purely real solutions.
Can a cubic equation ever have only two roots?
By the Fundamental Theorem of Algebra, a degree-3 polynomial always has exactly three roots counting multiplicity. If two roots are numerically identical (a double root where the curve is tangent to the x-axis), it may appear to have only two distinct solutions, but algebraically there are three.
What is the geometric significance of the inflection point in a cubic graph?
The inflection point of a cubic curve always occurs at x = -b/(3a), exactly where the second derivative f''(x) = 6ax + 2b equals zero. At this point, the curve changes concavity from concave upward to concave downward (or vice versa), and the cubic curve exhibits 180° point rotational symmetry around this coordinate.
How do you determine if a cubic equation has local maximum and minimum values?
Differentiate f(x) to obtain the quadratic derivative f'(x) = 3ax² + 2bx + c. Compute the derivative discriminant D' = (2b)² - 4(3a)(c) = 4b² - 12ac. If D' > 0, the derivative has two distinct real roots, meaning the cubic curve has one local maximum and one local minimum. If D' ≤ 0, the curve is strictly monotonic with no local extrema.
Why does every real cubic polynomial have at least one real root?
Because the leading term ax³ has an odd exponent, as x approaches positive infinity, f(x) tends toward positive infinity (for a > 0), and as x approaches negative infinity, f(x) tends toward negative infinity. By the Intermediate Value Theorem, a continuous function that spans from -∞ to +∞ must cross the x-axis at least once.