Topic
My Progress
Pug Score
0%
Best Streak
0 in a row
Study Points
+0
Overview
Practice
Watch
Read
Next Steps
Adaptive practice
Video lessons
Overview
Practice
Watch
Read
Next Steps
Read
Difference of Squares
The difference of squares is a factoring pattern: a squared minus b squared always factors as (a minus b) times (a plus b). Learn why the pattern works, how to spot it (two perfect squares separated by subtraction), and see worked examples.
Why it works
Multiply (a − b)(a + b) out with binomial multiplication: a² + ab − ab − b². The middle terms (+ab and −ab) cancel, leaving exactly a² − b² — which is why the pattern always holds.
Spotting the pattern
Look for two things: both terms must be perfect squares, and they must be separated by subtraction (never addition — a² + b² does not factor this way). For x² − 25, both x² and 25 are perfect squares (of x and 5), so it factors as (x − 5)(x + 5).
More examples
- 4x² − 9 = (2x)² − 3² = (2x − 3)(2x + 3)
- 16 − y² = 4² − y² = (4 − y)(4 + y)
This pattern comes up often alongside factoring by grouping and other special factoring cases.