Learn
Lesson · Polynomials and Factoring · Factoring

Factoring Special Forms

Four patterns, recognised rather than derived. Each is one of the special products of “Special Products” read backwards, and each is worth knowing on sight because the general methods are slower and, for the cubes, will not find the factorisation at all.

a² - b² = (a - b)(a + b) a² ± 2ab + b² = (a ± b)² a³ - b³ = (a - b)(a² + ab + b²) a³ + b³ = (a + b)(a² - ab + b²) a² + b² is NOT a difference of squares
Four patterns, and one non-pattern

Core ideas

What this lesson establishes

These are identities, so they hold in both directions. Reading them right to left is multiplying; reading them left to right is factoring.

1

A pattern matches only if both parts are perfect powers in the coefficient system

9x² - 25 is a difference of squares because 9x² is (3x)² and 25 is 5². Over the rational coefficients used here, 9x² - 24 does not match because 24 is not a rational square. Over a larger coefficient system the answer can change, so the qualifier is part of the claim.

2

A sum of squares is not the conjugate pattern

The identity needs a² - b²; changing the minus to a plus destroys the middle-term cancellation. In particular x² + b² with nonzero real b has no real linear factor because it is always positive. Higher-degree sums of square expressions require separate analysis; the plus sign alone is not a universal irreducibility test.

3

Factor completely means keep going

x⁴ - 16 is (x² - 4)(x² + 4), and x² - 4 is itself a difference of squares. A pattern that applies once may apply again to one of the pieces, and an answer that stops early is incomplete.

The material

The four special forms

How to recognise each, and the two that are most often faked.

“Special Products” multiplied these out. Every identity here is one of those products with the two sides exchanged, which is why they need no proof beyond expanding the right-hand side.

Difference of squares

Theorem · a² - b² = (a - b)(a + b)

Expanding the right side gives a² + ab - ab - b² = a² - b²; the middle terms cancel. Conversely, any expression that is one perfect square minus another factors this way.

Example · 9x² - 25 and x⁴ - 16

9x² - 25 = (3x)² - 5² = (3x - 5)(3x + 5). And x⁴ - 16 = (x²)² - 4² = (x² - 4)(x² + 4) = (x - 2)(x + 2)(x² + 4), where the last factor is a sum of squares and stops there.

There is no difference-of-squares pattern for a sum. a² + b² is not (a - b)(a + b). In the quadratic example x² + 4, every real x gives x² + 4 > 0, so there is no real root and therefore no real linear factor. Writing x² + 4 = (x + 2)(x + 2) is the single most common invented law in this lesson; expanding it gives x² + 4x + 4.

Perfect square trinomials

Theorem · a² ± 2ab + b² = (a ± b)²

A trinomial is a perfect square exactly when its first and last terms are perfect squares and its middle term is twice the product of their roots, up to sign.

Example · x² + 12x + 36 and 25x² - 20x + 4

For the first, x² = (x)², 36 = 6², and 2 · x · 6 = 12x matches: it is (x + 6)². For the second, 25x² = (5x)², 4 = 2², and 2 · 5x · 2 = 20x matches the middle term with the sign negative: it is (5x - 2)².

The middle-term test is what makes this a theorem rather than a guess. x² + 13x + 36 has square outer terms too, but 2 · 1 · 6 = 12, not 13, so it is not a perfect square. It happens to factor as (x + 4)(x + 9), by the method of “Factoring Simple Trinomials”.

Sums and differences of cubes

Theorem · a³ - b³ = (a - b)(a² + ab + b²) and a³ + b³ = (a + b)(a² - ab + b²)

Unlike squares, a SUM of cubes does factor. In both identities the linear factor carries the sign of the original and the quadratic factor carries the opposite sign on its middle term. Retest that factor like every other one; the cube identity alone does not prove that no different pattern applies to it.

Example · 8x³ - 27 and 27x³ + 64

