Math Core

Lesson 1.6 · Foundations of Algebra

Combining like terms

An expression like 4x+7+2x−34x + 7 + 2x - 3 has four terms, but it describes something simpler. Combining like terms tidies an expression into its shortest form, which makes it easier to evaluate, compare and, in the next unit, solve.

What makes terms "like"

Definition

Like terms

Like terms have exactly the same variables raised to exactly the same powers. Only their coefficients may differ. All constant terms are like terms with each other.

like termswhynot like termswhy not
5x5x and −2x-2xboth xx5x5x and 5y5ydifferent variables
3a23a^2 and a2a^2both a2a^23a23a^2 and 3a3adifferent powers
4xy4xy and −9yx-9yxyx=xyyx = xy4xy4xy and 4x4x4x4x has no yy
88 and −12-\tfrac{1}{2}both constants88 and 8x8xone has a variable

Notice that 4xy4xy and −9yx-9yx are like terms: by the commutative property, yxyx is the same as xyxy.

Combining uses the distributive property

Why does 4x+2x4x + 2x equal 6x6x? Read the distributive property backwards:

4x+2x=(4+2)x=6x.4x + 2x = (4 + 2)x = 6x.

In words: 44 of something plus 22 of the same thing makes 66 of it. That's why you can only combine like terms. 4x+2y4x + 2y is 44 of one thing and 22 of another, and it can't be shortened.

Combining like terms

To combine like terms, add their coefficients and keep the variable part exactly the same.

ax+bx=(a+b)xax + bx = (a + b)x

The exponents do not change: 3x2+5x2=8x23x^2 + 5x^2 = 8x^2, not 8x48x^4.

Common mistake

Two common slip-ups:

  • Changing the exponent. x+x=2xx + x = 2x, not x2x^2. (It's x⋅xx \cdot x that equals x2x^2.)
  • Losing a sign. Each term owns the sign in front of it. In 9−4x+2x9 - 4x + 2x, the xx-terms are −4x-4x and +2x+2x, which combine to −2x-2x.

Step by step

A reliable routine:

  1. Identify groups of like terms. Circling or underlining each group helps; bring each term's sign with it.
  2. Use the commutative property to put like terms next to each other.
  3. Add the coefficients in each group.
  4. By convention, write the answer with the highest power first and the constant last.

Worked example: Two groups

Simplify 7x+4−2x−97x + 4 - 2x - 9.

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

Worked example: Different powers

Simplify 3n2−5n+n2+8n−63n^2 - 5n + n^2 + 8n - 6.

There are three groups: n2n^2-terms 3n23n^2 and n2n^2 (coefficient 11); nn-terms −5n-5n and 8n8n; and the constant −6-6.

(3+1)n2+(−5+8)n−6=4n2+3n−6.(3 + 1)n^2 + (-5 + 8)n - 6 = 4n^2 + 3n - 6.

Distribute first, then combine

When an expression has parentheses you can't simplify inside, distribute first. Then combine.

Worked example: Distribute, then combine

Simplify 5(y+3)−2(y−4)5(y + 3) - 2(y - 4).

Watch the second product carefully: the −2-2 multiplies both yy and −4-4.

5(y+3)−2(y−4)=5y+15−2y+8distribute; (−2)(−4)=8=(5y−2y)+(15+8)group like terms=3y+23\begin{aligned} 5(y + 3) - 2(y - 4) &= 5y + 15 - 2y + 8 && \text{distribute; } (-2)(-4) = 8 \\ &= (5y - 2y) + (15 + 8) && \text{group like terms} \\ &= 3y + 23 \end{aligned}

Tip

Check your simplified answer by substituting a number, such as y=1y = 1, into both forms. Original: 5(4)−2(−3)=20+6=265(4) - 2(-3) = 20 + 6 = 26. Simplified: 3(1)+23=263(1) + 23 = 26. They match.

Worked example: A perimeter

A triangle has sides of length 2x+12x + 1, 3x−43x - 4 and x+6x + 6. Write a simplified expression for its perimeter.

Add all three sides and combine:

(2x+1)+(3x−4)+(x+6)=(2x+3x+x)+(1−4+6)=6x+3.(2x + 1) + (3x - 4) + (x + 6) = (2x + 3x + x) + (1 - 4 + 6) = 6x + 3.

Practice

Practice 1

Which pair are like terms?

Practice 2

Simplify 8x−3+x+108x - 3 + x + 10.

Practice 3

Simplify 5a2+2a−3a2−7a5a^2 + 2a - 3a^2 - 7a.

Practice 4

After simplifying 6−4y+3y−3y6 - 4y + 3y - 3y, what is the coefficient of yy?

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

Practice 5

Simplify 3(x+4)+2(x−1)3(x + 4) + 2(x - 1).

Practice 6

Simplify 4(k−2)−3(k−5)4(k - 2) - 3(k - 5) to the form k+ck + c. Then evaluate it when k=23k = 23.

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

Practice 7

A rectangle has length 3w+23w + 2 and width 2w−12w - 1. Its perimeter is 2(3w+2)+2(2w−1)2(3w + 2) + 2(2w - 1). When this is simplified, what is the coefficient of ww?

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

Practice 8

Simplify 2(3m−1)−(m+4)+5m2(3m - 1) - (m + 4) + 5m.