The cue for piecewise linear pricing is that different miles have different rates. For a trip beyond the last cutoff, count the miles in each tier before applying any percentages. Build the charge in the order given, then use Desmos to find the slope and constant of the line. The main trap is applying a surcharge to the flat fee when it covers only mileage.
Hints
- Hint 1
Even when , not every mile costs the highest rate. The middle tier contains 50 miles, and only miles are beyond it. How would you charge those two groups separately?
- Hint 2
Adding a 10% surcharge means multiplying by . Apply that multiplier to the per-mile charges only, then add the flat fee outside it.
- Hint 3
The 8% tax comes after the airport surcharge, so multiply the whole subtotal by . To match an equation in form, you can use two mileages above 150 to find its slope.
Step-by-step
Build the charge, then find its line
Step 1Count the charged miles in each tier
Let be the per-mile charge before surcharges. Miles 101 through 150 account for 50 miles, while miles cost the higher rate because . So . The first 100 miles are already included in the flat fee.
- Step 2
Apply the airport surcharge to mileage
A 10% increase multiplies a charge by . The airport surcharge applies only to per-mile charges, so keep the $35 fee outside that multiplication: . Here is the subtotal before local tax.
- Step 3
Tax the entire subtotal
The 8% local tax multiplies the whole subtotal by . Apply each percentage to the amount the problem names, in the order given. The total-cost function is .
- Step 4
Find the cost per additional mile
Type the formula for in Desmos, then type . Both mileages are above 150 and differ by one mile, so this difference is the slope, or added cost per mile. Desmos prints ; its fraction button shows .
- Step 5
Find the constant and match the equation
For a line written , subtract times the slope from the cost at miles to find . Type ; Desmos prints , or with its fraction button. This negative constant isn't a zero-mile rental price: the equation applies only when . Insert the slope and constant: . This gives the total cost in dollars for miles. Choice A.