Skip to the page
Home Campus
Start free

Factorising Using the Identities

How to recognise a difference of two squares and a perfect square, factorise them with the three identities, and tell when an identity does not fit.

Before you start

Factorising is expanding backwards: writing an expression as a product. In Secondary 1 you factorised by taking out a common factor: 6x+9=3(2x+3)6x + 9 = 3(2x + 3).

In lessons 3.5 and 3.6 you expanded with three identities. Read from right to left, they factorise.

The Identities Read Backwards

Factorising with the identities

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

a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2

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

Always check a factorisation by expanding it back.

The skill is to recognise which identity an expression fits, and what aa and bb are. Two terms suggest a difference of two squares; three terms suggest a perfect square.

Recognising a Difference of Two Squares

A difference of two squares has

exactly two terms; each term a square (of a number, a letter, a term or a bracket); and a minus sign between them.

Find aa and bb by asking "what was squared?" Then write (a+b)(a−b)(a + b)(a - b).

Example 1: Squares of a letter and a number

Factorise (a) x2−9x^2 - 9; (b) 25x2−1625x^2 - 16.

Solution

(a) x2x^2 is the square of xx and 99 is the square of 33: x2−32=(x+3)(x−3).x^2 - 3^2 = (x + 3)(x - 3)\text{.}

Check: (x+3)(x−3)=x2−3x+3x−9=x2−9.(x + 3)(x - 3) = x^2 - 3x + 3x - 9 = x^2 - 9\text{.} ✓

(b) 25x2=(5x)225x^2 = (5x)^2 and 16=4216 = 4^2: (5x)2−42=(5x+4)(5x−4).(5x)^2 - 4^2 = (5x + 4)(5x - 4)\text{.}

(a) (x+3)(x−3)(x + 3)(x - 3); (b) (5x+4)(5x−4)(5x + 4)(5x - 4)

Example 2: The number first, and two letters

Factorise (a) 49−4y249 - 4y^2; (b) 9x2−y29x^2 - y^2; (c) a2b2−16a^2b^2 - 16.

Solution

(a) 49=7249 = 7^2 and 4y2=(2y)24y^2 = (2y)^2: (7+2y)(7−2y)(7 + 2y)(7 - 2y). Keep the order: the first square is 727^2.

(b) (3x)2−y2=(3x+y)(3x−y)(3x)^2 - y^2 = (3x + y)(3x - y)

(c) a2b2=(ab)2a^2b^2 = (ab)^2: (ab)2−42=(ab+4)(ab−4)(ab)^2 - 4^2 = (ab + 4)(ab - 4)

(a) (7+2y)(7−2y)(7 + 2y)(7 - 2y); (b) (3x+y)(3x−y)(3x + y)(3x - y); (c) (ab+4)(ab−4)(ab + 4)(ab - 4)

Example 3: A bracket as one of the squares

Factorise (a) (x+1)2−9(x + 1)^2 - 9; (b) 4(a+b)2−94(a + b)^2 - 9.

Solution

(a) Here the first square is (x+1)2(x + 1)^2, so a=x+1a = x + 1, and b=3b = 3.

(x+1)2−32=((x+1)+3)((x+1)−3)=(x+4)(x−2)(x + 1)^2 - 3^2 = \big((x + 1) + 3\big)\big((x + 1) - 3\big) = (x + 4)(x - 2)

Check: (x+4)(x−2)=x2+2x−8,(x + 4)(x - 2) = x^2 + 2x - 8\text{,} and (x+1)2−9=x2+2x+1−9=x2+2x−8.(x + 1)^2 - 9 = x^2 + 2x + 1 - 9 = x^2 + 2x - 8\text{.} ✓

(b) 4(a+b)2=(2(a+b))24(a + b)^2 = \big(2(a + b)\big)^2 and 9=329 = 3^2.

(2(a+b)+3)(2(a+b)−3)=(2a+2b+3)(2a+2b−3)\big(2(a + b) + 3\big)\big(2(a + b) - 3\big) = (2a + 2b + 3)(2a + 2b - 3)

