Lesson 4 · from §9 of the 1910 text
Order of Operations
If we read the expression 6 + 4 \cdot 9 - 12 \div 3 from left to right and do each operation as we reach it, we get 10, 90, 78, and finally 26. If we do the multiplication and division first, it becomes 6 + 36 - 4, which equals 38. So the value of an expression depends on the order in which the operations are done. Unless stated otherwise, these rules apply:
I. A series of only additions and subtractions is done in the order they occur.
8 + 12 - 10 + 6 = 20 - 10 + 6 = 10 + 6 = 16
It's incorrect to say 8 + 12 - 10 + 6 = 20 - 16 = 4.
Quick check
15 - 5 + 3
II. A series of only multiplications and divisions is done in the order they occur.
8 \cdot 12 \div 6 \cdot 4 = 96 \div 6 \cdot 4 = 16 \cdot 4 = 64
It's incorrect to say 8 \cdot 12 \div 6 \cdot 4 = 96 \div 24 = 4.
Quick check
24 \div 4 \cdot 2
III. In a series with additions, subtractions, multiplications, and divisions, the multiplications and divisions are done first, in order. Then the additions and subtractions are done according to rule I.
6 + 4 \cdot 9 - 12 \div 3 = 6 + 36 - 4 = 38
It's incorrect to say 6 + 4 \cdot 9 - 12 \div 3 = 10 \cdot 9 - 4 = 86.
Quick check
5 + 3 \cdot 4 - 8 \div 2
An expression in parentheses is treated as a single number, and rules I, II, and III apply inside any parentheses too:
(3 + 2)6 = 5 \cdot 6 = 30 8 + (7 - 3)(9 - 6 \div 2) - 4 = 8 + 4 \cdot 6 - 4 = 8 + 24 - 4 = 28
Quick check
2 + (9 - 3)(4 + 1)
Typing answers: if an answer isn't a whole number, you can type a fraction like
7/3or a decimal.
Exercises
Simplify the following:
How to type math
Use ^ for powers (a^2), / for fractions ((a+b)/2), sqrt(x) for square roots, and cbrt(x) for cube roots. You can leave out the multiplication sign: 3ab means 3 \cdot a \cdot b. Mixed numbers like 4 1/2 work too. The preview under each box shows how your answer was read.
20 - 5 + 6 - 10
16 - (8 - 2)
14 - (16 - 8) + (12 - 4)
6 \div 3 - 2
8 \cdot 6 \div 3 - 10
18 \div (2 \cdot 3)
(6 - 3)(17 - 2 \cdot 5)
23 - 2 \cdot 6 - 4 \div 2 + 16
18 \div (9 - 3)
(10 - 3)(16 - 3 \cdot 2 + 8 \div 4)
14 - 3 \cdot (16 - 2 \cdot 5) \div 6 + 8 \cdot 2
(18 - 2) - 6 \div (4 + 2 \cdot 8 - 18 \div 9)
(16 - 6)(18 - 8) \div 100 \cdot 5 - 5
(5 + 3)(5 - 3) \div 5 - 3