5.3 Evaluating Algebraic Expressions

Learning Outcomes

  • Evaluate algebraic expressions using the order of operations

 Evaluating Algebraic Expressions

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 x+7 when

  1. x=3
  2. 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. 5

When x=12, the expression x+7 has a value of 5.

 

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 of the expression varies depending on the value used for the variable.

try it

 

example

Evaluate 9x2 when

  1. x=5
  2. x=19

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.

9x2
Substitute 5 for x. 952
Multiply. 452
Subtract. 43

2. To evaluate the expression when x=19, we substitute 19 for x, and then simplify.

9x2
Substitute 19 for x. 9(19)2
Multiply. 12
Subtract. 1

 

Notice that in part 1 that we wrote 95 and in part 2 we wrote 9(19). Both the dot and the parentheses tell us to multiply.

ExAMPLE

Evaluate the expression 2x3+7 for each value for x.
.

  1. x=0
  2. x=1

Solution

  • Substitute 0 for x.
    2x3+7=2(0)3+7=0+7=7
  • Substitute 1 for x.
    2x3+7=2(1)3+7=2+7=5

If we always put negative numbers inside parentheses when we substitute, we are more likely to follow the order of operations correctly.

try it

 

example

Evaluate x2 when x=10.

Solution

x2=(10)2=100

 

try it

 

example

Evaluate 2x when x=5.

Solution

In this expression, the variable is an exponent.

2x
Substitute 5 for x. 25
Use the definition of exponent. 22222
Multiply. 32

When x=5, the expression 2x has a value of 32.

try it

 

example

Evaluate 3x+4y6 when x=10 and y=2.

Solution

3x+4y6=3(10)+4(2)6=3086=16

 

TRY IT

 

example

Evaluate 2x2+3x+8 when x=4.

Solution

2x2+3x+8
Substitute 4 for each x. 2((4))2+3(4)+8
Simplify 42 . 2(16)+3(4)+8
Multiply. 3212+8
Add. 36

Example

Evaluate 1x3 when x=5 and when x=3.

Solution

  • If we substitute 5 for x, the expression becomes 153=12. The answer is 12

 

  • If we substitute 3 for x, the expression becomes 133=10. A fraction where the denominator is zero is  undefined.

Example

Evaluate: 4x26x when x=3

Solution

4x26x
=4(3)26(3)

=49(18)

=43(92)

=1292

=1232

=1232

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.

Example

Evaluate x+yxxyy when x=12 and y=9.

Solution

x+yxxyy                    Substitute x=12 and y=9

=12+(9)1212(9)(9)          Simplify the numerators.

=312219                    Look for common factors between the numerator and denominator in each fraction.

=3343733                    Cancel common factors.

=1473                    Subtracting a negative is equivalent to adding a positive.

=14+73                    Build equivalent fractions with a common denominator of 12.

=1343+7434                    Multiply the numerators and denominators.

=312+2812                    Add the fractions by combining the numerators and keeping the common denominator.

=3+2812                    Add the numerators.

=3112

Try It

Evaluate x2y+y2x when x=6 and y=4.