Sub topic 10
Checking Your Answer by Substitution and Sanity Tests
Assume you already know how to solve linear equations, work with fractions and exponents, and rearrange a formula by applying the same operation to both sides. In this chapter, you will check whether a rearranged formula is correct. A correct-looking algebraic step can still contain a sign error, a missing factor, or an invalid restriction.
Substitute into the original formula
Suppose the original formula is
\[ F=\frac{9}{5}C+32 \]
and you want to solve for \(C\). Subtract 32 from both sides:
\[ F-32=\frac{9}{5}C \]
Then multiply by \(5/9\):
\[ C=\frac{5}{9}(F-32) \]
To check this result, substitute the rearranged expression back into the original formula:
\[ F=\frac{9}{5}\left[\frac{5}{9}(F-32)\right]+32 \]
The factors \(9/5\) and \(5/9\) cancel:
\[ F=F-32+32=F \]
Because the original variable \(F\) returns on the right, the rearrangement is an identity. This check tests the algebra for every allowed value of \(F\).
You can also test a particular value. If \(F=212\), then
\[ C=\frac{5}{9}(212-32)=100 \]
Putting \(C=100\) into the original formula gives
\[ F=\frac{9}{5}(100)+32=212 \]
Both forms agree.
Check with units
Units provide a second way to detect mistakes. In the temperature formula, \(F\) and \(C\) are temperature values, while the numbers \(9/5\) and 32 describe the conversion scale and offset. A result for \(C\) should therefore have temperature units.
Consider the formula for distance:
\[ d=vt \]
Solving for time gives
\[ t=\frac{d}{v} \]
The units confirm the result:
\[ \frac{\text{distance}}{\text{distance}/\text{time}}=\text{time} \]
If you accidentally wrote \(t=dv\), the units would be distance squared per time, not time. That signals an error even before using numbers.
def f_to_c(f):
# From F = 9/5 * C + 32
return 5 * (f - 32) / 9
fahrenheit = 212
celsius = f_to_c(fahrenheit)
recovered_fahrenheit = 9 * celsius / 5 + 32
print(celsius) # 100.0
print(recovered_fahrenheit) # 212.0Use special cases and limiting behavior
A sanity test asks whether the result behaves sensibly for simple or extreme inputs.
For the distance formula \(d=vt\), the rearranged form is \(t=d/v\). If \(d=0\) and \(v\ne0\), then \(t=0\). This makes sense: no distance requires no travel time.
If \(v=0\), the expression \(d/v\) is undefined. The original equation also shows why. An object moving at zero speed cannot cover a nonzero distance in a finite time. The rearranged formula is valid only when \(v\ne0\).
For a circle,
\[ A=\pi r^2 \]
solving for the radius gives
\[ r=\sqrt{\frac{A}{\pi}} \]
The square-root operation technically gives two algebraic values:
\[ r=\pm\sqrt{\frac{A}{\pi}} \]
A geometric radius cannot be negative, so the physical answer uses the positive root. This is a restriction from the meaning of the variable, not from the algebra alone.
A practical checking sequence
Use this sequence after rearranging a formula:
- Substitute the rearranged expression into the original formula.
- Check that the units match the target variable.
- Test a simple value, such as zero, one, or a known reference value.
- Check extreme behavior when the situation permits it.
- State restrictions, including nonzero denominators and sign conditions.
Exercise
Exercise
Rearrange \(P=2l+2w\) to solve for \(w\), then verify the result using \(P=30\) and \(l=5\).
Show answer
Subtract \(2l\) and divide by 2: \(w=(P-2l)/2=P/2-l\). With \(P=30\) and \(l=5\), \(w=15-5=10\). Substitution gives \(2(5)+2(10)=30\), so the result checks.