Sub topic 14
Applying the Forms to Real Situations
What this chapter assumes
You already know how to write a line in point-slope form, y - y1 = m(x - x1), and in standard form, Ax + By = C. You can convert between them and check an answer by substitution. This chapter uses those skills on word problems, where the numbers carry units and the answer has to make sense in context.
Modeling a situation with a line takes four steps:
- Choose the two variables and say which one depends on the other.
- Find the slope and a point, or two points, from the facts given.
- Write the equation in the form that matches what you know.
- Interpret the result, then check it against the situation.
Slope and intercepts become rates and starting values
In a model, the slope is a rate of change, written as "output units per input unit." The y-intercept is the starting value, where x = 0. The x-intercept is where the output reaches zero.
| Piece of the line | Meaning in a model | Example unit |
|---|---|---|
| Slope m | Change in y for each 1 unit of x | dollars per hour |
| y-intercept | Value of y when x = 0 | fixed fee in dollars |
| x-intercept | Value of x when y = 0 | hours until the balance is gone |
| Point (x1, y1) | One known observation | 3 hours, 45 dollars |
A slope with the wrong unit is a common sign of a setup error. If you divide dollars by hours, the slope must be in dollars per hour.
Case 1: a rate and one observation (point-slope)
A plumber charges a per-hour rate. You know one job: 3 hours cost $145. You also know the rate is $35 per hour.
Let x be hours and y be total cost in dollars. The slope is 35 and the known point is (3, 145).
Point-slope form gives:
y - 145 = 35(x - 3)
Distribute and solve for y:
y - 145 = 35x - 105
y = 35x + 40
The y-intercept is 40, so the plumber has a $40 fixed fee. You did not need to know it ahead of time. Point-slope form found it for you, because the known point was not at x = 0.
Check by substituting the known point: 35(3) + 40 = 145. It matches.
Case 2: two observations (two points)
Often you are given two measurements instead of a rate. A candle is 20 cm tall after 1 hour of burning and 14 cm tall after 4 hours.
Let x be hours and y be height in centimeters. The points are (1, 20) and (4, 14).
The slope is (14 - 20) / (4 - 1) = -6 / 3 = -2.
The negative sign means the candle is getting shorter, at 2 cm per hour. Use the first point:
y - 20 = -2(x - 1)
y = -2x + 22
The candle started at 22 cm. It burns out when y = 0, so -2x + 22 = 0 and x = 11 hours.
The code below does the same steps. It computes the slope exactly with fractions, builds the slope-intercept form, finds the x-intercept, and checks both points.
from fractions import Fraction
def model_from_points(p, q):
(x1, y1), (x2, y2) = p, q
if x1 == x2:
raise ValueError(f"vertical line: x = {x1}")
m = Fraction(y2 - y1, x2 - x1)
b = y1 - m * x1
return m, b
p, q = (1, 20), (4, 14)
m, b = model_from_points(p, q)
print(f"y = {m}x + {b}") # y = -2x + 22
if m != 0:
print("x-intercept:", -b / m) # 11
for x, y in (p, q):
assert m * x + b == yCase 3: two quantities that share a budget (standard form)
Standard form fits problems where two quantities are added up to a fixed total. The coefficients are prices or rates, and the constant is the total.
A school club has $240 to spend on two kinds of tickets. Student tickets cost $8 each and adult tickets cost $12 each. Let x be student tickets and y be adult tickets.
8x + 12y = 240
Divide every term by 4 to get 2x + 3y = 60. This is still standard form, with smaller integers.
The intercepts have direct meanings:
- Set y = 0: 2x = 60, so x = 30. The club could buy 30 student tickets and no adult tickets.
- Set x = 0: 3y = 60, so y = 20. The club could buy 20 adult tickets and no student tickets.
Joining (30, 0) and (0, 20) gives every spending combination that uses the budget exactly. The slope is -20/30 = -2/3. Each extra adult ticket replaces 1.5 student tickets, because 12 / 8 = 1.5.
Both variables are counts, so only points with whole-number coordinates make sense. For example, (15, 10) works because 2(15) + 3(10) = 60. The point (10, 13.33) lies on the line but is not a valid purchase.
Choosing the variable on each axis
The equation is the same line whichever variable you call x, but the slope changes meaning. In the ticket problem, putting adult tickets on the x-axis gives a slope of -3/2 instead of -2/3. Both are correct. Pick the one that makes your question easiest to read, and state which variable is which before you write any equation.
When one quantity depends on the other, such as cost depending on hours, put the independent quantity (hours) on the x-axis.
Limits of a linear model
A line assumes the rate never changes. Real situations break that assumption in predictable ways.
- Domain limits. The candle model only holds for x between 0 and 11 hours. At x = 12 the model gives -2, a negative height, which is impossible.
- Discrete values. Ticket counts must be whole numbers. A line passes through non-integer points that the situation does not allow.
- Extrapolation. Predicting far outside the observed data assumes the rate stays constant. Two measurements fix a line, but they cannot show that the process is linear.
- Rounded inputs. If the two measurements are rounded, the slope can be quite wrong when the points are close together, because you divide by a small difference in x.
Worked example: a phone plan
A prepaid plan charges a monthly fee plus a price per gigabyte (GB). In one month you used 5 GB and paid $35. In another month you used 12 GB and paid $63.
- Let x be GB used and y be cost in dollars. The points are (5, 35) and (12, 63).
- The slope is (63 - 35) / (12 - 5) = 28 / 7 = 4, which is $4 per GB.
- Point-slope form with (5, 35): y - 35 = 4(x - 5).
- Solve for y: y = 4x + 15. The monthly fee is $15.
- Standard form: -4x + y = 15 becomes 4x - y = -15.
- Check both points: 4(5) - 35 = -15 and 4(12) - 63 = -15. Both work.
- Prediction: 9 GB costs 4(9) + 15 = $51.
The standard form 4x - y = -15 is correct but hard to interpret. Slope-intercept form shows the fee and the rate at a glance. Use standard form only when a problem needs it, such as the ticket budget.
Common mistakes in modeling
- Swapping the order of subtraction. Compute (y2 - y1) / (x2 - x1) with the same point first in both. Mixing the order flips the sign of the slope.
- Using the y-value as the slope. The slope is a rate, not one of the measurements.
- Forgetting units. A cost of 4 means nothing until you write "dollars per GB."
- Reading the intercept without checking it. A y-intercept of 15 only means "the fee" if x = 0 is a meaningful input.
- Skipping the check. Substitute every given point into the final equation. This takes a few seconds and catches most arithmetic errors.
Exercise
A water tank holds 500 liters at 2 p.m. and 380 liters at 5 p.m. Let x be hours after 2 p.m. and y be liters in the tank. (a) Write an equation in point-slope form using the point (0, 500). (b) Convert it to standard form with integer coefficients and A non-negative. (c) When does the tank become empty?
Show answer
(a) The points are (0, 500) and (3, 380). The slope is (380 - 500) / (3 - 0) = -120 / 3 = -40 liters per hour. Point-slope form: y - 500 = -40(x - 0). (b) y = -40x + 500, so 40x + y = 500. The coefficients have no common factor larger than 1 across 40, 1 and 500, and A = 40 is positive. (c) Set y = 0: 40x = 500, so x = 12.5 hours after 2 p.m., which is 2:30 a.m. the next day.
Exercise
A food stand sells wraps for $6 and drinks for $2. One afternoon it takes in exactly $120. Let x be wraps and y be drinks. (a) Write the standard form equation with the smallest integer coefficients. (b) Find both intercepts and say what each means. (c) Is selling 12 wraps and 24 drinks possible?
Show answer
(a) 6x + 2y = 120, which simplifies to 3x + y = 60. (b) With y = 0, x = 20: the stand sold 20 wraps and no drinks. With x = 0, y = 60: the stand sold 60 drinks and no wraps. (c) Substitute: 3(12) + 24 = 60. Yes, it is possible, because the point satisfies the equation and both values are whole numbers.
Exercise
A taxi charges a flat fee plus a rate per kilometer. A 4 km ride costs $11 and a 10 km ride costs $20. Find the equation in slope-intercept form, then say what is wrong with using it to price a ride of -2 km.
Show answer
The points are (4, 11) and (10, 20). The slope is 9 / 6 = 1.5 dollars per km. Point-slope form: y - 11 = 1.5(x - 4), so y = 1.5x + 5. The flat fee is $5. At x = -2 the model gives y = 2, but a distance cannot be negative, so the model only applies for x >= 0.