Skip to main content
Logo image

Core Mathematics

Section 5.1 Working with Variables

  • Like Terms
  • Equivalent Expressions
  • Constant Multiples of Terms
  • Terms with Exponents
  • Multiplying Variable Expressions
  • Evaluating Variable Expressions

Subsection 5.1.1 Like Terms

You know from arithmetic that you can combine quantities of the same type. For example, if you have three cats and your roommate has two cats, then together you have (3 + 2) cats, or 5 cats.

Activity 5.1.1. Like Terms.

  1. Suppose tuition at your college is $20 per unit. If you are enrolled in eight units this semester and plan to enroll in ten units next semester, then you can figure your tuition for the year in two ways.
    Method 1: Calculate the tuition for each semester, then add them up:
    \begin{equation*} \blert{8}($20) + \blert{10} ($20) = \fillinmath{XXXX} + \fillinmath{XXXX} = \fillinmath{XXXX} \end{equation*}
    Method 2: Add up the number of units for the whole year, then calculate the tuition:
    \begin{equation*} \blert{(8 + 10)} ($20) = \fillinmath{XX} ($20) = \fillinmath{XXXX} \end{equation*}
    Either calculation gives your total tuition for the year.
  2. Next year the tuition at your college is going up to some unknown figure, \(x\) dollars per unit. If you take the same number of units next year, your tuition will be
    \begin{equation*} \blert{8}x~ \text{dollars} + \blert{10}x~ \text{dollars} \end{equation*}
    This time you cannot use Method 1 to calculate your tuition, because you don’t know what \(x\) is equal to.
    But we can use Method 2. We add up multiples of \(x\) dollars exactly the same way we added up multiples of $20. Your tuition for the year will be
    \begin{equation*} \blert{(8 + 10)}(x) = \fillinmath{XX}(x)~ \text{dollars} \end{equation*}
    Now as soon as you learn the value of , you can find your tuition for the year.
In Activity 5.1.1, \(8x\) and \(10x\) are called like terms, because the variable part of each term, \(x\text{,}\) is the same. (Recall that terms are expressions that are added or subtracted, and factors are expressions that are multiplied together.)
The numbers multiplied by the variable are called the coefficients of the variable. In Activity 5.1.1 the coefficients are 8 and 10.

To add or subtract like terms.

  1. Add or subtract the coefficients.
  2. Do not change the variable part of the terms.

Example 5.1.1.

Add or subtract like terms.
  1. \(\displaystyle 9m-4m\)
  2. \(\displaystyle 6st + 8st\)

Solution.

We add or subtract the coefficients of the terms. The variable part of the terms remains the same.
  1. \(\displaystyle 9m - 4m = (9-4)m = 5m ~~~~~~~ \blert{\text{Subtract coefficients, keep the variable factor.}}\)
  2. \(\displaystyle 6st + 8st = (6+8)st = 14st ~~~~~~~ \blert{\text{Add coefficients, keep the variable factor.}}\)

Checkpoint 5.1.2.

Add like terms: \(~~4ab + 11ab\)
Answer.
\(15ab\)

Note 5.1.3.

Because \(x = 1 \cdot x\text{,}\) the coefficient of \(x\) is \(1\text{.}\) Also, because 0 times any number is 0, we have
\begin{equation*} 0 \cdot x = 0 \end{equation*}

Example 5.1.4.

Combine like terms.
  1. \(\displaystyle 3x + x = 4x ~~~~~~~ \blert{\text{Add coefficients, keep the variable factor.}}\)
  2. \(\displaystyle 3w - w = 2w ~~~~~~~ \blert{\text{Subtract coefficients, keep the variable factor.}}\)

Checkpoint 5.1.5.

Combine like terms: \(~pq + pq\)
Answer.
\(2pq\)

Subsection 5.1.2 Equivalent Expressions

Combining like terms gives us a simpler expression that is equivalent to the original. Equivalent expressions have the same value when we substitute a number for the variable. It is always a good idea to replace complicated expressions with simpler ones if we can.

Note 5.1.6.

We cannot combine unlike terms. If you have three cats and your roommate has two canaries, and you try to combine them, you will still have three cats and two canaries, if you’re lucky.
If the variable parts of the terms are not identical, they are not like terms, and they cannot be combined. Here are some examples of unlike terms.
\begin{align*} 3x ~~ \text{and} ~~ 5y \hphantom{0000} \amp ~~ \text{are not like terms}\\ 6a ~~ \text{and} ~~ 2ab \hphantom{0000} \amp ~~ \text{are not like terms}\\ 4z ~~ \text{and} ~~ 8 \hphantom{0000} \amp ~~ \text{are not like terms} \end{align*}
So, expressions such as \(3x + 5y ~~ \text{or} ~~ 6a-2ab ~~ \text{or} ~~ 4z - 8\) cannot be simplified; they just stay the way they are.

