Algebra I · Lesson 1.2

Order of Operations

Solve this lesson, free →All lessons

An expression is only useful if every reader gets the same value from it. But some expressions can be read in more than one reasonable way, and different readings give different numbers. Before doing any algebra, we have to settle how expressions are read.

Problem
Two students evaluate 10010×9. The first works strictly left to right, subtracting before multiplying. The second does the multiplication first, then subtracts. Neither makes a single arithmetic slip, yet they land on different numbers. How far apart are their two answers?
Show a hint
  • Work each reading all the way to the end before comparing.
  • Left to right means (10010)×9. Multiplying first means 100(10×9).
Show the full solution
Reading left to right, 10010=90, then 90×9=810. Multiplying first, 10×9=90, then 10090=10. Two reasonable readings give 810 and 10, and the gap between them is 81010=800.

Neither student made an arithmetic mistake, so checking the arithmetic cannot settle this. We need a rule that says which operation comes first, and mathematicians agreed on one long ago. From here on we also write multiplication as 39 or with parentheses, because algebra uses the letter x constantly and × is too easy to confuse with it.

One expression, two readings, and only one is allowed30 - 4 × 726182Wrong282CorrectThe order that settles it1Grouping2Exponents3Multiply and divide4Add and subtract
The same expression read two ways gives two different values, and the order of operations keeps exactly one of them. Reading left to right gives 26 then 182. Multiplying first gives 28 then 2, which is the reading the order protects. Grouping first, then exponents, then multiply and divide left to right, then add and subtract left to right.
Problem
All four levels of the order show up in this one expression. Evaluate 5+(186)÷22 doing the steps in the order the rule lists them.
Show a hint
  • Resolve 186 and 22 before any dividing happens.
Show the full solution
Parentheses first, 186=12. Exponent next, 22=4. Then the division, 12÷4=3, and finally the addition, 5+3=8.
Problem
Another disagreement. In 48÷62, one student divides first and gets 82=16. The other multiplies 62 first and gets 48÷12=4. Only one of them is right. Which value is correct?
Show a hint
  • Division and multiplication have equal rank, so rank cannot break the tie.
  • When rank ties, reading order decides.
Show the full solution
48÷6=8, then 82=16. The first student is right, because division and multiplication have equal rank and a tie is broken left to right, not in favor of multiplication.
Problem
One multiplication, one subtraction, one addition. Evaluate 198+23 keeping careful track of which of the three moves first, which second, and which last.
Show a hint
  • Only the multiplication outranks the rest, so it goes first.
  • Then subtraction and addition have equal rank. Read left to right.
Show the full solution
The multiplication goes first, 23=6, leaving 198+6. Subtraction and addition have equal rank, so work left to right, 198=11, then 11+6=17. Doing the 8+6 first would give 1914=5, which answers a different expression.
Problem
In 200342 the 4 sits between a multiplication and an exponent. Decide which one applies to it first, then evaluate.
Show a hint
  • The exponent applies only to the 4, not to 34.
Show the full solution
42=16, then 316=48, and 20048=152. The exponent applies only to the 4. Squaring 34 instead would give 200144=56.
Problem
Evaluate (7)2+(72). The two pieces look identical, so compute each one separately before adding.
Show a hint
  • The parentheses in (7)2 put the minus sign inside the base.
  • In 72 the exponent applies only to the 7. Square first, then negate.
Show the full solution
The first piece squares the negative itself, (7)2=(7)(7)=49. The second squares first and negates after, 72=(72)=49. The sum is 49+(49)=0.
Problem
Not one parenthesis appears in 22+2145215 yet two invisible pairs of them are at work. Evaluate the expression.
Show a hint
  • The bar wraps the whole top and the whole bottom. Finish each completely before dividing.
  • In the denominator, the exponent goes before the subtraction.
Show the full solution
On top, 214=28 and 22+28=50. On the bottom, 52=25 and 2515=10. Divide last, 50÷10=5. The bar groups the whole top and the whole bottom, so each side has to finish before any dividing happens.
Problem
Both 625 and 49 are perfect squares, which makes a certain shortcut very tempting. Evaluate 62549 and resist it.
Show a hint
  • The radical bar groups everything under it. Subtract before any root is taken.
