<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
You are reading an older version of this FlexBook® textbook: CK-12 Algebra I Concepts Go to the latest version.

# 1.4: Order of Operations

Difficulty Level: At Grade Created by: CK-12
0%
Progress
Practice Order of Operations
Progress
0%

What if you had a mathematical expression with multiple operations like 174÷2+3×5\begin{align*}17 - 4 \div 2 + 3 \times 5\end{align*}? How could you find its value? After completing this Concept, you'll be able to use the order of operations to evaluate expressions like this one.

### Guidance

Look at and evaluate the following expression:

2+4×71=?

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:

2+4×71=6×71=421=41

This is the answer you would get if you entered the expression into an ordinary calculator. But if you entered the expression into a scientific calculator or a graphing calculator you would probably get 29 as the 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 show that it is to be evaluated first.

2+(4×7)1=?

First evaluate the brackets: 4×7=28\begin{align*}4 \times 7 = 28\end{align*}. Our expression becomes:

2+(28)1=?

When we have only addition and subtraction, we start at the left and work across:

2+281=301=29

Algebra students often use the word PEMDAS to help remember the order in which we evaluate the mathematical expressions: Parentheses, Exponents, Multiplication, Division, Addition and Subtraction.

Order of Operations

1. Evaluate expressions within Parentheses (also all brackets [ ]\begin{align*}[ \ ]\end{align*} and braces { }) first.
2. Evaluate all Exponents (terms such as 32\begin{align*}3^2\end{align*} or x3\begin{align*}x^3\end{align*}) next.
3. Multiplication and Division is next - work from left to right completing both multiplication and division in the order that they appear.
4. Finally, evaluate Addition and Subtraction - work from left to right completing both addition and subtraction in the order that they appear.

The first step in the order of operations is called parentheses, but we include all grouping symbols in this step—not just parentheses ()\begin{align*}( )\end{align*}, but also square brackets [ ]\begin{align*}[ \ ]\end{align*} and curly braces { }.

#### Example A

Evaluate the following:

a) 4711+2\begin{align*}4 - 7 - 11 + 2 \end{align*}

b) 4(711)+2\begin{align*}4 - (7 - 11) + 2\end{align*}

c) 4[7(11+2)]\begin{align*}4 - [7 - (11 + 2)] \end{align*}

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, exponents, multiplication, or division. PEMDAS states that we treat addition and subtraction as they appear, starting at the left and working right (it’s NOT addition then subtraction).

4711+2=311+2=14+2=12

b) This expression has parentheses, so we first evaluate 711=4\begin{align*}7 - 11= -4\end{align*}. Remember that when we subtract a negative it is equivalent to adding a positive:

4(711)+2=4(4)+2=8+2=10

c) An expression can contain any number of sets of parentheses. 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.

Brackets may also be used to group expressions which already contain parentheses. This expression has both brackets and parentheses. We start with the innermost group: 11+2=13\begin{align*}11 + 2 = 13\end{align*}. Then we complete the operation in the brackets.

4[7(11+2)]=4[7(13)]=4[6]=10

#### Example B

Evaluate the following:

a) 3×57÷2\begin{align*}3 \times 5 - 7 \div 2\end{align*}

b) 3×(57)÷2\begin{align*}3 \times (5 - 7) \div 2\end{align*}

a) There are no grouping symbols. PEMDAS dictates that we multiply and divide first, working from left to right: 3×5=15\begin{align*}3 \times 5 = 15\end{align*} and 7÷2=3.5\begin{align*}7 \div 2 = 3.5\end{align*}. (NOTE: It’s not multiplication then division.) Next we subtract:

3×57÷2=153.5=11.5

b) First, we evaluate the expression inside the parentheses: 57=2\begin{align*}5 - 7 = -2\end{align*}. Then work from left to right:

3×(57)÷2=3×(2)÷2=(6)÷2=3

We can also use the order of operations to simplify an expression that has variables in it, after we substitute specific values for those variables.

#### Example C

Use the order of operations to evaluate the following:

a) 2(3x+2)\begin{align*}2 - (3x + 2)\end{align*} when x=2\begin{align*}x = 2\end{align*}

b) 3y2+2y+1\begin{align*}3y^2 + 2y + 1\end{align*} when y=3\begin{align*}y = -3\end{align*}

a) The first step is to substitute the value for x\begin{align*}x\end{align*} into the expression. We can put it in parentheses to clarify the resulting expression.

2(3(2)+2)

(Note: 3(2)\begin{align*}3(2)\end{align*} is the same as 3×2\begin{align*}3 \times 2\end{align*}.)

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

2(3×2+2)28=2(6+2)Inside the parentheses, we multiply first.=6 Next we add inside the parentheses, and finally we subtract.

b) The first step is to substitute the value for y\begin{align*}y\end{align*} into the expression.

3×(3)2+2×(3)+1

Follow PEMDAS: we cannot simplify the expressions in parentheses, so exponents come next.

3×(3)2+2×(3)+1Evaluate exponents: (3)2=9=3×9+2×(3)+1  Evaluate multiplication: 3×9=27; 2×3=6=27+(6)+1  Add and subtract in order from left to right.=276+1=22

In part (b) 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.

Graphing Calculators

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

#### Example D

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

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

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

[3((3)21)2(3)4+12]+5(3)31

Input this in the calculator just as it is and press [ENTER]. (Note: use \begin{align*}\land\end{align*} to enter exponents)

The answer is -13.

Method 2: Input the original expression in the calculator first and then evaluate.

First, store the value x=3\begin{align*}x = -3\end{align*} in the calculator. Type -3 [STO] x\begin{align*}x\end{align*} (The letter x\begin{align*}x\end{align*} can be entered using the x\begin{align*}x-\end{align*}[VAR] button or [ALPHA] + [STO]). Then type the original 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 x=2\begin{align*}x = 2\end{align*} and x=23\begin{align*}x = \frac { 2 } { 3 } \end{align*}.

For x=2\begin{align*}x = 2\end{align*}, store the value of x\begin{align*}x\end{align*} in the calculator: 2\begin{align*}2\end{align*} [STO] x\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 expression.

The answer is 62.

For x=23\begin{align*}x = \frac { 2 } { 3 }\end{align*}, store the value of x\begin{align*}x\end{align*} in the calculator: 23\begin{align*} \frac { 2 } { 3 }\end{align*} [STO] x\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 107081\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.

Watch this video for help with the Examples above.

### Vocabulary

• Algebra students often use the word “PEMDAS” to help remember the order in which we evaluate the mathematical expressions: Parentheses, Exponents, Multiplication, Division, Addition and Subtraction.

Order of Operations

1. Evaluate expressions within Parentheses (also all brackets [ ]\begin{align*}[ \ ]\end{align*} and braces { }) first.
2. Evaluate all Exponents (terms such as 32\begin{align*}3^2\end{align*} or x3\begin{align*}x^3\end{align*}) next.
3. Multiplication and Division is next - work from left to right completing both multiplication and division in the order that they appear.
4. Finally, evaluate Addition and Subtraction - work from left to right completing both addition and subtraction in the order that they appear.
• The first step in the order of operations is called parentheses, but we include all grouping symbols in this step—not just parentheses ()\begin{align*}( )\end{align*}, but also square brackets [ ]\begin{align*}[ \ ]\end{align*} and curly braces { }.
• Sometimes expressions will have sets of parentheses inside other sets of parentheses. These are called nested parentheses.

### Guided Practice

Use the order of operations to evaluate the following:

a) (3×5)(7÷2)\begin{align*}(3 \times 5) - (7 \div 2)\end{align*}

b) 2(t7)2×(u3v)\begin{align*} 2 - (t - 7)^2 \times (u^3 - v)\end{align*} when t=19, u=4,\begin{align*}t = 19, \ u = 4, \end{align*} and v=2\begin{align*}v = 2\end{align*}

Solutions:

a) First, we evaluate the expressions inside parentheses: 3×5=15\begin{align*}3 \times 5 = 15\end{align*} and 7÷2=3.5\begin{align*}7 \div 2 = 3.5\end{align*}. Then work from left to right:

(3×5)(7÷2)=153.5=11.5

Note that adding parentheses didn’t change the expression in part c, but did make it easier to read. Parentheses can be used to change the order of operations in an expression, but they can also be used simply to make it easier to understand.

b) The first step is to substitute the values for t, u,\begin{align*}t, \ u,\end{align*} and v\begin{align*}v\end{align*} into the expression.

2(197)2×(432)

2(197)2×(432)Evaluate parentheses: (197)=12; (432)=(642)=62=2122×62 Evaluate exponents: 122=144=2144×62 Multiply: 144×62=8928=28928Subtract.=8926

Part (b) 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.

### Practice

1. Evaluate the following expressions involving variables.
1. 2y2\begin{align*}2y^2\end{align*} when x=1\begin{align*}x = 1\end{align*} and y=5\begin{align*}y = 5\end{align*}
2. 3x2+2x+1\begin{align*}3x^2 + 2x + 1\end{align*} when x=5\begin{align*}x = 5\end{align*}
2. Use the order of operations to evaluate the following expressions.
1. 2+7×1112÷3\begin{align*}2 + 7 \times 11 - 12 \div 3\end{align*}
3. Evaluate the following expressions involving variables.
1. \begin{align*}(y^2 - x)^2\end{align*} when \begin{align*}x = 2\end{align*} and \begin{align*}y = 1\end{align*}

For 4-6, use the order of operations to evaluate the following expressions.

1. \begin{align*}8 - (19 - (2 + 5) - 7)\end{align*}
2. \begin{align*}(3 + 7) \div (7 - 12) \end{align*}
3. \begin{align*}(4 - 1)^2 + 3^2 \cdot 2\end{align*}

For 7-10, insert parentheses in each expression to make a true equation.

1. \begin{align*}5 - 2 \times 6 - 5 + 2 = 5\end{align*}
2. \begin{align*}12 \div 4 + 10 - 3 \times 3 + 7 = 11\end{align*}
3. \begin{align*}22 - 32 - 5 \times 3 - 6 = 30\end{align*}
4. \begin{align*}12 - 8 - 4 \times 5 = -8\end{align*}

For 11-12, evaluate each expression using a graphing calculator.

1. \begin{align*}x^2 + 2x - xy\end{align*} when \begin{align*}x = 250\end{align*} and \begin{align*}y = -120\end{align*}
2. \begin{align*}(xy - y^4)^2\end{align*} when \begin{align*}x = 0.02\end{align*} and \begin{align*}y = -0.025\end{align*}

### Vocabulary Language: English

Brackets

Brackets

Brackets [ ], are symbols that are used to group numbers in mathematics. Brackets are the 'second level' of grouping symbols, used to enclose items already in parentheses.
Expression

Expression

An expression is a mathematical phrase containing variables, operations and/or numbers. Expressions do not include comparative operators such as equal signs or inequality symbols.
Grouping Symbols

Grouping Symbols

Grouping symbols are parentheses or brackets used to group numbers and operations.
nested parentheses

nested parentheses

Nested parentheses describe groups of terms inside of other groups. By convention, nested parentheses may be identified with other grouping symbols, such as the braces "{}" and brackets "[]" in the expression $\{ 3 + [ 2 - ( 5 + 4 ) ] \}$. Always evaluate parentheses from the innermost set outward.
Operations

Operations

Operations are actions performed on variables, constants, or expressions. Common operations are addition, subtraction, multiplication, and division.
Parentheses

Parentheses

Parentheses "(" and ")" are used in algebraic expressions as grouping symbols.
PEMDAS

PEMDAS

PEMDAS (Please Excuse My Daring Aunt Sally) is a mnemonic device used to help remember the order of operations: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction.
Real Number

Real Number

A real number is a number that can be plotted on a number line. Real numbers include all rational and irrational numbers.

## Date Created:

Sep 26, 2012

Sep 27, 2015
Files can only be attached to the latest version of Modality