# 1.2: Order of Operations

**At Grade**Created by: CK-12

## Learning Objectives

- Evaluate algebraic expressions with grouping symbols.
- Evaluate algebraic expressions with fraction bars.
- Evaluate algebraic expressions with a graphing calculator.

## Introduction

Look at and evaluate the following expression:

How many different ways can we interpret this problem, and how many different answers could someone possibly find for it?

The *simplest* way to evaluate the expression is simply to start at the left and work your way across, keeping track of the total as you go:

If you enter the expression into a *non-scientific*, non-graphing calculator you will probably get 41 as the answer. If, on the other hand, you were to enter the expression into a scientific calculator or a graphing calculator you would probably get 29 as an answer.

In mathematics, the order in which we perform the various **operations** (such as adding, multiplying, etc.) is important. In the expression above, the operation of **multiplication** takes precedence over **addition** so we evaluate it first. Let’s re-write the expression, but put the multiplication in brackets to indicate that it is to be evaluated first.

So we first evaluate the brackets:

When we have only addition and subtraction, we start at the left and keep track of the total as we go:

Algebra students often use the word **“PEMDAS”** to help remember the order in which we evaluate the mathematical expressions: **P**arentheses, **E**xponents, **M**ultiplication, **D**ivision, **A**ddition and **S**ubtraction.

## Order of Operations

- Evaluate expressions within
**P**arentheses (also all brackets [ ] and braces { } ) first. - Evaluate all
**E**xponents (squared or cubed terms such as32 orx3 ) next. -
**M**ultiplication*and***D**ivision is next – work from left to right completing**both**multiplication and division in the order that they appear. - Finally, evaluate
**A**ddition*and***S**ubtraction – work from left to right completing**both**addition and subtraction in the order that they appear.

## Evaluate Algebraic Expressions with Grouping Symbols

The first step in the order of operations is called **parentheses**, but we include all **grouping symbols** in this step. While we will mostly use parentheses ( ) in this book, you may also see square brackets [ ] and curly braces { } and you should include them as part of the first step.

**Example 1**

*Evaluate the following:*

a)

b)

c)

Each of these expressions has the same numbers and the same mathematical operations, in the same order. The placement of the various grouping symbols means, however, that we must evaluate everything in a different order each time. Let's look at how we evaluate each of these examples.

a) This expression doesn't have parentheses. PEMDAS states that we treat addition and subtraction as they appear, starting at the left and working right (it’s NOT addition *then* subtraction).

**Solution**

b) This expression has parentheses. We first evaluate

**Solution**

c) Brackets are often used to group expressions which already contain parentheses. This expression has both brackets and parentheses. Do the innermost group first,

**Solution**

**Example 2**

*Evaluate the following:*

a)

b)

c)

a) There are no grouping symbols. PEMDAS dictates that we evaluate multiplication and division first, working from left to right: *then* addition) Next we perform the subtraction:

**Solution**

b) First, we evaluate the expression inside the parentheses:

**Solution**

c) First, we evaluate the expressions inside parentheses:

**Solution**

Note that in part (c), the result was unchanged by adding parentheses, but the expression does appear easier to read. Parentheses can be used in two distinct ways:

- To alter the order of operations in a given expression
- To clarify the expression to make it easier to understand

Some expressions contain no parentheses, others contain many sets. Sometimes expressions will have sets of parentheses **inside** other sets of parentheses. When faced with **nested parentheses**, start at the innermost parentheses and work outward.

**Example 3**

*Use the order of operations to evaluate:*

Follow PEMDAS – first parentheses, starting with innermost brackets first:

**Solution**

In algebra, we use the order of operations when we are substituting values into expressions for variables. In those situations we will be given an expression involving a variable or variables, and also the values to substitute for any variables in that expression.

**Example 4**

*Use the order of operations to evaluate the following:*

a)

b)

c)

a) The first step is to substitute in the value for

**Solution**

Follow PEMDAS – first parentheses. Inside parentheses follow PEMDAS again.

