Math Core

Lesson 4.1 · Expressions

Combining like terms

Suppose a store receipt lists "3 notebooks, 2 pens, 4 notebooks, 5 pens." You'd naturally shorten that to "7 notebooks, 7 pens." Combining like terms does the same thing for expressions: it groups matching pieces so the expression is shorter and easier to use.

Terms, coefficients and constants

An expression like 5x−3+2x5x - 3 + 2x is built from terms, the pieces joined by ++ or −- signs. Here the terms are 5x5x, −3-3 and 2x2x.

  • The number multiplied by a variable is its coefficient. In 5x5x the coefficient is 55. In xx the coefficient is 11, and in −x-x it is −1-1.
  • A term with no variable, like −3-3, is a constant.

Each term owns the sign in front of it. In 8−6y8 - 6y, the terms are 88 and −6y-6y, so the coefficient of yy is −6-6, not 66.

Definition

Like terms

Like terms have exactly the same variable part. Only their coefficients can be different. All constants are like terms with each other.

like termsnot like termswhy not
4a4a and −9a-9a4a4a and 4b4bdifferent variables
12m\tfrac{1}{2}m and 3m3m3m3m and 33one has no variable
77 and −2.5-2.52xy2xy and 2x2x2x2x has no yy

Why you add the coefficients

Think of xx as a mystery box. Then 5x5x means 55 boxes and 2x2x means 22 more boxes. Together that's 77 boxes: 5x+2x=7x5x + 2x = 7x. The distributive property says the same thing:

5x+2x=(5+2)x=7x.5x + 2x = (5 + 2)x = 7x.

But 5x+2y5x + 2y is 55 of one thing and 22 of something different. You can't shorten it, just like 55 notebooks and 22 pens don't make 77 of anything.

Combining like terms

To combine like terms, add their coefficients and keep the variable part the same. Terms that aren't alike stay separate.

Step by step

  1. Find each group of like terms. Bring the sign in front of each term along with it.
  2. Rearrange so like terms sit next to each other. (Addition can be done in any order, as long as each term keeps its sign.)
  3. Add the coefficients in each group.
  4. Write the variable terms first and the constant last.

Worked example: Two groups

Simplify 6x+5−2x−86x + 5 - 2x - 8.

6x+5−2x−8=6x−2x+5−8group like terms=(6−2)x+(5−8)add coefficients=4x−3\begin{aligned} 6x + 5 - 2x - 8 &= 6x - 2x + 5 - 8 && \text{group like terms} \\ &= (6 - 2)x + (5 - 8) && \text{add coefficients} \\ &= 4x - 3 \end{aligned}

Worked example: Negative coefficients and a hidden 1

Simplify −3n+7−n+4n−10-3n + 7 - n + 4n - 10.

The nn-terms are −3n-3n, −n-n (coefficient −1-1) and 4n4n. The constants are 77 and −10-10.

(−3−1+4)n+(7−10)=0n−3=−3.(-3 - 1 + 4)n + (7 - 10) = 0n - 3 = -3.

The nn-terms cancel completely, so the whole expression equals −3-3 no matter what nn is.

Fractions and decimals

Rational coefficients work exactly the same way. You just use your fraction and decimal skills to add them.

Worked example: Rational coefficients

Simplify 12y+3+14y−1.5\dfrac{1}{2}y + 3 + \dfrac{1}{4}y - 1.5.

Add the yy-coefficients with a common denominator: 12+14=24+14=34\dfrac{1}{2} + \dfrac{1}{4} = \dfrac{2}{4} + \dfrac{1}{4} = \dfrac{3}{4}.

Add the constants: 3−1.5=1.53 - 1.5 = 1.5.

12y+3+14y−1.5=34y+1.5\frac{1}{2}y + 3 + \frac{1}{4}y - 1.5 = \frac{3}{4}y + 1.5

Common mistake

Watch out for these mistakes:

  • Combining unlike terms. 4x+34x + 3 is already simplified. It is not 7x7x.
  • Dropping a sign. In 10−3x+x10 - 3x + x, the xx-terms are −3x-3x and +x+x, which make −2x-2x. The answer is 10−2x10 - 2x, not 10−4x10 - 4x.
  • Writing x+x=x2x + x = x^2. Adding two xx's gives 2x2x.

Adding and subtracting expressions

To add two expressions, drop the parentheses and combine. To subtract an expression, subtract every term in it. That means each sign inside the parentheses flips.

Worked example: Subtracting an expression

Simplify (5a+4)−(2a−6)(5a + 4) - (2a - 6).

Subtracting 2a2a gives −2a-2a. Subtracting −6-6 is the same as adding 66.

(5a+4)−(2a−6)=5a+4−2a+6=(5a−2a)+(4+6)=3a+10\begin{aligned} (5a + 4) - (2a - 6) &= 5a + 4 - 2a + 6 \\ &= (5a - 2a) + (4 + 6) \\ &= 3a + 10 \end{aligned}

Tip

Check your work by plugging in a number. Try a=1a = 1 in the last example. Original: (5+4)−(2−6)=9−(−4)=13(5 + 4) - (2 - 6) = 9 - (-4) = 13. Simplified: 3+10=133 + 10 = 13. They match.

Practice

Practice 1

Which pair are like terms?

Practice 2

In the expression 9−7m+29 - 7m + 2, what is the coefficient of mm?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Simplify 8x+3−5x+68x + 3 - 5x + 6.

Practice 4

Simplify −4b+2−b−9-4b + 2 - b - 9.

Practice 5

After simplifying 13x+4+12x\dfrac{1}{3}x + 4 + \dfrac{1}{2}x, what is the coefficient of xx?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Simplify 2.5t−1.2+0.5t+32.5t - 1.2 + 0.5t + 3.

Practice 7

Simplify (7y−2)−(3y−5)(7y - 2) - (3y - 5).

Practice 8

A triangle has sides of length x+4x + 4, 2x−12x - 1 and 3x+43x + 4 centimeters. Its perimeter simplifies to 6x+c6x + c. What is cc?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.