Evaluate algebraic expressions for different values
Evaluate Algebraic Expressions
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. We substitute the given number for the variable in the expression and then simplify the expression using the order of operations.
Any variable in an algebraic expression may take on or be assigned different values. When that happens, the value of the algebraic expression changes. To evaluate an algebraic expression means to determine the value of the expression for a given value of each variable in the expression. Replace each variable in the expression with the given value then simplify the resulting expression using the order of operations. If the algebraic expression contains more than one variable, replace each variable with its assigned value and simplify the expression as before. In the next example we show how to substitute various types of numbers into a mathematical expression.
example
Evaluate [latex]x+7[/latex] when
[latex]x=3[/latex]
[latex]x=12[/latex]
Solution:
1. To evaluate, substitute [latex]3[/latex] for [latex]x[/latex] in the expression, and then simplify.
[latex]x+7[/latex]
Substitute.
[latex]\color{red}{3}+7[/latex]
Add.
[latex]10[/latex]
When [latex]x=3[/latex], the expression [latex]x+7[/latex] has a value of [latex]10[/latex].
2. To evaluate, substitute [latex]12[/latex] for [latex]x[/latex] in the expression, and then simplify.
[latex]x+7[/latex]
Substitute.
[latex]\color{red}{12}+7[/latex]
Add.
[latex]19[/latex]
When [latex]x=12[/latex], the expression [latex]x+7[/latex] has a value of [latex]19[/latex].
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 [latex]x[/latex] were different. When we evaluate an expression, the value varies depending on the value used for the variable.
try it
example
Evaluate [latex]9x - 2,[/latex] when
[latex]x=5[/latex]
[latex]x=1[/latex]
Show Solution
Solution
Remember [latex]ab[/latex] means [latex]a[/latex] times [latex]b[/latex], so [latex]9x[/latex] means [latex]9[/latex] times [latex]x[/latex].
1. To evaluate the expression when [latex]x=5[/latex], we substitute [latex]5[/latex] for [latex]x[/latex], and then simplify.
[latex]9x-2[/latex]
Substitute [latex]\color{red}{5}[/latex] for x.
[latex]9\cdot\color{red}{5}-2[/latex]
Multiply.
[latex]45-2[/latex]
Subtract.
[latex]43[/latex]
2. To evaluate the expression when [latex]x=1[/latex], we substitute [latex]1[/latex] for [latex]x[/latex], and then simplify.
[latex]9x-2[/latex]
Substitute [latex]\color{red}{1}[/latex] for x.
[latex]9(\color{red}{1})-2[/latex]
Multiply.
[latex]9-2[/latex]
Subtract.
[latex]7[/latex]
Notice that in part 1 that we wrote [latex]9\cdot 5[/latex] and in part 2 we wrote [latex]9\left(1\right)[/latex]. Both the dot and the parentheses tell us to multiply.
Exercises
Evaluate the expression [latex]2x + 7[/latex] for each value for [latex]x[/latex].
When [latex]x=10[/latex] and [latex]y=2[/latex], the expression [latex]3x+4y - 6[/latex] has a value of [latex]32[/latex].
TRY IT
example
[latex]\text{Evaluate }2{x}^{2}+3x+8\text{ when }x=4[/latex].
Show Solution
Solution
We need to be careful when an expression has a variable with an exponent. In this expression, [latex]2{x}^{2}[/latex] means [latex]2\cdot x\cdot x[/latex] and is different from the expression [latex]{\left(2x\right)}^{2}[/latex], which means [latex]2x\cdot 2x[/latex].
[latex]2x^2+3x+8[/latex]
Substitute [latex]\color{red}{4}[/latex] for each x.
In the video below we show more examples of how to substitute a value for variable in an expression, then evaluate the expression.
Eventually you will be performing these operations on decimals, fractions, and negative numbers, so it is important that you get all the rules mastered with whole numbers first!
Contribute!
Did you have an idea for improving this content? We’d love your input.
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