Add 3 and 5, then multiply this sum by 2.
Multiply 5 and 2, then add 3 to this product.
We now have two values for the same expression.
We need a set of rules to guide anyone to one unique value for this kind of expression. Some of these rules are based on convention, while other are forced on up by mathematical logic.
The universally agreed-upon
accepted order of operations for evaluating a mathematical expression is as follows:
1. Parentheses (grouping symbols) from the inside out.
By parentheses we mean anything that acts as a grouping symbol, including anything inside symbols such as [ ], { }, | |, and
. Any expression in the numerator or denominator of a fraction or in an exponent is also considered grouped, and should be simplified before carrying out further operations.
If there are nested parentheses (parentheses inside parentheses), you work from the innermost parentheses outward.
2. Exponents and other special functions, such as log, sin, cos etc.
3. Multiplications and divisions, from left to right.
4. Additions and subtractions, from left to right.
For example, given: 3 + 15 ÷ 3 + 5 × 2
2+3
The exponent is an implied grouping, so the 2+3 must be evaluated first:
= 3 + 15 ÷ 3 + 5 × 2
5
Now the exponent is carried out:
= 3 +15 ÷ 3 + 5 × 32
Then the multiplication and division, left to right using 15 ÷ 3 = 5 and 5 × 32 = 160:
= 3 + 5 + 160
Finally, the addition, left to right:
= 168
Examples, order of operation
Determine the value of each of the following.
.
Multiply first:
=
Add.
= 57
.
Simplify inside parentheses first.
=
Multiply.
=
Add.
= 57
.
Simplify first within the parentheses by multiplying, then adding:
=
=
Now perform the additions and subtractions, moving left to right:
=
=
= 113.
Evaluate the exponential forms, moving from left to right:
=
Multiply 7 · 6:
=
Subtract 16 from 42:
= 26 + 1
Add 26 and 1:
= 27.
Evaluate the exponential forms in the parentheses:
=
Add 9 and 4 in the parentheses:
=
Evaluate the exponential form
:
=
Multiply 6 and 13:
=
Add 78 and 16:
= 94
.
=
=
=
= 1+13
= 14
Recall that the bar is a grouping symbol. The fraction
is equivalent to
Exercises, order of operations
Determine the value of the following:
8(10) + 4(2 + 3) – (20 + 3 · 15 + 40 – 5)
4(6
2 – 3
3 ) ÷ (4
2 – 4)
(8 + 9 · 3) ÷ 7 + 5 · (8 ÷ 4 + 7 + 3 · 5)
Module review exercises
For the following problems, find each value.