Two people compute and get different answers — one says , the other . Math has a fixed rule for who's right: PEMDAS.
PEMDAS
- P — Parentheses (grouping symbols) — anything inside ( ), [ ], or { } first.
- E — Exponents — like or — next.
- MD — Multiplication & Division — left to right, same priority.
- AS — Addition & Subtraction — left to right, same priority.
The trick most people miss: M and D are equal priority — you do them in left-to-right order. Same for A and S. There's no "multiplication before division."
Worked example — the classic trap
Multiplication has higher priority than addition, so runs first.
If you wanted addition to go first, you'd need parens: .
With negatives
Multiplication first (), then add to .
With exponents