Stage 8 · Factoring

8.5  Factoring by Grouping

Four terms, no shared factor? Group in pairs, then watch a common bracket appear.

For ages 13–15 · Intuition before notation
Knowledge point page

Point 5 of 5 in this lesson: 8.5.5 Grouping into a difference of squares

8.5.5 Grouping into a difference of squares

Grouping does not always split four terms into 2 + 2. Sometimes three of the terms quietly form a perfect-square trinomial, and grouping those three together turns the whole expression into a difference of squares — the formula you met in Lesson 8.3, now hiding inside a longer polynomial.

Look at m2 − 6m + 9 − n2. The first three terms m2 − 6m + 9 are a perfect square: they collapse to (m − 3)2. Now the whole thing reads (m − 3)2n2 — a square minus a square. Apply A² − B² = (A + B)(A − B) with A = m − 3 and B = n:

m2 − 6m + 9n2 (m − 3)² — a perfect square (m − 3)² = A² − B² (m − 3 + n)(m − 3 − n)
Three terms make the perfect square (m − 3)2; subtracting n2 leaves a difference of squares, which factors into (m − 3 + n)(m − 3 − n). Grouping and the special-product formulas, working together.

The same trick handles x2 + 2xy + y2 − z2: the first three terms are (x + y)2, so the expression is (x + y)2z2 = (x + y + z)(x + y − z). The lesson: before you force a 2 + 2 split, glance at whether three terms are secretly a square. When they are, group 3 + 1 and reach for the difference-of-squares formula.

Worked example — 3 + 1 grouping

Factor x2 + 2xy + y2 − z2.
Spot the square: the first three terms are (x + y)2.
Rewrite: (x + y)2z2, a difference of squares with A = x + y, B = z.
Apply the formula: (x + y + z)(x + yz) = (x + y + z)(x + y − z).
Check a piece: the product's first two terms multiply to x² + 2xy + y² − z² ✓ (expand to confirm).

eastmath.com · 8.5 Factoring by Grouping · 8.5.5 Grouping into a difference of squares