Arithmetic with Expressions

Learning goals

  • Name a term's coefficient and variable part, and tell like terms from unlike
  • Combine like terms by adding coefficients, the distributive law reversed
  • Add and subtract expressions by dropping parentheses and flipping signs
  • Scale an expression by distributing across every term, including nested grouping
  • Check a simplification by substitution, and say what agreement and disagreement each show

The parts of an expression

An expression is any meaningful combination of numbers, variables, and operations that names a value, such as 3x2−5x+73x^2 - 5x + 7. Naming its parts will help you simplify it without changing its value.

A term is a piece of the expression that is added to the others. The expression 3x2−5x+73x^2 - 5x + 7 has three terms: 3x23x^2, −5x-5x, and 77. Because subtraction is adding the opposite, the sign in front of a term belongs to it, so the middle term is −5x-5x, not 5x5x. If you keep each sign with its term, you will not lose track of what is being subtracted.

The coefficient of a term is its numerical factor, and the variable part is what is left. In −5x-5x the coefficient is −5-5 and the variable part is xx; in 3x23x^2 the coefficient is 33 and the variable part is x2x^2. A term like xx or x2x^2 that shows no number has an invisible coefficient of 11, since x=1xx = 1x. A constant term is a term with no variable at all, just a number, like the 77 above.

Like terms have the same variable part: the same variables raised to the same powers. So 3x3x and −5x-5x are like terms, and so are 4xy4xy and 7yx7yx, because yx=xyyx = xy makes their variable parts identical. But 3x23x^2 and 5x5x are unlike, because x2x^2 and xx are different variable parts, and 3x3x and 3y3y are unlike because they use different letters. Two constant terms, such as 77 and −2-2, are like terms too, since neither one has a variable part to differ on. Read both the letters and their powers when deciding which terms match.

Check your understanding

What are the coefficient and variable part of the term −6x3-6x^3?

Answer choices

Combining like terms

To simplify an expression is to rewrite it in an equivalent, easier-to-use form. Here we do that by combining like terms: add their coefficients and keep the variable part, until no like terms remain to combine. Terms with different variable parts do not combine this way.

It helps to picture terms as tiles. Let a long tile stand for one xx and a small square for a 11. Then combining like terms means sorting the tiles into piles of the same shape and counting each pile.

Combining like terms with algebra tilesA long tile represents x and a small square represents 1. The mixed collection three x plus two plus two x plus three is sorted into five x-tiles and five unit-tiles, giving five x plus five.xxx+11+xx+111collect like termsxxxxx+11111= 5x + 5
The top row shows 3x + 2 + 2x + 3. Regrouping gives five x-tiles and five unit-tiles, or 5x + 5. Each kind is counted separately.

The distributive law explains why this works, even with negative coefficients or negative values of xx, which the positive tiles above do not show.

Why like terms combine, and unlike terms do not#

Suppose each bundle holds 77 objects. Three bundles plus five bundles hold

3⋅7+5⋅7=(3+5)⋅7=8⋅7.3\cdot7+5\cdot7=(3+5)\cdot7=8\cdot7.

So we can combine two counts of the same quantity by reading the distributive law backward. The same steps work for any shared quantity in place of 77. Call that quantity vv, and call the coefficients mm and nn:

mv+nv=vm+vn=v(m+n)=(m+n)v.\begin{aligned} mv+nv&=vm+vn\\ &=v(m+n)\\ &=(m+n)v. \end{aligned}

Commutativity lets us put vv first in each product, use the distributive law backward, and put vv last again. In 3x+5x3x+5x, the shared part is xx, giving 8x8x. In 4x2+x24x^2+x^2, it is x2x^2, giving 5x25x^2. A bare xx has coefficient 11, so x+x=(1+1)x=2xx+x=(1+1)x=2x.

Unlike terms do not have the same variable part. The terms in 3x+53x+5, 3x+3y3x+3y, and 3x+3x23x+3x^2 therefore cannot be combined by adding coefficients. The last pair does share a factor xx, but factoring that out is a different operation; it does not turn xx and x2x^2 into like terms.

Worked example 1 Name the parts, then combine 4x2−x+7−2x2+3x4x^2 - x + 7 - 2x^2 + 3x

