Difference of Squares & Sum/Difference of Cubes
Problem
Factor x³−27 using the difference of cubes: a³−b³ = (a−b)(a²+ab+b²). Also show a²−b² = (a−b)(a+b).
Explanation
Three special factoring formulas
These three formulas should be memorized — they appear constantly on exams:
Difference of squares:
Difference of cubes:
Sum of cubes:
Step-by-step: Factor
Step 1 — Recognize the pattern. . This is a difference of cubes with and .
Step 2 — Apply the formula :
Step 3 — Check by expanding:
Step 4 — Can we factor further? Check : discriminant . No real roots, so this factor is irreducible over the reals.
More examples
Difference of squares:
Sum of cubes:
Memory trick for cubes
The factored form is always: (binomial)(trinomial). The binomial has the same sign as the original. The trinomial follows the pattern: "Square, Opposite Product, Square" — , , (the middle sign is opposite to the binomial's sign).
Common mistakes
- Confusing difference and sum. factors, but does NOT factor over the reals.
- Forgetting to check if is a perfect cube/square. is NOT a difference of cubes because 12 isn't a perfect cube.
- Sign errors in the trinomial. For : binomial is , trinomial is — all positive inside.
Try it in the visualization
Select difference of squares, difference of cubes, or sum of cubes. Adjust and values. The factored form updates live, the graph confirms roots, and the expansion check verifies the answer.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.