Factorising with identities

Some expressions look impossible to factorise by ordinary common-factor grouping — until you recognise them as an algebraic identity wearing a disguise. 50x2−8y250x^2 - 8y^2 looks messy, but strip out a common factor of 22 and it becomes 2(25x2−4y2)2(25x^2 - 4y^2), an instantly recognisable difference of squares. This is the second technique inside the Class 8 Factorisation chapter, and it runs the Algebraic Identities you already expanded — squares of sums and differences, and sum/difference of cubes — in reverse. Instead of multiplying (a+b)(a−b)(a+b)(a-b) out to a2−b2a^2-b^2, you start from a2−b2a^2-b^2 and work backwards to (a+b)(a−b)(a+b)(a-b). The entire skill is pattern-matching: spotting perfect squares and cubes fast, checking whether the middle term fits, and pulling out any common factor first so the pattern becomes visible.

The core insight

Factorising by identities means matching an expanded expression against a known identity — difference of squares, perfect-square trinomial, or sum/difference of cubes — and writing the corresponding factored form directly, without long expansion.

The core idea

Four identities, used in reverse. The same identities you learned for expansion now run backwards to factorise:

a2−b2=(a−b)(a+b)a^2 - b^2 = (a-b)(a+b)

where: a2a^2 and b2b^2 are the two perfect-square terms, joined by a minus sign.

a2+2ab+b2=(a+b)2,a2−2ab+b2=(a−b)2a^2 + 2ab + b^2 = (a+b)^2, \qquad a^2 - 2ab + b^2 = (a-b)^2

where: the first and last terms are perfect squares, and the middle term must equal exactly ±2ab\pm 2ab — twice the product of the square roots of the outer terms.

a3+b3=(a+b)(a2−ab+b2),a3−b3=(a−b)(a2+ab+b2)a^3 + b^3 = (a+b)(a^2-ab+b^2), \qquad a^3 - b^3 = (a-b)(a^2+ab+b^2)

where: aa and bb are the cube roots of the two terms; the second bracket always carries a +ab+ab middle term, regardless of whether the cubes are added or subtracted.

Recognising the pattern. For a difference of squares, the expression must be exactly two terms, both perfect squares, separated by a minus sign. For a perfect-square trinomial, there must be three terms, with the outer two being perfect squares and the middle one equal to ±2ab\pm2ab. If neither pattern is visible at first glance, pull out any common numerical or variable factor — the pattern is often hidden underneath one, as in 50x2−8y2=2(25x2−4y2)50x^2 - 8y^2 = 2(25x^2 - 4y^2).

Building speed. Identity-based factorisation lives or dies on spotting perfect squares and cubes quickly by sight: 1,4,9,16,25,36,49,64,81,1001, 4, 9, 16, 25, 36, 49, 64, 81, 100 are the squares of 11 through 1010, and 1,8,27,64,1251, 8, 27, 64, 125 are the cubes of 11 through 55. The same recognition applies to algebraic terms — 16x216x^2 is (4x)2(4x)^2, and x4x^4 is (x2)2(x^2)^2 — so training the eye on plain numbers pays off directly on algebra.

Why the reverse direction feels harder. Expanding (a+b)2(a+b)^2 is mechanical — multiply it out and collect terms. Factorising asks you to run that process in reverse, starting from the collected, expanded form and reconstructing the original brackets without being told which identity produced them. This is why the checking habit matters so much: after every factorisation, re-expand the answer and confirm it reproduces the original expression term for term. A wrong guess at the identity, or a sign slip inside it, shows up immediately once you check by expanding back.

Figure
Two branching paths showing how a factorisation problem is sorted into the difference of squares path or the perfect square trinomial path based on the number of terms and the sign pattern
Sorting an expression into the right identity Given expression Take out common factor if one exists Two terms, both squares, minus sign between them a squared minus b squared Three terms, outer two squares, middle equals plus or minus 2ab a squared plus or minus 2ab plus b squared (a-b)(a+b) (a+b)^2 or (a-b)^2 A cube-shaped pair of terms instead routes to the sum or difference of cubes identity
Derivation AFactorising 50x squared minus 8y squared using the difference of squares

The goal is to show, in full arithmetic detail, exactly how removing a hidden common factor and then matching the difference-of-squares identity turns an expression that looks unfactorable at first glance into a clean product of two linear brackets, and to show why skipping the common-factor step causes the pattern to stay invisible.

Step 1. Scan both terms for a common factor before touching any identity. In 50x2−8y250x^2 - 8y^2, the coefficients 5050 and 88 share a factor of 22, and there is no common variable factor since one term has x2x^2 and the other has y2y^2. Pulling out the 22 gives 50x2−8y2=2(25x2−4y2)50x^2 - 8y^2 = 2(25x^2 - 4y^2).

Step 2. Test the bracket against the difference-of-squares pattern. 25x2=(5x)225x^2 = (5x)^2 and 4y2=(2y)24y^2 = (2y)^2 are both perfect squares, and they are joined by a minus sign, so the bracket fits a2−b2a^2 - b^2 with a=5xa = 5x and b=2yb = 2y.