(a) (x+4)(x−2)(x + 4)(x - 2); (b) (2a+2b+3)(2a+2b−3)(2a + 2b + 3)(2a + 2b - 3)

Example 4: A fraction

Factorise x2−14x^2 - \frac{1}{4}.

Solution

14=(12)2\frac{1}{4} = (\frac{1}{2})^2, so x2−(12)2=(x+12)(x−12).x^2 - (\frac{1}{2})^2 = (x + \frac{1}{2})(x - \frac{1}{2})\text{.}

(x+12)(x−12)(x + \frac{1}{2})(x - \frac{1}{2})

Recognising a Perfect Square

A perfect square has

three terms (put them in descending powers first);

a first term and a last term that are both squares, each with a ++ sign in front;

a middle term equal to 2×2 \times (the square root of the first term) ×\times (the square root of the last term), with a ++ or −- sign.

The sign of the middle term is the sign inside the bracket: a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2 and a2−2ab+b2=(a−b)2.a^2 - 2ab + b^2 = (a - b)^2\text{.}

Example 5: Testing and factorising

Factorise (a) x2+10x+25x^2 + 10x + 25; (b) 9y2+24y+169y^2 + 24y + 16; (c) 4a2−12ab+9b24a^2 - 12ab + 9b^2.

Solution

(a) x2=x2x^2 = x^2 and 25=5225 = 5^2. Middle: 2×x×5=10x2 \times x \times 5 = 10x. ✓ So (x+5)2(x + 5)^2.

(b) 9y2=(3y)29y^2 = (3y)^2 and 16=4216 = 4^2. Middle: 2×3y×4=24y2 \times 3y \times 4 = 24y. ✓ So (3y+4)2(3y + 4)^2.

(c) 4a2=(2a)24a^2 = (2a)^2 and 9b2=(3b)29b^2 = (3b)^2. Middle: 2×2a×3b=12ab2 \times 2a \times 3b = 12ab, and the sign is −-. So (2a−3b)2(2a - 3b)^2.

Check (c): (2a−3b)2=4a2−12ab+9b2.(2a - 3b)^2 = 4a^2 - 12ab + 9b^2\text{.} ✓

(a) (x+5)2(x + 5)^2; (b) (3y+4)2(3y + 4)^2; (c) (2a−3b)2(2a - 3b)^2

Example 6: The number first

Factorise 16−8x+x216 - 8x + x^2.

Solution

16=4216 = 4^2 and x2=x2x^2 = x^2, each with a ++ sign. Middle: 2×4×x=8x2 \times 4 \times x = 8x, with a −- sign.

So 16−8x+x2=(4−x)2.16 - 8x + x^2 = (4 - x)^2\text{.}

In descending powers it is x2−8x+16=(x−4)2.x^2 - 8x + 16 = (x - 4)^2\text{.} Both answers are right: (4−x)2=(x−4)2(4 - x)^2 = (x - 4)^2, because a bracket and its negative have the same square.

(4−x)2(4 - x)^2, which is the same as (x−4)2(x - 4)^2

Example 7: A fraction

Factorise x2−x+14x^2 - x + \frac{1}{4}.

Solution

x2=x2x^2 = x^2 and 14=(12)2\frac{1}{4} = (\frac{1}{2})^2. Middle: 2×x×12=x2 \times x \times \frac{1}{2} = x, with a −- sign. ✓

(x−12)2(x - \frac{1}{2})^2

When an Identity Does Not Fit

Example 8: Check before you factorise

Can these be factorised with an identity? Give a reason. (a) x2+9x^2 + 9; (b) 16x2+28xy+49y216x^2 + 28xy + 49y^2; (c) 49h2−42hk+36k249h^2 - 42hk + 36k^2

Solution

(a) Two squares, but with a plus sign between them. A sum of two squares such as x2+9x^2 + 9 cannot be factorised into two brackets: (x+3)(x−3)=x2−9(x + 3)(x - 3) = x^2 - 9 and (x+3)2=x2+6x+9.(x + 3)^2 = x^2 + 6x + 9\text{.}

