Cubic Equation Calculator

Solve general 3rd degree equations \(ax^3 + bx^2 + cx + d = 0\) step-by-step using Cardano's formula, with discriminant analysis, real & complex roots, and inflection points.

Quick Examples:
Solving standard form: a·x³ + b·x² + c·x + d = 0   (a ≠ 0)
3 Distinct Real Roots (Δ > 0)
Polynomial Discriminant \(\Delta =\) 100
Root 1 (\(x_1\)) 1
Root 2 (\(x_2\)) 2
Root 3 (\(x_3\)) 3
Depressed Form \(t^3 + pt + q = 0\)

t³ - 1t + 0 = 0

Inflection Point \((x_{\text{inf}}, y_{\text{inf}})\)

(2, 0)

Local Extrema (Critical Points)

x₁ = 1.4226, x₂ = 2.5774

Detailed Step-by-Step Solution Breakdown

How to Use the Cubic Equation Calculator

1

Enter Polynomial Coefficients

Input coefficients \(a, b, c, d\) for the standard 3rd-degree equation \(ax^3 + bx^2 + cx + d = 0\). Note that \(a \ne 0\) for a valid cubic.

2

Analyze Discriminant & Nature

Immediately see the polynomial discriminant \(\Delta\) and root classification (3 real roots, multiple roots, or 1 real and 2 complex conjugates).

3

Review Roots & Curve Geometry

Inspect exact/decimal roots \(x_1, x_2, x_3\), the depressed form \(t^3 + pt + q = 0\), the inflection point, and local extrema with step-by-step commentary.

Problems This Cubic Equation Calculator Solves

1. Non-Factorable 3rd Degree Polynomials

Solves cubic equations that fail rational root tests and synthetic division, leveraging Tschirnhaus depression and Cardano's resolvent formula.

2. Complex Conjugate Root Extraction

Accurately resolves negative discriminants into the single real root and dual complex conjugate pairs (\(u \pm vi\)) with high decimal precision.

3. Casus Irreducibilis Trigonometric Resolution

Bypasses the classical cube roots of imaginary numbers when \(\Delta > 0\) by invoking Vieta's cosine angle trisection to deliver all three real roots directly.

4. Inflection Point & Curve Turning Topography

Computes the central centrosymmetric inflection point \((-b/(3a), y_{\text{inf}})\) and local maximum/minimum critical coordinates automatically.

Key Features & Capabilities

Cardano Algorithm

Depressed Transformation

Applies \(x = t - b/(3a)\) to eliminate the quadratic coefficient into canonical \(t^3 + pt + q = 0\).

Exact Classification

Discriminant \(\Delta\)

Evaluates \(18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2\) to categorize real vs complex root regimes.

Curve Geometry

Extrema & Inflection

Derives first and second derivatives to pinpoint local peaks, valleys, and symmetry inflection center.

Full Derivation

Step-by-Step Proof

Numbers every mathematical operation from coefficient extraction to final root verification.

The Intuitive Mental Model: S-Curves, Inflection & The Inevitable Crossing

While a quadratic function forms a symmetric parabola that can float entirely above or below the horizontal axis without touching it, a cubic equation behaves like an unbroken roller-coaster track traveling between opposite infinities:

End Behavior

The Guaranteed Real Intercept

Because the leading term is \(ax^3\), as \(x \to +\infty\), \(y \to +\infty\); as \(x \to -\infty\), \(y \to -\infty\) (for \(a > 0\)). By the Intermediate Value Theorem, continuous passage from negative infinity to positive infinity forces the curve to slice through the \(x\)-axis at least once. Every real cubic must have at least one real root.

Point Symmetry

The Central Fulcrum (Inflection Point)

Every cubic has an inflection point at \(x_{\text{inf}} = -b / (3a)\) where its curvature flips from concave to convex. The entire curve is centrosymmetric: rotate the curve \(180^\circ\) around this central fulcrum, and it maps exactly onto itself.

Depressing a cubic is simply sliding the coordinate system horizontally so that this inflection point lands directly on the vertical \(y\)-axis (\(t = 0\)), instantly eliminating the quadratic \(x^2\) term and opening the door to Cardano's algebraic breakthrough.

Multi-Level Conceptual Mastery: Algebra, Geometry & Galois Theory

Level 1: Beginner

Standard Form & Root Topologies

  • Standard Formulation: \(ax^3 + bx^2 + cx + d = 0\) with real coefficients and \(a \ne 0\).
  • Three Total Roots: By the Fundamental Theorem of Algebra, every cubic has exactly 3 roots (3 real or 1 real + 2 complex conjugates).
  • Rational Root Theorem: If coefficients are integers, any rational root \(p/q\) must have \(p \mid d\) and \(q \mid a\).
Level 2: Intermediate

Depressed Cubics & The Discriminant

  • Tschirnhaus Substitution: Substitute \(x = t - \frac{b}{3a}\) to cancel the quadratic term, yielding \(t^3 + pt + q = 0\).
  • Cardano's Resolvent: Setting \(t = u + v\) with \(3uv = -p\) produces a quadratic in \(u^3\), solved via radicals.
  • Discriminant Classification: \(\Delta > 0\) gives 3 real roots; \(\Delta = 0\) gives multiple roots; \(\Delta < 0\) gives 1 real and 2 complex.
Level 3: Advanced STEM

Casus Irreducibilis & Equations of State

  • Casus Irreducibilis: When \(\Delta > 0\), Cardano's formula requires complex numbers to reach real roots. Vieta's cosine trisection resolves this cleanly.
  • Galois Group: Symmetries form \(S_3\) (order 6) if \(\sqrt{\Delta} \notin \mathbb{Q}\), or \(A_3 \cong \mathbb{Z}/3\mathbb{Z}\) (order 3) if \(\Delta\) is a square.
  • Thermodynamic EOS: Chemical engineering cubic equations of state (van der Waals, Peng-Robinson) solve for vapor and liquid molar volumes.

Common Traps & Exam Pitfalls to Avoid

⚠️ Trap 1: Leading Coefficient Normalization Slip

When \(a \ne 1\), students often compute the coordinate shift as \(x = t - b/3\) instead of \(x = t - b/(3a)\). Neglecting to divide by \(a\) fails to eliminate the quadratic term, leaving Cardano's resolvent invalid.

⚠️ Trap 2: The Casus Irreducibilis Illusion

When Cardano's formula outputs cube roots of imaginary expressions like \(\sqrt[3]{2 + 11i} + \sqrt[3]{2 - 11i}\), students assume arithmetic errors. In fact, \((2 \pm i)^3 = 2 \pm 11i\), summing to the purely real integer \(4\)!

⚠️ Trap 3: Discriminant Sign Convention Clashes

The polynomial discriminant \(\Delta\) is positive for 3 real roots. However, Cardano's depressed radicand \(D = \frac{q^2}{4} + \frac{p^3}{27} = -\frac{\Delta}{108a^4}\) carries the opposite sign. Don't confuse \(\Delta\) with \(D\).

Cubic Discriminant & Root Classification Matrix

Summary of root behavior governed by the polynomial discriminant \(\Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2\) and Cardano's radicand \(D = \frac{q^2}{4} + \frac{p^3}{27}\):

Discriminant Status Cardano Radicand \(D\) Root Characteristics Geometric \(x\)-Intercepts Recommended Method
\(\Delta > 0\) \(D < 0\) 3 distinct real roots Crosses \(x\)-axis at 3 separate locations Vieta Trigonometric
\(\Delta = 0\) and \(p \ne 0\) \(D = 0\) 3 real roots (1 simple, 1 double root) Touches \(x\)-axis tangentially at double root Cardano Algebraic
\(\Delta = 0\) and \(p = q = 0\) \(D = 0\) 1 real root with multiplicity 3 (triple root) Point of inflection lands directly on axis \(x = -b/(3a)\)
\(\Delta < 0\) \(D > 0\) 1 real root, 2 complex conjugate roots (\(u \pm vi\)) Crosses \(x\)-axis once, no other real touches Cardano Formula

Step-by-Step Worked Examples

Example 1: Three Distinct Real Roots (\(\Delta > 0\))

Solve \(x^3 - 6x^2 + 11x - 6 = 0\)

1. Inflection Shift: \(x_{\text{inf}} = -\frac{-6}{3(1)} = 2\). Substitute \(x = t + 2\).

2. Depressed Form: \(p = \frac{3(1)(11)-36}{3} = -1\), \(q = 0\), giving depressed equation \(t^3 - t = 0\).

3. Solve for \(t\) & Unshift: Factor \(t(t-1)(t+1) = 0 \implies t \in \{-1, 0, 1\}\). Adding \(2\) yields roots \(x \in \{1, 2, 3\}\).

Roots: \(x_1 = 1, \quad x_2 = 2, \quad x_3 = 3\)
Example 2: One Real & Two Complex Roots (\(\Delta < 0\))

Solve \(x^3 - 3x^2 + 4x - 2 = 0\)

1. Inflection Shift: \(x_{\text{inf}} = -\frac{-3}{3(1)} = 1\). Substitute \(x = t + 1\).

2. Depressed Form: \(p = \frac{3(1)(4)-9}{3} = 1\), \(q = 0\), giving depressed equation \(t^3 + t = 0\).

3. Solve for \(t\) & Unshift: Factor \(t(t^2 + 1) = 0 \implies t_1 = 0, t_{2,3} = \pm i\). Adding \(1\) yields roots \(x_1 = 1, x_{2,3} = 1 \pm i\).

Roots: \(x_1 = 1, \quad x_{2,3} = 1 \pm i\)

Frequently Asked Questions

What is a cubic equation? ▼
A cubic equation is an algebraic polynomial equation of degree three, written in the standard form ax^3 + bx^2 + cx + d = 0, where a, b, c, and d are real or complex numbers with leading coefficient a != 0. By the Fundamental Theorem of Algebra, every cubic equation has exactly three roots (which may be real or complex, distinct or repeated).
What is Cardano's formula for cubic equations? ▼
Cardano's formula (discovered by Scipione del Ferro and Niccolo Tartaglia, and published by Gerolamo Cardano in 1545) is the closed-form algebraic formula that solves depressed cubics t^3 + pt + q = 0. It defines the root as t = cbrt(-q/2 + sqrt((q/2)^2 + (p/3)^3)) + cbrt(-q/2 - sqrt((q/2)^2 + (p/3)^3)).
What is a 'depressed cubic'? ▼
A depressed cubic is a cubic polynomial equation that has no quadratic (x^2) term: t^3 + pt + q = 0. Any general cubic ax^3 + bx^2 + cx + d = 0 can be converted into a depressed cubic by making the linear coordinate substitution x = t - b/(3a), which centers the polynomial at its inflection point.
How does the discriminant predict the nature of cubic roots? ▼
The polynomial discriminant Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2 dictates the root profile: 1. If Delta > 0, the equation has three distinct real roots; 2. If Delta = 0, all roots are real and there is a repeated root (multiplicity 2 or 3); 3. If Delta < 0, the equation has one real root and two non-real complex conjugate roots.
What is the 'casus irreducibilis' in cubic equations? ▼
The casus irreducibilis (Latin for 'irreducible case') occurs when a cubic equation has three distinct real roots (Delta > 0, or D < 0 in the depressed discriminant). In this case, Cardano's formula requires taking square roots of negative numbers inside cube roots - meaning real roots cannot be expressed using real radicals alone without passing through imaginary intermediate numbers. Francois Vieta resolved this in 1591 using a trigonometric cosine substitution.
Can a cubic equation have zero real roots? ▼
No. Because non-real complex roots of real polynomials always occur in conjugate pairs (a + bi and a - bi), a third-degree polynomial with real coefficients must have either three real roots or one real root accompanied by one conjugate complex pair. It can never have zero real roots.
How do you find the inflection point of a cubic curve? ▼
The inflection point is the exact point on the curve where the concavity changes from concave upward to concave downward (or vice versa). It is found by setting the second derivative to zero: f''(x) = 6ax + 2b = 0, which yields x = -b/(3a). Every cubic curve possesses point symmetry about its unique inflection point (x_inf, f(x_inf)).
How can you solve simple cubic equations without Cardano's formula? ▼
In secondary school algebra, simple cubic equations can often be solved by: 1. Factoring out a common term x if d = 0; 2. Factoring by grouping if the ratio of coefficients allows it; or 3. Testing potential rational roots p/q using the Rational Root Theorem and synthetic division to depress the cubic to a quadratic, which is then solved using the quadratic formula.