Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 38 ยท Variables and Simple Equations

Like Terms and Simplifying Expressions

Learn to spot like terms, combine them, expand brackets with the distributive property, and simplify algebraic expressions, with a symbolic checker.

Long expressions are hard to work with. Simplifying means rewriting an expression in a shorter, equivalent form: it has the same value for every number you substitute. The key skill is combining like terms.

Like terms

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

  • 3x and 5x are like terms (both x).
  • 2yยฒ and โˆ’7yยฒ are like terms (both yยฒ).
  • 4 and โˆ’9 are like terms (constants).
  • 3x and 3xยฒ are not like (different exponents).
  • 2a and 2b are not like (different variables).

Why can we add like terms? 3x + 5x means 3 of something plus 5 of the same thing: 8 of them. Think of 3 apples + 5 apples = 8 apples. But 3 apples + 5 pears cannot be joined into one kind of fruit.

Combining like terms

Add or subtract the coefficients and keep the variable part.

  • 3x + 5x = 8x
  • 9y โˆ’ 4y = 5y
  • x + 6x = 7x (remember x is 1x)
  • 2a + 7 โˆ’ 5a + 3 = (2a โˆ’ 5a) + (7 + 3) = โˆ’3a + 10

Notice the sign of each term travels with it: in โˆ’5a, the minus belongs to the 5a term.

Python Combine like terms by collecting coefficients

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 dictionary stores one total per kind of term, which is exactly what you do on paper.

The distributive property for brackets

To remove brackets, multiply every term inside by the number outside:

4(x + 3) = 4x + 12

โˆ’2(3y โˆ’ 5) = โˆ’6y + 10 (negative times negative is positive).

A bracket preceded only by a minus sign changes the sign of every term: โˆ’(a โˆ’ 4) = โˆ’a + 4, and 7 โˆ’ (2x + 1) = 7 โˆ’ 2x โˆ’ 1 = 6 โˆ’ 2x.

The most common error is multiplying only the first term: 3(x + 4) is 3x + 12, not 3x + 4.

Simplifying step by step

Example: simplify 5(2x โˆ’ 3) โˆ’ 4x + 8.

  1. Expand: 10x โˆ’ 15 โˆ’ 4x + 8.
  2. Collect x-terms: 10x โˆ’ 4x = 6x.
  3. Collect constants: โˆ’15 + 8 = โˆ’7.
  4. Result: 6x โˆ’ 7.

Example: simplify 3(a + 2) + 2(4 โˆ’ a).

  1. Expand: 3a + 6 + 8 โˆ’ 2a.
  2. Collect: (3a โˆ’ 2a) + (6 + 8) = a + 14.

Check by substitution

Two expressions are equivalent when they give the same result for any value. To check 5(2x โˆ’ 3) โˆ’ 4x + 8 = 6x โˆ’ 7, try x = 2: left 5(1) โˆ’ 8 + 8 = 5, right 12 โˆ’ 7 = 5. Both equal. Try x = โˆ’1: left 5(โˆ’5) + 4 + 8 = โˆ’13, right โˆ’6 โˆ’ 7 = โˆ’13. Good.

Passing a few tests does not prove equivalence, but failing one proves they differ. The library sympy does symbolic algebra and can expand and simplify expressions exactly, which is handy for checking your work.

Python Simplify with sympy and test by substitution

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.

Python Catch a wrong 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.

(sympy loads automatically on the site the first time you press Run.)

Perimeter example

A triangle has sides x + 2, 2x โˆ’ 1 and x + 5. Its perimeter is the sum:

(x + 2) + (2x โˆ’ 1) + (x + 5) = (x + 2x + x) + (2 โˆ’ 1 + 5) = 4x + 6

If x = 3 cm, the sides are 5 cm, 5 cm and 8 cm and the perimeter is 4(3) + 6 = 18 cm. Check: 5 + 5 + 8 = 18.

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. 4xยฒ and 9xยฒ both have xยฒ.
  2. 2. Simplify 7a โˆ’ 3 + 2a + 10.

    a-terms: 7a + 2a = 9a. Constants: โˆ’3 + 10 = 7.
  3. 3. Expand โˆ’3(x โˆ’ 4).

    โˆ’3 times x is โˆ’3x, and โˆ’3 times โˆ’4 is +12.
  4. 4. Simplify 2(x + 5) โˆ’ (x โˆ’ 1).

    Expand: 2x + 10 โˆ’ x + 1 = x + 11. The minus in front of the second bracket changes both signs.

Summary

  • Like terms have the same variable part; only like terms can be combined.
  • Combine by adding the coefficients and keeping the variable part.
  • Use the distributive property to expand brackets, and mind signs, especially with a minus in front.
  • Check by substituting numbers; one disagreement proves two expressions differ.

Next: One-Step Equations