(b) 16x2=(4x)216x^2 = (4x)^2 and 49y2=(7y)249y^2 = (7y)^2, but 2×4x×7y=56xy2 \times 4x \times 7y = 56xy, not 28xy28xy. Not a perfect square.

(c) 49h2=(7h)249h^2 = (7h)^2 and 36k2=(6k)236k^2 = (6k)^2, but 2×7h×6k=84hk2 \times 7h \times 6k = 84hk, not 42hk42hk. Not a perfect square.

None of them fits an identity: (a) is a sum of squares; in (b) and (c) the middle term is wrong for a perfect square.

A common factor can still come out

A sum of two squares such as x2+9x^2 + 9 or 4x2+25y24x^2 + 25y^2 cannot be split into two brackets, but a common factor can still be taken out: 4x2+4y2=4(x2+y2).4x^2 + 4y^2 = 4(x^2 + y^2)\text{.}

The Missing Term of a Perfect Square

Example 9: The missing term

Find the term that makes each a perfect square. (a) x2+6x+□x^2 + 6x + \square; (b) x2+□x+49x^2 + \square x + 49; (c) 9x2+□+4y29x^2 + \square + 4y^2

Solution

(a) 6x=2×x×36x = 2 \times x \times 3, so the last term is 32=93^2 = 9: x2+6x+9=(x+3)2.x^2 + 6x + 9 = (x + 3)^2\text{.}

(b) 49=7249 = 7^2, so the middle term is ±2×x×7=±14x\pm 2 \times x \times 7 = \pm 14x. The box is 1414 or −14-14: (x+7)2(x + 7)^2 or (x−7)2(x - 7)^2.

(c) 9x2=(3x)29x^2 = (3x)^2 and 4y2=(2y)24y^2 = (2y)^2, so the middle term is ±2×3x×2y=±12xy.\pm 2 \times 3x \times 2y = \pm 12xy\text{.}

(a) 99; (b) 1414 or −14-14; (c) 12xy12xy or −12xy-12xy

Factorising to Calculate

You worked out differences of squares of numbers in lesson 3.6. Here the same work is seen as factorising: write a2−b2a^2 - b^2 as the product (a+b)(a−b)(a + b)(a - b), then multiply.

Example 10: Numbers

Without a calculator, find (a) 572−43257^2 - 43^2; (b) 0.982−0.0220.98^2 - 0.02^2.

Solution

(a) 572−432=(57+43)(57−43)=100×14=140057^2 - 43^2 = (57 + 43)(57 - 43) = 100 \times 14 = 1400

(b) 0.982−0.022=(0.98+0.02)(0.98−0.02)=1×0.96=0.960.98^2 - 0.02^2 = (0.98 + 0.02)(0.98 - 0.02) = 1 \times 0.96 = 0.96

(a) 14001400; (b) 0.960.96

Example 11: Without finding aa and bb

Given that a+b=10a + b = 10 and a−b=4a - b = 4, find a2−b2a^2 - b^2.

Solution

a2−b2=(a+b)(a−b)=10×4=40a^2 - b^2 = (a + b)(a - b) = 10 \times 4 = 40

Check: a=7a = 7 and b=3b = 3 fit, and 49−9=4049 - 9 = 40. ✓

a2−b2=40a^2 - b^2 = 40

Example 12: Challenge

Find the positive integers xx and yy for which x2−9y2=13x^2 - 9y^2 = 13.

Solution

Factorise: x2−(3y)2=(x+3y)(x−3y)=13.x^2 - (3y)^2 = (x + 3y)(x - 3y) = 13\text{.}

x+3yx + 3y is positive, because xx and yy are. The product 1313 is positive, so x−3yx - 3y is positive too. And x−3yx - 3y is less than x+3yx + 3y.

1313 is prime, so the only way to write it as a product of two positive integers, the smaller first, is 1×131 \times 13. So x−3y=1x - 3y = 1 and x+3y=13x + 3y = 13.

