Sub topic 4
Working Backwards Through the Order of Operations
Prerequisites: You should be comfortable with arithmetic involving fractions, negative numbers, and exponents; the order of operations; algebraic notation; and simple one-variable equations.
When you rearrange a formula, choose a target variable and isolate it. To isolate a variable means to get that variable alone on one side of the equation. The main strategy is to undo the operations that act on the target variable.
The operations must be undone in reverse order. If a formula calculates a result from the inside out, solve it from the outside in.
Reverse the calculation
Consider the formula
\[ y = \frac{4(x-3)}{7}+2 \]
The calculation of \(y\) from \(x\) happens in this order:
- Subtract 3 from \(x\).
- Multiply by 4.
- Divide by 7.
- Add 2.
To solve for \(x\), undo those operations in reverse order:
| Calculation operation | Inverse operation |
|---|---|
| Add 2 | Subtract 2 |
| Divide by 7 | Multiply by 7 |
| Multiply by 4 | Divide by 4 |
| Subtract 3 | Add 3 |
Start with the original equation:
\[ y = \frac{4(x-3)}{7}+2 \]
Subtract 2 from both sides:
\[ y-2 = \frac{4(x-3)}{7} \]
Multiply both sides by 7:
\[ 7(y-2)=4(x-3) \]
Divide both sides by 4:
\[ \frac{7(y-2)}{4}=x-3 \]
Add 3 to both sides:
\[ x=\frac{7(y-2)}{4}+3 \]
The target variable is now isolated.
Parentheses and powers
Parentheses show which expression an operation acts on. Treat the expression inside parentheses as a unit until you have undone the operations outside it.
For example:
\[ z=3(x+5)^2-8 \]
To solve for \(x\), reverse the steps used to calculate \(z\):
- Add 8.
- Divide by 3.
- Take the square root.
- Subtract 5.
Apply each step to both sides:
\[ z+8=3(x+5)^2 \]
\[ \frac{z+8}{3}=(x+5)^2 \]
Taking the square root gives
\[ \sqrt{\frac{z+8}{3}}=|x+5| \]
Because squaring loses the distinction between positive and negative values, there are two possible values:
\[ x+5=\pm\sqrt{\frac{z+8}{3}} \]
Therefore,
\[ x=-5\pm\sqrt{\frac{z+8}{3}} \]
The symbol \(\pm\) means “plus or minus.” It represents two solutions when both signs produce valid values.
A practical check
After rearranging a formula, substitute a value into the original formula and then use the rearranged formula to recover the target.
For the temperature formula
\[ F=\frac{9}{5}C+32 \]
subtract 32 and multiply by \(5/9\):
\[ C=\frac{5(F-32)}{9} \]
For \(F=212\),
\[ C=\frac{5(212-32)}{9}=100 \]
The original formula confirms this:
\[ F=\frac{9}{5}(100)+32=212 \]
The same rearrangement can be written and tested in Python:
def f_to_c(f):
# Subtract 32, then multiply by 5/9.
return 5 * (f - 32) / 9
print(f_to_c(212)) # 100.0
print(f_to_c(32)) # 0.0A result can also be checked by units or by a simple special case. For temperature, \(32\) degrees Fahrenheit must convert to \(0\) degrees Celsius, so the rearranged formula should produce zero when \(F=32\).
Exercise
Solve the formula q = 5(r - 2)^2 + 1 for r. Include every inverse operation and the plus-or-minus sign.
Show answer
q - 1 = 5(r - 2)^2, so (q - 1)/5 = (r - 2)^2, r - 2 = ±sqrt((q - 1)/5), and r = 2 ± sqrt((q - 1)/5).