Evaluating and Simplifying Expressions

Watch the video explainer

Learning goals

  • Evaluate expressions with negative inputs, powers, and grouped terms
  • Identify like terms by their letters and powers
  • Explain why combining like terms uses the distributive property
  • Simplify grouped expressions, including a minus sign before parentheses
  • Distinguish simplifying an expression from evaluating it

Evaluating in order

Substituting values turns an algebraic expression into a calculation with numbers, and you work it out with the same order of operations as before.

PEMDAS helps you remember that order:

  1. Parentheses: calculate inside groups.
  2. Exponents: evaluate powers.
  3. Multiplication and division: work from left to right.
  4. Addition and subtraction: work from left to right.

Multiplication and division share one tier, as do addition and subtraction. The letters in PEMDAS do not mean that multiplication always comes before division, or addition before subtraction.

Write each substituted value in parentheses to keep it together. Then follow this order through the calculation.

For 3x2−5x+83x^2 - 5x + 8 at x=4x = 4, square before multiplying:

3(4)2−5(4)+8=3(16)−20+8=48−20+8=36.\begin{aligned} 3(4)^2 - 5(4) + 8 &= 3(16) - 20 + 8 \\ &= 48 - 20 + 8 \\ &= 36. \end{aligned}

Only the 44 is squared in 3(4)23(4)^2. The coefficient 33 multiplies the result.

Negative inputs

Parentheses become especially useful when the input is negative. When x=−3x = -3, its square is (−3)2(-3)^2: the whole negative number is the base.

(−3)2=(−3)(−3)=9.(-3)^2 = (-3)(-3) = 9.

Without parentheses, −32-3^2 means the negative of 323^2:

−32=−(32)=−9.-3^2 = -(3^2) = -9.

So when you substitute a negative number, write it in parentheses, sign and all.

Worked example 1 Evaluate 2x2−4x−12x^2 - 4x - 1 when x=−3x = -3

Replace both occurrences of xx with (−3)(-3):

2(−3)2−4(−3)−1.2(-3)^2 - 4(-3) - 1.

Square first: (−3)2=9(-3)^2 = 9. Then multiply. In particular, the term −4(−3)-4(-3) is +12+12, because a negative times a negative is positive.

2(−3)2−4(−3)−1=2(9)+12−1=18+12−1=29.\begin{aligned} 2(-3)^2 - 4(-3) - 1 &= 2(9) + 12 - 1 \\ &= 18 + 12 - 1 \\ &= 29. \end{aligned}

Check your understanding

Evaluate x2+3xx^2 + 3x when x=−4x = -4.

Answer choices

Two variables and a group

With two variables, each letter gets its own value. Parentheses already in the expression have a different job from the ones you add around an input: they group a calculation that is treated as one number.

Worked example 2 Evaluate 5(a+b)−a25(a + b) - a^2 when a=2a = 2 and b=6b = 6

Substitute both values:

5((2)+(6))−(2)2.5\big((2) + (6)\big) - (2)^2.

First add inside the group. Then square, multiply, and subtract:

5(2+6)−22=5(8)−22=5(8)−4=40−4=36.\begin{aligned} 5(2 + 6) - 2^2 &= 5(8) - 2^2 \\ &= 5(8) - 4 \\ &= 40 - 4 \\ &= 36. \end{aligned}

Because of the parentheses, the 55 multiplies the whole sum a+ba + b.

Combining like terms

You can also make an expression easier to work with before choosing any values. Start by looking for terms that count the same quantity.

Three copies of xx plus five copies of xx make eight copies: 3x+5x=8x3x + 5x = 8x. The coefficients count copies of the same variable part.

Terms with the same letters raised to the same powers are like terms. Their coefficients may differ. For example, 7y7y and 2y2y are alike, as are 3x23x^2 and 5x25x^2. But 4x4x and 4y4y have different letters, and xx and x2x^2 have different powers. Constants, such as −4-4 and 99, are like terms with each other.

Combining like terms versus unlike termsOn the left, 3x plus 5x combines into 8x. On the right, 3x and 5y have different variables, so 3x plus 5y stays separate.like terms combine3x + 5x=8xunlike terms do not3x + 5y=3x + 5y
Like terms share the same variable part, so their coefficients add: 3x + 5x collects into 8x. The terms 3x and 5y have different variable parts, so they cannot combine into one term.

Why 3x+5x=8x3x + 5x = 8x#

First use the number 22 in place of xx. The distributive property gives

3(2)+5(2)=(3+5)(2)=8(2).3(2) + 5(2) = (3 + 5)(2) = 8(2).

Here 6+10=16=8(2)6 + 10 = 16 = 8(2): both sides count eight copies of 22. The distributive property works the same way for any shared number, so with any value of xx it gives

