Pre-Algebra · Grades 6

Evaluating Expressions: Substituting a Value

Quick answer

Evaluating means replacing each variable with a given number and working the arithmetic out. Substitute with brackets — 3n with n = -2 becomes 3(-2), not 3-2 — then follow the order of operations. Brackets are what keep a negative value or a squared term from being misread, and they cost nothing to write.

What you'll learn

  • Evaluate an expression at a given value of its variable
  • Substitute negative values correctly using brackets
  • Apply the order of operations to an evaluated expression

Replace the letter with the number

Evaluating an expression means substituting a value for each variable and working out the result.

Evaluate 3n+53n + 5 at n=4n = 4:

3(4)+5=12+5=173(4) + 5 = 12 + 5 = 17

The expression is the rule; evaluating it answers one particular case of that rule.

nn3n+53n + 5
0055
441717
10103535

Substitute with brackets

Write the value inside brackets where the letter was:

3n    3(4)n2    (4)25n    5(4)3n \;\rightarrow\; 3(4) \qquad n^2 \;\rightarrow\; (4)^2 \qquad 5 - n \;\rightarrow\; 5 - (4)

With a positive value the brackets look unnecessary. With a negative one they decide the answer.

3n at n=2:3(2)=63n \text{ at } n = -2: \qquad 3(-2) = -6

Writing it without brackets gives 32=13-2 = 1, which is a different question entirely — the minus has turned from part of the number into an operation.

Then follow the order of operations

Once the numbers are in, it is ordinary arithmetic: brackets, exponents, multiplication and division left to right, then addition and subtraction left to right.

Evaluate 2x2+32x^2 + 3 at x=5x = 5:

2(5)2+32(5)^2 + 3

The exponent comes before the multiplication:

2(25)+3=50+3=532(25) + 3 = 50 + 3 = 53

Multiplying first would give 102+3=10310^2 + 3 = 103, which answers a different question. The 22 multiplies x2x^2, not xx.

Negatives and squares

This pair is worth separating carefully.

ExpressionAt x=3x = 3Result
x2x^2(3)2(3)^299
x2-x^2(3)2-(3)^29-9
(x)2(-x)^2(3)2(-3)^299

In x2-x^2 the minus sits outside the squaring, so only the 33 is squared and the minus survives. In (x)2(-x)^2 the brackets take the negative inside, so it is squared too and two negatives make a positive.

Evaluating x2x^2 at x=3x = -3 gives (3)2=9(-3)^2 = 9, which is why the brackets in the substitution matter so much.

Why this is the skill everything else rests on

Substitution is how a general rule produces a specific answer, and almost every later technique is an application of it.

  • Checking a solution. Solving 3n+5=203n + 5 = 20 gives n=5n = 5. Substituting it back gives 3(5)+5=203(5) + 5 = 20, and the check is finished.
  • Building a table of values. Plotting a line means evaluating its equation at several xx values and reading off the yys.
  • Using a formula. A=πr2A = \pi r^2 becomes a number only once a radius is substituted.

That first use is the one worth adopting as a habit. A solved equation can always be verified by putting the answer back into the original, and an answer that fails the check is caught before it is written down. It turns a guess into something you know.

Worked examples

Common mistakes

Practice problems

  1. Evaluate n+8n + 8 at n=5n = 5.

    Answer

    1313

    Full solution

    (5)+8=13(5) + 8 = 13.

  2. Evaluate 6x6x at x=7x = 7.

    Answer

    4242

    Full solution

    6(7)=426(7) = 42.

  3. Evaluate 2n52n - 5 at n=9n = 9.

    Answer

    1313

    Full solution

    2(9)5=185=132(9) - 5 = 18 - 5 = 13.

  4. Evaluate 4x+14x + 1 at x=2x = -2.

    Answer

    7-7

    Full solution

    4(2)+1=8+1=74(-2) + 1 = -8 + 1 = -7.

  5. Evaluate n2n^2 at n=6n = -6.

    Answer

    3636

    Full solution

    (6)2=36(-6)^2 = 36. Two negative factors give a positive.

  6. Evaluate x3+4\tfrac{x}{3} + 4 at x=12x = 12.

    Answer

    88

    Full solution

    123+4=4+4=8\tfrac{12}{3} + 4 = 4 + 4 = 8.

  7. Evaluate 5a2b5a - 2b at a=3a = 3 and b=4b = 4.

    Answer

    77

    Full solution

    5(3)2(4)=158=75(3) - 2(4) = 15 - 8 = 7.

  8. Evaluate 3(n1)3(n - 1) at n=4n = -4.

    Hint

    Bracket first.

    Answer

    15-15

    Full solution

    3((4)1)=3(5)=153((-4) - 1) = 3(-5) = -15.

  9. Is x=3x = 3 a solution of 4x+2=144x + 2 = 14?

    Answer

    Yes

    Full solution

    4(3)+2=12+2=144(3) + 2 = 12 + 2 = 14, which matches the right side.

  10. Asked to evaluate 2x22x^2 at x=3x = 3, Leo writes 2(3)2=62=362(3)^2 = 6^2 = 36. Find his error.

    Hint

    Which operation comes first?

    Answer

    He multiplied before squaring. The answer is 1818.

    Full solution

    Exponents come before multiplication, so the squaring happens first:

    2(3)2=2(9)=182(3)^2 = 2(9) = 18.

    Leo multiplied 2×32 \times 3 to get 66 and then squared it. That would be the value of (2x)2(2x)^2, which is a different expression — the brackets would have to include the 22 for his reading to be right.

    In 2x22x^2 the coefficient multiplies x2x^2, not xx.

Frequently asked questions

What does evaluating an expression mean?

Replacing each variable with a given number and working out the answer. Evaluating 3n + 5 at n = 4 gives 17.

Why should I use brackets when substituting?

Because a negative value would otherwise change the arithmetic. 3n at n = -2 becomes 3(-2) = -6; writing 3-2 gives 1, which is a different sum.

What order do I work in?

Brackets, exponents, multiplication and division left to right, then addition and subtraction left to right — the same order as any arithmetic.

What is the difference between evaluating -x² and (-x)²?

With x = 3, -x² is -9 because only the 3 is squared, while (-3)² is 9 because the whole negative is squared.

Can one expression have two variables?

Yes. Substitute a value for each. Evaluating 2a + 3b at a = 4 and b = 1 gives 11.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.6.EE.A.2cExpressions and EquationsEvaluate expressions at specific values of their variables. Include expressions that arise from formulas used in real-world problems. Perform arithmetic operations, including those involving whole-number exponents, in the conventional order when there are no parentheses to specify a particular order (Order of Operations).