1D

Order of operations and substitution with integers

Using the order of operations with negative numbers, including powers and grouping symbols, and substituting negative values into algebraic expressions.

An expression like $5 - 4 \times (-3)$ could give $3$ or $17$ depending on which operation you do first. Everyone agrees on one order so that a calculation has only one answer. Your calculator follows the same order, and so does every formula in science.

The order of operations

A fraction bar acts like brackets: work out the whole top and the whole bottom before dividing.

Example 1●

Evaluate $7 - 3 \times (-4)$.

$= 7 - (-12)$
Multiplication comes before subtraction. 3 × (−4) is −12.
$= 7 + 12 = 19$
Subtracting a negative: add its opposite.
Example 2●●

Evaluate $\dfrac{(-2)^3 + 20}{5 - 9}$.

Top: $-8 + 20 = 12$. Bottom: $5 - 9 = -4$.
Work out the top and bottom separately. On top, the power comes first: (−2)³ = −8.
$12 \div (-4) = -3$
Now divide. Different signs give a negative.

Substitution

Substituting means replacing each pronumeral with its value. When the value is negative, put it in brackets. Then the signs take care of themselves.

Remember that $4a$ means $4 \times a$, $ab$ means $a \times b$, and $\dfrac{a}{3}$ means $a \div 3$.

Example 3●

If $a = -5$ and $b = 3$, evaluate $2a - 4b$.

$= 2 \times (-5) - 4 \times 3$
Replace each letter by its value, with the negative in brackets.
$= -10 - 12 = -22$
Multiplications first.
Example 4●●

If $x = -3$, evaluate $x^2 - 4x + 2$.

$= (-3)^2 - 4 \times (-3) + 2$
Brackets around −3, so the whole number gets squared.
$= 9 + 12 + 2 = 23$
Power first: (−3)² = 9. Then −4 × (−3) = +12.

Your turn

The formula $T = 15 - 6h$ estimates the air temperature in $^\circ$C at a height of $h$ km. Find the temperature $4$ km up.

Show the working

Substitute $h = 4$: $T = 15 - 6 \times 4 = 15 - 24 = -9$. It is $-9^\circ$C, below freezing even on a warm day.

Practice
  1. $5 - 4 \times (-3) =$

  2. $-20 \div (2 - 7) =$

  3. $3 \times (-2)^2 - 10 =$

  4. $(-8 + 2) \times 6 \div (-4) =$

  5. If $a = -3$, then $a^2 =$

  6. If $a = -2$ and $b = 5$, find $3a - b$.

  7. If $x = -4$, find $x^2 - 2x + 1$.

  8. If $a = -6$, $b = 3$ and $c = -2$, find $ab - c^2$.

  9. Challenge: $-2^2 + (-2)^3 - (-3)^2 =$

  10. Challenge: the formula $F = 1.8C + 32$ converts degrees Celsius to Fahrenheit. Find $F$ when $C = -15$.

Formula sheet