3x+5x=(3+5)x=8x.3x + 5x = (3 + 5)x = 8x.

In general, the same property says ax+bx=(a+b)xax + bx = (a + b)x. Reading distribution backward lets us add the coefficients while keeping the shared variable part. It also works for negative and fractional coefficients, because the distributive property applies to those numbers too.

To combine like terms, add their signed coefficients and keep their variable part unchanged. For example, 3x2+5x2=8x23x^2 + 5x^2 = 8x^2, not 8x48x^4.

Sharing just one factor is not enough: 3x3x and 5x25x^2 both contain xx, but their complete variable parts differ. They are not like terms, so their coefficients cannot be added. At x=2x = 2,

3x+5x2=6+20=26.3x + 5x^2 = 6 + 20 = 26.

But 8x=168x = 16 and 8x2=328x^2 = 32 at that input, so neither is an equivalent rewrite.

Check your understanding

Which two terms are NOT like terms?

Answer choices

Worked example 3 Simplify 7x+2+4x−97x + 2 + 4x - 9

Group the like terms, keeping the sign with each term. Subtracting 99 means adding −9-9, so regrouping the addition gives

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

Combine the xx-terms and the constants separately:

7x+4x=(7+4)x=11x,7x + 4x = (7 + 4)x = 11x,2−9=−7.2 - 9 = -7.

The result is 11x−711x - 7. Its two terms are unlike, so there are no like terms left to combine.

Check your understanding

Simplify 9k−3−4k+109k - 3 - 4k + 10.

Answer choices

Distributing before combining

When you evaluate 3(x+4)3(x + 4) at a given value of xx, you can calculate the sum inside the parentheses first. To simplify without choosing xx, use the distributive property to rewrite the product. The 33 multiplies both terms in the group:

3(x+4)=3x+12.3(x + 4) = 3x + 12.

This uses a(b+c)=ab+aca(b + c) = ab + ac. Distribute the outside factor to every term inside the parentheses, then combine any like terms.

Worked example 4 Simplify 2(3x+5)+4x2(3x + 5) + 4x

Distribute 22 to both 3x3x and 55:

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

Now 6x6x and 4x4x are like terms. Their coefficients add to 1010, while the constant stays 1010:

6x+10+4x=10x+10.6x + 10 + 4x = 10x + 10.

Dividing a group by 33 is multiplying it by 13\tfrac13, so the division reaches every term in the group:

6x+93=6x3+93=2x+3.\frac{6x + 9}{3} = \frac{6x}{3} + \frac{9}{3} = 2x + 3.

A minus sign before a group means multiplication by −1-1. Apply it to every term:

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

Both signs change. A negative factor other than −1-1 also multiplies every term.

Worked example 5 Simplify 5(2x−1)−3(x−4)5(2x - 1) - 3(x - 4)

The outside factors are 55 and −3-3. Distribute each one:

5(2x−1)=10x−5,5(2x - 1) = 10x - 5,−3(x−4)=−3x+12.-3(x - 4) = -3x + 12.

The +12+12 comes from (−3)(−4)(-3)(-4). Put the terms together and combine:

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

Check your understanding

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

Answer choices

Simplifying versus evaluating

Simplifying rewrites an expression without choosing inputs. The result keeps the same value as the original for every input. It may still have a variable, or it may be a number: x−x=0x - x = 0 for every xx.

Evaluating uses given values to calculate a number. If you need the value of an expression for several inputs, simplifying it once can save repeating the same work. For example,

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

At x=4x = 4, its value is 8(4)+6=388(4) + 6 = 38. At x=10x = 10, its value is 8(10)+6=868(10) + 6 = 86. The original also gives 3(4+2)+5(4)=18+20=383(4 + 2) + 5(4) = 18 + 20 = 38 at x=4x = 4.

Simplifying versus evaluating an expressionFrom 3x + 5x, the simplify branch leads to 8x (still a variable expression) and the evaluate-at-x-equals-2 branch leads to the number 16.3x + 5xsimplifyevaluate at x = 28xstill an expression16a single number
Two operations on one expression. Simplifying rewrites it as an equivalent expression without substituting a value; evaluating substitutes one and ends in a single number.

Check your understanding

What describes rewriting 6x−2x6x - 2x as 4x4x, without choosing a value for xx?

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 person who introduced the word distributive to mathematics had an unusual path to the classroom. François-Joseph Servois, a French priest, left the priesthood during the French Revolution and became an artillery officer. He studied mathematics in his spare time. Poor health led him to ask for a teaching post, and he went on to teach at military schools.

In 18141814, he was called back to help defend Paris. That same year, he published the paper that introduced distributive and commutative as mathematical terms.

Your progress

See all your progress →