🧮 Cubic Equation Calculator – Solve & Understand
The Cubic Equation Calculator helps you quickly and accurately solve any cubic equation of the form:
ax³ + bx² + cx + d = 0
Just enter the values for a, b, c, and d, choose the number of decimal places you want (precision), then click “Solve”. You’ll instantly get the 3 roots (x₁, x₂, x₃) along with a step-by-step explanation.
📘 How to Solve a Cubic Equation – Step-by-Step Guide
ax³ + bx² + cx + d = 0
where
Step 1: Normalize the Equation
Divide the entire equation by to simplify:
Let:
Step 2: Depress the Cubic (Remove the term)
Make a substitution to eliminate the quadratic term:
This transforms the equation into a depressed cubic form:
where
Step 3: Calculate the Discriminant
Calculate the discriminant :
-
If : One real root and two complex conjugate roots.
-
If : All roots are real, and at least two are equal.
-
If : All three roots are real and distinct.
Step 4: Solve for Roots Using Cardano’s Formula
Define:
Then,
Recall:
This gives the real root. For complex or multiple roots, different formulas or trigonometric methods are applied depending on .
Step 5: For Three Real Roots (When )
Use the trigonometric solution:
where
Then,
Summary
-
Normalize coefficients.
-
Remove the term by substitution.
-
Calculate , , and discriminant .
-
Apply Cardano’s formula or trigonometric formulas depending on .
-
Find roots .