Home›GCSE & FSMQ›Maths›Algebra›Collecting like terms

Collecting like terms

Simplifying expressions. Topic 2 of 27 in Algebra.

Foundation & Higher This topic appears on both Foundation and Higher papers.

Video coming soon The written summary and downloads below are complete and ready to use.

Collecting like terms is the first way to simplify an expression. You add and subtract the terms that are the same kind, so a long expression becomes a short one. This lesson covers:

  • what makes two terms like terms, and when they are not
  • the method: spot, group, combine
  • expressions with two or more kinds of term, and numbers on their own
  • powers, and terms with more than one letter, like x2y
  • fractions and decimals in front of the letters
  • the other ways an exam asks for it: perimeters, missing terms, “show that” and algebra pyramids

Before you start, make sure you know what a term, a coefficient and a constant are (that is lesson 1, Notation and substitution), and how to add and subtract negative numbers.

In the examples, like terms share a colour and an underline, so you can see each group even without the colour: one group another group a third group numbers on their own

1. What are like terms?

Key idea Like terms have exactly the same letters, with the same powers. Only the number in front can be different.
  • 3x, 8x, −x and 12x are all x terms, so they are like terms.
  • Numbers on their own, like 6 and −2, are like terms with each other. They are the constants.
  • The order of the letters does not matter: ab and ba both mean a × b. We write it as ab.
The two termsLike terms?Why
3x and 8xYesThe same letter, x.
5y and yYesy means 1y. The 1 is not written.
4a and 4bNoDifferent letters. Having the same number in front does not matter.
x and x2Nox2 means x × x. The powers are different.
2ab and 7baYesba is the same as ab.
3x2y and 5xy2Nox2y is x × x × y, but xy2 is x × y × y.
6 and −2YesBoth are numbers on their own.
4x and 4NoOne has a letter and the other does not.
Watch out x and x2 are not like terms, even though they both use x. Check the powers as well as the letters.

Example 1: sort the terms into groups

Here are some terms: 5p, 3q, p2, −2p, 7, pq, 4qp, q, −1. Put the like terms together.

GroupTermsWhy
p terms5p, −2pThe sign stays with its term.
q terms3q, qq means 1q.
p2 termsp2It has no partner: p2 is not a p term.
pq termspq, 4qpqp is the same as pq.
numbers7, −1The constants.

2. The method: spot, group, combine

Key idea To collect like terms, add or subtract the numbers in front. The letters stay the same.

Why it works: 3x means three lots of x, and 2x means two lots of x. Together that is five lots of x. Each tile below is one x.

So 3x + 2x = 5x. The x does not change, because the things being counted have not changed.

Method

  1. Spot the like terms
    Each term takes the sign in front of it. In 5x − 3x, the second term is −3x.
  2. Group them together
    Move each term with its sign. You can add terms in any order.
  3. Combine each group
    Add or subtract the numbers in front. Keep the letters and powers exactly as they are.

Example 2: adding

Simplify 3x + 2x + 4x.

  1. Spot the like terms
    3x + 2x + 4x
    They are all the same kind of term.
  2. Combine each group: add or subtract the numbers in front
    3x + 2x + 4x = 9x
Answer9x

3 + 2 + 4 = 9, so there are 9 lots of x.

Example 3: adding and subtracting

Simplify 6a − 3a + 4a.

  1. Spot the like terms
    6a − 3a + 4a
    They are all the same kind of term.
  2. Combine each group: add or subtract the numbers in front
    6a − 3a + 4a = 7a
Answer7a

Work from left to right: 6 − 3 = 3, then 3 + 4 = 7.

Example 4: a term with no number in front

Simplify 5m + m − 2m.

  1. Spot the like terms
    5m + m − 2m
    They are all m terms. m on its own means 1m.
  2. Combine each group: add or subtract the numbers in front
    5m + m − 2m = 4m
Answer4m

m means 1m, so the numbers are 5 + 1 − 2 = 4.

Example 5: when the answer is negative, or zero

Simplify (a) 4p − 7p    (b) 3y − 5y + 2y.

