Algebraic Identities

The expansions that keep coming back.

Expansions worth knowing by sight

An identity is an equation that is true for every value of its letters. You have already met some without the name: 3(x + 2) = 3x + 6 is true whatever x is. A few expansions come up so often that it pays to know them by sight, so that you can write them down, or spot them, without multiplying out four products every time.

The first is the square of a sum. (a + b)² means (a + b)(a + b), a square whose side is a + b.

a²ababb²ababa² + 2ab + b²

Cut each side of the square into a and b. The square holds an a by a square, a b by b square, and two a by b rectangles.

Where the 2ab comes from

The square of side a + b is made of four pieces: a² in one corner, b² in the opposite corner, and two rectangles, each a by b. So (a + b)² = a² + 2ab + b².

The middle term is 2ab because there are two rectangles, one on each side of the diagonal. Writing (a + b)² = a² + b² leaves both of them out, and that is the most common mistake with this identity. For example, (x + 3)² = x² + 2 × 3 × x + 3² = x² + 6x + 9, not x² + 9.

The square of a difference

Expand (a − b)² as two brackets: (a − b)(a − b) = a² − ab − ab + b² = a² − 2ab + b². The middle term is now −2ab, and the last term is +b², because −b × −b = +b².

So (x − 5)² = x² − 10x + 25. Compare it with (x + 5)² = x² + 10x + 25: only the sign of the middle term changes.

Squaring numbers in your head

The identities work for numbers too. To square 31, write it as 30 + 1: 31² = 30² + 2 × 30 × 1 + 1² = 900 + 60 + 1 = 961. To square 29, write it as 30 − 1: 29² = 900 − 60 + 1 = 841.

Worked example: A Square Floor Cut into Four Parts to Square a Number Mentally

Question A square floor has 51 tiles along each side. (a) Cut the square into four parts, using 51 = 50 + 1, and find the number of tiles without a calculator. (b) A smaller square floor has 49 tiles along each side. Use 49 = 50 − 1 to find its number of tiles.

  1. 1.The floor holds 512 tiles. Write 51 as 50 + 1, and cut each side into a part of 50 tiles and a part of 1 tile.

    501501512= (50 + 1)2
    501501512= (50 + 1)2
    Write 51 as 50 + 1 and cut each side of the square into 50 and 1.
  2. 2.The four parts are a square of 50 × 50 = 2500 tiles, two strips of 50 × 1 = 50 tiles each, and a corner of 1 × 1 = 1 tile.

    502= 250050501505011four parts: 2500 + 50 + 50 + 1
    502= 250050501505011four parts: 2500 + 50 + 50 + 1
    The parts are 50 × 50 = 2500, two strips of 50 × 1 = 50, and 1 × 1 = 1.
  3. 3.This is the identity (a + b)2 = a2 + 2ab + b2 with a = 50 and b = 1: 512 = 2500 + 2 × 50 + 1.

    502= 250050501505011512= 502+ 2 × 50 × 1 + 12
    502= 250050501505011512= 502+ 2 × 50 × 1 + 12
    (a + b)2 = a2 + 2ab + b2 with a = 50 and b = 1.
  4. 4.(a) 2500 + 100 + 1 = 2601 tiles.

    502= 250050501505011512= 502+ 2 × 50 × 1 + 12= 2500 + 100 + 1 = 2601 tiles
    502= 250050501505011512= 502+ 2 × 50 × 1 + 12= 2500 + 100 + 1 = 2601 tiles
    (a) 2500 + 100 + 1 = 2601 tiles.
  5. 5.For 49 use (a − b)2 = a2 − 2ab + b2 with a = 50 and b = 1: 492 = 2500 − 2 × 50 + 1.

    502= 250050501505011512= 2500 + 100 + 1 = 2601492= 502− 2 × 50 × 1 + 12
    502= 250050501505011512= 2500 + 100 + 1 = 2601492= 502− 2 × 50 × 1 + 12
    (a − b)2 = a2 − 2ab + b2 with a = 50 and b = 1: 492 = 2500 − 100 + 1.
  6. 6.(b) 2500 − 100 + 1 = 2401 tiles. Check: 512 − 492 = (51 − 49)(51 + 49) = 2 × 100 = 200, and 2601 − 2401 = 200.

    502= 250050501505011512= 2500 + 100 + 1 = 2601492= 502− 2 × 50 × 1 + 12= 2500 − 100 + 1 = 2401 tiles
    502= 250050501505011512= 2500 + 100 + 1 = 2601492= 502− 2 × 50 × 1 + 12= 2500 − 100 + 1 = 2401 tiles
    (b) 2500 − 100 + 1 = 2401 tiles.

Answer: (a) 2601 tiles; (b) 2401 tiles

Common mistakes

  • Writing 512 = 502 + 12 = 2501. That counts the large square and the corner only. The two strips of 50 tiles, which are the 2ab term, have been left out.
  • Writing 492 = 502 − 12 = 2499. (a − b)2 = a2 − 2ab + b2, so the middle term −100 is needed and the last term is +1.

More algebraic expressions problems, worked step by step →

The difference of two squares

