Sub topic 7
Stating the answer with units and judging reasonableness
What this chapter assumes
You already know how to define a variable, translate phrases into expressions, write a one-variable linear equation, solve it, and check the result by substitution. This chapter covers the last step of the process: turning the number you found into a sentence that answers the question, and deciding whether that sentence makes sense.
Solving the equation gives you a value for the variable. It does not give you the answer to the problem. The answer is a statement in the problem's own language, with units, that responds to what was asked.
Why the solved variable is not yet the answer
A variable such as a is a label you chose. The question in the problem may ask for something else. Consider this problem:
> Ten tickets were sold. Adult tickets cost $8 and child tickets cost $5. The total was $62. How many child tickets were sold?
If you define a as the number of adult tickets, solving gives a = 4. The question asked about child tickets, so the answer is 10 − 4 = 6 child tickets. A frequent error is to report 4 because it is the number the algebra produced.
The code below solves the equation, then computes the quantity that was asked for.
from fractions import Fraction
# 10 tickets total, adult $8, child $5, total $62. Let a = number of adults.
# 8a + 5(10 - a) = 62 -> 3a + 50 = 62
a = Fraction(62 - 50, 3)
children = 10 - a
print(a, children) # 4 6
print(8 * a + 5 * (10 - a) == 62) # True
print(f"{children} child tickets were sold.")The last line is the final answer. The variable value a = 4 is an intermediate result.
A three-part final statement
A complete answer has three parts:
- The quantity, named the way the problem names it.
- The number.
- The unit.
"6 child tickets were sold" has all three. "6" has only one. "x = 6" has the number and a label that means nothing outside your work.
When the problem asks for more than one quantity, state each one. For the ticket problem, "4 adult tickets and 6 child tickets" is complete, and it also lets a reader confirm that the two counts add up to 10.
Units
Carry units through the setup
Units are part of the meaning of every quantity. When you define a variable, write its unit: "Let t = hours Car A has travelled." Each term in an equation must have the same kind of unit. In 60t = 80(t - 1), both sides are distances in miles, because miles per hour times hours gives miles. The factor t - 1 is in hours, so it is legitimate to subtract 1 only because the delay was 1 hour.
Watch for mismatched units
Mixed units are a common source of wrong equations. Suppose a car travels at 60 miles per hour for 45 minutes. Writing 60 * 45 gives a meaningless number. Convert first: 45 minutes is 0.75 hours, and 60 × 0.75 = 45 miles.
| Situation | Mismatch | Fix |
|---|---|---|
| Speed in mph, time in minutes | Distance comes out 60 times too large | Convert minutes to hours (divide by 60) |
| Price in dollars, change in cents | Amounts differ by a factor of 100 | Convert everything to dollars or everything to cents |
| Percent used as a whole number | 20 instead of 0.20 | Write 20% as 0.20 or 1/5 |
| Length in feet, area in square yards | Units do not match | Convert lengths before computing area |
Units of the answer can differ from units of the variable
Sometimes you define the variable in one unit for convenience and the question asks in another. If t is hours and the problem asks "how many minutes," convert at the end: multiply by 60. State the unit the question asked for.
Judging reasonableness
Checking by substitution confirms that your number satisfies your equation. A reasonableness check confirms that your equation, and therefore your answer, fits the real situation. The two checks catch different errors. A wrong equation can still pass a substitution check, because you are substituting into the wrong thing.
Questions to ask
- Sign: Can this quantity be negative? Counts of tickets, lengths, ages, and prices cannot.
- Type: Must it be a whole number? People, tickets, and cars come in whole numbers. A result of 4.5 children means something went wrong, unless the problem allows partial units.
- Size: Is the magnitude plausible? A jacket's original price should be larger than its sale price. A person's age should not be 250.
- Direction: Does the answer move the right way? After a discount, the new price is lower. After a delay, the later traveller must go faster to catch up.
- Bounds: Does the answer respect limits stated in the problem? If there are 10 tickets in total, no single type can exceed 10.
Worked example: discount direction
A jacket costs $48 after a 20% discount. What was the original price?
A 20% discount means the customer pays 80% of the original price. The equation is 0.8p = 48.
from fractions import Fraction
# A jacket costs $48 after a 20% discount. Let p = original price.
# 0.8p = 48 -> p = 48 / 0.8
p = Fraction(48) / Fraction(4, 5)
print(p) # 60
print(p * Fraction(4, 5) == 48) # TrueThe original price is $60. Now apply the reasonableness questions. The original must be greater than $48, and $60 is. A 20% discount on $60 is $12, and $60 − $12 = $48, which matches the problem. If you had mistakenly computed 48 × 1.2 = 57.60, you would have found a value that fails the last test: 20% off $57.60 is $46.08, not $48. The mistake is subtle, since 57.60 is greater than 48 and looks plausible at first glance. Rechecking against the words exposes it.
Worked example: a result that is mathematically valid but impossible
Two cars travel the same road. Car A leaves at 60 mph. Car B leaves 1 hour later at 80 mph. When does B catch up?
# Car A leaves at 60 mph. Car B leaves 1 hour later at 80 mph.
# Let t = hours Car A has travelled when B catches up.
# 60t = 80(t - 1) -> 20t = 80
t = 80 / 20
print(t) # 4.0
print(60 * t == 80 * (t - 1)) # TrueSo t = 4 hours for Car A, which is 3 hours for Car B. Both have gone 240 miles. The answer to "when does B catch up" is "4 hours after A leaves, which is 3 hours after B leaves." Notice that the variable alone does not say which of these the question wants. Read the question again and report the one asked for.
Reasonableness checks here: t must be greater than 1, because B cannot catch up before it has left. It is 4, so that holds. The faster car travels for less time and covers the same distance, which is consistent with 80 mph over 3 hours and 60 mph over 4 hours.
Now suppose the equation had given t = 0.5. Substitution into the equation would still work for that wrong equation, but t - 1 would be negative, which means B's travel time is negative. That signals a setup error.
A diagram of the finishing process
Rounding and precision
Some problems produce numbers that do not come out even. How you round depends on context, not only on the arithmetic.
- Money: Round to the nearest cent, two decimal places.
- Counts of objects: If the exact result is not a whole number, the setup is probably wrong. If the problem is about a requirement, such as how many buses are needed for 130 people with 40 seats each, 130 / 40 = 3.25 means you need 4 buses. Round up so the requirement is met.
- Measurements: Keep about the same precision as the given data. Do not report 3.3333333 hours when the data are given to the nearest half hour; say about 3.3 hours, or 3 hours 20 minutes.
Do the rounding at the end. Rounding intermediate values can shift the final answer, and a rounded value may no longer pass the substitution check exactly.
Common errors at this step
- Reporting the variable value when the question asks about a related quantity, as in the ticket example.
- Leaving off units, so that "60" could be dollars, miles, or percent.
- Giving the answer in the wrong unit, such as minutes when hours were requested.
- Accepting a negative or fractional count without questioning it.
- Treating a substitution check as proof that the model is right.
- Rounding too early.
A related habit helps: before you write the sentence, reread the question word by word and underline what it asks for. Then match your sentence to that.
Practice
Exercise
A tank holds 300 liters. It is drained at 12 liters per minute. Let t be the minutes after draining starts. You solve 300 - 12t = 0 and get t = 25. The question asks "How many seconds until the tank is empty?" State the answer with units and give one reasonableness check.
Show answer
Convert minutes to seconds: 25 × 60 = 1500. The tank is empty after 1500 seconds. A reasonableness check: t is positive and the tank cannot empty before draining begins. Also, 12 liters per minute for 25 minutes removes 12 × 25 = 300 liters, which equals the tank's capacity.
Exercise
A student solves a problem about the number of cars in a parking lot and gets 14.5. What does this tell you, and what should the student do?
Show answer
A count of cars must be a whole number, so 14.5 is not a valid answer. The student should recheck the variable definition, the equation, and the arithmetic, since the error is most likely in the setup or the solving rather than in the problem.
Exercise
A store sells a shirt for $36 after a 25% discount. A student writes 0.75p = 36 and finds p = 48. The student then reports "p = 48." Rewrite this as a complete answer and run one check that uses the words of the problem.
Show answer
The original price of the shirt was $48. Check: 25% of $48 is $12, and $48 − $12 = $36, which matches the sale price. The original price is also higher than the sale price, as it should be.