You would like to bake a cake. Here are the steps:
Baking a Cake.
Preheat the oven
Mix the batter.
Pour the batter into the cake pan.
Put the cake pan in the oven.
Bake until done, then remove from the oven.
Frost the cake.
What if you perform those steps out of order? Your cake might not be a success! The order in which we perform a sequence of steps makes a difference to the outcome.
Algebraic expressions often involve more than one operation. Just as with cake baking, the order in which we perform those operations makes a difference to the answer. You probably know the following rule.
Rule 1.
Perform additions and subtractions in order from left to right.
Example4.5.1.
Simplify \(~50 - 20 - 15 + 10\)
Solution.
We perform the operations in the order they occur, from left to right.
The two options give us different answers, so they cannot both be right.
Note4.5.3.
You might decide to perform the operations from left to right in the order they appear, but this causes problems. (For instance, we would like \(5 + 2 \cdot 4\) and \(2 \cdot 4 + 5\) to have the same answer.)
Instead, people who use mathematics have agreed upon the following rule.
Rule 2.
Perform all multiplications and divisions before additions and subtractions.
By following this rule, everyone means the same thing when they write an algebraic expression, and everyone gets the same answers. So Option 2 above is correct:
We can combine these two rules into a set of guidelines.
Guidelines for Simplifying Expressions.
First, perform all multiplications and divisions in order from left to right.
Next, perform all additions and subtractions in order from left to right.
Example4.5.6.
Use the guidelines above to simplify each expression.
\(\displaystyle 18 + 3(12) - 24\)
\(\displaystyle 5 + 5 \cdot 5 - 5 \div 5\)
Solution.
We start with multiplications and divisions, working from left to right. It is helpful to underline all the multiplication and division operations before beginning.
According to our guidelines, multiplication comes before addition. We need an override mechanism to use when we really want addition to come first. For this purpose, we use parentheses :
A fraction bar is another kind of grouping symbol. Any operations that appear above or below a fraction bar should be completed first. For example, in the expression
We can combine all the rules in this section into a set of guidelines for simplifying expressions. These guidelines are called the order of operations.
Order of Operations.
First, perform all operations inside parentheses, or above or below a fraction bar.
Next, perform all multiplications and divisions in order from left to right.
Finally, perform all additions and subtractions in order from left to right.
Subsection4.5.5Using a Calculator
We can use either a fraction bar or a division symbol, \(\div\) to write a quotient. For example, 15 divided by 3 can be written either
If your calculator does not have parentheses, you must perform the calculation in steps, following the order of operations: first compute \(4 \times 5\) to get 20, then divide 120 by 20 to get 6.
What answer would you get if you entered this keying sequence:
Use a calculator to compute \(\dfrac{12.6+7.8}{8.3-7.8}\)
Answer.
\(40.8\)
Subsection4.5.6Exponents and Roots
Square roots and exponents occupy the same position in the order of operations: after parentheses but before multiplications and divisions. Here is an amended set of guidelines for the order of operations.
Order of Operations.
Perform any operations inside parentheses, or above or below a fraction bar, or inside a radical.
Compute all powers and roots.
Perform all multiplications and divisions in order from left to right.
Perform all additions and subtractions in order from left to right.
\begin{align*}
\amp \dfrac{6 + \sqrt{64}}{9-\sqrt{4}} \amp \amp \blert{\text{Compute the square roots.}}\\
\amp = \dfrac{6+8}{9-2} \amp \amp \blert{\text{Simplify above and below the fraction bar.}}\\
\amp = \dfrac{14}{7} = 2
\end{align*}
Checkpoint4.5.16.
Simplify \(\sqrt{9+16}\)
Answer.
\(5\)
Note4.5.17.
Be careful! In Checkpoint 4.5.16, did you add 9 + 16 to get 25 before you took the square root? Look at Step 1 of the order of operations: Perform any operations ... or inside a radical. In other words,
You can also use your calculator to find approximations for expressions that involve radicals. Let’s agree to round all approximate values to three decimal places, unless otherwise specified.
Example4.5.18.
Simplify \(~5 + 2\sqrt{7}\)
Solution.
The order of operations tells us how to perform the calculations in this order:
Compute \(\sqrt{7}\)
Multiply \(\sqrt{7}\) times 2
Add 5 to the result
If we enter the calculations in exactly this order, we will be sure to get the correct result. Enter:
The calculator displays the result, 10.29150262. Rounding to three places gives 10.292. However, most scientific calculators know the order of operations and will automatically perform the operations in the correct order. Test your calculator by entering