Step 3. Apply the identity a2−b2=(a−b)(a+b)a^2 - b^2 = (a-b)(a+b) directly: 25x2−4y2=(5x−2y)(5x+2y)25x^2 - 4y^2 = (5x-2y)(5x+2y).

Step 4. Reattach the common factor removed in Step 1 to get the complete factorisation: 50x2−8y2=2(5x−2y)(5x+2y)50x^2 - 8y^2 = 2(5x-2y)(5x+2y). Check: expanding back, 2(5x−2y)(5x+2y)=2(25x2−4y2)=50x2−8y22(5x-2y)(5x+2y) = 2(25x^2 - 4y^2) = 50x^2 - 8y^2, which matches the original expression exactly.

Worked example

Factorise 9x2−30xy+25y29x^2 - 30xy + 25y^2.

Step 1. Check the outer two terms for perfect squares. 9x2=(3x)29x^2 = (3x)^2 and 25y2=(5y)225y^2 = (5y)^2, so a=3xa = 3x and b=5yb = 5y.

Step 2. Check the middle term against ±2ab\pm 2ab. 2ab=2×3x×5y=30xy2ab = 2 \times 3x \times 5y = 30xy. The given middle term is −30xy-30xy, matching −2ab-2ab, so the identity to use is a2−2ab+b2=(a−b)2a^2 - 2ab + b^2 = (a-b)^2.

Step 3. Write the factorised form: 9x2−30xy+25y2=(3x−5y)29x^2 - 30xy + 25y^2 = (3x-5y)^2.

Check: expanding (3x−5y)2=9x2−30xy+25y2(3x-5y)^2 = 9x^2 - 30xy + 25y^2, which matches.

Final answer: 9x2−30xy+25y2=(3x−5y)29x^2 - 30xy + 25y^2 = (3x-5y)^2.

Competitive stretch

Factorise x3−27x^3 - 27 using a cube identity. Rewrite 27=3327 = 3^3, so x3−27=x3−33x^3 - 27 = x^3 - 3^3. With a=xa = x and b=3b = 3 in a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2+ab+b^2), this gives x3−27=(x−3)(x2+3x+9)x^3 - 27 = (x-3)(x^2+3x+9). Notice that x2+3x+9x^2+3x+9 is not (x−3)2(x-3)^2 — the second bracket in a cube identity always carries a +ab+ab middle term, never ±2ab\pm2ab, and it generally cannot be factorised any further at Class 8 level.

Common traps

  • Misreading the middle-term sign. Confusing a2+2ab+b2=(a+b)2a^2+2ab+b^2=(a+b)^2 with a2−2ab+b2=(a−b)2a^2-2ab+b^2=(a-b)^2 puts the wrong sign inside the bracket. Always check whether the middle term is +2ab+2ab or −2ab-2ab first.
  • Forgetting to remove a common factor first. 50x2−8y250x^2-8y^2 does not look like a clean difference of squares until the factor of 22 is pulled out — trying the identity directly on 50x250x^2 and 8y28y^2 fails, since neither is itself a perfect square.
  • Assuming every three-term expression is a perfect-square trinomial. The middle term must equal exactly ±2ab\pm2ab; if it does not, the expression is a general trinomial needing the middle-term-splitting method instead, not a forced identity.
  • Sign slip in the cube identities. In a3−b3=(a−b)(a2+ab+b2)a^3-b^3=(a-b)(a^2+ab+b^2), students sometimes wrongly write −ab-ab in the second bracket; the correct middle sign there is always positive, for both sum and difference of cubes.

Ask the tutor: if you are unsure which identity fits a given expression, ask the AI tutor to walk through a few mixed practice problems with you.

How do I know whether to use the square identities or the cube identities?

Count the terms and look at the powers. If there are exactly two terms and each is a perfect square (like x2x^2 or 9y29y^2) joined by a minus, it is the difference of squares. If there are three terms with the outer two as perfect squares and the middle matching ±2ab\pm2ab, it is a perfect-square trinomial. If instead there are two terms that are each perfect cubes (like x3x^3 or 2727), joined by plus or minus, reach for the sum or difference of cubes identity instead.

Why does the common-factor step matter so much here?

Many expressions are built to disguise the identity underneath a coefficient. 50x2−8y250x^2-8y^2 does not look like a difference of squares at all until you divide out the shared factor of 22, after which 25x2−4y225x^2-4y^2 is obviously (5x)2−(2y)2(5x)^2-(2y)^2. Skipping this step is the single most common reason students fail to see an identity that is actually sitting right there — always scan for a common factor before checking for a pattern.

What if the middle term in a three-term expression does not equal 2ab exactly?

Then it is not a perfect-square trinomial, and forcing the identity will give a wrong factorisation. A general trinomial like x2+7x+12x^2+7x+12 needs the separate middle-term-splitting method, which is a different topic. Before applying (a±b)2(a\pm b)^2, always verify the middle term numerically: compute 2ab2ab from the square roots of the outer terms and compare it exactly against what is given.

Before this

Where this leads