Expanding Cubes- Algebraic Methods and Examples
What Is Cube Expansion in Algebra?
Cube expansion means breaking down expressions like (a + b)³ into their full polynomial form. Instead of leaving things squared or cubed, you multiply everything out.
This shows up constantly in algebra, standardized tests, and higher math. If you can't expand cubes quickly, you'll waste time on scratch work that should've taken five seconds.
The four identities you need to know:
- (a + b)³ = a³ + 3a²b + 3ab² + b³
- (a - b)³ = a³ - 3a²b + 3ab² - b³
- a³ + b³ = (a + b)(a² - ab + b²)
- a³ - b³ = (a - b)(a² + ab + b²)
That's it. Memorize these or derive them on the fly. Either way, you need them solid.
Where These Formulas Come From
You can derive (a + b)³ by treating it as (a + b)(a + b)².
First, square the binomial:
(a + b)² = a² + 2ab + b²
Now multiply by (a + b):
(a + b)(a² + 2ab + b²)
Distribute each term:
- a · a² = a³
- a · 2ab = 2a²b
- a · b² = ab²
- b · a² = a²b
- b · 2ab = 2ab²
- b · b² = b³
Combine like terms:
a³ + 3a²b + 3ab² + b³
The same process works for (a - b)³. Just replace b with -b and watch the signs flip.
Expanding (x + y)³ — Step by Step
Example 1: (2x + 3)³
Apply the formula directly with a = 2x and b = 3:
= (2x)³ + 3(2x)²(3) + 3(2x)(3)² + 3³
Now calculate each piece:
- (2x)³ = 8x³
- 3(2x)²(3) = 3 · 4x² · 3 = 36x²
- 3(2x)(3)² = 3 · 2x · 9 = 54x
- 3³ = 27
Final answer: 8x³ + 36x² + 54x + 27
Example 2: (x - 4)³
Use the (a - b)³ formula with a = x and b = 4:
= x³ - 3x²(4) + 3x(4)² - 4³
Calculate:
- x³ stays x³
- -3x²(4) = -12x²
- 3x(16) = 48x
- -64
Final answer: x³ - 12x² + 48x - 64
Sum and Difference of Cubes
These factorizations are just as important as the expansion formulas. They let you break cubic expressions back into simpler factors.
Example 3: Factor x³ + 27
Notice 27 = 3³. So this is a³ + b³ where a = x and b = 3.
Use (a + b)(a² - ab + b²):
= (x + 3)(x² - 3x + 9)
That's fully factored. Check by expanding if you need to verify.
Example 4: Factor 8y³ - 1
8y³ = (2y)³ and 1 = 1³. This is a³ - b³ with a = 2y and b = 1.
Use (a - b)(a² + ab + b²):
= (2y - 1)[(2y)² + 2y(1) + 1²]
= (2y - 1)(4y² + 2y + 1)
Done.
Comparing the Four Cube Identities
| Formula | Use When | Key Pattern |
|---|---|---|
| (a + b)³ = a³ + 3a²b + 3ab² + b³ | Expanding a sum cubed | Middle terms always positive, coefficients 3 |
| (a - b)³ = a³ - 3a²b + 3ab² - b³ | Expanding a difference cubed | Signs alternate, last term always negative |
| a³ + b³ = (a + b)(a² - ab + b²) | Factoring sum of cubes | First factor is sum, second has no "2ab" term |
| a³ - b³ = (a - b)(a² + ab + b²) | Factoring difference of cubes | First factor is difference, second has no "2ab" term |
How to Expand Cubes Without Memorizing Everything
If you forget a formula during a test, derive it. Here's the reliable method:
- Square the binomial first. For (a + b)³, find (a + b)² = a² + 2ab + b².
- Multiply by the original binomial. (a + b)(a² + 2ab + b²).
- Distribute and combine like terms. Work term by term, then add coefficients.
This works every time. No memorization required.
Common Mistakes to Avoid
- Dropping the middle terms. Students often write (a + b)³ = a³ + b³. Wrong. The 3a²b and 3ab² terms are mandatory.
- Forgetting coefficients. The "3" in the middle terms isn't optional. It's there because of the binomial expansion.
- Confusing sum/difference of cubes with expansion. a³ + b³ factors, it doesn't expand into a cubic with four terms. Keep these separate in your mind.
- Sign errors in (a - b)³. The pattern is: a³ - 3a²b + 3ab² - b³. The signs alternate, starting positive for a³ and ending negative for b³.
Quick Practice
Try these without looking at the formulas:
- (x + 5)³
- (3 - 2y)³
- Factor: 64 + 125z³
- Factor: 27m³ - 8
Check your answers by expanding them back out. If the expansion matches the original, you got it right.
When You'll Actually Use This
Cube expansion shows up in calculus when simplifying expressions before differentiation or integration. It appears in competition math and standardized exams. You'll also see it in computer science when analyzing algorithm complexity with cubic time functions.
The formulas become second nature after enough practice. Until then, derive them from scratch every time if you have to. The method works; the memorization just saves time.