Shirley is a math tutor and is working with middle-schooler Marcus once a week. One day, Marcus arrived with a problem that not even Shirley knew how to answer.

How can Shirley and Marcus work out the correct answer to this problem? Are there any rules they need to follow?

In this concept, you will learn to evaluate variable expressions with powers by applying the order of operations.

### PEMDAS

The order of operations is a necessary tool to use when evaluating expressions. Remember the order in which the mathematical operations are performed affect your answer. You can recall the order of operations using the shorthand form PEMDAS.

**P** parentheses or grouping symbols

**E** exponents

**MD** multiplication and division in order from left to right

**AS** addition and subtraction in order from left to right

Let’s look at an example.

Evaluate the following variable expression.

when

Next, expand the power:and write the new expression.

Remembersince the base is 5. However,since the base is.

Next, perform the operations inside the grouping symbols.

First, multiply: and write the new expression.

Then, divide: and write the new expression.

Next, multiply: and write the new expression.

Then, multiply:

and write the new expression.

Then, multiply: to clear the parenthesis. Write the new expression.

Next, divide: and write the new expression.

Next, add: and write the new expression.

Then, subtract:

The answer is 126.

Let’s look at one more example. This example will be a variable expression with two different variables. There will be a value given for each of the variables. You simply substitute the given values for each variable into the expression and evaluate the new numerical expression.

Evaluate the following variable expression:

when and

First, substitute

and into the expression. Write the new expression.

Next, expand the power: . Write the new expression.

Then, perform the operations inside the parenthesis.

First, multiply: and write the new expression.

Then, divide: and write the new expression.

Next, multiply: and write the new expression.

Then, multiply: to clear the parenthesis. Write the new expression.

Next, subtract: and write the new expression.

Then, add:

The answer is 117.

When you have powers included in variable and numerical expressions, you must use the order of operations to evaluate the expressions. No matter how complicated the problem seems to be, applying the order of operations as defined by PEMDAS will guide you to a correct answer as you evaluate the expression.

### Examples

#### Example 1

Earlier, you were given a problem about Shirley and Marcus and their brain-bending problem.

They need to figure out the correct answer to the following problem.

for and

Shirley and Marcus must apply the order of operations to evaluate the problem correctly.

First, substitute

and into the expression.

Next, expand the powers.

Next, do the multiplication inside the parentheses.

Next, do the multiplication to clear the parentheses.

Then, in order from left to right, perform the addition and subtraction.

The answer is 115.

#### Example 2

Evaluate the following variable expression:

Next, multiply: and write the new expression.

Then, add:

The answer is 32.

#### Example 3

Evaluate the following variable expression.

when.

First, substitute

into the variable expression.

Next, expand the power: and write the new expression.

Next, multiply:

to clear the parenthesis. Write the new expression.

Next, multiply: and write the new expression.

Then, add:

The answer is -92 .

#### Example 4

Evaluate the following variable expression:

when and

First, substitute andinto the variable expression.

Next, expand the power:and write the new expression.

Next, multiply: to clear the parenthesis. Write the new expression.

Next, multiply: to clear the parenthesis. Write the new expression.

Next multiply: and write the new expression.

Then, add:

The answer is 75.

### Review

Evaluate each numerical expression. Remember to follow the order of operations.

1.

2.

3.

4.

5.

Evaluate each variable expression by substituting the given value into each expression. Remember to follow the order of operations.

6. for .

7. for .

8. for .

9. for .

10. for

.11. for .

12. for .

13.

for .14. for .

15. for

.16. for

.### Review (Answers)

To see the Review answers, open this PDF file and look for section 1.7.

** **