4.4 Piecewise Functions
4.4 Piecewise Functions
Functions
Rates
1 1
75¢ first mile. 10¢ each additional mile.
7 7
We found the following model for the Favorite Taxi company C(m) = 0.7m + 0.65
What is the cost of a journey of 0 miles?
C o 0.7207 0.65 651
What is the cost of a journey of 0.5 miles? C 0 5 0710.53 0.65
I
The model we found does not fit real life perfectly. Our model will work if we round the miles up to the
1
nearest of a mile.
7
Another type of graph that we can use for this is a piecewise graph.
⎧ 1
⎪ y = 0.75, 0 ≤ x <
⎪ 7
⎪ 1 2
domain
⎪ y = 0.85, ≤x<
C ( m) ⎨ 7 7 ofeach
partof
⎪ 3 4
⎪ y = 0.95, 21 ≤ x < 13
⎪ 7 7
⎪⎩ .......... thefunction
Example
You plan to sell retro t-shirts featuring your favourite band, Septicflesh, at the next Wacken music
festival. The wholesale t-shirt company charges you $10 a shirt for the first 75 shirts. After the
first 75 shirts you purchase up to 150 shirts, the company will lower its price to $7.50 per shirt. After you
purchase 150 shirts, the price will decrease to $5 per shirt. Write a function that models this situation
and graph it on Desmos.
The
first t
75 shirts C a lox
The next t
76 150 shirts 7.562 757
cost CG 750
7 5k total x 7.502 187.5
When
x 7150 522 CCx 5 R 150 t 750775 7.5
Exercise 4G page 167
x 5 562.5
y Osx 75 10x