First read off the terms with their signs: 4x24x^2, −x-x, 77, −2x2-2x^2, and 3x3x.

TermCoefficientVariable part
4x24x^244x2x^2
−x-x−1-1xx
7777none (constant)
−2x2-2x^2−2-2x2x^2
3x3x33xx

Two like-term families show up: the x2x^2 terms 4x24x^2 and −2x2-2x^2, and the xx terms −x-x and 3x3x. The 77 is the constant term, with nothing to pair with.

Combine each family by adding coefficients. For the x2x^2 terms,

4x2−2x2=(4−2)x2=2x2,4x^2 - 2x^2 = (4 - 2)x^2 = 2x^2,

and for the xx terms, remembering that −x-x has coefficient −1-1,

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

The constant 77 has nothing to pair with, so the simplified expression is

2x2+2x+7.2x^2 + 2x + 7.

No two of its terms are alike, so we cannot combine anything else.

Check your understanding

Combine like terms: 6y+2−4y+56y + 2 - 4y + 5.

Answer choices

Adding and subtracting whole expressions

To add (4x+3)+(2x+5)(4x+3)+(2x+5), use the associative and commutative laws to remove the parentheses and group matching terms:

(4x+3)+(2x+5)=4x+3+2x+5=(4x+2x)+(3+5)=6x+8.\begin{aligned}&(4x+3)+(2x+5)\\&=4x+3+2x+5\\&=(4x+2x)+(3+5)\\&=6x+8.\end{aligned}

Subtraction needs a little more care. When you subtract an expression, you subtract all of it, not just its first term. Subtracting a whole expression means adding its opposite, and the opposite of a sum flips the sign of every term inside.

Why a minus sign in front reverses every term#

First take the opposite of the difference 12−512-5. Its value is −(12−5)=−7-(12-5)=-7. Multiplying both terms by −1-1 gives the same result: −12+5=−7-12+5=-7.

An opposite is multiplication by −1-1, so the distributive law makes this work for an expression too:

−(3x−5)=(−1)(3x+(−5))=(−1)(3x)+(−1)(−5)=−3x+5.\begin{aligned} -(3x-5)&=(-1)\big(3x+(-5)\big)\\ &=(-1)(3x)+(-1)(-5)\\ &=-3x+5. \end{aligned}

Multiplying every term by −1-1 reverses each sign. In general,

−(a+b)=(−1)a+(−1)b=−a−b.\begin{aligned} -(a+b)&=(-1)a+(-1)b\\ &=-a-b. \end{aligned}

Worked example 2 Subtract (3x−5)(3x - 5) from (7x+2)(7x + 2)

Subtraction adds the opposite of the second expression, so distribute the minus sign across both of its terms:

(7x+2)−(3x−5)=7x+2−3x+5.\begin{aligned}&(7x + 2) - (3x - 5)\\&=7x + 2 - 3x + 5.\end{aligned}

The −5-5 inside became +5+5. Now combine like terms:

7x−3x+2+5=4x+7.7x - 3x + 2 + 5 = 4x + 7.

To check, substitute a value into both the original and the result and confirm they agree. At x=3x = 3 the original is (7(3)+2)−(3(3)−5)=23−4=19(7(3) + 2) - (3(3) - 5) = 23 - 4 = 19, and the simplified form is 4(3)+7=194(3) + 7 = 19. They match, which is a good sign the simplification is correct.

Check your understanding

Simplify (5x−3)+(x+2)−(2x−8)(5x - 3) + (x + 2) - (2x - 8).

Answer choices

Scaling an expression by a number or a term

You already know the distributive law, a(b+c)=ab+aca(b + c) = ab + ac. It lets you scale an entire expression by a single factor: multiply every term inside the parentheses by the factor outside. Scaling 3x+13x + 1 by 22 gives

2(3x+1)=2(3x)+2(1)=6x+2.2(3x + 1) = 2(3x) + 2(1) = 6x + 2.

The outside factor can be negative. Multiplying 3x+13x + 1 by −2-2 gives

−2(3x+1)=(−2)(3x)+(−2)(1)=−6x−2.\begin{aligned}-2(3x + 1)&=(-2)(3x)+(-2)(1)\\&=-6x-2.\end{aligned}

You can also multiply by a variable. Multiply each term of 2x+32x + 3 by xx:

x(2x+3)=x(2x)+x(3)=2x2+3x,x(2x + 3) = x(2x) + x(3) = 2x^2 + 3x,

since x⋅2x=2(x⋅x)=2x2x \cdot 2x = 2(x \cdot x) = 2x^2. Multiplying two multi-term expressions together, where both factors have more than one term, is a bigger job saved for the next lesson.

For nested grouping symbols, working from the inside out helps you keep track of the signs. Simplify the innermost group, then apply the factor or minus sign around it. You can then collect the like terms that are no longer inside separate groups.

Worked example 3 Distribute, then combine 2(3x+1)+3(x−4)2(3x + 1) + 3(x - 4)

Use the distributive law on each product first, keeping every sign:

2(3x+1)=6x+2,3(x−4)=3x−12.\begin{gathered}2(3x + 1)=6x + 2,\\3(x - 4)=3x - 12.\end{gathered}

Now the expression is a plain sum, so gather like terms:

6x+2+3x−12=(6x+3x)+(2−12)=9x−10.\begin{aligned}&6x + 2 + 3x - 12\\&=(6x + 3x)+(2 - 12)\\&=9x - 10.\end{aligned}

Worked example 4 Simplify the nested expression 8x−2[3x−(x−4)]8x - 2[3x - (x - 4)]

Nested grouping symbols are cleared from the inside out. Start with the innermost parentheses, where a minus sign flips both terms:

3x−(x−4)=3x−x+4=2x+4.3x - (x - 4) = 3x - x + 4 = 2x + 4.

Multiply by the 22 outside the brackets:

2[2x+4]=4x+8.2[2x + 4] = 4x + 8.

Finally subtract that whole quantity from 8x8x, flipping its signs:

8x−(4x+8)=8x−4x−8=4x−8.8x - (4x + 8) = 8x - 4x - 8 = 4x - 8.

Check your understanding

Simplify the nested expression 5x−2[3x−(x−1)]5x - 2[3x - (x - 1)].

Answer choices

Check your understanding

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

Answer choices

Checking a simplification by substitution

A simplified expression should agree with the original at every input. To check your work, evaluate both at a convenient value. If they disagree, they are not equivalent. If they agree at one value, that is a good sign, but it only checks that one value. Inputs such as 22 or −1-1 can expose mistakes that 00 or 11 hides. For example, x2x^2 and xx agree at 00 and 11, but differ at 22.

Worked example 5 Simplify and check 2(x2+3x)−(x2−x)2(x^2 + 3x) - (x^2 - x)

Distribute the 22, then subtract every term of the second group:

2(x2+3x)−(x2−x)=2x2+6x−x2+x.\begin{aligned}&2(x^2 + 3x)-(x^2 - x)\\&=2x^2+6x-x^2+x.\end{aligned}

Combine the x2x^2 terms and the xx terms:

(2x2−x2)+(6x+x)=x2+7x.(2x^2 - x^2) + (6x + x) = x^2 + 7x.

Check at x=2x=2. The original gives 2(4+6)−(4−2)=182(4+6)-(4-2)=18, and the result gives 4+14=184+14=18. They agree at this value. One check cannot show that the two forms agree for every xx. The steps above show it, because each one uses a law of arithmetic.

Check your understanding

Check 3(x+4)−(x−1)3(x+4)-(x-1) at x=2x=2 against two proposed simplifications, 2x+132x+13 and 2x+112x+11. Which report correctly gives the original value and what the check establishes?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

The signs in 4x2−x+7−2x2+3x4x^2-x+7-2x^2+3x help you keep track of each term as you rearrange it. Plus and minus signs did not always mean add and subtract.

In 1489, Johannes Widmann printed plus and minus signs in a German arithmetic book for merchants. There they marked surplus and shortage in weights: a box could be heavier or lighter than its stated amount. The marks were not instructions to add or subtract in those printed examples.

The symbols were already circulating in manuscripts, including notes connected with Widmann’s teaching. During the early 1500s, printed books began using them for operations as well. From then on, the same signs marked both a weight difference and a subtraction. People had added and subtracted long before these symbols became standard, but the signs made written calculations easier to follow.

Source: the history of plus and minus signs.

Your progress

See all your progress →