The third identity is a difference of two squares: a² − b² = (a − b)(a + b). Expanding the right side shows it: (a − b)(a + b) = a² + ab − ab − b² = a² − b², because the two middle terms cancel.

A picture shows why the product must come out that way. Start with a square of side a and cut a smaller square of side b out of one corner. What is left has an area of a² − b². Move one strip of what is left and it becomes a rectangle whose sides are a + b and a − b.

2²10 × 10128

nothing was added or thrown away — the rectangle is the square with a d × d corner removed, so the product is short by exactly 4

Make the rectangle 16 less than the square

A 10 by 10 square with a d by d corner cut out. The bottom strip stands on its end beside the top part, and the two pieces make a rectangle 10 + d long and 10 − d wide. Nothing is added or lost, so (10 + d)(10 − d) = 100 − d².

(x−b)²b(x−b)b(x−b)b²x − bbx − bbx² − b²

The same cut on a square of side x. Take away the b by b corner, and each of the three pieces left has one side of length x − b.

Reading it both ways

In the square of side x, the three pieces left are (x − b)², b(x − b) and b(x − b). Each has a side of x − b, so together they make one rectangle that is x − b wide and (x − b) + b + b = x + b long. So x² − b² = (x − b)(x + b).

Read from left to right, the identity factors: x² − 49 = x² − 7² = (x − 7)(x + 7). Read from right to left, it multiplies: 97 × 103 = (100 − 3)(100 + 3) = 100² − 3² = 10000 − 9 = 9991.

A difference of two squares is not the square of the difference. (53 − 47)² = 6² = 36, but 53² − 47² = (53 − 47)(53 + 47) = 6 × 100 = 600.

Worked example: The Area of a Square Frame from the Difference of Two Squares

Question A square metal plate has a side of 103 mm. A square hole of side 97 mm is cut from its middle, which leaves a frame. (a) Without a calculator, find the area of the frame. (b) A second frame has an outer side of (x + 5) cm and a square hole of side (x − 5) cm. Find its area as a simplified expression, and find the area when x = 12.

  1. 1.The area of the frame is the plate minus the hole: 1032 − 972. This is a difference of two squares.

    103 mm97 mmholearea = 1032− 972
    103 mm97 mmholearea = 1032− 972
    The frame is the plate minus the hole: 1032 − 972, a difference of two squares.
  2. 2.Use a2 − b2 = (a − b)(a + b) with a = 103 and b = 97: 1032 − 972 = (103 − 97)(103 + 97).

    103 mm97 mmholearea = 1032− 972= (103 − 97)(103 + 97)
    103 mm97 mmholearea = 1032− 972= (103 − 97)(103 + 97)
    a2 − b2 = (a − b)(a + b), so 1032 − 972 = (103 − 97)(103 + 97).
  3. 3.(a) 103 − 97 = 6 and 103 + 97 = 200, so the area of the frame is 6 × 200 = 1200 mm2.

    103 mm97 mmholearea = 1032− 972= (103 − 97)(103 + 97)= 6 × 200 = 1200 mm2
    103 mm97 mmholearea = 1032− 972= (103 − 97)(103 + 97)= 6 × 200 = 1200 mm2
    (a) 6 × 200 = 1200 mm2.
  4. 4.The area of the second frame is (x + 5)2 − (x − 5)2. Here a = x + 5 and b = x − 5, so a − b = x + 5 − x + 5 = 10 and a + b = 2x.

    103 mm97 mmholex + 5x − 5hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2a − b = 10 and a + b = 2x
    103 mm97 mmholex + 5x − 5hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2a − b = 10 and a + b = 2x
    For the second frame a = x + 5 and b = x − 5, so a − b = 10 and a + b = 2x.
  5. 5.The area is (a − b)(a + b) = 10 × 2x = 20x.

    103 mm97 mmholex + 5x − 5hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2= 10 × 2x = 20x
    103 mm97 mmholex + 5x − 5hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2= 10 × 2x = 20x
    The area is (a − b)(a + b) = 10 × 2x = 20x.
  6. 6.(b) The area is 20x cm2, which is 20 × 12 = 240 cm2 when x = 12. Check: the two sides are 17 cm and 7 cm, and 172 − 72 = 289 − 49 = 240.

    103 mm97 mmholex + 5 = 17x − 5 = 7hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2= 20xx = 12: 20 × 12 = 240 cm2
    103 mm97 mmholex + 5 = 17x − 5 = 7hole1032− 972= 6 × 200 = 1200(x + 5)2− (x − 5)2= 20xx = 12: 20 × 12 = 240 cm2
    (b) The area is 20x cm2, which is 240 cm2 when x = 12.

Answer: (a) 1200 mm2; (b) 20x cm2, which is 240 cm2 when x = 12

Common mistakes

  • Working out (103 − 97)2 = 36. A difference of two squares is not the square of the difference: a2 − b2 = (a − b)(a + b), and the factor a + b has been left out.
  • Writing (x + 5) − (x − 5) as 0. Subtracting −5 adds 5, so (x + 5) − (x − 5) = x + 5 − x + 5 = 10.

More algebraic expressions problems, worked step by step →

Practice Algebraic Identities in the app