Cubic Equation Calculator

Cubic Equation Calculator

🧮 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 a0

Step 1: Normalize the Equation

Divide the entire equation by aa to simplify:

x3+bax2+cax+da=0

Let:

A=ba,B=ca,C=da

Step 2: Depress the Cubic (Remove the x2x^2 term)

Make a substitution to eliminate the quadratic term:

x=tA3

This transforms the equation into a depressed cubic form:

t3+pt+q=0

where

p=BA23,q=2A327AB3+C

Step 3: Calculate the Discriminant

Calculate the discriminant Δ\Delta:

Δ=(q2)2+(p3)3

  • 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:

u=q2+Δ3,v=q2Δ3

Then,

t=u+v

Recall:

x=tA3

This gives the real root. For complex or multiple roots, different formulas or trigonometric methods are applied depending on Δ\Delta.

Step 5: For Three Real Roots (When Δ<0\Delta < 0)

Use the trigonometric solution:

tk=2p3cos(θ+2kπ3),k=0,1,2

where

cosθ=q2/(p3)3

Then,

xk=tkA3

Summary

  1. Normalize coefficients.

  2. Remove the x2x^2 term by substitution.

  3. Calculate pp, qq, and discriminant Δ\Delta.

  4. Apply Cardano’s formula or trigonometric formulas depending on Δ\Delta.

  5. Find roots xx.

Math Calculators

How helpful was this calculator?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

Ask EzCalculator Online AI