8x³ - 27 = (2x)³ - 3³ = (2x - 3)(4x² + 6x + 9). And 27x³ + 64 = (3x)³ + 4³ = (3x + 4)(9x² - 12x + 16). Expanding either one back is four lines and worth doing once.

The sign rule is the part that is misremembered. In a³ - b³ the binomial is (a - b) and the trinomial's middle term is +ab; in a³ + b³ the binomial is (a + b) and the middle term is -ab. The trinomial's last term is +b² in both cases, never negative.

Interactive

The special forms

Four patterns tested against what you typed

The special forms
the polynomialrational rootscandidates that failed

Method

Recognising a special form

Count the terms first; the count tells you which patterns are even possible.

1

Take out the common factor

2x² - 50 is not a difference of squares as written, because 2x² is not a perfect square. As 2(x² - 25) it is, giving 2(x - 5)(x + 5).

2

Two terms: try squares, then cubes

A difference of rational perfect squares matches the conjugate identity; a sum of squares does not match that identity and needs a separate factorability argument. Both a sum and a difference of rational perfect cubes match their cube identities. Check the powers before naming a pattern.

3

Three terms: test the middle term

If the outer terms are perfect squares, compute twice the product of their roots. If that equals the middle term, it is a perfect square trinomial; if not, use “Factoring Simple Trinomials” or “The AC Method”.

4

Factor each piece again

Apply the list to every factor you produced. Stop only when no factor matches any pattern and none factors by the AC method.

Check yourself

Score 0 / 0

Factoring x⁴ - 16 completely

Two terms, both perfect squares, so the difference of squares applies — and then applies again.

x⁴ - 16 = (x²)² - 4² both terms are perfect squares = (x² - 4)(x² + 4) a² - b² with a = x², b = 4 = (x - 2)(x + 2)(x² + 4) x² - 4 is a difference of squares too x² + 4 is a SUM of squares: it stops here. check (x - 2)(x + 2) = x² - 4 (x² - 4)(x² + 4) = x⁴ + 4x² - 4x² - 16 = x⁴ - 16

Two things are being claimed at the end, and only one of them is a calculation. That (x - 2)(x + 2)(x² + 4) multiplies back to x⁴ - 16 is checked by expanding. That x² + 4 cannot be factored further is a separate claim, and its justification is that a sum of squares has no real linear factor because it stays positive — not that no factorisation came to mind.

For a faded special-form pass, start 16x⁴ - 81 with the supplied recognition (4x²)² - 9². Apply the pattern, retest both factors over the rationals, and expand to check. The complete result is (2x - 3)(2x + 3)(4x² + 9); stopping at (4x² - 9)(4x² + 9) misses the second difference of squares.

Common mistakes

1
Factoring a sum of squaresx² + 4 has no real linear factor because it is positive for every real x, and (x + 2)² is x² + 4x + 4. The false habit is copied from the difference-of-squares identity and survives when the answer is not expanded.
2
Skipping the middle-term test4x² + 10x + 25 has perfect square outer terms, but 2 · 2x · 5 = 20x, not 10x. It is not (2x + 5)²; a failed perfect-square test sends the expression back to the ac search rather than licensing a guessed square.
3
Putting the wrong signs in the cubes trinomialThe trinomial's last term is +b² in both identities. If you have written (a - b)(a² + ab - b²), expand it: the a³ and b³ will not come out alone.

Check your understanding

✓
Finish when you can refuse a sum of squares as confidently as you accept a difference.

Given 9x² - 25, x² + 12x + 36, 8x³ - 27 and x² + 16 you should factor the first three on sight and say of the fourth that the conjugate pattern does not apply; because it stays positive, it also has no real linear factor. Neither conclusion is a failure to spot something.

Note: These patterns matter beyond factoring. Rational and Radical Expressions cancels a difference of squares out of a rational expression on almost every page, and Quadratics and Complex Numbers returns to a² + b² once i exists and factors it properly. This lesson factors over rational coefficients unless it explicitly says otherwise. Quadratics and Complex Numbers enlarges the coefficient system; naming the system is part of every claim that a factor does or does not exist.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.