In the last section, we simplified expressions using the order of operations. In this section, we’ll evaluate expressions—again following the order of operations.
To evaluate an expression, we substitute the given number for the variable in the expression and then simplify the expression using the order of operations.
example
Evaluate x+7 when
x=3
x=12
Solution:
1. To evaluate, substitute 3 for x in the expression, and then simplify.
x+7
Substitute.
3+7
Add.
10
When x=3, the expression x+7 has a value of 10.
2. To evaluate, substitute 12 for x in the expression, and then simplify.
x+7
Substitute.
12+7
Add.
19
When x=12, the expression x+7 has a value of 19.
Notice that we got different results for parts 1 and 2 even though we started with the same expression. This is because the values used for x were different. When we evaluate an expression, the value varies depending on the value used for the variable.
try it
example
Evaluate 9x−2, when
x=5
x=1
Show Solution
Solution
Remember ab means a times b, so 9x means 9 times x.
1. To evaluate the expression when x=5, we substitute 5 for x, and then simplify.
9x−2
Substitute 5 for x.
9⋅5−2
Multiply.
45−2
Subtract.
43
2. To evaluate the expression when x=1, we substitute 1 for x, and then simplify.
9x−2
Substitute 1 for x.
9(1)−2
Multiply.
9−2
Subtract.
7
Notice that in part 1 that we wrote 9⋅5 and in part 2 we wrote 9(1). Both the dot and the parentheses tell us to multiply.
try it
example
Evaluate x2 when x=10.
Show Solution
Solution
We substitute 10 for x, and then simplify the expression.
x2
Substitute 10 for x.
102
Use the definition of exponent.
10⋅10
Multiply.
100
When x=10, the expression x2 has a value of 100.
try it
example
Evaluate 2x when x=5.
Show Solution
Solution
In this expression, the variable is an exponent.
2x
Substitute 5 for x.
25
Use the definition of exponent.
2⋅2⋅2⋅2⋅2
Multiply.
32
When x=5, the expression 2x has a value of 32.
try it
example
Evaluate 3x+4y−6 when x=10 and y=2.
Show Solution
Solution
This expression contains two variables, so we must make two substitutions.
3x+4y−6
Substitute 10 for x and 2 for y.
3(10)+4(2)−6
Multiply.
30+8−6
Add and subtract left to right.
32
When x=10 and y=2, the expression 3x+4y−6 has a value of 32.
TRY IT
example
Evaluate 2x2+3x+8 when x=4.
Show Solution
Solution
We need to be careful when an expression has a variable with an exponent. In this expression, 2x2 means 2⋅x⋅x and is different from the expression (2x)2, which means 2x⋅2x.
2x2+3x+8
Substitute 4 for each x.
2(4)2+3(4)+8
Simplify 42 .
2(16)+3(4)+8
Multiply.
32+12+8
Add.
52
try it
In the video below we show more examples of how to substitute a value for variable in an expression, then evaluate the expression.
Prealgebra. Provided by: OpenStax. License: CC BY: Attribution. License Terms: Download for free at http://cnx.org/contents/caa57dab-41c7-455e-bd6f-f443cda5519c@9.757
Prealgebra. Provided by: OpenStax. License: CC BY: Attribution. License Terms: Download for free at http://cnx.org/contents/caa57dab-41c7-455e-bd6f-f443cda5519c@9.757