How to Solve Cubic Equations: Step-by-Step Guide
Master solving cubic equations with our complete guide. Learn factoring, Rational Root Theorem, synthetic division, and Cardano's method with step-by-step examples.
Cubic equations represent a fascinating threshold in algebra. While quadratic equations have been solved since antiquity, cubic equations challenged the greatest mathematical minds for centuries. Today, knowing how to solve a cubic equation is a fundamental skill in higher mathematics, physics, and engineering.
In this comprehensive guide, we will explore every technique available for solving cubic equations. You will learn the underlying algebra, discover how to solve cubic equations step by step, and understand where these mathematical models apply in the real world.
Introduction
What a Cubic Equation Is
A cubic equation is a polynomial equation in which the highest exponent of the unknown variable is three. Unlike linear equations (which form straight lines) or quadratic equations (which form parabolas), cubic equations form curves that can intersect the x-axis up to three times. These points of intersection are the roots of cubic equations.
Why Cubic Equations Are Important
The leap from degree two (quadratics) to degree three (cubics) introduces complex behavior, such as inflection points and multiple local extrema. Because the real world operates in three dimensions, cubic equations are uniquely suited to model physical realities involving volume, dynamic curves, and complex rates of change.
Where They Are Used
Cubic equations are not just abstract mathematical puzzles; they are essential tools across numerous disciplines:
- Engineering: Used to calculate the deflection of beams under stress and model fluid dynamics.
- Physics: Applied in thermodynamics (like equations of state for gases) and classical mechanics (projectile motion with drag).
- Computer Graphics: Bezier curves and cubic splines, which rely on cubic polynomials, are the foundation of digital vector graphics and 3D modeling.
- Economics: Used to model cost functions where economies of scale eventually give way to diseconomies of scale.
- Optimization: Applied in operations research to find maximum profits or minimum costs over complex intervals.
- Architecture: Used to design smooth transition curves in roads, bridges, and sweeping architectural arches.
- Data Science: Utilized in polynomial regression to capture non-linear trends in complex datasets.
What You Will Learn
By the end of this guide, you will master the theory and application of cubic polynomial equations. We will cover how to identify them, manually solve them using analytical methods (factoring, Rational Root Theorem, Cardano’s method), and effectively use a cubic equation solver. We have also included extensive worked examples and practice problems for all skill levels.
Section 1: What Is a Cubic Equation?
General Form
The standard algebraic representation of a cubic equation is: ax³ + bx² + cx + d = 0
Meaning of Each Coefficient
- a (Leading Coefficient): Determines the width and direction of the curve. If a is positive, the graph starts low and ends high. If a is negative, it starts high and ends low. It must never be zero (otherwise, the equation devolves into a quadratic).
- b (Quadratic Coefficient): Influences the position and severity of the curves (the local maximum and minimum).
- c (Linear Coefficient): Affects the slope of the curve as it passes through the y-intercept.
- d (Constant Term): Represents the y-intercept. If x = 0, the equation evaluates to d.
Difference Between Quadratic and Cubic Equations
While a quadratic equation (ax² + bx + c = 0) has a maximum of two roots and represents a parabola with a single vertex, a cubic equation has a maximum of three roots and generally features two turning points. Furthermore, while quadratic equations can have zero real roots (only complex roots), every cubic equation is guaranteed to have at least one real root.
Characteristics
- Maximum Three Roots: A cubic equation can have three distinct real roots, two real roots (where one is a tangent point), or exactly one real root (accompanied by two complex conjugate roots).
- Graph Behavior: The graph of a cubic polynomial is a continuous curve that extends infinitely in both the positive and negative y-directions.
- Odd Degree Polynomial: Because 3 is an odd number, the ends of the graph will always point in opposite directions (e.g., down on the left, up on the right).
- End Behavior: As x approaches positive infinity, ax³ dominates. The sign of a dictates the ultimate direction of the curve.
Example
Consider the equation: 2x³ - 4x² + 2x - 8 = 0. Here, a = 2, b = -4, c = 2, and d = -8. Because a is positive, the graph goes from bottom-left to top-right, crossing the y-axis at -8.
Section 2: How to Identify a Cubic Equation
To solve cubic equations efficiently, you first must verify that the equation is indeed cubic.
Highest Exponent
The defining feature of a cubic equation is that the highest power of the variable (usually x) is exactly 3. No term can have an exponent of 4 or higher, and the cubed term cannot be missing.
Standard Form
Cubic equations might not always be handed to you in the standard form (ax³ + bx² + cx + d = 0). You may need to expand brackets, combine like terms, or move all terms to one side of the equals sign.
Examples of Cubic Equations
- x³ - 8 = 0 (Missing the x² and x terms, but still cubic because of x³)
- 4x³ + 2x² = x - 5 (Can be rearranged to 4x³ + 2x² - x + 5 = 0)
- (x - 1)(x + 2)(x - 3) = 0 (When expanded, the highest term is x³)
Non-Examples (Not Cubic)
- 2x² - 4x + 1 = 0 (Highest exponent is 2; this is a quadratic equation)
- 5x⁴ - x³ + 2 = 0 (Highest exponent is 4; this is a quartic equation)
- 3x³ + 2/x = 0 (Contains a variable in the denominator, making it a non-polynomial rational equation)
Common Mistakes
A common error is looking at an unexpanded equation like x(x² + 5) = 2x and failing to recognize it as cubic. Always distribute and simplify the terms to determine the true degree of the polynomial.
Section 3: How to Solve Cubic Equations (Overview)
There is no single “best” way to solve cubic equations. The optimal method depends entirely on the specific coefficients of the polynomial. Before diving into the heavy algebraic lifting of Cardano’s method, you should always check if the equation can be factored simply.
Here is a complete overview of the primary methods.
Comparison Table
| Method | Best For | Difficulty | Accuracy | Calculator Friendly |
|---|---|---|---|---|
| Factoring (Grouping) | Equations with clear proportional coefficients. | Easy | Exact | Yes |
| Rational Root Theorem | Equations with integer coefficients and rational roots. | Medium | Exact | Yes |
| Synthetic Division | Reducing a cubic to a quadratic after finding one root. | Medium | Exact | Yes |
| Cardano’s Method | Any cubic equation that cannot be easily factored. | Hard | Exact | Yes |
| Graphical Method | Getting a quick visual estimate of the real roots. | Easy | Approximate | Yes (Graphing) |
When to Use Each Method
- Always attempt Factoring first. If the equation has four terms, check if grouping works. If it’s a sum or difference of cubes, use the special factoring formulas.
- If factoring fails, use the Rational Root Theorem to guess and check for a rational root.
- Once you find one root, use Synthetic Division to factor it out, leaving a manageable quadratic equation.
- If there are no rational roots, you must resort to Cardano’s Method or rely on a Cubic Equation Solver.
Section 4: Method 1. Solve by Factoring
Factoring cubic equations is the fastest method, provided the polynomial is structured cooperatively.
Finding Common Factors
The easiest scenario is when there is no constant term (d = 0).
Example: x³ - 4x² + 3x = 0
Factor out the common
x:
x(x² - 4x + 3) = 0
Now, solve the quadratic inside the parenthesis:
x(x - 3)(x - 1) = 0
The roots are x = 0, x = 3, and x = 1.
Factoring by Grouping
When you have four terms, you can group them into pairs.
Example: x³ - 2x² - 9x + 18 = 0
Group the first two and the last two terms:
(x³ - 2x²) - (9x - 18) = 0
Factor out the greatest common factor from each group:
x²(x - 2) - 9(x - 2) = 0
Factor out the common binomial (x - 2):
(x - 2)(x² - 9) = 0
The term (x² - 9) is a difference of squares, which factors further:
(x - 2)(x - 3)(x + 3) = 0
The roots are x = 2, x = 3, and x = -3.
Recognizing Special Patterns
You should memorize the formulas for the sum and difference of cubes:
- Sum of Cubes: a³ + b³ = (a + b)(a² - ab + b²)
- Difference of Cubes: a³ - b³ = (a - b)(a² + ab + b²)
Example: x³ - 27 = 0 Using the difference of cubes formula where a = x and b = 3: (x - 3)(x² + 3x + 9) = 0 The first root is x = 3. The quadratic part will yield two complex conjugate roots using the quadratic formula.
Common Mistakes
- Forgetting to distribute negative signs when grouping.
- Assuming a sum of cubes cannot be factored (it can, unlike a sum of squares).
- Stopping after factoring out an x and forgetting to solve the remaining quadratic equation.
Section 5: Method 2. Rational Root Theorem
If factoring by grouping doesn’t work, the Rational Root Theorem is your next best tool. It helps you systematically guess roots instead of picking numbers at random.
The Formula
The theorem states that if a polynomial equation with integer coefficients has a rational root (a root that can be expressed as a fraction p/q), then:
- p must be a factor of the constant term (d).
- q must be a factor of the leading coefficient (a).
How to List Candidates
Consider the equation: 2x³ - 5x² - 4x + 3 = 0
- Identify the constant term (d = 3). Its factors (p) are ±1, ±3.
- Identify the leading coefficient (a = 2). Its factors (q) are ±1, ±2.
- The possible rational roots (p/q) are: ±1, ±1/2, ±3, ±3/2.
Testing Candidates
Now, plug these candidates into the original equation until it equals zero. Let’s test x = -1: 2(-1)³ - 5(-1)² - 4(-1) + 3 = -2 - 5 + 4 + 3 = 0. Success! x = -1 is a root. This means (x + 1) is a factor of the cubic polynomial.
Advantages and Limitations
Advantages: It turns an infinite number of possible guesses into a small, finite list.
Limitations: It only finds rational roots. If the roots are irrational (like √2) or complex, this theorem won’t help you find them, and you will have exhausted your list without success.
Section 6: Method 3. Synthetic Division
Once the Rational Root Theorem gives you one root, you use synthetic division to break the cubic equation down into a quadratic equation.
Purpose
Synthetic division is a shorthand method of polynomial long division. It allows you to divide a polynomial of degree 3 by a binomial of degree 1 (e.g., x - r), resulting in a quotient of degree 2 (a quadratic equation).
Step-by-Step Process
Let’s continue the example from Section 5: 2x³ - 5x² - 4x + 3 = 0, with the known root x = -1.
Step 1: Write the root on the outside, and the coefficients of the cubic equation on the inside.
-1 | 2 -5 -4 3
Step 2: Bring down the leading coefficient (2).
-1 | 2 -5 -4 3
|___________________
2
Step 3: Multiply the root (-1) by the bottom number (2) and write it under the next coefficient (-5). Add them together.
-1 | 2 -5 -4 3
| -2
|___________________
2 -7
Step 4: Repeat the process. Multiply -1 by -7 (gives 7). Add to -4 (gives 3).
-1 | 2 -5 -4 3
| -2 7
|___________________
2 -7 3
Step 5: Multiply -1 by 3 (gives -3). Add to 3 (gives 0).
-1 | 2 -5 -4 3
| -2 7 -3
|___________________
2 -7 3 0
The remainder is 0 (which confirms x = -1 is indeed a root). The remaining numbers (2, -7, 3) are the coefficients of the new, reduced quadratic equation: 2x² - 7x + 3 = 0
You can now easily solve this quadratic using the quadratic formula or factoring to find the remaining two roots.
Section 7: Method 4. Cardano’s Method
When a cubic equation has no rational roots, it cannot be factored using basic algebraic grouping or the Rational Root Theorem. In 1545, Gerolamo Cardano published a revolutionary algebraic method to find the exact roots of any cubic equation.
The Depressed Cubic Transformation
Cardano’s method requires transforming the general cubic equation (ax³ + bx² + cx + d = 0) into a simpler form that lacks the x² term. This is called a depressed cubic.
To achieve this, substitute x = t - b/(3a) into the original equation. After expanding and simplifying, the equation will take the form: t³ + pt + q = 0
The Formula
For a depressed cubic t³ + pt + q = 0, Cardano’s formula states that a solution for t is: t = ∛( -q/2 + √( (q/2)² + (p/3)³ ) ) + ∛( -q/2 - √( (q/2)² + (p/3)³ ) )
Understanding the Variables
- p: The linear coefficient in the depressed cubic.
- q: The constant term in the depressed cubic.
- The expression inside the square root, (q/2)² + (p/3)³, acts similarly to the discriminant in quadratic equations, dictating the nature of the roots.
Once you calculate t, you must substitute it back into the original transformation (x = t - b/(3a)) to find the final root for x.
Advantages and Disadvantages
Advantages: It provides an exact, analytical solution for every single cubic equation in existence, regardless of how messy the coefficients are.
Disadvantages: The calculations are extremely tedious. Furthermore, in cases where a cubic equation has three distinct real roots, Cardano’s formula forces you to calculate the cube root of a complex number (a phenomenon historically known as Casus Irreducibilis).
Because of this complexity, most mathematicians and engineers today prefer to use a specialized cubic equation solver for these difficult equations.
Section 8: Using a Cubic Equation Solver
While understanding the manual mathematics is crucial for academic development, calculating messy cube roots of complex numbers by hand is prone to human error. This is where a cubic equation solver becomes an invaluable tool.
How Online Solvers Work
A high-quality cubic equation solver uses algorithmic implementations of Cardano’s method, combined with advanced numerical analysis, to compute the exact and approximated roots of the polynomial in milliseconds.
Input Format
Most solvers (like the one featured on our website) require you to input the coefficients a, b, c, and d. You must ensure your equation is in the standard form ax³ + bx² + cx + d = 0 before entering the values. If a term is missing (like the x² term), you must enter 0 for that specific coefficient.
Interpreting Results
The solver will output three roots. You should pay close attention to the formatting:
- If the root contains an i (the imaginary unit), it is a complex root.
- If a real number is presented twice, it indicates a repeated root.
Benefits
Using a solver eliminates arithmetic mistakes, saves vast amounts of time, and provides an immediate way to check your manual work. It is particularly useful for engineers and programmers who need rapid results to input into larger design systems.
Section 9: Understanding the Roots of Cubic Equations
Unlike a quadratic equation, which might have no real roots, a cubic equation will always cross the x-axis at least once. Therefore, every cubic equation has at least one real root.
The Nature of the Roots
Because the Fundamental Theorem of Algebra dictates that a degree-3 polynomial has exactly three roots, the possibilities for cubic equations are strictly categorized:
- One Real Root and Two Complex Roots: The graph crosses the x-axis once and then turns, but not enough to cross it again. The complex roots always come in conjugate pairs (e.g., 2 + 3i and 2 - 3i).
- Three Distinct Real Roots: The curve aggressively waves, crossing the x-axis, turning back to cross it again, and turning one final time to cross it a third time.
-
Repeated Roots:
- One single real root and one repeated real root (multiplicity 2): The graph crosses the x-axis at one point, and is perfectly tangent to the x-axis at another point.
- One repeated real root (multiplicity 3): The graph crosses the x-axis at an inflection point (like the basic y = x³ curve).
Relationship With the Discriminant
For a general cubic equation, the discriminant Δ determines the nature of the roots:
- If Δ > 0, the equation has three distinct real roots.
- If Δ = 0, the equation has multiple real roots (either one root of multiplicity 3, or one single root and one double root).
- If Δ < 0, the equation has exactly one real root and two non-real complex conjugate roots.
Section 10: How to Verify Your Answer
Finding the roots of cubic equations is a heavy task, and making a small arithmetic error is common. Always verify your answers using these methods.
1. Substitute the Roots
The most foolproof method is direct substitution. Take your calculated root x and plug it back into the original equation ax³ + bx² + cx + d. If the mathematics are correct, the equation will evaluate to exactly 0.
2. Factor Check
If you found roots r₁, r₂, and r₃, the expanded form of a(x - r₁)(x - r₂)(x - r₃) must perfectly match your original equation.
3. Use Graphing
Plot the cubic polynomial on a digital graphing calculator. Visually inspect the x-intercepts. If your calculated roots are x = 2 and x = -5, but the graph clearly crosses at x = 1 and x = -4, you know a mistake was made during calculation.
4. Calculator Verification
Simply input your coefficients into a cubic equation solver to verify that your manual factoring or synthetic division was executed flawlessly.
Section 11: Real World Applications
Why do we spend so much time learning how to solve cubic equations? Because they represent physical reality.
Engineering
- Mechanical Engineering: When calculating the deflection of a uniform beam subjected to specific loads, the elastic curve equation often takes the form of a cubic polynomial.
- Electrical Engineering: Analyzing complex circuit behaviors, specifically regarding non-linear resistors and oscillators, frequently yields cubic characteristic equations.
Physics
- Thermodynamics: The Van der Waals equation of state, which models the behavior of real gases (accounting for particle volume and intermolecular forces), is a cubic equation in terms of specific volume. Solving it reveals the gas, liquid, and critical states of a substance.
Computer Graphics and Architecture
- Bezier Curves: Every time you use the pen tool in Photoshop or Illustrator, you are manipulating cubic polynomials. These equations ensure that the curves remain perfectly smooth without sharp, jagged points, making them vital for typography, 3D animation, and automotive design.
Economics
- Cost Functions: In macroeconomics, total cost functions are often modeled as cubics because they perfectly capture the initial rapid increase in cost, followed by a leveling off (economies of scale), and a subsequent steep increase (diseconomies of scale).
Section 12: Common Mistakes
When learning how to solve a cubic equation, students repeatedly fall into the same traps. Avoid these common errors:
- Ignoring the Leading Coefficient: When using the Rational Root Theorem, many students only factor the constant term d, forgetting that they must divide by the factors of leading coefficient a.
- Sign Errors in Synthetic Division: Remember that you put the root (r) on the outside of the synthetic division bracket, not the factor (x - r). If the factor is (x + 3), you must divide by -3.
- Missing Repeated Roots: If synthetic division yields a quadratic like x² - 4x + 4, it factors to (x - 2)². Do not ignore the fact that x = 2 is a root with a multiplicity of 2.
- Incorrect Standard Form: Attempting to extract a, b, c, d before all terms are moved to one side of the equals sign will result in complete failure.
Section 13: Worked Examples
Example 1: Easy Factoring by Grouping
Solve: x³ - 3x² - 4x + 12 = 0
- Group: (x³ - 3x²) - (4x - 12) = 0
- Factor out GCF: x²(x - 3) - 4(x - 3) = 0
- Factor out binomial: (x - 3)(x² - 4) = 0
- Difference of squares: (x - 3)(x - 2)(x + 2) = 0 Roots: x = 3, x = 2, x = -2
Example 2: Rational Root Theorem
Solve: x³ - 7x - 6 = 0
- Identify factors of d (-6): ±1, ±2, ±3, ±6
- Test x = -1: (-1)³ - 7(-1) - 6 = -1 + 7 - 6 = 0. So, x = -1 is a root.
- Use synthetic division with -1 on coefficients [1, 0, -7, -6]: Results in quadratic: x² - x - 6 = 0
- Factor quadratic: (x - 3)(x + 2) = 0 Roots: x = -1, x = 3, x = -2
Example 3: Complex Roots
Solve: x³ - 1 = 0
- Difference of cubes formula: (x - 1)(x² + x + 1) = 0
- First root is obvious: x = 1.
- Apply quadratic formula to x² + x + 1 = 0: x = [-1 ± √(1 - 4)] / 2 = (-1 ± i√3) / 2 Roots: x = 1, x = -0.5 + 0.866i, x = -0.5 - 0.866i
Section 14: Practice Problems
Test your knowledge by solving these equations. Try to identify which method works best for each before starting!
Beginner Questions (Grouping & Simple Roots)
- x³ - 2x² - x + 2 = 0
- x³ - 5x² - 4x + 20 = 0
- x³ + 4x² - 9x - 36 = 0
- x³ - 8 = 0
- x³ - x = 0
Intermediate Questions (Rational Root Theorem)
- x³ - 6x² + 11x - 6 = 0
- 2x³ - 3x² - 8x + 12 = 0
- x³ + 2x² - 5x - 6 = 0
- 3x³ + 5x² - 11x + 3 = 0
- x³ - 4x² + x + 6 = 0
Advanced Questions (Cardano’s Method & Complex Roots)
- x³ + x² + x + 1 = 0
- x³ - 3x + 1 = 0 (Hint: Irrational roots)
- x³ - 2x + 4 = 0
- 4x³ - 3x + 1 = 0
- x³ + 6x - 20 = 0
(Pro Tip: Use the cubic equation solver on our website to verify your manual calculations for these practice problems!)
Frequently Asked Questions
[What is a cubic equation](/blog/what_is_a_cubic_equation)?
A cubic equation is a polynomial algebraic equation of degree 3, represented in standard form as ax³ + bx² + cx + d = 0.
How do you solve cubic equations?
You can solve cubic equations step by step using factoring by grouping, the Rational Root Theorem, synthetic division, or Cardano's method for complex non-factorable equations.
What is Cardano's method?
Cardano's method is an algebraic formula used to find the exact roots of any cubic equation by first transforming it into a "depressed cubic" (removing the squared term).
Can cubic equations have three real roots?
Yes, depending on the discriminant, a cubic equation can have three distinct real roots, which visually corresponds to the graph crossing the x-axis three times.
Can cubic equations have one real root?
Yes. Every cubic equation must have at least one real root due to its odd degree. If there is only one real root, the other two will be complex conjugate roots.
How do you factor cubic equations?
The easiest way is factoring by grouping. Group the four terms into two pairs, factor out the greatest common factor from each pair, and then factor out the resulting common binomial.
What is synthetic division?
Synthetic division is a simplified method of polynomial division used to divide a cubic polynomial by a linear factor (x - r), quickly reducing it to a quadratic polynomial.
What is the Rational Root Theorem?
The Rational Root Theorem provides a list of all possible rational roots of a polynomial by dividing the factors of the constant term by the factors of the leading coefficient.
How do calculators solve cubic equations?
Calculators and digital equation solvers use algorithmic implementations of Cardano's method or high-speed numerical approximation techniques like the Newton-Raphson method to instantly find exact roots.
What is a depressed cubic?
A depressed cubic is a cubic equation that lacks the quadratic (x²) term. It takes the form t³ + pt + q = 0 and is an essential intermediate step in Cardano's method.
How many roots can a cubic equation have?
By the Fundamental Theorem of Algebra, a cubic equation always has exactly three roots in the complex number system, factoring in multiplicity.
Can cubic equations have complex roots?
Yes, a cubic polynomial can have two complex roots. Because the polynomial has real coefficients, these complex roots will always appear as a conjugate pair (a + bi and a - bi).
When should I use Cardano's formula?
You should only use Cardano's formula when the equation cannot be factored by grouping and the Rational Root Theorem reveals that there are no rational roots.
How accurate are cubic equation solvers?
Cubic equation solvers are 100% accurate because they utilize exact algebraic formulas. When dealing with irrational or complex numbers, they usually output high-precision decimals.
What if the equation cannot be factored?
If it cannot be factored, you must use Cardano's formula for an exact analytical answer, or use numerical methods (or a calculator) to find an extremely close decimal approximation.
Section 16: Summary
Solving cubic equations is a profound mathematical exercise that transitions a student from basic algebra into the world of higher-degree polynomials. By mastering the sequence of attack—starting with factoring, advancing to the Rational Root Theorem and synthetic division, and finally understanding Cardano’s method—you ensure that no cubic polynomial is unsolvable.
Whether you are plotting thermodynamic graphs, programming the physics for a new video game, or studying for an advanced algebra exam, understanding the roots of cubic equations is an indispensable skill.
If you are dealing with particularly messy coefficients or simply want to check your homework, don’t forget to utilize our highly accurate Cubic Equation Solver available right here on our website. It processes complex roots, real roots, and depressed cubics instantly, providing you with reliable answers every time.