Sub topic 5
Addition and Subtraction: Left to Right
Prerequisites
You should already know how to add and subtract positive and negative integers. You should also know that parentheses group part of an expression.
Addition and subtraction have the same precedence. Precedence is the rule that determines which operation is done first. When addition and subtraction appear together without grouping symbols, evaluate them from left to right.
For example:
\[ 18 - 7 + 4 \]
Start with the operation on the left:
\[ 18 - 7 = 11 \]
Then continue:
\[ 11 + 4 = 15 \]
So:
\[ 18 - 7 + 4 = 15 \]
Do not add \(7 + 4\) first. That would change the expression to \(18 - 11\), which gives \(7\).
Why left to right matters
Subtraction is not interchangeable with addition. The expression
\[ a - b \]
means “add the opposite of \(b\),” but the position of each number still matters. For instance:
\[ 20 - 8 + 3 = 12 + 3 = 15 \]
If you incorrectly combine the last two numbers first, you get:
\[ 20 - (8 + 3) = 20 - 11 = 9 \]
The parentheses create a different expression.
The same rule applies when subtraction follows addition:
\[ 6 + 9 - 5 = 15 - 5 = 10 \]
The expression is evaluated in the order its operations appear.
Working with negative integers
Keep the sign attached to each number. A subtraction sign tells you to subtract the number that follows it.
Consider:
\[ -4 + 10 - 3 \]
Evaluate from left to right:
\[ -4 + 10 = 6 \]
Then:
\[ 6 - 3 = 3 \]
Therefore:
\[ -4 + 10 - 3 = 3 \]
You can also rewrite subtraction as addition of the opposite:
\[ 6 - 3 = 6 + (-3) \]
This can make signed-number calculations clearer, especially when several negative values appear:
\[ -7 - 5 + 12 = -7 + (-5) + 12 = -12 + 12 = 0 \]
Parentheses override left-to-right order
Parentheses tell you to evaluate a grouped expression first:
\[ 18 - (7 + 4) \]
First calculate the parentheses:
\[ 7 + 4 = 11 \]
Then subtract:
\[ 18 - 11 = 7 \]
This differs from:
\[ 18 - 7 + 4 = 15 \]
| Expression | First step | Result |
|---|---|---|
| \(18 - 7 + 4\) | \(18 - 7\) | \(15\) |
| \(18 - (7 + 4)\) | \(7 + 4\) | \(7\) |
Exercise
Evaluate \(25 - 9 + 2 - 6\).
Show answer
Work left to right: \(25 - 9 = 16\), \(16 + 2 = 18\), and \(18 - 6 = 12\). The value is \(12\).