MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Lower Secondary
MathematicsLower Secondary

Simplifying expressions — collecting like terms

L2.1 — Algebraic ExpressionsLecture 2 of 4~2780 words

A long expression with a short answer

The last lecture ended with Ama's family. Ama is years old. Her brother is 3 years younger, and her mother is three times her age. The total of their ages was written as . The lecture promised that this expression could be written much more shortly. Here is how.

Count the 's. There is one for Ama, one more inside her brother's age, and three more in her mother's age. That is five 's altogether. The only other part is the 3 that is taken away. So the total is .

Check with Ama at 12. The long form gave 57. The short form gives . The same answer, with one multiplication instead of four steps.

So counting letters seems to work. Now look at a student who tries the same idea on . She counts 3 and 2, gets 5, and writes . Then she checks with . The left side is . The right side is . It matches.

Her answer is wrong. Try . Then , but . So some terms can be counted together, and some cannot. A check can say "yes" to a wrong answer. This lecture finds the exact rule, the reason behind it, and a check you can trust.

Why three n's and two n's make five n's

Go back to the box picture from the last lecture. A letter is a closed box with a secret number inside. means three boxes, each holding the same number . means two more boxes, holding that same number.

Every box holds the same secret number n n n n + n n = n n n n n 3n + 2n = 5n: five copies of one number A box m may hold a different number n n n + m m no single count stays 3n + 2m
Top: three boxes and two boxes, all holding the same number , are five boxes. Bottom: a box may hold a different number from a box , so the two kinds cannot be counted as one.

Put them together and you have five boxes, all holding the same number. Five copies of a number is 5 times that number. So , and this is true whatever is inside the boxes.

You already do this with numbers. Three 7s and two 7s make five 7s: , and . The letter only says "the same number every time", without saying which number.

Now look at the bottom row of the figure. The boxes marked are a different letter, so they may hold a different number. Three 's and two 's are not five of anything. Try and . Then . That is neither nor . So stays as it is. It is already as short as it can be.

Why x and x² cannot be counted together

This is the hard part of the lecture. Spend time here. The two terms and use the same letter. So why can they not be collected?

The reason is that and are different numbers. When , . When , . The letter is the same, but the numbers it makes are not. "Three of one number and two of a different number" has no single count, just like .

A picture makes this clear. Think of the three kinds of term as tiles. A plain number is a small square, 1 by 1. A term in is a strip, 1 wide and long. A term in is a large square, by .

Three different tiles 1 1 x x x x x² x strips fill x² (here about 3.2 of them) When x = 1: all three tiles are the same size
Area tiles. A unit square has area 1, a strip has area and a large square has area . It takes exactly strips to cover one large square, so the number changes when changes. When , all three tiles are the same size.

How many strips make one large square? Exactly of them. When , it takes 3.2 strips. When , it takes 10. There is no fixed number of strips in a square. So there is no fixed way to turn strips into squares, and has to stay as two terms.

Now look at the bottom row of the figure. When , the strip and the large square are both 1 by 1. All three tiles are the same size, so for this one value, everything can be counted together. That is exactly why the student's check with said "yes". The value 1 hides the difference between , and , because all three are 1.

That is it. That is the whole idea. Two terms can be collected only when they are copies of the same number, for every value of the letters. A different letter, or the same letter with a different index, makes a different number.

Like terms

Like terms have exactly the same letters, each with exactly the same index. Only their coefficients may differ. Constant terms (plain numbers) are like terms with each other.

Collecting like terms means adding their coefficients, with their signs. The letter part stays exactly as it was.

because . The does not change.

Two cases need care. First, and are like terms. means , and the order of multiplying does not matter: . So . We write the letters in alphabetical order, so that like terms are easy to spot.

Second, and look almost the same, but they are unlike. means . means . Try and : the first is 12, the second is 18. Different factors give different numbers.

Sort the cards below. Each pair of terms is either like or unlike. Read the reason on every card, even when you are right.

