Sub topic 13
Solving a Formula for One Variable
What it means to rearrange a formula
Assume you know how to solve one- and two-step linear equations, use inverse operations, and simplify fractions. A formula is an equation that connects quantities, such as \(A = lw\) for the area of a rectangle.
Solving a formula for a variable means rearranging the equation so that the chosen variable is alone on one side. The other variables are treated as known numbers.
For example, the formula for the perimeter of a rectangle is
\[ P = 2l + 2w \]
To solve for \(l\), undo the operations in reverse order:
\[ \begin{aligned} P &= 2l + 2w \\ P - 2w &= 2l \\ \frac{P - 2w}{2} &= l \end{aligned} \]
Therefore,
\[ l = \frac{P - 2w}{2} \]
The two formulas are equivalent. They describe the same relationship, but the second one makes the length the subject.
The balance principle still applies
Every operation must affect both sides of the equation. When you divide by an expression, that expression must be nonzero.
A useful order is:
- Distribute or combine like terms if needed.
- Move terms that do not contain the target variable.
- Undo multiplication or division involving the target variable.
- Rewrite the result clearly.
- Check by substituting the rearranged formula into the original equation.
For a formula such as
\[ y = mx + b \]
solve for \(x\) by subtracting \(b\), then dividing by \(m\):
\[ \begin{aligned} y - b &= mx \\ \frac{y-b}{m} &= x \end{aligned} \]
Thus,
\[ x = \frac{y-b}{m}, \qquad m \ne 0 \]
The restriction \(m \ne 0\) matters. If \(m=0\), division by \(m\) is not defined.
Formulas with fractions and several operations
Consider the area formula for a triangle:
\[ A = \frac{1}{2}bh \]
To solve for \(h\), multiply both sides by 2, then divide by \(b\):
\[ \begin{aligned} 2A &= bh \\ \frac{2A}{b} &= h \end{aligned} \]
So,
\[ h = \frac{2A}{b}, \qquad b \ne 0 \]
The same approach works when the target appears in a denominator. Start by multiplying both sides by the denominator.
For example, solve
\[ v = \frac{d}{t} \]
for \(t\):
\[ vt=d \]
Then divide by \(v\):
\[ t=\frac{d}{v}, \qquad v \ne 0 \]
A systematic check
Suppose you solve \(C=2\pi r\) for \(r\):
\[ r=\frac{C}{2\pi} \]
Substitute this result back into the original formula:
\[ 2\pi\left(\frac{C}{2\pi}\right)=C \]
The left side simplifies to \(C\), so the rearrangement is correct.
| Original formula | Variable to isolate | Solved form |
|---|---|---|
| \(P=2l+2w\) | \(l\) | \(l=(P-2w)/2\) |
| \(A=\frac12 bh\) | \(h\) | \(h=2A/b\) |
| \(v=d/t\) | \(t\) | \(t=d/v\) |
from fractions import Fraction
def triangle_height(area, base):
"""Return h from A = (1/2) * b * h."""
if base == 0:
raise ValueError("The base must be nonzero.")
return Fraction(2 * area, base)
height = triangle_height(30, 12)
print(height) # 5Exercise
Rearrange F = (9/5)C + 32 to solve for C. Then find C when F = 77.
Show answer
Subtract 32 and multiply by 5/9: C = (5/9)(F - 32). For F = 77, C = 25.