b) The first step is to substitute in the value for

**Solution**

Follow PEMDAS: we cannot simplify parentheses.

c) The first step is to substitute the values for

**Solution:**

Follow **PEMDAS:**

In parts (b) and (c) we left the parentheses around the negative numbers to clarify the problem. They did not affect the order of operations, but they did help avoid confusion when we were multiplying negative numbers.

Part (c) in the last example shows another interesting point. When we have an expression inside the parentheses, we use PEMDAS to determine the order in which we evaluate the contents.

## Evaluating Algebraic Expressions with Fraction Bars

Fraction bars count as grouping symbols for PEMDAS, and should therefore be evaluated in the first step of solving an expression. All numerators and all denominators can be treated as if they have invisible parentheses. When **real** parentheses are also present, remember that the innermost grouping symbols should be evaluated first. If, for example, parentheses appear on a numerator, they would take precedence over the fraction bar. If the parentheses appear outside of the fraction, then the fraction bar takes precedence.

**Example 5**

*Use the order of operations to evaluate the following expressions:*

a) *When*

b) *When*

c) *When* \begin{align*}w =11, x=3, y=1\end{align*} and \begin{align*}z=-2\end{align*}

a) We substitute the value for \begin{align*}z\end{align*} into the expression.

**Solution:**

\begin{align*} \frac{2 + 3} {4} - 1\end{align*}

Although this expression has no parentheses, we will rewrite it to show the effect of the fraction bar.

\begin{align*} \frac{(2 + 3)} {4} - 1\end{align*}

Using PEMDAS, we first evaluate the expression on the numerator.

\begin{align*} \frac{5} {4} - 1\end{align*}

We can convert \begin{align*}\frac{5}{4}\end{align*} to a mixed number:

\begin{align*} \frac{5}{4}=1\frac{1}{4}\end{align*}

Then evaluate the expression:

\begin{align*}\frac{5}{4}-1=1\frac{1}{4} -1= \frac{1}{4}\end{align*}

b) We substitute the values for \begin{align*}a \end{align*} and \begin{align*}b\end{align*} into the expression:

**Solution:**

\begin{align*} \left( \frac{3 + 2} {1 + 4} - 1 \right) - 1\end{align*}

This expression has nested parentheses (remember the effect of the fraction bar on the numerator and denominator). The innermost grouping symbol is provided by the fraction bar. We evaluate the numerator \begin{align*}(3+2)\end{align*} and denominator \begin{align*}(1+4)\end{align*} first.

\begin{align*}& \left (\frac{5} {5} - 1 \right ) - 1 & & \text{Now we evaluate the inside of the parentheses, starting with division}.\\ & (1 - 1) - 1 & & \text{Next the subtraction}.\\ & 0 - 1 = -1\end{align*}

c) We substitute the values for \begin{align*}w, x, y\end{align*} and \begin{align*}z\end{align*} into the expression:

**Solution:**

This complicated expression has several layers of nested parentheses. One method for ensuring that we start with the innermost parentheses is to make use of the other types of brackets. We can rewrite this expression, putting brackets in for the fraction bar. The outermost brackets we will leave as parentheses ( ). Next will be the *invisible brackets* from the fraction bar, these will be written as [ ]. The third level of nested parentheses will be the { }. We will leave negative numbers in round brackets.

\begin{align*}& 2 \left(\frac{[11 + \left \{ \right . 3 - 2(-2)\left . \right \}]} {[\left \{ \right .1 + 2\left . \right \}^2]} - 1 \right) && \text{We start with the innermost grouping sign} \left \{ \right \}.\\ & & &\left \{ \right . 1 + 2\left . \right \} = 3; \left \{ \right . 3 - 2(-2)\left . \right \} = 3 + 4 = 7 \\ & 2 \left (\frac{[11 + 7]} {[3^2]} - 1 \right) & & \text{The next level has two square brackets to evaluate}.\\ & 2 \left(\frac{18} {9} - 1 \right) & & \text{We now evaluate the round brackets, starting with division}.\\ & 2(2 - 1) & & \text{Finally, we complete the addition and subtraction}.\\ & 2 (1) = 2 \end{align*}

