Skip to main content
Tillbaka till Guider
7 min read6 Steg

How to Solve Cubic Equations Using Cardano's Formula: Step-by-Step Guide

Master solving cubic equations by hand using Cardano's formula. Learn the algebraic derivation, discriminant analysis, and find all three roots with a worked example.

Hoppa över matematiken — använd kalkylatorn

Steg-för-steg-instruktioner

1

Transform to Depressed Form

Begin by converting the general cubic equation `ax^3 + bx^2 + cx + d = 0` into its depressed form `y^3 + py + q = 0`. This is achieved by making the substitution `x = y - b/(3a)`. Expand and simplify the equation after substitution to eliminate the `y^2` term.

2

Calculate p and q

From the depressed cubic equation `y^3 + py + q = 0`, identify the coefficients `p` and `q`. These values are crucial for the next steps in Cardano's formula.

3

Calculate the Discriminant (Δ)

Compute the discriminant `Δ = q²/4 + p³/27`. The sign of `Δ` indicates the nature of the roots: `Δ > 0` for one real and two complex roots, `Δ = 0` for all real roots with at least two equal, and `Δ < 0` for three distinct real roots (casus irreducibilis).

4

Apply Cardano's Formula for the First Root

Substitute the calculated values of `p`, `q`, and `Δ` into Cardano's formula to find the first root `y1`: `y = ³√(-q/2 + √Δ) + ³√(-q/2 - √Δ)`. Perform the arithmetic carefully, paying attention to signs and square/cube roots.

5

Find Remaining Roots

Once `y1` is found, perform polynomial division of `y^3 + py + q` by `(y - y1)`. This will yield a quadratic equation `Ay^2 + By + C = 0`. Use the quadratic formula `y = (-B ± √(B^2 - 4AC)) / (2A)` to find the remaining two roots, `y2` and `y3`.

6

Convert Back to x

Finally, convert all `y` roots back to `x` roots using your initial substitution `x = y - b/(3a)`. Apply this transformation to `y1, y2,` and `y3` to obtain the three roots `x1, x2,` and `x3` of the original cubic equation.

How to Solve Cubic Equations Using Cardano's Formula: Step-by-Step Guide

Cubic equations, defined by the highest power of three, can appear daunting to solve manually. While numerical methods exist, Cardano's formula provides an algebraic pathway to determine the exact roots of any cubic equation. This guide will walk you through the process, from standardizing the equation to calculating all three roots, including real and complex solutions.

Prerequisites

Before diving into Cardano's formula, ensure you have a solid understanding of:

  • Basic Algebra: Manipulating equations, polynomial expansion, and simplification.
  • Quadratic Formula: Solving equations of the form ax^2 + bx + c = 0.
  • Complex Numbers: Operations involving the imaginary unit i = √(-1).
  • Cube Roots: Understanding how to calculate both real and complex cube roots.

Understanding the Cubic Equation and its Standard Form

A general cubic equation is expressed as:

ax^3 + bx^2 + cx + d = 0

where a ≠ 0. Cardano's formula is most effectively applied after transforming this general form into a depressed cubic equation, which lacks the y^2 term:

y^3 + py + q = 0

This transformation simplifies the subsequent calculations significantly.

Transformation to Depressed Form

To achieve the depressed form, we use the substitution x = y - b/(3a). By substituting this into the general cubic equation and expanding, the y^2 terms will cancel out, leaving you with an equation of the form y^3 + py + q = 0. The coefficients p and q are derived from the original a, b, c, d:

p = (3ac - b^2) / (3a^2) q = (2b^3 - 9abc + 27a^2d) / (27a^3)

Cardano's Formula: The Core Derivation

Once the equation is in the depressed form y^3 + py + q = 0, Cardano's formula provides a direct solution for one of the roots of y:

y = ³√(-q/2 + √(q²/4 + p³/27)) + ³√(-q/2 - √(q²/4 + p³/27))

Let Δ = q²/4 + p³/27 be the discriminant of the depressed cubic. The value of Δ determines the nature of the roots:

  • Δ > 0: One real root and two complex conjugate roots.
  • Δ = 0: All roots are real, and at least two are equal.
  • Δ < 0: All three roots are real and distinct (this is known as the casus irreducibilis and requires more advanced trigonometric methods or complex cube roots for a direct algebraic solution, which can be cumbersome by hand).

Worked Example: Solving x^3 + 3x^2 + 3x + 2 = 0

Let's apply the steps to solve the equation x^3 + 3x^2 + 3x + 2 = 0.

Here, a=1, b=3, c=3, d=2.

Step 1: Transform to Depressed Form

First, substitute x = y - b/(3a) = y - 3/(3*1) = y - 1.

