Question 113·Medium·Linear Functions
A taxi company charges a fixed booking fee plus a constant rate per mile, so the total cost (in dollars) is a linear function of the number of miles . If a 5-mile trip costs $17 and a 9-mile trip costs $29, what is the taxi company’s rate, in dollars per mile?
(Express the answer as an integer)
For linear rate questions like this, recognize that the situation follows a line of the form , where the rate is the slope. Turn the given scenarios into two points, then compute the slope as change in the dependent variable (cost) divided by change in the independent variable (miles). Avoid simply doing cost/miles for a single trip, because a fixed starting fee means that shortcut will be wrong; always use differences between two points to find the true constant rate.
Hints
Connect the situation to a linear equation
Think of the cost as being made up of a fixed starting amount plus some number of dollars for each mile driven, similar to .
Use the two given trips as points
Treat each trip as a point on the cost line. What are the two points you can form from the given information?
Use the slope formula
The rate per mile is the slope of the line between the two points. Use with your two points, then simplify the fraction.
Focus on differences, not totals
Compute the difference in costs and the difference in miles between the two trips, then divide the cost difference by the miles difference.
Desmos Guide
Compute the rate (slope) directly
In a new expression line, type (29-17)/(9-5) and look at the numeric output that Desmos gives; that value is the taxi company’s constant rate in dollars per mile.
Step-by-step Explanation
Model the situation as a linear function
The problem says the cost is a linear function of the miles , with a fixed booking fee and a constant rate per mile. This can be written in the form
where is the rate in dollars per mile (what we want) and is the fixed booking fee.
Identify two points from the trips
Each trip gives a pair :
- A 5-mile trip costs $17, so one point is .
- A 9-mile trip costs $29, so another point is .
These are two points on the line .
Write the slope (rate per mile) using the two points
The rate per mile is the slope of the line. Use the slope formula with the two points and :
This is "change in cost" divided by "change in miles." Do not simplify fully yet.
Compute and interpret the slope
First compute the numerator and denominator:
So
This means the taxi company charges dollars per mile, so the correct answer is .