Show the full solution
The radical bar groups everything under it, so 62549=576 comes first, and 576=24. Taking each root separately gives 257=18, which answers a different expression.

When groups nest, work from the innermost group outward, passing each answer to the next layer. Square brackets mean exactly what parentheses mean and follow the same rules. They are easier to spot, which helps you keep the layers apart.

Problem
Two layers of grouping and one exponent. Evaluate 3[47(115)2] working from the innermost group outward.
Show a hint
  • Do the parentheses inside before the brackets outside.
  • Inside the brackets, the exponent still goes before the subtraction.
Show the full solution
Innermost first, 115=6. The exponent comes next, 62=36, then inside the brackets 4736=11, and finally 311=33.
Problem
One expression carries every trap in the lesson, a tight exponent, a radical bar, and a fraction bar. Evaluate 34+1174536
Show a hint
  • The exponent applies only to the 3, so 34 means (34).
  • Both bars group. Finish the whole top and the whole bottom before dividing.
Show the full solution
On top, 34=(34)=81, so the numerator is 81+117=36. On the bottom, the radical bar groups 4536=9, and 9=3. The fraction bar divides last, 36÷3=12.

The whole rule is short. Groups first, worked inside out, then exponents, then multiplication and division left to right, then addition and subtraction left to right. It only tells you how to read what is written. It does not tell you which changes to an expression are legal, which swaps and regroupings leave the value alone. That is the next lesson.

Practice these ideas

Practice
Start with a straight computation. Evaluate 46532, doing the operations in the order the rule assigns them.
Show the solution
The power goes first, 32=9, then the multiplication, 59=45, and last the subtraction, 4645=1.
Practice
In 60÷65, a student multiplies 65 first because PEMDAS lists multiplication before division. Evaluate the expression correctly.
Show the solution
60÷6=10, then 105=50. Division and multiplication have equal rank, so the tie breaks left to right. Multiplying first would give 60÷30=2, and PEMDAS listing M before D does not change that.
Practice
Evaluate 5237+8. Subtraction and addition tie the same way division and multiplication do, and the same rule breaks the tie.
Show the solution
5237=15, then 15+8=23. Subtraction and addition have equal rank, so read left to right. Doing 37+8 first would give 5245=7.
Practice
Evaluate 26. Before you compute anything, decide exactly what the exponent applies to and what the minus sign is doing.
Show the solution
The exponent applies only to the 2, so 26 means (26)=64. Only (2)6, with written parentheses, puts the whole 2 under the exponent, and that one comes out at positive 64.
Practice
Evaluate 34(3)3. This time the parentheses are written in, so the exponent applies to the whole 3.
Show the solution
(3)3=27, then 34(27)=34+27=61. The written parentheses put the whole 3 under the exponent, and an odd power keeps the negative sign.
Practice
Evaluate 75324. Written carelessly on a single line this expression would mean something different, so keep the bar's grouping in mind.
Show the solution
Finish the top and the bottom before dividing. The top is 753=72 and the bottom is 24=8, so the value is 72÷8=9.
Practice
Evaluate 144+25. Both numbers under the bar happen to be perfect squares, which makes the wrong shortcut look extra inviting.
Show the solution
The bar covers the whole sum, so add first, 144+25=169, and then 169=13. Taking each root separately gives 12+5=17, which answers a different expression.
Practice
Evaluate 84÷[2(92)]. Two layers of grouping, so work from the inside out.
Show the solution
Inside out, 92=7, then 27=14, and finally 84÷14=6. Ignoring the brackets and reading straight through would give 84÷27=294.
Practice
Evaluate 9+54÷322. One short line that uses every level below grouping, including a left-to-right tie.
Show the solution
The power goes first, 32=9. Division and multiplication tie, so work left to right, 54÷9=6, then 62=12, and adding the 9 in front gives 21.
Practice
Parentheses outrank everything, so one well-placed pair can transform a value. Insert a single pair of parentheses into 26+32 to make the result as large as possible, then enter that largest value.
Show the solution
Wrapping everything before the exponent gives (26+3)2=152=225. Every other placement is smaller, since 2(6+3)2=162 and 2(6+32)=30.