General Mathematics
Functions
Piece-wise functions
What we are about to learn…
Illustrate piecewise functions
represents real-life situations
using functions, including piece-
wise functions
Functions
a. set of ordered pair ( x, y )
x - First element Domain
Independent variable
y - Second Element Range
Dependent variable
Functions
Functions relate an input to an
output
Functions in real life:
Output: Score in the test
Input: No. of hours studied
Functions
Functions in real life:
1. The length (L) of person’s shadow along the floor is a function of their
height (h) or L(h).
2. Driving a Car:
When driving a car, your location (D) is a function of time (t) or D(t).
3. Temperature:
Based on a variety of inputs, or factors, (F) we get a certain temperature
(t) or F(t).
4. Money:
The amount (A) of money you have is a function of the time (t) spent
earning it or A(t).
Piece-wise Functions
Functions in pieces
Some situation can be described by more
than one formula, depending on the value of
the independent variable.
Piece-wise Functions
Functions in pieces
Piece-wise Functions
Piece-wise Functions
Piece-wise Functions
Piece-wise Functions
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 sent in a
month.
Piece-wise Functions
Solution:
Let t(m) represent the amount paid by the
consumer each month.
The piecewise function is:
t(m) = { 300
300 + m
if 0 < m ≤ 100
if m > 100
Piece-wise Functions
Example:
A journey 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.
Piece-wise Functions
Solution:
The input value is the distance and the output is
the cost of the jeepney fare.
f(d) represents the fare as a function of distance
The piecewise function is:
f(d) =
{ 8
8 + 1.5(d)
if 0 < d ≤ 4
if d > 4
Piece-wise Functions
SeatWork :
1. A videoke machine can be rented for
P1,000 for three days, but for the fourth
day onward, an additional cost of P400
per day added. Represent the cost of
renting a videoke machine as a
piecewise function of the number of
days it is rented.
Piece-wise Functions
Solution:
The input value is the no. of days and the output
is the cost of rent of videoke machine.
f(x) represents the cost of rent as a piecewise
function of number of days it is rented
The piecewise function is:
f(x) = { 1000
1000 + 400(x-3)
if 0 < x ≤ 3
if x > 3