This site is a work in progress. New lessons are added regularly. Contact us

Arithmetic with Expressions

Learning goals

  • Name a term's coefficient and variable part
  • Combine like terms by adding coefficients, the distributive law reversed
  • Add expressions by dropping parentheses and collecting
  • Subtract by adding the opposite, flipping every sign inside
  • Scale an expression by distributing across every term
  • Check a simplification by substituting a value into both forms

The parts of an expression

An expression is any meaningful combination of numbers, variables, and operations that names a value, such as 3x25x+73x^2 - 5x + 7. Its building blocks have names worth fixing now, because the rest of the lesson is about moving these blocks around without breaking anything.

A term is a piece of the expression that is added to the others. The expression 3x25x+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. Keeping the sign attached to its term is what makes the arithmetic below reliable.

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.

Finally, like terms are terms with the same variable part, meaning 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. Telling like from unlike is the whole game, so read the variable part carefully every time.

Combining like terms

To simplify an expression is to rewrite it as an equivalent expression with as few terms as possible, and the main tool is combining like terms. The rule is short: like terms combine into one term by adding their coefficients, and unlike terms cannot combine at all. Both halves of that rule come straight from the distributive law you proved in the first lesson.

Why like terms combine, and unlike terms do not#

The distributive law says a(b+c)=ab+aca(b + c) = ab + ac. Read it from right to left and it becomes a rule for pulling out a shared factor: ab+ac=a(b+c)ab + ac = a(b + c). That reverse reading is the entire engine behind combining like terms.

Two like terms share the same variable part. Write that shared part as vv, so the two terms are mvmv and nvnv for some numbers mm and nn. For 3x3x and 5x5x the shared part is v=xv = x with m=3m = 3 and n=5n = 5; for 4x24x^2 and x2x^2 it is v=x2v = x^2. Because multiplication is commutative, mv=vmmv = vm and nv=vnnv = vn, so

mv+nv=vm+vn=v(m+n)=(m+n)v.mv + nv = vm + vn = v(m + n) = (m + n)v.

The two terms collapse into a single term whose coefficient is the sum m+nm + n and whose variable part is unchanged. This is why 3x+5x=(3+5)x=8x3x + 5x = (3 + 5)x = 8x, and why x+x=1x+1x=(1+1)x=2xx + x = 1x + 1x = (1 + 1)x = 2x, since a bare xx carries the invisible coefficient 11.

Unlike terms have different variable parts, so there is no single vv to factor out and the step above never starts. In 3x+53x + 5 one term has variable part xx and the other is a constant; in 3x+3y3x + 3y the parts are xx and yy. In 3x+3x23x + 3x^2 the variable parts are xx and x2x^2. None of these pairs shares a variable part, so each sum is already as simple as it gets and must be left as two separate terms.

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 is nothing more than 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
Picture each long tile as one x and each small tile as 1. The top row shows 3x + 2 + 2x + 3 in the order written; sorting the tiles into a pile of x-tiles and a pile of unit-tiles and counting each pile gives 5x + 5. You can gather the x-tiles together, but you cannot merge an x-tile with a unit-tile, which is exactly why unlike terms never combine.

Worked example 1 Name the parts, then combine 4x2x+72x2+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. The constant term is 77. The like terms fall into two families, the x2x^2 terms 4x24x^2 and 2x2-2x^2, and the xx terms x-x and 3x3x.

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

4x22x2=(42)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.

Its three terms are pairwise unlike, so no further combining is possible.

Check your understanding

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

Answer choices

Adding and subtracting whole expressions

Often you need to add or subtract entire expressions, each wrapped in parentheses, such as (4x+3)+(2x+5)(4x + 3) + (2x + 5). Adding is the easy case. The associative and commutative laws of addition, which hold for every number, let you erase the parentheses and reorder the terms however you like. So when you are adding, you simply drop the parentheses and combine like terms:

(4x+3)+(2x+5)=4x+3+2x+5=(4x+2x)+(3+5)=6x+8.(4x + 3) + (2x + 5) = 4x + 3 + 2x + 5 = (4x + 2x) + (3 + 5) = 6x + 8.

Subtraction takes one extra moment of care, because subtracting an expression is not the same as subtracting only 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#

To subtract an expression is to add its opposite, and the opposite of any quantity QQ is (1)Q(-1) \cdot Q. So a minus sign written in front of a parenthesis is really the factor 1-1 waiting to be distributed.

Take (3x5)-(3x - 5). Rewrite the subtraction inside as an addition, 3x5=3x+(5)3x - 5 = 3x + (-5), then distribute the 1-1 across both terms:

