Lesson 5.2 · Expressions
Order of operations
What is ? If you add first you get 20, but if you multiply first you get 14. Only one answer can be right, so mathematicians agreed on a set of rules called the order of operations. Everyone who follows them gets the same answer.
The rules
Order of operations
- Grouping symbols first: parentheses , brackets and fraction bars. If groups are inside other groups, start with the innermost one.
- Exponents next.
- Multiplication and division, working from left to right.
- Addition and subtraction, working from left to right.
So , because multiplication comes before addition.
Some people remember the order with the word PEMDAS: Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. Just remember that M and D are a team, and so are A and S. Neither partner in a team goes first automatically. You do them in the order they appear, from left to right.
Common mistake
PEMDAS does not mean "always multiply before you divide" or "always add before you subtract."
In , the subtraction is on the left, so it goes first: . Adding first would give , which is wrong.
In , the division is on the left: , not .
Working step by step
Rewrite the expression after each step, doing only one kind of operation at a time. Lining up your work like this makes mistakes easy to spot.
Worked example: Multiplication, division and addition
Evaluate .
Worked example: Parentheses and an exponent
Evaluate .
Grouping inside grouping
When one group sits inside another, like parentheses inside brackets, start in the middle and work your way out.
Worked example: Brackets and parentheses
Evaluate .
A number written right next to a bracket or parenthesis means multiplication, so .
The fraction bar groups
A fraction bar means "divide," but it also acts like a grouping symbol. Work out the whole top and the whole bottom first, then divide.
Worked example: Using a fraction bar
Evaluate .
Top: . Bottom: . So the value is .
Tip
Your calculator follows the order of operations, but it can't see a fraction bar. To enter , type parentheses around the top and around the bottom: .
Practice
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which operation should you do first in ?
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Maya wrote . Where should she put parentheses to make her answer true?