Adding the two equations: 2x=142x = 14, so x=7x = 7. Then 3y=13−7=63y = 13 - 7 = 6, so y=2y = 2.

Check: 72−9(22)=49−36=13.7^2 - 9(2^2) = 49 - 36 = 13\text{.} ✓

x=7x = 7, y=2y = 2

Common Mistakes

  • Factorising a sum of squares: x2+9≠(x+3)(x−3),x^2 + 9 \ne (x + 3)(x - 3)\text{,} which expands to x2−9x^2 - 9.
  • Taking the square root of the number only: 25x2−16=(5x+4)(5x−4),25x^2 - 16 = (5x + 4)(5x - 4)\text{,} not (25x+4)(25x−4)(25x + 4)(25x - 4).
  • Calling three terms a perfect square without checking the middle term: x2+6x+4x^2 + 6x + 4 is not (x+2)2(x + 2)^2, which is x2+4x+4x^2 + 4x + 4.
  • Losing the sign: 4a2−12ab+9b2=(2a−3b)2,4a^2 - 12ab + 9b^2 = (2a - 3b)^2\text{,} not (2a+3b)2(2a + 3b)^2.
  • Testing the middle term with the whole terms instead of their square roots: for x2+10x+25x^2 + 10x + 25 the test is 2×x×52 \times x \times 5, not 2×x2×252 \times x^2 \times 25.

Practice

Try each question before you open its solution. Check each answer by expanding it.

Question 1

Factorise (a) x2−49x^2 - 49; (b) 16y2−116y^2 - 1; (c) 36−a236 - a^2.

ShowHide solution

(a) x2−72=(x+7)(x−7)x^2 - 7^2 = (x + 7)(x - 7)

(b) (4y)2−12=(4y+1)(4y−1)(4y)^2 - 1^2 = (4y + 1)(4y - 1)

(c) 62−a2=(6+a)(6−a)6^2 - a^2 = (6 + a)(6 - a)

(a) (x+7)(x−7)(x + 7)(x - 7); (b) (4y+1)(4y−1)(4y + 1)(4y - 1); (c) (6+a)(6−a)(6 + a)(6 - a)

Question 2

Factorise (a) 4p2−81q24p^2 - 81q^2; (b) x2y2−25x^2y^2 - 25; (c) 1−100k21 - 100k^2.

ShowHide solution

(a) (2p)2−(9q)2=(2p+9q)(2p−9q)(2p)^2 - (9q)^2 = (2p + 9q)(2p - 9q)

(b) (xy)2−52=(xy+5)(xy−5)(xy)^2 - 5^2 = (xy + 5)(xy - 5)

(c) 12−(10k)2=(1+10k)(1−10k)1^2 - (10k)^2 = (1 + 10k)(1 - 10k)

(a) (2p+9q)(2p−9q)(2p + 9q)(2p - 9q); (b) (xy+5)(xy−5)(xy + 5)(xy - 5); (c) (1+10k)(1−10k)(1 + 10k)(1 - 10k)

Question 3

Factorise (a) (x+2)2−16(x + 2)^2 - 16; (b) 9−(y+1)29 - (y + 1)^2; (c) (x−3)2−y2(x - 3)^2 - y^2.

ShowHide solution

(a) ((x+2)+4)((x+2)−4)=(x+6)(x−2)\big((x + 2) + 4\big)\big((x + 2) - 4\big) = (x + 6)(x - 2)

(b) (3+(y+1))(3−(y+1))=(y+4)(2−y).\big(3 + (y + 1)\big)\big(3 - (y + 1)\big) = (y + 4)(2 - y)\text{.} The bracket after the minus: 3−y−1=2−y3 - y - 1 = 2 - y.

(c) ((x−3)+y)((x−3)−y)=(x+y−3)(x−y−3)\big((x - 3) + y\big)\big((x - 3) - y\big) = (x + y - 3)(x - y - 3)

