Question 41·Medium·Linear Functions
A delivery service charges a fixed fee plus a constant fee per mile driven. A customer is charged $13 for a 6-mile trip and $25 for a 14-mile trip.
Assuming the cost , in dollars, is a linear function of the distance , in miles, what is the fixed fee the service charges?
(Express the answer as an integer)
For linear cost problems with a fixed starting fee plus a per-unit fee, always translate the situation into the form , where is the per-unit rate and is the fixed fee. Use any two data points to compute the slope , then plug one point and back into the equation to solve quickly for , the fixed fee. Double-check by confirming that your equation gives the correct cost for both given trips.
Hints
Write the linear model
Think of the cost as a line depending on distance . How can you write an equation with a slope and an intercept to represent "fixed fee + fee per mile"?
Use the two trips as points
Use the two pieces of information as points on a line: one for the 6-mile trip and one for the 14-mile trip. How can you use these points to find the slope (cost per mile)?
Find the fixed fee from the equation
Once you know the cost per mile (the slope), plug it and one of the points into . What does solving for give you in this context?
Interpret in the context
In the equation , what real-world quantity does represent for this delivery service?
Desmos Guide
Enter the two data points
In Desmos, create a table. In the first row, enter , and in the second row, enter as your two points.
Use a line of best fit to find the linear equation
Under the table, type y1 ~ m x1 + b. Desmos will perform a linear regression through those two points and display values for m and b.
Identify the fixed fee from the regression
Look at the value of b that Desmos shows. That b is the fixed fee (the cost when the distance is 0 miles). Read off that value from the screen.
Step-by-step Explanation
Translate the situation into a linear equation
We are told the cost is a linear function of distance , so we can write an equation of the form
Here:
- is the cost per mile (the slope).
- is the fixed fee (the starting cost when ), which is what the question asks for.
Use the given trips as points on the line
The information about the two trips gives us two points on the line:
- A 6-mile trip costs $13
- A 14-mile trip costs $25
We can use these two points to find the slope (the cost per mile) using the slope formula:
Compute the slope (cost per mile)
Now calculate the slope:
So the cost per mile is dollars. Now substitute and one of the points into to find .
Using the point :
Solve for the fixed fee
From
first compute :
So
Subtract 9 from both sides:
The fixed fee the service charges is dollars.