QuestionNumbers in frontAnswer
(a) 4p − 7p4 − 7 = −3−3p
(b) 3y − 5y + 2y3 − 5 + 2 = 00

−3p is a complete answer: keep the minus sign in front. When the terms cancel out, write 0, not 0y.

3. Two or more kinds of term

Key idea Collect each group on its own. Different groups stay separate, so 9a + 7b is already as simple as it can be.

Example 6: two letters

Simplify 7a + 4b + 2a + 3b.

  1. Spot the like terms
    7a + 4b + 2a + 3b
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    7a + 2a + 4b + 3b
  3. Combine each group: add or subtract the numbers in front
    7a + 2a = 9a
    4b + 3b = 7b
Answer9a + 7b

Example 7: two letters, with subtraction

Simplify 5x + 4y − 3x + 5y.

  1. Spot the like terms
    5x + 4y − 3x + 5y
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    5x − 3x + 4y + 5y
  3. Combine each group: add or subtract the numbers in front
    5x − 3x = 2x
    4y + 5y = 9y
Answer2x + 9y
Watch out The sign in front belongs to the term. In 5x + 4y − 3x + 5y it is −3x that moves next to 5x, minus sign and all.

Example 8: numbers on their own as well

Simplify 2c − 5d + 4 + 3c + 7d + 2.

  1. Spot the like terms
    2c − 5d + 4 + 3c + 7d + 2
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    2c + 3c − 5d + 7d + 4 + 2
  3. Combine each group: add or subtract the numbers in front
    2c + 3c = 5c
    −5d + 7d = 2d
    4 + 2 = 6
Answer5c + 2d + 6

The numbers on their own are a group too. They usually go last.

Example 9: starting with a negative term

Simplify −6x + 5y + 4 + 2x − 3y − 7.

  1. Spot the like terms
    −6x + 5y + 4 + 2x − 3y − 7
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    −6x + 2x + 5y − 3y + 4 − 7
    The first term is −6x: the minus sign belongs to it.
  3. Combine each group: add or subtract the numbers in front
    −6x + 2x = −4x
    5y − 3y = 2y
    4 − 7 = −3
Answer−4x + 2y − 3

Example 10: a group that cancels out

Simplify 3a − 2b + 5 − 3a + b.

  1. Spot the like terms
    3a − 2b + 5 − 3a + b
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    3a − 3a − 2b + b + 5
  3. Combine each group: add or subtract the numbers in front
    3a − 3a = 0
    −2b + b = −b
    5 has nothing to collect with
Answer−b + 5

The a terms make 0, so they disappear. −b + 5 can also be written 5 − b. Both are right.

Watch out 9a + 7b is not 16ab. Unlike terms can’t be added together. Test it with numbers: if a = 1 and b = 10, then 9a + 7b = 9 + 70 = 79, but 16ab = 160.

4. Powers, and terms with more than one letter

Key idea Check the letters and the powers. x2, x and x3 are three different groups. Adding never changes the power: 3x2 + 2x2 = 5x2.

Example 11: squares and plain x terms

Simplify 8x2 + 5x − 4x2 + 7x.

  1. Spot the like terms
    8x2 + 5x − 4x2 + 7x
    x2 terms and x terms are different groups.
  2. Group them, each with the sign in front of it
    8x2 − 4x2 + 5x + 7x
  3. Combine each group: add or subtract the numbers in front
    8x2 − 4x2 = 4x2
    5x + 7x = 12x
Answer4x2 + 12x

Example 12: x2y terms and x2 terms

Simplify 6x2y − 2x2 + 4x2y − 5x2.

  1. Spot the like terms
    6x2y − 2x2 + 4x2y − 5x2
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    6x2y + 4x2y − 2x2 − 5x2
  3. Combine each group: add or subtract the numbers in front
    6x2y + 4x2y = 10x2y
    −2x2 − 5x2 = −7x2
Answer10x2y − 7x2

x2y has a y in it and x2 does not, so they are different groups.

Example 13: the letters in a different order