## Evaluate Algebraic Expressions with a TI-83/84 Family Graphing Calculator

A graphing calculator is a very useful tool in evaluating algebraic expressions. The graphing calculator follows PEMDAS. In this section we will explain two ways of evaluating expressions with the graphing calculator.

**Method 1:** Substitute for the variable first. Then evaluate the numerical expression with the calculator.

**Example 6**

*Evaluate* \begin{align*}[3(x^2 -1)^2 - x^4 +12]+5x^3 -1\end{align*} *when* \begin{align*}x=-3\end{align*}

**Solution:**

*Substitute the value* \begin{align*}x=-3\end{align*} *into the expression.*

\begin{align*}[3((-3)^2 -1)^2 - (-3)^4 +12]+5(-3)^3 -1\end{align*}

*Input this in the calculator just as it is and press* **[ENTER]**. *(Note, use for exponents)*

*The answer is -13.*

**Method 2:** Input the original expression in the calculator first and then evaluate. Let’s look at the same example.

*Evaluate* \begin{align*}[3(x^2 -1)^2 - x^4 +12]+5x^3 -1\end{align*} *when* \begin{align*}x=-3\end{align*}

*First, store the value* \begin{align*}x=-3\end{align*} *in the calculator. Type -3* **[STO]** \begin{align*}x\end{align*} *(The letter* \begin{align*} x \end{align*} *can be entered using the* \begin{align*} x \end{align*}-**[VAR]** *button or* **[ALPHA]** + **[STO]**). *Then type in the expression in the calculator and press* **[ENTER]**.

*The answer is -13.*

The second method is better because you can easily evaluate the same expression for any value you want. For example, let’s evaluate the same expression using the values \begin{align*} x =2\end{align*} *and* \begin{align*}x= \frac{2}{3}\end{align*}.

For \begin{align*} x =2\end{align*}, store the value of \begin{align*} x \end{align*} in the calculator: 2 **[STO]** \begin{align*} x \end{align*}. Press **[2nd]** **[ENTER]** twice to get the previous expression you typed in on the screen without having to enter it again. Press **[ENTER]** to evaluate.

The answer is 62.

For \begin{align*} x=\frac{2}{3}\end{align*}, store the value of \begin{align*} x \end{align*} in the calculator: \begin{align*} \frac{2} {3}\end{align*} **[STO]** \begin{align*} x \end{align*}. Press **[2nd]** **[ENTER]** twice to get the expression on the screen without having to enter it again. Press **[ENTER]** to evaluate.

The answer is 13.21 or \begin{align*}\frac{1070}{81}\end{align*} in fraction form.

Note: On graphing calculators there is a difference between the minus sign and the negative sign. When we stored the value negative three, we needed to use the negative sign which is to the left of the **[ENTER]** button on the calculator. On the other hand, to perform the subtraction operation in the expression we used the minus sign. The minus sign is right above the plus sign on the right.

You can also use a graphing calculator to evaluate expressions with more than one variable.

**Example 7**

*Evaluate the expression:* \begin{align*} \frac{3x^2 - 4y^2 + x^4} {\left(x + y\right)^{\frac{1}{2}}}\end{align*} *for* \begin{align*}x=-2, y=1\end{align*}.

**Solution**

Store the values of \begin{align*} x \end{align*} and \begin{align*} y \end{align*}. -2 **[STO]** \begin{align*} x \end{align*}, 1 **[STO]** \begin{align*}y\end{align*}. The letters \begin{align*} x \end{align*} and \begin{align*} y \end{align*} can be entered using **[ALPHA]** + **[KEY]**. Input the expression in the calculator. When an expression shows the division of two expressions be sure to use parentheses: (numerator) \begin{align*}\div\end{align*} (denominator)

