Christian A. answered 03/07/20
I love biology and ecology!
Hi Hajir!
For this piece-wise function, we know that x will represent the number of miles traveled. We also know that for the first 100 miles, the cost, which is C(x), will always be $ 10.00. Therefore, in between when x=0 and x=100, C(x) = $10.00. (This will look like a horizontal line on the graph)
From x=100 onward, C(x) increases by $0.15 for each mile traveled. So we can model that like this:
C(x) = 0.15x + 10.00 <- We have to add 10.00 because that is the base cost no matter how far you go.
Now we just have to put these two components together into a piece-wise function:
C(x) = ⌈ 10.00, 0 < x ≤ 100
⌊ 0.15x + 10.00, x ≥ 100
In order to compute the total cost for your customer, you must first find out how many miles they traveled. If they traveled between 0 and 100 miles, then the cost will be $10.00. If they traveled further than 100 miles, then you need to plug in their mileage into the second equation, where x = miles traveled.
I hope this helped! If you have any questions feel free to reply :)
-Christian A.