How to Calculate Cubic Equation
Find all roots of a cubic equation ax³ + bx² + cx + d = 0.
The Formula
Cardano's formulaThe cubic equation formula uses the mathematical relationship: Cardano's formula. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the cubic equation formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| a (x³ coefficient) | Input (you provide) | 1 |
| b (x² coefficient) | Input (you provide) | -6 |
| c (x coefficient) | Input (you provide) | 11 |
| d (constant) | Input (you provide) | -6 |
| Test x value | Input (you provide) | 1 |
| f(x) at test value | Result (calculated) | — |
| Simplified discriminant part | Result (calculated) | — |
| Sum of roots (-b/a) | Result (calculated) | — |
| Product of roots (-d/a) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: a (x³ coefficient), b (x² coefficient), c (x coefficient), d (constant), Test x value.
- 2Substitute your known values into the formula: Cardano's formula.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Cubic Equation Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: a (x³ coefficient) = 0.5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives f(x) at test value = -0.500000, simplified discriminant part = -169.0000, sum of roots (-b/a) = 12.0000, product of roots (-d/a) = 12.0000. These numbers are solved by the same engine that powers the Cubic Equation calculator, so you can reproduce them exactly by entering the same inputs there.
| a (x³ coefficient) | f(x) at test value | Simplified discriminant part | Sum of roots (-b/a) | Product of roots (-d/a) |
|---|---|---|---|---|
| 0.3 | -0.700000 | -374.2800 | 20.0000 | 20.0000 |
| 0.5 | -0.500000 | -169.0000 | 12.0000 | 12.0000 |
| 0.8 | -0.200000 | -6.8800 | 7.5000 | 7.5000 |
| 1 | 0.000000 | 4.0000 | 6.0000 | 6.0000 |
| 2 | 1.000000 | -1108.0000 | 3.0000 | 3.0000 |
| 3 | 2.000000 | -4164.0000 | 2.0000 | 2.0000 |
| 4 | 3.000000 | -9164.0000 | 1.5000 | 1.5000 |
How each result changes as a (x³ coefficient) changes, holding the other inputs constant.
Practice Problems
1. x³ - 6x² + 11x - 6 = 0 (roots: 1,2,3): Plug in a (x³ coefficient) 1, b (x² coefficient) -6, c (x coefficient) 11, d (constant) -6, Test x value 1. What is the answer?
Answer: With a (x³ coefficient) 1, b (x² coefficient) -6, c (x coefficient) 11, d (constant) -6, Test x value 1, the results are f(x) at test value 0.000000, Simplified discriminant part 4.0000, Sum of roots (-b/a) 6.0000, Product of roots (-d/a) 6.0000.
2. Given a (x³ coefficient) 1.25, b (x² coefficient) 0, c (x coefficient) -3, d (constant) 2, Test x value 1, what does it come out to?
Answer: Entering a (x³ coefficient) 1.25, b (x² coefficient) 0, c (x coefficient) -3, d (constant) 2, Test x value 1 gives f(x) at test value 0.250000, Simplified discriminant part -33.7500, Sum of roots (-b/a) -0.0000, Product of roots (-d/a) -1.6000.
Frequently Asked Questions
What is the formula for cubic equation?
The formula is: Cardano's formula. Find all roots of a cubic equation ax³ + bx² + cx + d = 0.
What values do I need to calculate cubic equation?
You need a (x³ coefficient), b (x² coefficient), c (x coefficient), d (constant), test x value. The calculator produces f(x) at test value, simplified discriminant part, sum of roots (-b/a), product of roots (-d/a) from those inputs.
What is the cubic equation when a (x³ coefficient) is 0.5?
With a (x³ coefficient) = 0.5, the result is f(x) at test value = -0.500000, simplified discriminant part = -169.0000, sum of roots (-b/a) = 12.0000, product of roots (-d/a) = 12.0000. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Cubic Equation calculator.
