arithmetic conventions
Order of Operations
Overview
The order of operations is the agreed-upon sequence for evaluating a mathematical expression with multiple operations, so that everyone gets the same answer from the same expression. Without a fixed convention, 2 + 3 × 4 could mean either (2+3)×4=20 or 2+(3×4)=14 — the order of operations resolves this ambiguity by fixing which operations happen first.
Intuition
Think of it as a hierarchy of 'binding strength': exponents bind more tightly than multiplication, which binds more tightly than addition. Parentheses override everything, letting you explicitly force a different order. The common mnemonic PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction) encodes this hierarchy, with the caveat that multiplication/division are actually equal-priority (evaluated left to right), as are addition/subtraction.
Formal Definition
The standard precedence, from highest to lowest:
Notation
| Notation | Meaning |
|---|---|
| Mnemonic: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction |
Properties
Multiplication/division tie
Example: 8 \div 2 \times 2 = (8\div2)\times2 = 8, \text{ not } 8\div(2\times2)=2
Addition/subtraction tie
Parentheses override
Applications
Worked Examples
Multiplication before addition.
Answer: 14
Practice Problems
Evaluate 6 - 2 × (1 + 2).
Common Mistakes
Always evaluating multiplication fully before any division, or addition fully before any subtraction.
Multiplication and division are the SAME priority tier (left to right), as are addition and subtraction — you don't finish all multiplications before starting divisions.
Summary
- Order of operations fixes how to evaluate expressions with multiple operations unambiguously.
- Precedence, highest to lowest: parentheses, exponents, multiplication/division (tied), addition/subtraction (tied).
- Tied-precedence operations are evaluated left to right.
- This convention is exactly what programming language parsers implement as operator precedence.
Mathematics