Sort — like terms or unlike terms?

Put each pair of terms in the right box. Can the two terms be collected into one term, or must they stay apart?

Each pair of terms is sorted with its reason.

PairLike or unlikeReason
and likeSame letter, same index.
and likeBoth are copies of .
and like means .
and like.
and likeBoth are constant terms.
and unlikeDifferent index.
and unlikeDifferent letters.
and unlikeDifferent factors.
and unlike has an extra factor .

What should you have seen? The coefficient never decides anything. and have the same coefficient and are unlike. and have different coefficients and are like. Only the letter part decides.

Signs travel with their terms

Real expressions mix several kinds of term. In , the terms and the terms are mixed together. To collect them, you move like terms next to each other.

Moving is allowed because numbers can be added in any order. But it only works if you remember the rule from the last lecture: each term keeps the sign in front of it. The terms here are , , and . Subtracting is the same as adding . So when moves, its minus sign moves with it.

If the minus sign were left behind, the would become , and the answer would be wrong. A term and its sign are one thing. They always travel together.

This also explains how to remove a bracket that is added, as in Ama's expression. Adding means adding a collection that contains and . Adding a collection adds every part of it. So , and the bracket can simply be dropped. A bracket with a minus sign or a number in front of it is different. The next lecture deals with it.

When the answer has several terms, any order is correct, because the value is the same. But one agreed order makes answers easy to compare. We write the highest power first, then lower powers, with letters in alphabetical order, and the constant term last. So we write , not .

Stop and think

Simplify . Is the answer , or ?

Show the answer

, because the coefficients give . Zero copies of a number is 0, whatever the number. So the expression is . Writing would be wrong: it means , which is 0, not . When a term collects to zero, it disappears.

A check you can trust

Every simplification can be checked by substituting numbers. Put the same values into the long expression and the short one. They must give the same answer, because they are meant to be equal for every value.

But the hook showed that a check can be fooled. A wrong answer can agree with the right one at a few special values. The explorer below shows four students' answers to the same question. Only one of them is correct.

Explore — checking a simplification with numbers

Four students simplified 4x² + 3x − x² + 5 − 2x + 1. Choose an answer, then change x with the slider, the − and + buttons or a preset. Look for a value of x that exposes a wrong answer.

Answer:

Presets:

x =

ExpressionValue

The table gives the value of the question and of each student's answer at three values of .

Expression
Question: 61020
(correct)61020
61124
61022
6816

At , all four answers agree with the question. At , the wrong answer still agrees. At , only the correct answer agrees.

What should you have seen? At , every answer agrees with the question, because every term with an becomes 0 and only the constants are left. At , the answer still agrees, because and are both 1. A value such as 2 or −3 exposes every wrong answer here.

So use the check in this way. If the values are different, the answer is certainly wrong. If they are the same, the answer is probably right, but only if you avoided 0 and 1. The real proof is the reasoning: each step collected copies of the same number. This is the lesson of the last lecture again. A check can suggest, and it can catch a mistake. Only a reason shows that something is true for every value.

Worked examples

Worked Example 1 — Two letters

Simplify .

The terms are and . Their coefficients give , so they collect to .

The terms are and . Their coefficients give , so they collect to .

Answer: . The and terms are unlike, so this is as short as it can be.

Check with and : , and . ✓

Worked Example 2 — Three kinds of term

Simplify .

terms: and . Remember that means . So , giving .

terms: and . So , giving , which is written .

Constants: .

Answer: , with the highest power first.

Check with : the question gives , and the answer gives . ✓

Worked Example 3 — Subtracting a negative term

Simplify .

First deal with . The negative numbers lectures showed that subtracting a negative number is the same as adding the positive number. is a number, so .

The expression is now .

terms: , giving . terms: , giving . Constant: .

Answer: .

Check with and : , and . ✓

Worked Example 4 — Terms with two letters

Simplify .

is the same as , so the terms are and : , giving .

The terms are and : , giving .

has the factors , and . No other term has exactly these factors, so it stays as it is.

Answer: . The term has three letter factors, so it comes first.

Check with and : , and . ✓

Worked Example 5 — The perimeter of a rectangle

A rectangle is centimetres long and centimetres wide. Write an expression for its perimeter.

The perimeter is the distance all the way round, so add the four sides:

Every bracket is added, so the brackets can be dropped: .

terms: , giving . Constants: .

Answer: the perimeter is centimetres.

Check with : the sides are 14 cm and 3 cm, so the perimeter is cm. The answer gives . ✓ The width must be positive, so must be greater than 1. The next lecture shows a quicker way to handle the two equal pairs of sides.

Trap 1 — Collecting x with x²

is not , and it is not or . and are different numbers, so the expression is already as short as it can be. Never check with : it makes , and all equal to 1.

Trap 2 — Leaving a sign behind

In , the terms are , and . The terms give , so the answer is . Reading the terms as and gives , which is wrong. At , the question gives 14, gives 14, but gives −16.

Trap 3 — Multiplying when you should add

. It is not or . The answer belongs to a different question: . Adding copies of keeps the letter part the same. Only multiplying letters together raises the index.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Simplify: (a) (b) (c) (d)

    Hint 1

    In each part, find the like terms and add their coefficients with their signs.

    Hint 2

    In (c), means . In (d), the terms collect to zero.

    Full answer

    (a) , so . (b) , so . (c) terms , constants , so . (d) , so the answer is . Check (c) with : , and . ✓

  2. Simplify . Check your answer with and .

    Hint 1

    There are three kinds of term: , and . Remember that .

    Hint 2

    : . : . : .

    Full answer

    terms: , giving . terms: , giving . terms: , giving . Answer: . Check with , : the question gives , and the answer gives . ✓

  3. Which of these can be simplified? Simplify the ones that can. (a) (b) (c) (d) (e)

    Hint 1

    Look only at the letter part of each term. Are the letters and their indices exactly the same?

    Hint 2

    Two of them can be simplified. Write as first.

    Full answer

    (a) No: different letters. (b) No: and have different indices. (c) Yes: , so . (d) Yes: , so . (e) No: is and is . Check (d) with , : , and . ✓

  4. Choose any three whole numbers in a row, such as 7, 8 and 9. Add them. Do it again with other numbers. What do you notice about the total and the middle number? Use algebra to show that it is always true.

    Hint 1

    7 + 8 + 9 = 24, and 24 = 3 × 8. Call the smallest number . What are the next two?

    Hint 2

    The numbers are , and . Collect their total. Then write down three copies of the middle number, and collect those too.

    Full answer

    The total is always 3 times the middle number. Proof: . Three copies of the middle number are . The two expressions are the same, so the total equals 3 times the middle number for every . Check with 20, 21, 22: the total is 63, and . ✓ The examples suggested the pattern; collecting like terms proved it.

The bigger idea

The rule of this lecture is very old. Around 820, in Baghdad, al-Khwarizmi wrote the book that gave algebra its name. He had no letters, so he wrote everything in words. But he sorted every quantity into three kinds: "numbers", "roots" and "squares". In today's writing, these are constants, and . He kept the three kinds apart, exactly as like terms are kept apart today.

The full title of his book names two steps, al-jabr and al-muqabala. Historians usually explain al-muqabala, "balancing", as removing equal amounts of the same kind from both sides of an equation. Five squares on one side and two squares on the other become three squares on one side. That is collecting like terms. So the step you learned today is one of the two steps in the name of the subject.

The same idea appears far outside algebra. A physicist adds lengths to lengths and times to times, never a length to a time. A shopkeeper adds dollars to dollars. Collecting like terms is the mathematical form of a simple rule: only things of the same kind can be counted together.

Key concepts in this lesson