Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 37 · Getting Started

Like Terms and Simplifying Expressions

Learn what like terms are, how to combine them, and how to simplify algebraic expressions step by step, with worked examples and a runnable simplifier.

You can add 3 apples and 4 apples to get 7 apples. You cannot meaningfully add 3 apples and 4 oranges into one pile of "7 appleoranges". Algebra works the same way. Terms that have the same kind of "thing" can be combined, and terms that differ cannot. Combining them makes an expression shorter and easier to work with. This is called simplifying.

What are like terms?

Like terms have exactly the same variable part: the same letters with the same exponents. Only the coefficients may differ.

Terms Like? Why
3x and 8x Yes Both have x
5y² and -2y² Yes Both have y²
4ab and ab Yes Both have ab
3x and 3x² No x and x² are different
2a and 2b No Different letters
7 and -1 Yes Constants are like terms

Combining like terms

To combine like terms, add or subtract their coefficients and keep the variable part unchanged. Why does this work? 3x + 8x means x + x + x plus eight more xs, which is eleven xs: 11x.

Example 1. 3x + 8x = 11x.

Example 2. 5y² - 2y² = 3y².

Example 3. 7a - a + 4 = 6a + 4. Remember a is 1a. The 4 cannot combine with 6a.

Example 4. Simplify 4x + 3y - 2x + 5y - 9.

Group the like terms (keep the sign in front of each term):

  • x terms: 4x - 2x = 2x
  • y terms: 3y + 5y = 8y
  • constants: -9

Result: 2x + 8y - 9.

When you rearrange terms, take the sign with the term. In 4x + 3y - 2x, the term is -2x, so it moves along with its minus sign.

Simplifying with several steps

Example 5. 6m + 2 - 4m² + 3m - 5 + m².

  • m² terms: -4m² + m² = -3m²
  • m terms: 6m + 3m = 9m
  • constants: 2 - 5 = -3

It is standard to write terms in order of decreasing power: -3m² + 9m - 3.

Python A like-terms combiner

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The code is a stand-in for what you do by hand: collect the terms with the same variable part and add the numbers in front.

Check with a computer algebra system

SymPy is a Python library that does symbolic algebra. It can simplify expressions and confirm your answer. Comparing both sides at several values of the variable is also a good check.

Python Check a simplification

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Simplifying products of terms

Multiplying terms is different from adding them. Multiply the coefficients and combine the variables.

  • 3x · 4x = 12x² (because x · x = x²)
  • 2a · 5b = 10ab
  • (-3y)(2y) = -6y²

Adding 3x + 4x gives 7x, but multiplying 3x · 4x gives 12x². Keep these two ideas apart.

Common mistakes

  1. Combining unlike terms: 3x + 2 is not 5x. They stay as 3x + 2.
  2. Mixing x and x²: 3x + 4x² cannot be combined.
  3. Losing a sign: in 5 - 2x - 3x, the second x term is -3x, so the answer is 5 - 5x.
  4. Forgetting the 1: x + x = 2x, and 5a - a = 4a.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which pair are like terms?

    Like terms have the same variable part. Both 5ab and -2ab have ab.
  2. 2. Simplify 9n - 4n + 2.

    9n - 4n = 5n, and the constant 2 cannot be combined with it.
  3. 3. Simplify 3x + 2y - x + 6y.

    x terms: 3x - x = 2x. y terms: 2y + 6y = 8y.
  4. 4. What is 3x · 4x?

    Multiply coefficients (3 × 4 = 12) and variables (x · x = x²).

Summary

  • Like terms have identical variable parts; only coefficients can differ.
  • To combine them, add or subtract the coefficients and keep the variable part.
  • Unlike terms (3x and 3x², or x and y) stay separate.
  • Multiplication of terms multiplies coefficients and combines variables; it is not the same as adding.

Next: The Distributive Property