(a) (x+6)(x−2)(x + 6)(x - 2); (b) (y+4)(2−y)(y + 4)(2 - y); (c) (x+y−3)(x−y−3)(x + y - 3)(x - y - 3)

Question 4

Factorise (a) x2−19x^2 - \frac{1}{9}; (b) x2+x+14x^2 + x + \frac{1}{4}.

ShowHide solution

(a) 19=(13)2\frac{1}{9} = (\frac{1}{3})^2: (x+13)(x−13)(x + \frac{1}{3})(x - \frac{1}{3})

(b) 14=(12)2\frac{1}{4} = (\frac{1}{2})^2 and 2×x×12=x2 \times x \times \frac{1}{2} = x. ✓ So (x+12)2(x + \frac{1}{2})^2.

(a) (x+13)(x−13);(x + \frac{1}{3})(x - \frac{1}{3})\text{;} (b) (x+12)2(x + \frac{1}{2})^2

Question 5

Factorise (a) x2+14x+49x^2 + 14x + 49; (b) y2−12y+36y^2 - 12y + 36; (c) 25a2+20ab+4b225a^2 + 20ab + 4b^2.

ShowHide solution

(a) 49=7249 = 7^2, 2×x×7=14x2 \times x \times 7 = 14x: (x+7)2(x + 7)^2

(b) 36=6236 = 6^2, 2×y×6=12y2 \times y \times 6 = 12y, sign −-: (y−6)2(y - 6)^2

(c) (5a)2(5a)^2 and (2b)2(2b)^2, 2×5a×2b=20ab2 \times 5a \times 2b = 20ab: (5a+2b)2(5a + 2b)^2

(a) (x+7)2(x + 7)^2; (b) (y−6)2(y - 6)^2; (c) (5a+2b)2(5a + 2b)^2

Question 6

Factorise (a) 9−6x+x29 - 6x + x^2; (b) 1+16p2−8p1 + 16p^2 - 8p.

ShowHide solution

(a) 323^2 and x2x^2; 2×3×x=6x2 \times 3 \times x = 6x, sign −-: (3−x)2(3 - x)^2, which equals (x−3)2(x - 3)^2.

(b) In descending powers: 16p2−8p+116p^2 - 8p + 1. (4p)2(4p)^2 and 121^2; 2×4p×1=8p2 \times 4p \times 1 = 8p, sign −-: (4p−1)2(4p - 1)^2.

(a) (x−3)2(x - 3)^2 (or (3−x)2(3 - x)^2); (b) (4p−1)2(4p - 1)^2

Question 7

Factorise with an identity where you can. Where you cannot, say why. (a) x2+18x+81x^2 + 18x + 81; (b) x2+16x^2 + 16; (c) x2+8x+9x^2 + 8x + 9; (d) 9m2−4n29m^2 - 4n^2

ShowHide solution

(a) 81=9281 = 9^2 and 2×x×9=18x2 \times x \times 9 = 18x: (x+9)2(x + 9)^2.

(b) A sum of two squares: it cannot be factorised into two brackets.

(c) 9=329 = 3^2, but 2×x×3=6x2 \times x \times 3 = 6x, not 8x8x: not a perfect square, and three terms cannot be a difference of two squares.

(d) (3m)2−(2n)2=(3m+2n)(3m−2n).(3m)^2 - (2n)^2 = (3m + 2n)(3m - 2n)\text{.}

(a) (x+9)2(x + 9)^2; (b) no identity fits; (c) no identity fits; (d) (3m+2n)(3m−2n)(3m + 2n)(3m - 2n)

Question 8

Find the missing term or number that makes each a perfect square. (a) x2−10x+□x^2 - 10x + \square; (b) 4x2+□x+94x^2 + \square x + 9; (c) □+40y+16\square + 40y + 16

ShowHide solution

(a) 10x=2×x×510x = 2 \times x \times 5, so the last term is 2525.

(b) ±2×2x×3=±12x:\pm 2 \times 2x \times 3 = \pm 12x\text{:} the box is 1212 or −12-12.

