Sub topic 5
Isolating a Variable That Appears Once
What this chapter covers
This chapter assumes you can do arithmetic with fractions, negative numbers, and exponents. It also assumes you know the order of operations and can solve a simple one-variable linear equation such as 3x + 2 = 11. The previous chapters covered the balance idea (do the same thing to both sides), inverse operations, and undoing operations in reverse order. Here you combine them into one procedure for the most common case: the variable you want appears exactly once in the formula.
Later chapters cover the harder cases, where the target appears in several terms, in a denominator, or under a power. Everything in those chapters builds on the procedure below.
The goal: a formula with the target alone on one side
A formula such as F = (9/5)C + 32 relates several variables. The target variable is the one you want to express in terms of the others. To isolate it, you rewrite the equation so the target stands alone on one side and every other variable is on the other side.
When the target appears once, the formula describes a chain of operations applied to it. Isolating it means peeling that chain off, starting from the outermost operation.
The procedure
- Circle the target variable and check that it appears only once in the whole equation. Count both sides.
- List the operations applied to the target, in the order the formula applies them. Follow the order of operations: what happens to the target first, second, and so on.
- Undo those operations in reverse order, using the inverse of each: subtract for add, divide for multiply, and so on.
- Apply each undo step to the entire left side and the entire right side.
- Check the result with numbers (see the code section below).
Treat every other variable as if it were a number. If a step requires dividing by h, you divide by h. You do not need to know its value.
Worked example 1: temperature
Solve F = (9/5)C + 32 for C.
The target C is first multiplied by 9/5, then 32 is added. The formula builds F in that order, so you undo it in the opposite order: subtract 32, then multiply by 5/9.
Step by step:
- Start with F = (9/5)C + 32.
- Subtract 32 from both sides: F − 32 = (9/5)C.
- Multiply both sides by 5/9: (5/9)(F − 32) = C.
So C = (5/9)(F − 32). The parentheses matter. The 5/9 multiplies the whole quantity F − 32, not just F.
Check with a known pair: F = 212 gives (5/9)(180) = 100. Water boils at 100 °C, so the result is right.
Worked example 2: a target inside a group
Solve the trapezoid area formula A = (1/2)h(b₁ + b₂) for b₁.
The target b₁ appears once, but it sits inside a sum. The formula applies these operations to b₁: add b₂, multiply by h, multiply by 1/2. Undo them in reverse:
- Start with A = (1/2)h(b₁ + b₂).
- Multiply both sides by 2: 2A = h(b₁ + b₂).
- Divide both sides by h: 2A/h = b₁ + b₂.
- Subtract b₂ from both sides: b₁ = 2A/h − b₂.
You could instead distribute h first. That also works but takes more steps and makes the algebra messier. When the target sits inside a group, treat the group as a single unit and unwrap it from the outside in.
Check with numbers: let h = 3, b₂ = 4, and b₁ = 6. Then A = (1/2)(3)(10) = 15. The rearranged formula gives 2(15)/3 − 4 = 10 − 4 = 6, which matches.
Dividing by h is only valid when h ≠ 0. A trapezoid with height zero has no meaningful area to work backward from.
Worked example 3: a negative target
Solve y = 5 − 2x for x.
The formula multiplies x by 2, then subtracts that result from 5. Undo it in reverse:
- Start with y = 5 − 2x.
- Subtract 5 from both sides: y − 5 = −2x.
- Divide both sides by −2: x = (y − 5)/(−2) = (5 − y)/2.
The sign is the usual trap. The −2 is a single factor, so you divide the entire left side by −2. Check with x = 2: y = 5 − 4 = 1, and the formula gives (5 − 1)/2 = 2.
Worked example 4: finance
Simple interest gives the final amount A = P(1 + rt), where P is the principal, r is the annual rate, and t is the time in years. Solve for t.
The formula applies these operations to t: multiply by r, add 1, multiply by P. Undo them in reverse:
- Start with A = P(1 + rt).
- Divide both sides by P: A/P = 1 + rt.
- Subtract 1 from both sides: A/P − 1 = rt.
- Divide both sides by r: t = (A/P − 1)/r.
You can simplify the numerator: A/P − 1 = (A − P)/P. This gives t = (A − P)/(Pr), which is easier to read as "interest earned divided by interest earned per year."
Check with P = 1000, r = 0.05, t = 2. Then A = 1000(1.1) = 1100, and the formula gives 100/50 = 2.
Order is a choice, but reverse order is the safe default
The undo steps are not always unique. For A = (1/2)h(b₁ + b₂) you could multiply by 2 first or divide by h first. Both orders reach the same answer. What is not allowed is undoing an operation that is still "inside" another one.
For example, in F = (9/5)C + 32 you cannot divide by 9/5 first unless you divide every term, including the 32. If you divide only the C term, you change the equation. Working from the outside in avoids this: the last operation applied is the first one you undo, and it applies cleanly to a whole side.
Common mistakes
| Mistake | Example | Fix |
|---|---|---|
| Applying a step to only one term | From F − 32 = (9/5)C, writing C = 5F/9 − 32 | Multiply the whole side: (5/9)(F − 32) |
| Undoing in the wrong order | Dividing by 9/5 before subtracting 32, but only dividing C | Undo the outermost operation first |
| Sign slip with a negative factor | From y − 5 = −2x, writing x = (y − 5)/2 | Divide by −2, so x = (5 − y)/2 |
| Treating the target as appearing once when it does not | Trying this method on x + 3x = y | Count occurrences first. Combine like terms or see the later chapter on collecting and factoring |
| Changing only one side | Subtracting 32 on the left only | Every step applies to both sides |
| Dropping a needed restriction | Dividing by h without noting h ≠ 0 | Note which variables you divided by |
Checking with code
A rearrangement is correct when it undoes the original formula. You can test this by computing the formula forward, then applying your rearrangement and confirming you recover the starting value. This is called a round trip.
import math
import random
def trapezoid_area(h, b1, b2):
return 0.5 * h * (b1 + b2)
def trapezoid_b1(area, h, b2):
# From A = (1/2) h (b1 + b2): multiply by 2, divide by h, subtract b2
if h == 0:
raise ValueError("h must be nonzero")
return 2 * area / h - b2
def simple_interest_amount(p, r, t):
return p * (1 + r * t)
def simple_interest_time(amount, p, r):
# From A = P(1 + r t): t = (A - P) / (P r)
if p == 0 or r == 0:
raise ValueError("p and r must be nonzero")
return (amount - p) / (p * r)
random.seed(1)
for _ in range(1000):
h = random.uniform(1, 10)
b1 = random.uniform(1, 10)
b2 = random.uniform(1, 10)
area = trapezoid_area(h, b1, b2)
assert math.isclose(trapezoid_b1(area, h, b2), b1, rel_tol=1e-9, abs_tol=1e-9)
p = random.uniform(100, 10000)
r = random.uniform(0.01, 0.1)
t = random.uniform(0.5, 30)
amount = simple_interest_amount(p, r, t)
assert math.isclose(simple_interest_time(amount, p, r), t, rel_tol=1e-9, abs_tol=1e-9)
print("All round trips passed")The comparison uses math.isclose rather than == because floating-point arithmetic introduces tiny rounding errors. The guards for h == 0, p == 0, and r == 0 mirror the restrictions on the algebra: a step that divides by a variable is only valid when that variable is nonzero.
A round-trip test only catches algebra errors. It does not tell you the original formula is right, and it can miss a bug that appears only for special inputs such as zero or negative values. Add a few hand-picked cases like those in the worked examples.
Quick sanity tests
Besides round trips, two cheap checks catch most mistakes:
- Special values. Plug in values where you know the answer, such as F = 32 giving C = 0.
- Direction. If the original formula says A grows when b₁ grows, your rearranged formula should say b₁ grows when A grows. In
b₁ = 2A/h − b₂, a larger A gives a larger b₁, which is correct.
Summary of the method
For a target that appears exactly once, read the formula as a sequence of operations applied to the target. Write down that sequence, reverse it, and replace each operation with its inverse. Apply each inverse to a whole side of the equation, treat other variables as numbers, and note any variable you divided by. Finish by checking with numbers.
Exercise
Solve v = u + at for a. Name each step and state the restriction on the result.
Show answer
Subtract u from both sides: v − u = at. Divide both sides by t: a = (v − u)/t. The result is valid only when t ≠ 0.
Exercise
Solve P = 2L + 2W for L, then check your result with W = 3 and P = 20.
Show answer
Subtract 2W from both sides: P − 2W = 2L. Divide both sides by 2: L = (P − 2W)/2 = P/2 − W. With P = 20 and W = 3, L = (20 − 6)/2 = 7, and 2(7) + 2(3) = 20 confirms it.
Exercise
Solve y = 4 − (x − 1)/3 for x. List the operations applied to x, then undo them in reverse.
Show answer
The operations on x are: subtract 1, divide by 3, subtract the result from 4. Undo them in reverse. Subtract 4: y − 4 = −(x − 1)/3. Multiply by −3: −3(y − 4) = x − 1, so 12 − 3y = x − 1. Add 1: x = 13 − 3y. Check with x = 1: y = 4 − 0 = 4, and 13 − 12 = 1.