Press **[ENTER]** to obtain the answer \begin{align*} -.8\overline{8}\end{align*} or \begin{align*} - \frac{8} {9}\end{align*}.

## Review Questions

- Use the order of operations to evaluate the following expressions.
- \begin{align*}8-(19-(2+5)-7)\end{align*}
- \begin{align*}2+7 \times 11-12 \div 3\end{align*}
- \begin{align*}(3+7) \div (7-12) \end{align*}
- \begin{align*} \frac{2 \cdot (3 + (2 - 1))} {4 - (6 + 2)} - (3 - 5)\end{align*}

- Evaluate the following expressions involving variables.
- \begin{align*} \frac{jk} {j + k}\end{align*} when \begin{align*}j=6\end{align*} and \begin{align*}k=12\end{align*}.
- \begin{align*}2y^2\end{align*} when \begin{align*} x=1\end{align*} and \begin{align*}y=5\end{align*}
- \begin{align*}3x^2 +2x+1\end{align*} when \begin{align*} x=5 \end{align*}
- \begin{align*} (y^2-x)^2\end{align*} when \begin{align*} x=2 \end{align*} and \begin{align*} y=1 \end{align*}

- Evaluate the following expressions involving variables.
- \begin{align*} \frac{4x} {9x^2 - 3x +1}\end{align*} when \begin{align*} x=2 \end{align*}
- \begin{align*} \frac{z^2} {x + y} + \frac{x^2} {x - y}\end{align*} when \begin{align*} x=1, y=-2\end{align*}, and \begin{align*} z=4 \end{align*}.
- \begin{align*} \frac{4xyz} {y^2 - x^2}\end{align*} when \begin{align*} x=3, y=2\end{align*}, and \begin{align*} z=5 \end{align*}
- \begin{align*} \frac{x^2 - z^2} {xz - 2x(z - x)}\end{align*} when \begin{align*}x=-1 \end{align*} and \begin{align*} z=3 \end{align*}

- Insert parentheses in each expression to make a true equation.
- \begin{align*}5-2 \cdot 6-5+2=5\end{align*}
- \begin{align*}12 \div 4+10-3 \cdot 3 +7=11\end{align*}
- \begin{align*}2^2-3^2-5 \cdot 3-6=30\end{align*}
- \begin{align*}12-8-4 \cdot 5=-8\end{align*}

- Evaluate each expression using a graphing calculator.
- \begin{align*}x^2+2x-xy\end{align*} when \begin{align*} x=250 \end{align*} and \begin{align*} y=-120 \end{align*}
- \begin{align*}(xy-y^4)^2\end{align*} when \begin{align*} x=0.02 \end{align*} and \begin{align*} y=-0.025 \end{align*}
- \begin{align*} \frac{x + y - z} {xy + yz + xz}\end{align*} when \begin{align*} x=\frac{1}{2}, y=\frac{3}{2}\end{align*}, and \begin{align*} z=-1 \end{align*}
- \begin{align*} \frac{(x + y)^2} {4x^2 - y^2}\end{align*} when \begin{align*} x=3 \end{align*} and \begin{align*}y=-5\end{align*}

## Review Answers

- 3
- 75
- -2
- -2

- 4
- 300
- 86
- 3

- \begin{align*} \frac{8}{31} \end{align*}
- \begin{align*}-\frac{47}{3} \end{align*}
- -24
- \begin{align*}-\frac{8}{5} \end{align*}

- \begin{align*}(5-2)\cdot (6-5)+2=5\end{align*}
- \begin{align*}(12\div 4)+10-(3 \cdot 3) +7=11\end{align*}
- \begin{align*}(2^2-3^2-5) \cdot (3-6)=30\end{align*}
- \begin{align*}12-(8-4) \cdot 5 =-8\end{align*}

- 93000
- 0.00000025
- \begin{align*}-\frac{12}{5} \end{align*}
- \begin{align*}\frac{4}{11} \end{align*}

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |