CHAPTER 1: NUMBER SENSE

1-5 The Order of Operations

The Order of Operations

Scenario 1

Jack walked into a restaurant. He asked the hostess where the kitchen was. He walked into the kitchen and asked the chef to make a meal for him. Then, he walked into the dining room and sat down at a table that had a tag saying “Reserved” on it and waited for his meal to arrive.

It turned out that Jack did not get his meal. Instead, Jack was escorted out of the restaurant.

Why did Jack not get his meal? Jack did not follow the order of operations for life. The order of operations for ordering a meal in the restaurant could be this: Ask to be seated, tell the server what you would like to eat when they visit your table, eat your meal when it is brought to you, ask for your bill, pay your server or the cashier.

 

Scenario 2

Leslie’s alarm went off and it was time to get up. They got out of bed, took off their pjs and started to get dressed. They put on a shirt and a pair of pants, then their socks and underwear. Then they walked into the bathroom to brush their teeth and take a quick shower. Leslie was ready for the day!

Was Leslie really ready for the day? Leslie did not follow the order of operations for getting up in the morning. They should have gotten out of bed and started in the bathroom. After removing their pjs they should have brushed their teeth then taken a shower (or vice versa). Getting dressed, they should have started with their underwear and socks, then added a shirt and pants. Then they would have been ready for the day!

In many real-life situations, we need to know the order of operations (e.g., cooking, baking, driving, construction, …) in order to do things safely, correctly, or considerately, and get things done. In mathematics, we also need to know the order of operations for arithmetic so that we perform computations correctly.

The Emergence of the Order of Operations in Arithmetic

What is formally called, the order of operations in mathematics (also referred to as operator precedence) has been around since the 16th and 17th centuries when exponents were first introduced. Order of operations started to show up in textbooks in the late 1800s, was still being debated in the 1920s, and was basically agreed upon in the 1960s.  It is a set of rules that reflect conventions about which arithmetic and algebraic procedures need to be performed first to evaluate a mathematical expression. The conventions were agreed upon to eliminate notational ambiguity, to keep notation as brief as possible, and to improve mathematical communication.

The order of operations is defined by the precedence of the operators. Addition and subtraction are at the lowest, most basic level. Subtraction is simply addition of the opposite, so subtraction can always be written as addition. Multiplication is repeated addition, and division is multiplication of the reciprocal. So, division can always be written as multiplication. Multiplication is at the second level. Exponents indicate repeated multiplication, so exponents are at the 3rd level. The order of operations works from the highest level down, so exponents are calculated before multiplication, which is calculated before addition. Grouping symbols like parentheses ( ), brackets [ ], and braces { } are used to group terms together and signify that the operations inside them must be completed first as a unit. So, all we must remember is Grouping, Exponents, Multiplication, then Addition (GEMA).

The Order of Operations: GEMA

The order of operations is used to complete arithmetic operations in the correct order.

Grouping–work inside grouping symbols like ( ), [ ], and { } first following GEMA

Exponents–evaluate exponents next

Multiplication–evaluate multiplication and division from left to right

Addition–evaluate addition and subtraction from left to right

 

According to Pew Research[1], 96 percent of US adults aged 18 – 29 own a smartphone. That means that they own a calculator! Calculators are tools and we need to learn how to use them. The calculator will only give us the answer to the information we input through the buttons we push. The adage of “garbage in-garbage out” still prevails, so knowing how to input information correctly is key. But we also need to use reasoning and common sense to know whether our calculation is correct. Having a rough idea of what the answer should be and whether the answer makes sense will help us get to the correct answer.

Explore Icon Parentheses

Explore 1 – Parentheses

John’s sister asks him to use a calculator to help double check her homework question:

\dfrac{5-3}{8-3}

John picked up a calculator and input:  \ovalbox{5}\;\ovalbox{-}\;\ovalbox{3}\;\ovalbox{÷}\;\ovalbox{8}\;\ovalbox{-}\;\ovalbox{3}\;\ovalbox{=}

Will he get the correct answer? Explain your reasoning. Test this on your calculator.

Solution

John’s answer was 1.625, which is incorrect. But how do we know it was incorrect? Calculators have the order of operations programmed into them, so when the calculator saw 5-3\div8-3= it followed the order of operations. The operations input into the calculator are subtraction (addition of the opposite) and division (multiplication by the reciprocal), so, since division is of higher priority than subtraction, the calculator divided first:

5-\color{blue}{3\div8}\color{black}{-3}

To get the correct answer, parentheses must be included around the numerator and denominator so that the calculator knows to complete the operation of subtraction on each of the numerator and denominator first before completing the division.

To input this question correctly, John needs to use a pair of parentheses to group \left(5-3\right) on the numerator and \left(8-3\right) on the denominator so that numerator and denominator are evaluated before they are divided. This is because the priority of the grouping symbol parentheses and the operations inside the parentheses are higher than any objects and operations outside the parentheses.

To correct his work, John should input,

\ovalbox{(}\;\ovalbox{5}\;\ovalbox{-}\;\ovalbox{3}\;\ovalbox{)}\;\ovalbox{÷}\;\ovalbox{(}\;\ovalbox{8}\;\ovalbox{-}\;\ovalbox{3}\;\ovalbox{)}\;\ovalbox{=}

This will result in the correct answer 0.4.

 

Explore 2 – Consecutive multiplications or divisions of numbers

John learned from his mistakes. This time John uses a pair of parentheses to input the following operation into his calculator.

\dfrac{(10-6)\times4\div2+1}{2}

  1. John said he can simplify the question first by dividing 4 by 2 and get

\dfrac{(10-6)\times2+1}{2}

     2. John then inputs

\ovalbox{(}\;\ovalbox{1}\;\ovalbox{0}\;\ovalbox{-}\ovalbox{6}\;\ovalbox{)}\;\boxed{\times}\;\ovalbox{2}\;\ovalbox{+}\;\ovalbox{1}\;\ovalbox{÷}\;\ovalbox{2}\;\ovalbox{=}

Will he get the correct answer?  Explain your reasoning.

Solution

Unfortunately, John got it wrong again. First, John should not simplify by dividing 4 by 2 because 4 needs to be grouped with (10-6). When there are more than two or more consecutive multiplications or divisions or multiplication and division combined, the operations should be performed from the left to the right. Therefore, the multiplication (10-6)\times4 will be performed first, and the the result will be divided by 2.

Second, according to the order of operations, in his input 1 is grouped with 2 because the priority of division is higher than addition. Therefore, the operations John performs are different from the question. The operations the calculator performs are:

(10-6)\times2+\color{blue}{1\div2}

To fix the two mistakes, John should not simply by dividing 4 by 2. Also, John needs another pair of grouping symbols to include +1 as part of the numerator. Since the numerator already includes a set of parentheses, John can use another type of grouping symbols, brackets:

\left[\left(10-6\right)\times4\div2+1\right]\div2=

The brackets enclose the operations (10-6)\times4\div2+1 and these operations must be performed first following GEMA, before being divided by 2. This puts all operations on the numerator inside the brackets and 2 on the denominator.

Although using brackets [ ] to enclose parentheses ( ) is mathematically correct when we are writing math, most calculators just use multiple sets of parentheses. Consequently, John’s calculator input should be,

\ovalbox{(}\;\ovalbox{(}\ovalbox{1}\;\ovalbox{0}\;\ovalbox{-}\;\ovalbox{6}\;\ovalbox{)}\;\boxed{\times}\;\ovalbox{4}\;\ovalbox{÷}\;\ovalbox{2}\;\ovalbox{+}\;\ovalbox{1}\;\ovalbox{)}\;\ovalbox{÷}\;\ovalbox{2}\;\ovalbox{=}

The correct answer is 4.5.

Reflect Icon

 

  • Why do we use parentheses in numerical expressions?
Show/Hide Answer

Parentheses are used to group specific operations together. They are also used to group operations on a numerator or a denominator of a division problem.

 

  • Why are different types of grouping symbols used (e.g., parentheses and brackets)?
Show/Hide Answer

When writing grouping symbols within grouping symbols (nested grouping), different grouping symbols are used to make the expression easier to read. Parentheses ( ) are placed within brackets [ ] which are placed within braces { }. It just makes it easier to see when a expression that is grouped begins and ends.

 

 

Explore IconEvaluating Exponents

 

Explore 3 – Exponents

The population of a certain bacteria that loves cheese doubles twice per hour when the temperature is around 75oF. If a cheese that has 1 bacterium is left out of the fridge on a warm day, what is the number of bacteria on the cheese after 5 hours?

One student used the calculation,

\begin{aligned}&\;\;\;\;\;1+(1\times2)+(1\times2)+(1\times2)+(1\times2)+(1\times2) \\&= 1+2+2+2+2+2 \\&= 11\end{aligned}

Is the student’s answer correct? Explain your reasoning.

Solution

The student’s answer is not correct.

The mistake the student made is that the doubling process is based on the initial number of bacteria (i.e., 1 bacterium). The correct process should be that the doubling process is based on the current number of bacteria. To illustrate, after one hour, the number of bacteria is 1\times2=2. For the next hour, the doubling process is based on the current number of bacteria that is 2. Therefore, after two hours, the number of bacteria is 1\times2\times2=2^2=4.

The doubling process across the five hours is illustrated in figure 1.

Chart showing how bacteria doubles every hour
Figure 1. Doubling growth

Since we are multiplying by 2 every hour, a pattern arises.

After 5 hours, the number of bacteria is 1\times2^5=32.

To calculate this on a calculator, we use the exponent key.

The exponent key will either look like a carat \boxed{\wedge} or an exponential expression \ovalbox {y^x} or \ovalbox {x^y}

To input 2^5 we type:  \ovalbox{2}\;\boxed{\wedge}\;\ovalbox{5}\;\ovalbox{=} and get an answer of 32.

Alternatively, we type: \ovalbox{2}\;\boxed{y^x}\;\ovalbox{5}\;\ovalbox{=} and get the same answer.

It is very important that you get to know your calculator. Don’t assume that you will automatically get the correct answer. Remember, garbage in; garbage out!

 

Explore 4 – Exponents

Following Explore 3, if a cheese that has 8 bacteria is left out of the fridge on a summer’s day, what is the number of bacteria on the cheese after 5 hours?

One student used the calculation,

\begin{aligned}&\;\;\;\;\;8\times2\times2\times2\times2\times2\\&=8\times2^5 \\&= 8\times10 \\&= 80\end{aligned}

Is the student’s answer correct? Explain your reasoning.

Solution

The students’ answer is not correct. The correct answer is:

\begin{aligned}&\;\;\;\;\;8\times\color{blue}{2^5} \\&= 8\times\color{blue}{32} \\&= 256\end{aligned}.

The mistake the student made is that the student multiplied the base of the exponential expression 2 by the exponent 5. The student should instead perform the exponential expression 2^5 = 2\times2\times2\times2\times2=32 first, and then multiply 32 by 8.

To put the expression 8\times2^5 into a calculator, we input \ovalbox{8}\;\boxed{\times}\;\boxed{\wedge}\;\ovalbox{5}\;\ovalbox{=} and get the answer 256.

 

Reflect Icon

  • What is the purpose of exponents?
Show/Hide Answer

Exponents represent repeated multiplication by the same number. The base tells us which number is being multiplied each time and the exponent tells us how many times to multiply the base by itself. Exponents are a shorthand way of writing multiple multiplication of the same number.

  • How do exponents fit into the order of operations?
Show/Hide Answer

Exponents are evaluated first after all expressions inside grouping symbols have been taken care of.

 

Practice Exercises

Write out exactly what you would input into the calculator to evaluate each expression:

1.   3-4\times(5-2)

2.   \dfrac{3\cdot7-2}{4+5\cdot 3}

3.   3.4+2.5(3.2-6.2)

4.   4.5+\dfrac{3-5.2\times4}{5.2-6.3}

5.   Bailey received her city utilities bill in the mail.

Utilities bill in the form of a table

a) What utilities are included in this bill?

b) What measurement unit is the column rate per unit measured in?

c) Calculate the cost column values in the table and calculate the total charges based on the information in the table.

d) How many decimal places are there after the point for the total charge?

e) What would you round the total charges to? Explain your reasoning.

 

Show/Hide Answer
    1. 3\,-\,4\,\times\,(\,5\,-\,2\,)\,=
    2. (\,3\,\times\,7\,-\,2\,)\,\div\,(\,4\,+\,5\,\times\,3\,)\,=
    3. 3.4\,+\,2.5\,\times\,(\,3.2\,-\,6.2\,)\,=
    4. 4.5\,+\,(\,3\,-\,5.2\,\times\,4\,)\,\div\,(\,5.2\,-\,6.3\,)\,=
    5. a) The utilities covered in this bill are water, containers (garbage and recycling), sewer, storm water, and street lights.

b) The measurement unit for this column is not given. However, since we are looking at cost it makes sense that it is in $ per unit. For example, the water service fee has a units of days so the rate per unit would be $ per day.

c) The cost of water is made up of three sections: service fee + winter rate + blocks of water used. Therefore, the total cost will be the sum of the costs for each of these sections. Each separate cost can be calculated by multiplying the #units by the cost per unit.

Water total = 31\times 0.3049+0.55\times1.3700+0.45\times1.3700=10.8219

Container total =31\times0.5832+31\times0.5832=36.1584

Sewer total =31\times0.2852=8.8412

Storm water total =31\times0.1784=5.5304

Streetlights total =31\times0.1225=3.7975

Therefore, Total charges = $10.8219 + $36.1584 + $8.8412 + $5.5304 + $3.7975 = $65.1494

d) There are 4 decimal places after the point.

e) $65.1494 would be rounded to $65.15 since there is no way to pay a value less than 1 cent. The digit 9 following the 4 in the cents place is greater than or equal to 5, so the 4 gets rounded up to 5.

 

In this section, we will use order of operations to solve realistic problems.

Perspectives

  1. When banks calculate interest they use the formula

A = P(1+r)^t

A formula is just a rule that tells us how to combine numbers. Since the numbers in a formula can change depending on the situation, we use letters to denote these variable numbers. As such, these letters are called variables. In this formula, the variable A stands for account balance, P stands for principal (the initial deposit), r stands for yearly interest rate, and t stands for the number of years the principal is invested. If we know the value of each variable we can rewrite the formula substituting given values for the variables.

Suppose P=5000, r=0.1, and t=5. The only unknown variable value is A.

Tammy inputs the given numbers into the formula:  A=5000\left(1+0.1\right)^5

then uses her calculator as follows:

\ovalbox{5}\;\ovalbox{0}\;\ovalbox{0}\;\ovalbox{0}\;\boxed{\times}\;\ovalbox{1}\;\ovalbox{+}\;\ovalbox{0}\;\ovalbox{.}\;\ovalbox{1}\;\boxed{\wedge}\;\ovalbox{5}

Will Tammy get the correct answer? Explain your reasoning.

  1. Every book published is assigned a unique International Standard Book Number (ISBN), which, since January 1st, 2007, consists of 13 digits.ISBN number image

The last digit is called a check digit and is used to make sure there are no errors in the first 12 digits.  The check digit is calculated by multiplying each of the first 12 digits by alternating weights of 1 and 3, adding the products up, then finding the remainder when that sum is divided by 10.

a) Write the operations to generate the checking digit.
b) Calculate the check digit. Is the check digit correct in this example?  Explain your reasoning.
c) Find the check digit X for the ISBN 979-54-38602-04-X.

Show/Hide Answer
  1. No. Tammy will not get the correct answer. Following the order of operations, the correct answer is:

\begin{aligned}&\;\;\;\;\;5000\times(1+0.1)^5 \\&= 5000\times1.1^5 \\&= 5000\times1.61051 \\&= 8052.55\end{aligned}

Tammy made a mistake. Tammy should have used a pair of parentheses to enclose the operation 1+0.1 so that the number 1 was added to 0.1 instead of being multiplied by 5000. In the order of operations, operations inside parentheses have higher priority than any operations outside the parentheses. Therefore, 1 should be added to 0.1 first. After evaluating the operation inside the parentheses, we get 1.1. The exponential expression 1.1^5 should then be evaluated because the priority of exponents is higher than the associated multiplication (i.e., multiplied by 5000).

The correct input is \ovalbox{5}\;\ovalbox{0}\;\ovalbox{0}\;\ovalbox{0}\;\boxed{\times}\;\ovalbox{(}\;\ovalbox{1}\;\ovalbox{+}\;\ovalbox{0}\;\ovalbox{.}\;\ovalbox{1}\;\ovalbox{)}\;\boxed{\wedge}\;\ovalbox{5} and the correct answer is 8052.55. Consequently, the account balance after 5 years would be $8052.55.

 

  1. a)  The operations for generating the checking digit are:

\normalsize{(1\times9+3\times7+1\times8+3\times3+1\times1+3\times6+1\times1+3\times4+1\times8+3\times4+1\times1+3\times0)\div10}

Alternatively, [1\times(9+8+1+1+8+1)+3\times(7+3+6+4+4+0)]\div10

b)  The calculation is (9+21+8+9+1+18+1+12+8+12+1+0)\div10=100\div10=10.

The remainder when 10 is divided by 10 is 0. Therefore, the check digit is 0. The check digit on the picture of the ISBN is incorrect.

c) The operations for generating the check digit X for the ISNB 979-54-38602-04-X are:

\normalsize{(1\times9+3\times7+1\times9+3\times5+1\times4+3\times3+1\times8+3\times6+1\times0+3\times2+1\times0+3\times4)\div10}

or, [1\times(9+9+4+8+0+0)+3\times(7+5+3+6+2+4)]\div10

The calculation is:

(9+21+9+15+4+9+8+18+0+6+0+12)\div10=111\div10=11R(1).

The remainder is 1. Therefore, the check digit X is 1.

 

 

Decimal numbers are everywhere. Any time you make a purchase you are using decimals. Any time you fill up your car with gas the pump shows how much gas you have pumped and how much it costs as decimals. Vehicle odometers use decimals. GPAs are decimals. Athletics use decimals both as distances for races and times. Our counting system is base-10 which extends to the decimal digits. We have 10 fingers so working with decimals makes perfect sense.

Skills Icon In this section, we will use what we have learned so far to practice skill problems and strategies for solving them.

Skills Practice

Use a calculator to evaluate each numerical expression.

1. 6-2(8-4)+7-(3-7)

2. 100-(35.6+19.5)

3. 2+4\times3

4. 2+25\div5\times4

5. (3+5)\div(12-8)+7

6. 5.45-2.5^2

7. 2.5(3.5+1.2)^2

8. 3.4-\dfrac{2.5}{3.2-2.4}

9. \dfrac{(3.45+2.1)^2}{2.4}-6.8

10. (3.5-9.1)^{1.4+3.6}

 

Show/Hide Answer
    1. 9
    2. 44.9
    3. 14
    4. 22
    5. 9
    6. –0.8
    7. 55.225
    8. 0.275
    9. 6.034375
    10. –5507.31776

 


definition

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Numeracy Copyright © 2023 by Utah Valley University is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.