Lesson 3

Collecting like terms

Theory and examples

Collecting like terms is a fundamental skill in mathematics that lets us simplify expressions, from basic algebra all the way to advanced topics like differential equations.

What is a like term?

Like terms are terms that have identical variable parts (the same letters raised to the same powers) and differ only in their coefficients. In plain English: same variables, same powers.

Key idea

Terms are like terms when their variable parts match exactly — same letters, same powers. Only the coefficient may differ.

Identifying like terms

The coloured terms below share the same variable part, so they are like terms.

Example 1

3x+5x−2y\textcolor{#2563eb}{3x} + \textcolor{#2563eb}{5x} - 2y

The blue terms are like terms because both have xx.

Example 2

4x2−9x2+3x\textcolor{#2563eb}{4x^2} - \textcolor{#2563eb}{9x^2} + 3x

The blue terms are like terms because both have x2x^2.

Example 3

5ab+2ba−a\textcolor{#2563eb}{5ab} + \textcolor{#2563eb}{2ba} - a

The blue terms are like terms because ab=baab = ba.

Not like terms

3x and 3x25a and 5b3x \text{ and } 3x^2 \qquad 5a \text{ and } 5b

The variables or the powers are different, so these cannot be combined.

Combining like terms

The process is simple: add or subtract the coefficients of the like terms and keep the variable part the same.

Worked examples

Example 1

3x+5x=8x\textcolor{#2563eb}{3x} + \textcolor{#2563eb}{5x} = 8x

Add the coefficients: 3+5=83 + 5 = 8.

Example 2

4x2−9x2=−5x2\textcolor{#2563eb}{4x^2} - \textcolor{#2563eb}{9x^2} = -5x^2

Subtract the coefficients: 4−9=−54 - 9 = -5.

Example 3

5ab+2ba=7ab\textcolor{#2563eb}{5ab} + \textcolor{#2563eb}{2ba} = 7ab

These are like terms because ab=baab = ba, so add: 5+2=75 + 2 = 7.

Example 4

3x+2y+5x−y=8x+y\textcolor{#2563eb}{3x} + \textcolor{#7c3aed}{2y} + \textcolor{#2563eb}{5x} - \textcolor{#7c3aed}{y} = 8x + y

Blue xx-terms: 3x+5x=8x3x + 5x = 8x. Violet yy-terms: 2y−y=y2y - y = y.

Key tip

Only combine terms that have exactly the same variables and powers.

Common mistakes

Example 1 (incorrect)

3x+4y≠7xy3x + 4y \neq 7xy

✗ Different variables (xx and yy), so they cannot be combined. ✓ Correct: leave it as 3x+4y3x + 4y.

Example 2 (incorrect)

5x2+2x≠7x25x^2 + 2x \neq 7x^2

✗ Different powers (x2x^2 vs xx). ✓ Correct: leave it as 5x2+2x5x^2 + 2x.

Worked walkthrough

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
What makes two algebraic terms like terms?
Question 2
Which term is like 7x27x^2?
Question 3
True or false: 5ab5ab and 2ba2ba are like terms.
Question 4
Select all statements that are correct.

Select all that are correct.