(3x5)=(1)(3x+(5))=(1)(3x)+(1)(5)=3x+5.-(3x - 5) = (-1)\big(3x + (-5)\big) = (-1)(3x) + (-1)(-5) = -3x + 5.

Every term inside came out with its sign reversed: 3x3x became 3x-3x, and 5-5 became +5+5. Nothing here depends on the particular numbers, so the same reasoning gives the general rule (a+b)=ab-(a + b) = -a - b. Distributing a leading minus sign changes the sign of each term it reaches. Forgetting to flip the second term is the single most common error in this whole lesson.

Worked example 2 Subtract (3x5)(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)(3x5)=7x+23x+5.(7x + 2) - (3x - 5) = 7x + 2 - 3x + 5.

The 5-5 inside became +5+5; missing that flip is the classic slip. Now reorder and combine like terms:

7x3x+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)=234=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 the reassurance that the two expressions are equivalent.

Check your understanding

Simplify (5x3)(2x8)(5x - 3) - (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 is what lets you scale an entire expression by a single factor: multiply each 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,

and the factor can carry a sign, so scaling by 2-2 would give 6x2-6x - 2. The factor outside can even be a single term rather than a bare number; distributing xx across 2x+32x + 3 gives x(2x+3)=2x2+3xx(2x + 3) = 2x^2 + 3x. Multiplying two multi-term expressions together is a bigger job, saved for the next lesson. Most simplifications here combine scaling with the earlier skills. Distribute every product first, then collect like terms, and when grouping symbols are nested inside one another, clear those symbols from the inside out.

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

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

2(3x+1)=6x+2,3(x4)=3x12.2(3x + 1) = 6x + 2, \qquad 3(x - 4) = 3x - 12.

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

6x+2+3x12=(6x+3x)+(212)=9x10.6x + 2 + 3x - 12 = (6x + 3x) + (2 - 12) = 9x - 10.

The two steps never blur together: distribute every product before you start collecting like terms.

Worked example 4 Simplify the nested expression 8x2[3x(x4)]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(x4)=3xx+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)=8x4x8=4x8.8x - (4x + 8) = 8x - 4x - 8 = 4x - 8.

Reaching outward before an inner layer is finished is what produces sign mistakes, so resolve one bracket completely before moving out to the next.

Check your understanding

Simplify 3(2x1)(x4)3(2x - 1) - (x - 4).

Answer choices

Checking a simplification by substitution

Simplifying is supposed to produce an equivalent expression, one that gives the same value for every input. So a quick substitution is the natural way to catch an error. Pick a convenient value, evaluate both the original and your simplified form, and compare. Agreement does not prove the two are equivalent (recall from the first lesson that no finite list of checks can). But a disagreement instantly reveals a slip, almost always a dropped sign. Values like x=2x = 2 or x=1x = -1 tend to expose mistakes that x=0x = 0 or x=1x = 1 quietly hide.

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

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

2(x2+3x)(x2x)=2x2+6xx2+x.2(x^2 + 3x) - (x^2 - x) = 2x^2 + 6x - x^2 + x.

Combine the x2x^2 terms and the xx terms:

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

Now verify with a substitution, which a correct simplification will survive. At x=2x = 2 the original is 2(4+6)(42)=202=182(4 + 6) - (4 - 2) = 20 - 2 = 18, and x2+7xx^2 + 7x gives 4+14=184 + 14 = 18. The agreement is the sign that every step preserved the value, which is exactly what simplifying is meant to do.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions 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)

Look at 4x2x+72x2+3x4x^2 - x + 7 - 2x^2 + 3x. Five terms, and every one of them carries its own sign. That convenience is more recent than you might imagine. For most of the history of arithmetic there were no signs at all.

The plus and minus marks first reached print in 1489. They appear in a German textbook by Johannes Widmann, and there they perform no arithmetic whatever. Widmann was writing about barrels. A crate holding more than its official weight received one mark. A crate falling short of it received the opposite mark. They recorded a surplus and a shortfall, never an operation to carry out.

Within a few decades other writers had promoted them. The symbols stopped describing a crate and started commanding an addition or a subtraction. Every term in an expression could then wear its own sign in public.

That promotion is what makes this lesson possible. When the sign belongs to the term, you can shuffle the terms freely. Gather the ones that match, add their coefficients, and no minus goes missing on the way. Rewriting 4x2x+72x2+3x4x^2 - x + 7 - 2x^2 + 3x as 2x2+2x+72x^2 + 2x + 7 is a few seconds of sorting. Written out as sentences, with every surplus and shortfall spelled in words, the same tidying would run to a paragraph. It would also be easy to get wrong.