Substitute (y-1) for x in the original equation:

(y-1)^3 + 3(y-1)^2 + 3(y-1) + 2 = 0

Expand the terms:

(y^3 - 3y^2 + 3y - 1) + 3(y^2 - 2y + 1) + 3y - 3 + 2 = 0

y^3 - 3y^2 + 3y - 1 + 3y^2 - 6y + 3 + 3y - 3 + 2 = 0

Combine like terms:

y^3 + (3 - 6 + 3)y + (-1 + 3 - 3 + 2) = 0

y^3 + 0y + 1 = 0

So, the depressed cubic is y^3 + 1 = 0.

Step 2: Calculate p and q

From y^3 + 1 = 0, we identify p = 0 and q = 1.

Step 3: Calculate the Discriminant Δ

Δ = q²/4 + p³/27 Δ = (1)²/4 + (0)³/27 Δ = 1/4 + 0 = 1/4

Since Δ = 1/4 > 0, we expect one real root and two complex conjugate roots.

Step 4: Apply Cardano's Formula for the First Root

y = ³√(-q/2 + √Δ) + ³√(-q/2 - √Δ)

y = ³√(-1/2 + √(1/4)) + ³√(-1/2 - √(1/4))

y = ³√(-1/2 + 1/2) + ³√(-1/2 - 1/2)

y = ³√(0) + ³√(-1)

y = 0 + (-1)

y1 = -1

Step 5: Find Remaining Roots

Since y1 = -1 is a root of y^3 + 1 = 0, (y + 1) must be a factor. We can perform polynomial division:

(y^3 + 1) / (y + 1) = y^2 - y + 1

Now, solve the resulting quadratic equation y^2 - y + 1 = 0 using the quadratic formula y = (-b ± √(b^2 - 4ac)) / (2a):

y = (1 ± √((-1)^2 - 4*1*1)) / (2*1)

y = (1 ± √(1 - 4)) / 2

y = (1 ± √(-3)) / 2

y = (1 ± i√3) / 2

So, the other two roots for y are:

y2 = (1 + i√3) / 2 y3 = (1 - i√3) / 2

Step 6: Convert Back to x

Recall our substitution x = y - 1.

For x1: x1 = y1 - 1 = -1 - 1 = -2

For x2: x2 = y2 - 1 = (1 + i√3) / 2 - 1 = (1 + i√3 - 2) / 2 = (-1 + i√3) / 2

For x3: x3 = y3 - 1 = (1 - i√3) / 2 - 1 = (1 - i√3 - 2) / 2 = (-1 - i√3) / 2

Thus, the three roots of x^3 + 3x^2 + 3x + 2 = 0 are x1 = -2, x2 = (-1 + i√3) / 2, and x3 = (-1 - i√3) / 2.

Common Pitfalls and Mistakes

  • Algebraic Errors: The transformation to the depressed form and subsequent expansions are prone to arithmetic and sign errors. Double-check every step.
  • Incorrect p and q: Ensure p and q are correctly derived from the original coefficients a, b, c, d or from the simplified depressed form.
  • Misinterpreting the Discriminant (Δ): Understanding the implications of Δ > 0, Δ = 0, and Δ < 0 is crucial for knowing what type of roots to expect.
  • Complex Cube Roots (Casus Irreducibilis): When Δ < 0, the direct application of Cardano's formula involves taking cube roots of complex numbers, which is significantly more complex to do by hand and often requires trigonometric identities. This is a common point of difficulty for manual calculation.
  • Forgetting to Convert Back: Remember that Cardano's formula solves for y. The final step is always to convert these y roots back to x roots using the initial substitution x = y - b/(3a).

When to Use a Cubic Formula Calculator

While understanding the manual process is invaluable, a cubic formula calculator offers significant advantages in certain scenarios:

  • Complex Cases (Δ < 0): For the casus irreducibilis where Δ < 0, a calculator can handle the complex cube roots efficiently, providing the three real roots without the need for intricate trigonometric or complex number manipulations.
  • Non-Integer Coefficients: Manual calculations become extremely tedious and error-prone with fractional or decimal coefficients.
  • Speed and Accuracy: For quick results or to verify your manual work, a calculator is indispensable.
  • Large Coefficients: Equations with large a, b, c, d values lead to very large intermediate numbers, increasing the chance of calculation errors.

By mastering the manual method, you gain a deeper understanding of the cubic equation's structure and the power of algebraic solutions, while leveraging calculators for efficiency in complex or tedious situations.

Redo att beräkna?

Hoppa över det manuella arbetet och få resultat omedelbart.

Öppna kalkylatorn

Inställningar

IntegritetVillkorOm© 2026 PrimeCalcPro