A Quick Refresher.

Remember the order of operations: we perform all multiplications (and divisions) before additions and subtractions. For example, to evaluate
\begin{equation*} 3 + 5x ~~~~\text{for} ~~~~x = \alert{6} \end{equation*}
we perform the multiplication first.
\begin{equation*} 3 + 5(\alert{6}) = 3 + 30 = 33 \end{equation*}

Activity 5.1.2. Equivalent Expressions.

Complete the table to help you decide whether the two expressions are equivalent.
  1. \(x\) 2 5 8 10
    \(4x + 3x\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    \(7x\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    Is \(4x + 3x\) equivalent to \(7x\text{?}\)
  2. \(x\) 2 5 8 10
    \(4 + 3x\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    \(7x\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    Is \(4 + 3x\) equivalent to \(7x\text{?}\)
  3. \(x\) 2 5 8 10
    \(4x + 3\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    \(7x\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\) \(\hphantom{0000}\)
    Is \(4x + 3\) equivalent to \(7x\text{?}\)

Subsection 5.1.3 Constant Multiples of Terms

Recall that \(3x\) means \(3\) times \(x\text{,}\) or
\begin{equation*} 3x = x + x + x \end{equation*}
because multiplication is really just repeated addition. Similarly, \(3(2x)\) means \(3\) times \(2x\text{,}\) or
\begin{equation*} 3(2x) = 2x + 2x + 2x \end{equation*}
By combining like terms, we see that \(~2x + 2x + 2x = 6x\text{.}\) Thus,
\begin{equation*} 3(2x) = 6x \end{equation*}
To multiply a term by a constant, we multiply the coefficient of the term by the constant.

Example 5.1.7.

The members of the Concert Choir agree that each member of the Choir should sell five tickets to the spring concert.
  1. If one ticket sells for \(x\) dollars, how much will each member make from ticket sales?
  2. The Choir has 20 members. How much will they earn from ticket sales?

Solution.

  1. Each member of the choir will earn \(5x\) dollars.
  2. The Choir will earn \(20(5x)\text{,}\) or \(100x\) dollars.

Checkpoint 5.1.8.

Every staff member will carry home two sets of new regulations from the meeting. Each set of regulations weighs \(h\) ounces.
  1. How many ounces will each staff member carry home?
  2. There are 9 staff members. What is the total weight they carry home?
Answer.
  1. \(\displaystyle 2h\)
  2. \(\displaystyle 18h\)

Subsection 5.1.4 Terms with Exponents

Another Quick Refresher.

An exponent is a number that appears above and to the right of a particular factor. It tells us how many times that factor occurs in the product.
For example, we can write \(32\) as \(2^5\text{.}\)
In like terms the variable parts of the terms must be exactly the same, including their exponents. For example,
\begin{equation*} 5x^2 ~~ \text{and} ~~ 2x^2 ~~ \text{are like terms} \end{equation*}
but
\begin{equation*} 6x ~~ \text{and} ~~ 3x^2 ~~ \text{are not like terms} \end{equation*}
This is because \(x\) and \(x^2\) are usually not the same number (unless \(x\) happens to be 0 or 1), so we cannot combine them into one group (like cats and canaries).

Example 5.1.9.

Combine like terms.
  1. We add the coefficients, \(4 + 3\text{,}\) and leave the variable part, \(x\text{,}\) unchanged.
    \begin{equation*} 4x^2 + 3x^2 = (4 + 3) x^2 = 7x^2 \end{equation*}
  2. \(7a^2\) and \(5a\) are not like terms, because the variable, \(a\text{,}\) does not have the same exponent. So we cannot combine the terms; this expression cannot be simplified.

Note 5.1.10.

When combining like terms, we do not add the exponents. For example,
\begin{equation*} 4x^2 + 3x^2 = 7x^4 ~~~~ \alert{\text{is incorrect!}} \end{equation*}
(What is the correct answer?)

Checkpoint 5.1.11.

Combine like terms: \(~~~ 7w^3 + 8w^3\)
Answer.
\(15w^3\)

Subsection 5.1.5 Multiplying Variable Expressions

What about multiplying variable expressions? We will need one fact from arithmetic: We can rearrange factors in any order and get the same product. Try it yourself. For example, multiply from left to right:
\begin{align*} (2)(3)(4)(5) \amp = (6)(4)(5)\\ \amp = (24)(5) = ?? \end{align*}
Now rearrange the factors and multiply again.
\begin{align*} (4)(3)(5)(2) \amp = (12)(5)(2)\\ \amp = (60)(2) = ?? \end{align*}
The product is the same.
Rearranging the order of factors in a product works with variables, too.

Example 5.1.12.

Multiply \(~(2a)(3a)\)

Solution.

First, we rearrange the factors to put the coefficients together and the variable factors together.
\begin{equation*} (2a)(3a) = 2 \cdot 3 \cdot a \cdot a \end{equation*}
Now we can multiply \(2 \cdot 3\) to get 6, and \(a \cdot a\) to get \(a^2\text{.}\) Thus,
\begin{equation*} (2a)(3a) = 2 \cdot 3 \cdot a \cdot a = 6a^2 \end{equation*}

Note 5.1.13.

Be careful to distinguish between multiplying and adding. Remember that
\begin{equation*} 2x ~~~~ \text{means} ~~~~ x + x ~~~~\text{(addition),} \end{equation*}
while
\begin{equation*} x^2 ~~~~ \text{means} ~~~~ x \cdot x ~~~~ \text{(multiplication).} \end{equation*}
For example, if \(x=5\text{,}\)
\begin{equation*} 2x = 5 + 5 = 10 ~~~~ \text{and} ~~~~x^2 = 5 \cdot 5 = 25 \end{equation*}

Checkpoint 5.1.14.

Multiply \(~(7q)(2q)\)
Answer.
\(14q^2\)

Subsection 5.1.6 Evaluating Algebraic Expressions

When we evluate an algebraic expression, we follow the order of operations.

Order of Operations.

  1. Perform any operations inside parentheses, or above or below a fraction bar, or inside a radical.
  2. Compute all powers and roots.
  3. Perform all multiplications and divisions in the order in which they occur from left to right.
  4. Perform additions and subtractions in order from left to right.
(You can review the order of operations in Section 4.5.)

Example 5.1.15.

Evaluate the expression \(~20-2x^2~\) for \(x=3\text{.}\)

Solution.

We begin by substituting \(\alert{3}\) for \(x\) in the expression.
\begin{align*} 20 - 2x^2 \amp = 20 - 2 \cdot \alert{3}^2 \amp \amp \blert{\text{Compute the power first.}}\\ \amp = 20 - 2 \cdot 9 \amp \amp \blert{\text{Multiply.}}\\ \amp = 20 - 18 = 2 \amp \amp \blert{\text{Subtract.}} \end{align*}

Checkpoint 5.1.16.

Evaluate the expression \((8 - b^2)(8 - b)^2\) for \(b=2\text{.}\)
Hint: Simplify each factor, then multiply them together.
Answer.
\(144\)

Subsection 5.1.7 Vocabulary

  • like terms
  • factors
  • coefficient
  • equivalent expressions

Exercises 5.1.8 Practice 5.1

Exercise Group.

For Problems 1-6, answer with a sentence.
1.
Explain what like terms are. Give an example of like terms, and an example of unlike terms.
2.
What is a coefficient? Give an example.
3.
How can you test to see if two expressions are equivalent?
4.
What does an exponent tell you about its base? Give an example.
5.
How does rearranging the factors in a product change the result?
6.
What is the difference between factors and terms?

Exercise Group.

For Problems 7-12, decide whether the statement is true or false.
7.
Like terms must have the same coefficient.
8.
To multiply a term by a constant, we multiply each factor by the constant.
9.
The coefficient of the term \(ab\) is 1.
10.
When we add or subtract like terms, the variable parts of the terms are altered as well as the coefficients.
11.
Terms with the same base but different exponents cannot be combined.
12.
Expressions with the same base but different exponents cannot be multiplied together.

Exercise Group.

For Problems 13-16, choose three values for the variable and show that the two expressions are the same for those values. (Do not choose 0 or 1.)
13.
\(9g + 2g; ~11g\)
14.
\(14v - 9v; ~5v\)
15.
\(5(3a); ~15a\)
16.
\(4(6b); ~24b\)

17.

Explain the difference between \(2x\) and \(x^2\text{.}\) Illustrate with a numerical example.

18.

Explain the difference between \(3x\) and \(x^3\text{.}\) Illustrate with a numerical example.

19.

  1. Explain the difference between \(4x + 7x\) and \(4(7x)\text{.}\)
  2. Evaluate both of the expressions in part (a) for \(x=3\)

20.

  1. Explain the difference between \(3a + 2a\) and \(3(2a)\text{.}\)
  2. Evaluate both of the expressions in part (a) for \(a=4\)

Exercise Group.

For Problems 21-28, add or subtract like terms.
21.
  1. \(\displaystyle 4y + 2y\)
  2. \(\displaystyle 6x - 2x\)
22.
  1. \(\displaystyle d + d\)
  2. \(\displaystyle h - h\)
23.
  1. \(\displaystyle 8b + 8b\)
  2. \(\displaystyle 4b - 4b\)
24.
  1. \(\displaystyle 3pq + 12pq\)
  2. \(\displaystyle 18st-11st\)
25.
  1. \(\displaystyle 47W + W\)
  2. \(\displaystyle 29K - 28K\)
26.
  1. \(\displaystyle 7.6a - 5.2 a\)
  2. \(\displaystyle 6.1p-4.3p\)
27.
  1. \(\displaystyle 5x-4x+2x\)
  2. \(\displaystyle 2z+6z-z\)
28.
  1. \(\displaystyle ab + 5ab - 3ab\)
  2. \(\displaystyle 6bc+4bc-8bc\)

Exercise Group.

For Problems 29-34, combine like terms.
29.
\(6t+3-4t\)
30.
\(2+8t-5t\)
31.
\(13+8y-4y-7\)
32.
\(7+4y+6y+8\)
33.
\(22st+5s-6st-4s\)
34.
\(9u+6uv+8uv-2u\)

Exercise Group.

For Problems 35-40, simplify.
35.
\(6(5d)\)
36.
\(10(7v)\)
37.
\(0.25(16a)\)
38.
\(0.30(800x)\)
39.
\(20(0.50m)\)
40.
\(100(0.75n)\)

Exercise Group.

For Problems 41-46, simplify by combining like terms.
41.
\(6w^3 - 3w^3\)
42.
\(4s^2 + 7s^2\)
43.
\(8bc + 5bc\)
44.
\(uv + uv\)
45.
\(pq^2 - pq^2\)
46.
\(3u^3v - 3u^3v\)

Exercise Group.

For Problems 47-56, simplify the expression if possible. If the expression cannot be simplified, write "cannot be simplified."
47.
  1. \(\displaystyle x+x\)
  2. \(\displaystyle x \cdot x\)
48.
  1. \(\displaystyle x^2+x^2\)
  2. \(\displaystyle x^2(x^2)\)
49.
  1. \(\displaystyle x+x^2\)
  2. \(\displaystyle x(x^2)\)
50.
  1. \(\displaystyle 2x+3x\)
  2. \(\displaystyle 2x(3x)\)
51.
  1. \(\displaystyle x^2+x^3\)
  2. \(\displaystyle x^2(x^3)\)
52.
  1. \(\displaystyle x+y\)
  2. \(\displaystyle x \cdot y\)
53.
  1. \(\displaystyle x+xy\)
  2. \(\displaystyle x(xy)\)
54.
  1. \(\displaystyle xy+xy\)
  2. \(\displaystyle xy(xy)\)
55.
  1. \(\displaystyle 2x+3y\)
  2. \(\displaystyle 2x(3y)\)
56.
  1. \(\displaystyle x^2y+xy^2\)
  2. \(\displaystyle x^2y(xy^2)\)

57.

Explain the difference between \(2x^3\) and \((2x)^3\text{.}\) Illustrate with a numerical example.

58.

Explain the difference between \((3+h)^3\) and \(3+h^3\text{.}\) Illustrate with a numerical example.

Exercise Group.

For Problems 59-64, evaluate the expressions for the given value. Which pair of expressions in each group are equivalent?
59.
Evaluate for \(a=3\text{:}\)
  1. \(\displaystyle a^2+a^2\)
  2. \(\displaystyle 2a^2\)
  3. \(\displaystyle a^4\)
60.
Evaluate for \(b=2\text{:}\)
  1. \(\displaystyle b^2(b^3)\)
  2. \(\displaystyle b^5\)
  3. \(\displaystyle b^6\)
61.
Evaluate for \(v=5\text{:}\)
  1. \(\displaystyle 2v(3v)\)
  2. \(\displaystyle 6v\)
  3. \(\displaystyle 6v^2\)
62.
Evaluate for \(t=4\text{:}\)
  1. \(\displaystyle 2t+3t\)
  2. \(\displaystyle 5t^2\)
  3. \(\displaystyle 5t\)
63.
Evaluate for \(w=2\text{:}\)
  1. \(\displaystyle 5w^2(2w^2)\)
  2. \(\displaystyle 10w^2\)
  3. \(\displaystyle 10w^4\)
64.
Evaluate for \(q=4\text{:}\)
  1. \(\displaystyle 6q^2-3q^2\)
  2. \(\displaystyle 3q^2\)
  3. \(\displaystyle 3\)

Exercise Group.

For Problems 65-68, evaluate the expressions for the given value.
65.
Evaluate for \(x=3\text{:}\)
  1. \(\displaystyle 18-4x\)
  2. \(\displaystyle (18-4)x\)
66.
Evaluate for \(b=2\text{:}\)
  1. \(\displaystyle 5 \cdot 6 - b^2\)
  2. \(\displaystyle 5(6-b^2)\)
67.
Evaluate for \(m=5\text{:}\)
  1. \(\displaystyle 3m^2-2m\)
  2. \(\displaystyle 3(m^2-m)-2\)
68.
Evaluate for \(c=4\text{:}\)
  1. \(\displaystyle 12-2(c^2-10)\)
  2. \(\displaystyle 12-(2c^2-20)\)