(c) 16=4216 = 4^2 and 40y=2×5y×440y = 2 \times 5y \times 4, so the first term is (5y)2=25y2(5y)^2 = 25y^2.

(a) 2525; (b) 1212 or −12-12; (c) 25y225y^2

Question 9

Without a calculator, find (a) 882−12288^2 - 12^2; (b) 7.52−2.527.5^2 - 2.5^2; (c) 3.72−1.323.7^2 - 1.3^2.

ShowHide solution

(a) (88+12)(88−12)=100×76=7600(88 + 12)(88 - 12) = 100 \times 76 = 7600

(b) (7.5+2.5)(7.5−2.5)=10×5=50(7.5 + 2.5)(7.5 - 2.5) = 10 \times 5 = 50

(c) (3.7+1.3)(3.7−1.3)=5×2.4=12(3.7 + 1.3)(3.7 - 1.3) = 5 \times 2.4 = 12

(a) 76007600; (b) 5050; (c) 1212

Question 10

(a) Given that a+b=12a + b = 12 and a−b=3a - b = 3, find a2−b2a^2 - b^2. (b) Given that x2−y2=48x^2 - y^2 = 48 and x+y=12x + y = 12, find x−yx - y, and then xx and yy.

ShowHide solution

(a) a2−b2=(a+b)(a−b)=12×3=36.a^2 - b^2 = (a + b)(a - b) = 12 \times 3 = 36\text{.}

(b) (x+y)(x−y)=48(x + y)(x - y) = 48, so 12(x−y)=4812(x - y) = 48 and x−y=4x - y = 4.

Adding x+y=12x + y = 12 and x−y=4x - y = 4: 2x=162x = 16, x=8x = 8, and y=4y = 4. Check: 64−16=4864 - 16 = 48. ✓

(a) 3636; (b) x−y=4x - y = 4, x=8x = 8, y=4y = 4

Question 11

A square field has sides of 65.565.5 m. In it is a square pond with sides of 34.534.5 m. Without a calculator, find the area of the field not covered by the pond.

ShowHide solution

Area =65.52−34.52=(65.5+34.5)(65.5−34.5)=100×31=3100= 65.5^2 - 34.5^2 = (65.5 + 34.5)(65.5 - 34.5) = 100 \times 31 = 3100

31003100 m²

Question 12

Challenge. Given that xx and yy are positive integers, find all the solutions of x2−4y2=21x^2 - 4y^2 = 21.

ShowHide solution

(x+2y)(x−2y)=21.(x + 2y)(x - 2y) = 21\text{.} Since x+2yx + 2y and the product are positive, x−2yx - 2y is positive, and it is the smaller factor.

21=1×2121 = 1 \times 21 or 3×73 \times 7.

x−2y=1x - 2y = 1 and x+2y=21x + 2y = 21: 2x=222x = 22, x=11x = 11, 4y=204y = 20, y=5y = 5.

x−2y=3x - 2y = 3 and x+2y=7x + 2y = 7: 2x=102x = 10, x=5x = 5, 4y=44y = 4, y=1y = 1.

Check: 121−4(25)=21121 - 4(25) = 21 and 25−4(1)=2125 - 4(1) = 21. ✓

x=11x = 11, y=5y = 5; or x=5x = 5, y=1y = 1

Key Points

  • a2−b2=(a+b)(a−b):a^2 - b^2 = (a + b)(a - b)\text{:} two squares with a minus between them.
  • a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2 and a2−2ab+b2=(a−b)2:a^2 - 2ab + b^2 = (a - b)^2\text{:} first and last terms squares with a ++ sign, middle term twice the product of their square roots.
  • Ask "what was squared?" to find aa and bb; a bracket can be one of the squares.
  • A sum of two squares, such as x2+9x^2 + 9, cannot be factorised into two brackets.
  • (4−x)2=(x−4)2(4 - x)^2 = (x - 4)^2.
  • Check every factorisation by expanding it back.

‹ 3.6 Difference of Two Squares 3.8 Factorising by Grouping ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.