Sub topic 7
Putting the Levels Together
This chapter assumes you can add, subtract, multiply, and divide whole numbers, work with positive and negative integers, and recognize a fraction as a numerator over a denominator.
An expression can contain several operations at once. For example:
\[ 6 + 2 \cdot 3^2 \]
Without an agreed order, one person might add first and another might multiply first. The order of operations gives both people the same result.
The evaluation hierarchy
Use these levels in order:
- Grouping symbols: Evaluate expressions inside parentheses, brackets, or other grouping symbols.
- Exponents: Evaluate powers.
- Multiplication and division: Work from left to right.
- Addition and subtraction: Work from left to right.
PEMDAS is a memory aid for this sequence. The letters do not mean that multiplication always comes before division or that addition always comes before subtraction. Operations on the same level share equal priority.
| Level | Operations | Direction |
|---|---|---|
| 1 | Grouping symbols | Innermost group first |
| 2 | Exponents | Usually from left to right within one expression |
| 3 | Multiplication and division | Left to right |
| 4 | Addition and subtraction | Left to right |
Consider:
\[ 4 + 3 \cdot 2^2 \]
First evaluate the exponent: \(2^2=4\). Then multiply: \(3\cdot4=12\). Finally add: \(4+12=16\).
Equal-priority operations go left to right
Multiplication and division have the same priority. Do not automatically multiply everything before dividing.
\[ 24 \div 4 \cdot 3 \]
Read from left to right:
\[ 24\div4=6,\qquad 6\cdot3=18 \]
So the value is \(18\), not \(2\). To divide by the entire product \(4\cdot3\), use grouping:
\[ 24\div(4\cdot3)=2 \]
Addition and subtraction work the same way:
\[ 10-4+3=6+3=9 \]
The expression does not mean \(10-(4+3)\).
A complete procedure
When simplifying a long expression:
- Copy the expression carefully.
- Find the innermost grouping symbols.
- Replace one completed operation at a time.
- Apply exponents before multiplication or division.
- Move left to right within each equal-priority level.
- Keep parentheses when they prevent ambiguity.
For example:
\[ 2+\left(12\div3-1\right)^2\cdot2 \]
First simplify inside the parentheses from left to right:
\[ 12\div3-1=4-1=3 \]
Then evaluate the exponent:
\[ 3^2=9 \]
Then multiply and add:
\[ 2+9\cdot2=2+18=20 \]
A calculator or short program can check the final value, but writing the intermediate steps shows why the answer is correct.
result = 2 + (12 / 3 - 1) ** 2 * 2
print(result) # 20.0Exercise
Evaluate 5 + 18 ÷ 3 · 2 - 4.
Show answer
Work left to right for division and multiplication: 18 ÷ 3 = 6, then 6 · 2 = 12. Then add and subtract left to right: 5 + 12 - 4 = 13.