Simplify 3ab + 5ba − 2ab.

  1. Spot the like terms
    3ab + 5ba − 2ab
    ab and ba are like terms.
  2. Combine each group: add or subtract the numbers in front
    3ab + 5ba − 2ab = 6ab
Answer6ab

ba means b × a, which is the same as a × b. Write the answer with the letters in alphabetical order.

Example 14: harder: x2y and xy2

Simplify 4xy2 + 2x2y − xy2 + 3x2y.

  1. Spot the like terms
    4xy2 + 2x2y − xy2 + 3x2y
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    4xy2 − xy2 + 2x2y + 3x2y
  3. Combine each group: add or subtract the numbers in front
    4xy2 − xy2 = 3xy2
    2x2y + 3x2y = 5x2y
Answer3xy2 + 5x2y

In xy2 the y is squared. In x2y the x is squared. They are not like terms.

Example 15: a power that cancels out

Simplify 5y2 − 3y + 2 − 5y2 + 8y.

  1. Spot the like terms
    5y2 − 3y + 2 − 5y2 + 8y
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    5y2 − 5y2 − 3y + 8y + 2
  3. Combine each group: add or subtract the numbers in front
    5y2 − 5y2 = 0
    −3y + 8y = 5y
    2 has nothing to collect with
Answer5y + 2
Watch out 3x + 2x = 5x, not 5x2. You are counting x’s, not multiplying them. And 4x2 + 3x stays as it is: it is not 7x2 or 7x3.

This lesson is about adding and subtracting terms. Multiplying terms, such as 3a × 4b or x2 × x3, follows different rules and is not covered here.

5. Fractions and decimals in front

Key idea The method is the same. Add and subtract the numbers in front, using what you know about decimals and fractions.

Example 16: decimals

Simplify 2.5a + 1.3a − 0.8a.

  1. Spot the like terms
    2.5a + 1.3a − 0.8a
    They are all the same kind of term.
  2. Combine each group: add or subtract the numbers in front
    2.5a + 1.3a − 0.8a = 3a
Answer3a

Example 17: decimals and numbers on their own

Simplify 1.2x + 3 − 0.5x − 4.5.

  1. Spot the like terms
    1.2x + 3 − 0.5x − 4.5
    The like terms share a colour.
  2. Group them, each with the sign in front of it
    1.2x − 0.5x + 3 − 4.5
  3. Combine each group: add or subtract the numbers in front
    1.2x − 0.5x = 0.7x
    3 − 4.5 = −1.5
Answer0.7x − 1.5

Example 18: fractions

Simplify 12x + 14x.

  1. Spot the like terms
    12x + 14x
    They are all the same kind of term.
  2. Combine each group: add or subtract the numbers in front
    12x + 14x = 34x
Answer34x

12 = 24, so 24 + 14 = 34.

Example 19: a letter over a number

Simplify x3 + x3 + y − y4.

  1. Spot the like terms
    x3 + x3 + y − y4
    The like terms share a colour.
  2. Combine each group: add or subtract the numbers in front
    x3 + x3 = 2x3
    y − y4 = 3y4
Answer2x3 + 3y4

x3 is the same as 13x, so the numbers are 13 + 13 = 23. y is 1y, and 1 − 14 = 34. You can also write the answer as 23x + 34y.

Watch out Keep fractions as fractions. Write 2x3, not 0.67x: a rounded decimal is not exact.

6. The other ways an exam asks for it

Key idea A question might not say “simplify”. A perimeter, a missing term, “show that” and an algebra pyramid all ask you to collect like terms.

Example 20: the perimeter of a rectangle

A rectangle is 3x + 2 cm long and x − 1 cm wide. Write an expression for its perimeter. Give your answer in its simplest form.

3x + 2 x − 1
  1. A rectangle has two lengths and two widths. Add all four sides
    3x + 2 + x − 1 + 3x + 2 + x − 1
  2. Collect like terms
    3x + x + 3x + x = 8x
    2 − 1 + 2 − 1 = 2
Answer8x + 2 cm

Example 21: sides that are not labelled

This pentagon is symmetrical. Write an expression for its perimeter, in its simplest form. The lengths are in centimetres.

4y y + 1 2y + 3
  1. Use the symmetry: the two walls match, and so do the two sloping edges
    Five sides: the base, two walls of y + 1, and two edges of 2y + 3.
  2. Add all five sides
    4y + y + 1 + y + 1 + 2y + 3 + 2y + 3
  3. Collect like terms
    4y + y + y + 2y + 2y = 10y
    1 + 1 + 3 + 3 = 8
Answer10y + 8 cm

Example 22: find the missing term

Fill in the box to make each one true.

QuestionThinkAnswer
4a + □ = 9a4 and what make 9? 55a
7y − □ = 2y7 take away what leaves 2? 55y
6a + □ − 2b = 4a − 2bThe b terms already match. 6 and what make 4? −2−2a

Work one group at a time. The missing term can be negative.

Example 23: show that

Show that 7n + 3 − 2n − 8 + n ≡ 6n − 5.

  1. Work on the left-hand side only
    7n + 3 − 2n − 8 + n
  2. Collect like terms, and write every step
    7n − 2n + n = 6n
    3 − 8 = −5
  3. Finish by saying it matches
    7n + 3 − 2n − 8 + n = 6n − 5, which is the right-hand side.

The sign ≡ means the two sides are equal for every value of n. That makes it an identity (lesson 1). In a “show that” question the answer is given, so the marks are for the working.

Example 24: an algebra pyramid

Each brick is the sum of the two bricks underneath it. Fill in the pyramid.

?
??
2xx + 34x − 1
  • Middle left: 2x + x + 3 = 3x + 3
  • Middle right: x + 3 + 4x − 1 = 5x + 2
  • Top: 3x + 3 + 5x + 2 = 8x + 5
8x + 5
3x + 35x + 2
2xx + 34x − 1

If a brick lower down is missing, work out what must be added, one group at a time. For example, if the top is 8x + 5 and one middle brick is 3x + 3, the other is 5x + 2: 3x and 5x make 8x, and 3 and 2 make 5.

Example 25: check your answer with a number

Mo simplifies 5x + 3 − 2x + 1 and gets 3x + 4. Check it with x = 2.

  • The question: 5 × 2 + 3 − 2 × 2 + 1 = 10 + 3 − 4 + 1 = 10
  • Mo’s answer: 3 × 2 + 4 = 6 + 4 = 10

The two match. If they had come out different, the answer would be wrong.

A matching check is good evidence, not a proof. Use a value like 2 or 3, not 0 or 1, because 0 and 1 can hide mistakes.

The mistakes that cost marks

  1. Adding unlike terms. 3a + 2b written as 5ab. different letters stay separate: 3a + 2b is already simplified.
  2. Changing the power when adding. 3x + 2x written as 5x2. add the numbers and keep the letters: 5x.
  3. Joining x2 terms and x terms. 4x2 + 3x written as 7x2 or 7x3. different powers are different groups, so leave it as 4x2 + 3x.
  4. Joining a number to a letter term. 4x + 3 written as 7x. a number on its own is a different group: 4x + 3.
  5. Leaving a sign behind. 5x + 2y − 3x, collected as 5x + 3x = 8x. the minus sign moves with its term: 5x − 3x = 2x.
  6. Forgetting the hidden 1. 6y − y written as 6 or as 6y. y means 1y, so 6y − y = 5y.
  7. Writing 1x or 0x. write x, not 1x. If a group adds up to 0, leave it out.
  8. Treating ab and ba as different. they are like terms. Write both as ab and collect them.
  9. Rounding a fraction. x3 + x3 written as 0.67x. keep it exact: 2x3.
  10. Missing sides in a perimeter. Adding only the two labelled sides of a rectangle. count the sides first. Equal sides and symmetry tell you the lengths that are not labelled.

Quick checklist

Tick each one when you can do it without looking back.

Stuck on this topic?

These notes are free and always will be. If your child needs someone working through it with them, I run small GCSE maths groups of no more than 5, arranged by ability. Founding member price £35 a lesson, held for the first year, and the first lesson is a free trial.

Book a free trial →