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.
example
Evaluate
9x−2, when
- x=5
- x=1
Answer:
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.
example
Evaluate
x2 when
x=10.
Answer:
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.
example
Evaluate 2x when x=5.
Answer:
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.
example
Evaluate 3x+4y−6 when x=10 and y=2.
Answer:
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.
example
Evaluate 2x2+3x+8 when x=4.
Answer:
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 |