![](https://static.wixstatic.com/media/5683a8_6340dae9a2244962a7971ad5d785f317~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/5683a8_6340dae9a2244962a7971ad5d785f317~mv2.png)
A piecewise-defined function is a function that is defined by two or more equations over a specified domain. Can be denoted by f(x) = {formula 1, if x is in domain 1}
= {formula 2, if x is in domain 2}
= {formula 3, if x is in domain 3}
Example 1:
The cost of hiring a catering service to serve food for a party is P150 per head for 50 people or less, P130 per head for 51 to 100 people, and P110 per head for more than 100 people. represent the total cost C in terms of the number of attendees h.
The formula based on the question will be:
C(h) = {150h if h <= 50}
= {130h if 50<h<=100}
= {110h if h>100}
Example 2:
A user is charged P300 monthly for a particular mobile plan, which includes 100 free text messages. Messaged in excess of 100 are charged P1.00 each. Represent the amount a consumer pays each month as a function of the number of messaged m sent in a month.
The formula based on the question will be:
C(m) = {P300m if 0<m<+100}
= {P300 + (m -100) if m>100}
Comments