Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Sum and Difference of Cubes

Sum and Difference of Cubes are factoring formulas in College Algebra for expressions like a^3 + b^3 and a^3 - b^3. They rewrite a polynomial so you can find factors, zeros, and graph features faster.

Last updated July 2026

What is Sum and Difference of Cubes?

Sum and Difference of Cubes is a factoring pattern in College Algebra for expressions that look like a^3 + b^3 or a^3 - b^3. Instead of treating the expression like an ordinary sum or subtraction, you match it to a special formula and rewrite it as a product.

The formulas are: a^3 + b^3 = (a + b)(a^2 - ab + b^2) a^3 - b^3 = (a - b)(a^2 + ab + b^2)

The first factor is always a binomial, and the second factor is a trinomial. Notice the sign pattern flips in the middle term: plus cubes gives a minus in the trinomial, and minus cubes gives a plus in the trinomial. That pattern is what makes the formula easy to miss if you try to memorize it loosely.

A quick example is x^3 + 8. Since 8 = 2^3, this becomes x^3 + 2^3, so you factor it as (x + 2)(x^2 - 2x + 4). You do not factor it as (x + 2)(x^2 + 2x + 4), because that would not multiply back to the original expression.

In the difference form, x^3 - 27 becomes x^3 - 3^3, so the factorization is (x - 3)(x^2 + 3x + 9). This is especially useful when the polynomial has only two terms and neither term shares a common factor that gives you a simpler first step.

A common mistake is trying to use the difference of squares pattern instead. Cubes are different because the second factor is quadratic, not another binomial. If the expression is not a perfect cube on both terms, you usually cannot use this formula directly, so checking for a greatest common factor first is a smart move.

Why Sum and Difference of Cubes matters in College Algebra

Sum and Difference of Cubes matters in College Algebra because it gives you a fast way to factor certain polynomials that do not fit the usual patterns. That matters when you are finding zeros, simplifying rational expressions, or rewriting a polynomial before graphing it.

For polynomial graphs, factoring is often the bridge between the equation and the x-intercepts. If you can rewrite something like x^3 - 27 as (x - 3)(x^2 + 3x + 9), you immediately see one real zero at x = 3. That kind of factor information helps you sketch the graph more accurately and check whether your work makes sense.

It also helps you recognize structure instead of guessing. In this course, many factoring problems are really pattern-recognition problems: do you have a greatest common factor, a difference of squares, a perfect square trinomial, or a sum or difference of cubes? Picking the right pattern saves time and keeps you from forcing the wrong method onto the expression.

This term also shows up in algebra skills that build toward later topics, like solving equations and simplifying rational expressions. If you can spot cubes quickly, you are less likely to get stuck when the expression looks unusual but still has a standard form hiding inside it.

Keep studying College Algebra Unit 5

Official unit cheatsheet

open one-pager

How Sum and Difference of Cubes connects across the course

Factoring

Sum and Difference of Cubes is one specific factoring pattern. When you see a polynomial, factoring means rewriting it as a product, and this pattern works only when the terms are perfect cubes. It is usually one of the later patterns you try after checking for a greatest common factor.

greatest common factor

Always check the greatest common factor before using the cubes formula. If both terms share a GCF, factoring it out first can make the remaining expression easier to recognize as a sum or difference of cubes. Skipping this step is a common reason students miss the simplest factorization.

difference of squares

This is the most common mix-up with sum and difference of cubes. Both are special factoring formulas, but difference of squares gives two binomials, while cubes give a binomial times a trinomial. The middle sign pattern is different too, so the formulas are not interchangeable.

Polynomial Function

Factoring a polynomial function helps you find zeros and understand graph shape. When a polynomial can be written with a cube formula, you can spot at least one factor right away, which can make graphing and solving easier. That is why this pattern shows up in polynomial function lessons.

Is Sum and Difference of Cubes on the College Algebra exam?

A quiz or problem set question usually asks you to factor a polynomial and then use the result to solve an equation or identify zeros. Your job is to notice whether the expression fits a^3 + b^3 or a^3 - b^3, rewrite each term as a perfect cube, and apply the correct sign pattern. If the expression has a greatest common factor, factor that out first.

You may also use the factored form to answer graph questions in College Algebra, especially when a problem asks for x-intercepts or asks you to describe a polynomial’s behavior after factoring. A quick check by multiplying your answer back can catch sign mistakes, which are the most common error here.

Sum and Difference of Cubes vs difference of squares

These two patterns look similar because both are special factoring formulas, but they work on different kinds of expressions. Difference of squares uses a^2 - b^2 and factors into (a - b)(a + b). Difference of cubes uses a^3 - b^3 and factors into (a - b)(a^2 + ab + b^2), so the second factor is not a binomial.

Key things to remember about Sum and Difference of Cubes

  • Sum and Difference of Cubes is a factoring pattern for expressions of the form a^3 + b^3 and a^3 - b^3.

  • The sum formula is (a + b)(a^2 - ab + b^2), and the difference formula is (a - b)(a^2 + ab + b^2).

  • The middle sign in the trinomial flips from what you might expect, so sign errors are the most common mistake.

  • This pattern is useful in College Algebra when you need to factor a polynomial, find zeros, or prep a function for graphing.

  • Check for a greatest common factor first, because that can simplify the expression before you apply the cubes formula.

Frequently asked questions about Sum and Difference of Cubes

What is Sum and Difference of Cubes in College Algebra?

It is a special factoring formula used for expressions like a^3 + b^3 and a^3 - b^3. In College Algebra, it helps you rewrite a polynomial as a product so you can solve equations, find zeros, or work with graphs more easily.

How do you factor a sum of cubes?

Use a^3 + b^3 = (a + b)(a^2 - ab + b^2). First rewrite each term as a cube if needed, then plug the cube roots into the formula. For example, x^3 + 8 becomes (x + 2)(x^2 - 2x + 4).

How do you factor a difference of cubes?

Use a^3 - b^3 = (a - b)(a^2 + ab + b^2). The sign in the trinomial is positive in the middle term. For example, x^3 - 27 becomes (x - 3)(x^2 + 3x + 9).

Is sum and difference of cubes the same as difference of squares?

No. Difference of squares works with squares and gives two binomials, while cubes give a binomial times a trinomial. The formulas look similar at first, but the structure is different, so you have to match the exponent correctly.

Sum and Difference of Cubes | College Algebra | Fiveable