You are on page 1of 15

General Mathematics

Piecewise Function

Tr. Kclyn Tagayun


Recall!
Function
Relation
Domain

Range
Function represent as
Model

Given: f(x) = 3x+1


where x is a set of first even numbers
Equation
Solution: Domain {2,4,6}
Therefore a
f(6) = 3(6) +1 Function of 6
is equal to 19
f(6) = 18+1
f(6) = 19
Piecewise Function

- to describe situations in which a rule or


Definition: relationship changes as the input value
crosses certain “boundaries.”

-is a function built from pieces of


different functions over different
intervals.
Module 1 under
page 11-12.

P
I
E
C
E
W
I
S
E
EXAMPLE 1:
 
Given the piecewise function

*** Find f(0) and f(-3)

Since x = 0, what equation to be


use?
f(x) = 3x + 2
Solution:
f(0) = 3(0) + 2

f(0) =0 + 2

f(0) =2
Therefore
x = 0, then
y=2
EXAMPLE 1:
 
Given the piecewise function

*** Find f(0) and f(-3)

Since x = -3, what equation to be


use?
f(x) = x2 + 3
Solution:
f(-3) = -(3)2 + 3

f(-3) =-9 + 3

f(-3) =-6
Therefore
x = -3, then
y = -6
EXAMPLE 2:
 
Given the piecewise function

*** Find f(-2) and f(2)

Since x = -2, what equation to be


use?
f(x) = x + 2
Solution:
f(-2) = -2 + 2

f(-2) = 0

Therefore
x = -2, then
y=0
EXAMPLE 2:
 
Given the piecewise function

*** Find f(-2) and f(2)

Since x = 2, what equation to be


use?
f(x) = x + 2
Solution:
f(2) = 2 + 2

f(2) = 4

Therefore
x = 2, then
y=4
Piecewise Function: Real Life

A user charged ₱300.00 monthly for a particular mobile


plan, which includes 100 free text messages.
Messages in excess of 100 are charged ₱1.00 each.
Represent the amount a customer pays each month as
a function of the number of messages m sent in a
month.
Let
Let t(m)
t(m) represent
represent the
the amount
amount paid
paid by
by the
the
customer
customer each
each month.
month.

   It can be expressed by the piecewise function.


It can be expressed by the piecewise function.
t(m)
t(m) ==

Solution:
If
If the
the text
text message
message t(m)
t(m) is
is less
less than
than 00 and
and equal
equal to
to
100,
100, your
your monthly
monthly amount
amount is
is ₱300.00
₱300.00 only.
only.

If
If the
the text
text message
message t(m)
t(m) is
is greater
greater than
than (>)
(>) 100,
100, your
your
monthly
monthly amount
amount ??

Let
Let t(5),
t(5), What
What will
will be
be the
the amount
amount the
the customer
customer pay?
pay?

t(m)
t(m) = = 300
300 +
+mm Therefore
Let
Let t(5)
t(5) =
= 300+m
300+m the customer will
t(5)
t(5) == 300+5
300+5 pay additional
t(5)
t(5) == 305
305 ₱5.00 = ₱305.
Module 1
under page
12.

S(n) = 750n

𝟖.𝟎𝟎𝒊𝒇 𝒙≤𝟒
𝑭(𝒅)=
  

{
𝟖.𝟎𝟎+𝒅,𝒊𝒇 𝒙>𝟒 }
Piecewise Function in Real Life
  

Portfolio.
Activity 3 Direction:
Direction: Answer
Answer the
the following
following equation
equation with
with
complete
complete solution.
solution.

1.
1. Given
Given aa piecewise
piecewise function
function
f(x) = ,, Find
f(x) = Find f(1)
f(1) and
and f(7).
f(7).

2.
2. AA tricycle
tricycle ride
ride cost
cost a a 20.00
20.00 for
for the
the first
first
kilometer,
kilometer, and and each
each additional
additional perper half
half
kilometer
kilometer addsadds 5.00
5.00 to to the
the fare.
fare. Use
Use a a
piecewise
piecewise function
function toto represent
represent thethe tricycle
tricycle
fare
fare of
of the
the distance
distance d d in
in kilometer.
kilometer.
Note:
Note: The
The input
input value
value is
is the
the distance
distance andand the
the
output
output is
is the
the cost
cost of
of the
the tricycle
tricycle fare.
fare.

F(d)
F(d) =
=
Thank You and God Bless!

You might also like