Explanation:
Let's define the step function f(x) that represents the situation:
For 0 ≤ x ≤ 500:
f(x) = 0.30x + 25
For 500 < x < 1000:
f(x) = 0.15x + 100
In this step function, x represents the number of miles driven, and f(x) represents the total cost of renting the truck for that distance. The function has two separate cases based on the mileage range:
- For distances between 0 and 500 miles, the rental fee is $25 plus $0.30 per mile driven. Hence, the equation is f(x) = 0.30x + 25.
- For distances greater than 500 miles but less than 1000 miles, the rental fee is $100 plus $0.15 per mile driven. The equation becomes f(x) = 0.15x + 100.
By using this step function, you can calculate the rental cost for different mileage ranges.