GENERAL MATHEMATICS
Piecewise Function
Represent real-life situations using piecewise
function
Piecewise Function
- is a function which is defined by
multiple sub-functions where each sub-
function applied to a certain interval of
the main functions domain. -In other
words, it is a function which uses different
rules on disjoint subsets of its domain.
- Some situations can only be described
by more than one formula, depending on the
value of the independent variable.
Example:
1. A user is charged P300 monthly for a
particular mobile plan, which includes 100
free text messages. Messages in excess of
100 are charged P1 each. Represent the
amount a consumer pays each month as a
function of the number
, of messages 𝑖𝑓 m
0<sent
𝑚 ≤100
in a month.
300+ ( m − 100 ) 𝑖𝑓
, 𝑚>100
Example:
2. A jeepney ride costs P8.00 for the first 4
kilometers, and each additional integer
kilometer adds P1.50 to the fare. Use a
piecewise function to represent the jeepney
fare in terms of the distance d in kilometers.
{ ,
F(d) = 8 +1.5 ( d − 4 ) ,
𝑖𝑓 𝑜 < 𝑑 ≤ 4
𝑖𝑓 𝑑> 4
Example:
3.A mobile phone company offers the following
plan:
P400 per month buys 60 minutes of call
Additional time costs P4 per minute of call
Represent this plan by writing the total monthly
costs, C as a piecewise function
{
C (x) ,
=
, 𝑤h𝑒𝑛 𝑜 <𝑡 ≤ 60
𝑤h𝑒𝑛 𝑡 > 60
Example:
[Link] a certain country, income tax is assessed
as follows:
There is no tax on income up to P15,000.
Income over P15,000 and up to P30,000 is
taxed 12%. Income over P30,000 is taxed at
18%. Use a piecewise function to represent
the tax in terms
, of the salary.,
{ ,
,
,
,
Evaluating a piecewise function.
Evaluate f(x) when:
a. x = 0 b. x = 2 c. x = 4
Given:
{ x+2
<2
if x
2x + 1 if x
≥2
a. b. c.
Exercise: Evaluate the
following:
Given :
If
If
a. b. c.
LET’S TRY:
1. The fee to park in the parking lot of an amusement
park costs P50 pesos for the first 3 hours and an
additional P15 pesos for each hour (or a fraction of
it) after that. If you happen to park for more than 10
hours, you will instead pay a flat rate of P250 pesos.
Represent the parking fee using the function P(h)
where h is the number of hours you parked in
amusement park.
LET’S TRY:
Evaluate the piecewise function.
𝑖𝑓 𝑥 ≤ −10
𝑖𝑓 −10< 𝑥 <− 2
a) x = -3 𝑖𝑓 𝑥 ≥ −2
b) x = -1
c) x = -12
{
50 , 𝑖𝑓 0 < h ≤ 3
50+15 h ,𝑖𝑓 3 <h ≤ 10
2 50 , 𝑖𝑓 h >10
a. b.
c.