Piecewise Defined Function
Piecewise Defined Function
FUNCTION
PIECEWISE-DEFINED FUNCTION
• a function that is defined by multiple sub-functions
• each of the sub-functions applies to a certain condition.
Illustration:
x 1 if x 4
f ( x) x2 if 4 x 1 conditions
x if x 1
sub-functions
PIECEWISE-DEFINED FUNCTION
Evaluating piecewise-defined functions
Example:
Given that f and g are functions Find: 1) f(3)
defined by
f ( x) = 2 x + 2
f (3) = 2(3) + 2
f (3) = 6 + 2
and f (3) = 8
PIECEWISE-DEFINED FUNCTION
Evaluating piecewise-defined functions
Example:
Given that f and g are functions Find: 2) g(5)
defined by
g ( x) = − x + 8
g (5) = −5 + 8
𝑔(5) = 3
and
PIECEWISE-DEFINED FUNCTION
Evaluating piecewise-defined functions
Example:
Given that f and g are functions Find: 3) g(- 1/ )
2
defined by
g ( x) = x 2
2
1 1
g− = −
2 2
1 1
g− =
and 2 4
PIECEWISE-DEFINED FUNCTION
Evaluating piecewise-defined functions
Example:
Given that f and g are functions Find: 4) g(1.5)
defined by
g ( x ) = −3x + 4
g (1.5) = −3(1.5) + 4
g (1.5) = −4.5 + 4
g (1.5) = −0.5
and
PIECEWISE-DEFINED FUNCTION
Evaluating piecewise-defined functions
Example:
Given that f and g are functions Find: 5) f(-2)
defined by
f ( x) = x3 − 1
f (−2) = (−2)3 − 1
f (−2) = −8 − 1
and f (−2) = −9
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = -x f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = -x f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = -x f(x) = x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 1. Graph the
piecewise-defined function
f(x) = -x f(x) = x
Domain: {x | x ℝ}
Range: {y | y 0 }
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function
f(x) = 1 - x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function
f(x) = 1 - x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function
f(x) = 1 - x
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function
f(x) = 1 - x f(x) = x
f(x) = -1
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function
f(x) = 1 - x
f(x) = x
f(x) = -1
Domain: {x | x ℝ, x 2 }
Range: {y | y = −1 y 0 }
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function G(x) = x2
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
piecewise-defined function G(x) = x2
G(x) = 1
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
G(x) = x
piecewise-defined function G(x) = x2
G(x) = 1
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Example 2. Graph the
G(x) = x
piecewise-defined function G(x) = x2
G(x) = 1
Domain: {x | x ℝ}
Range: {y | y 1}
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
PIECEWISE-DEFINED FUNCTION
Graph of piecewise-defined functions
Solution:
2 x +8 if x < −2
f( x ) = 0 if x = −2
− x + 2 if x > −2
PIECEWISE-DEFINED FUNCTION
Problems involving piecewise-defined functions
Illustrative Example 1.
A cellular phone plan costs ₱390 a month. The plan includes
2 gigabytes (GB) of free data and charges ₱15 per gigabyte for any
additional data used or its fractional part thereafter. The monthly
charges are a function of the number of gigabytes of data used,
given by
390 if 0 x 2
C( x ) =
390 + 15( x − 2) if x 2
Find: C(0.5), C(2), C(4), and C(2.8).
PIECEWISE-DEFINED FUNCTION
Solution 1.
By evaluation, we find C(0.5), C(2),
Since 0.5 < 2, then we use
C(4), and C(2.8) by using the function
the function
390 if 0 x 2 C(x) = 390.
C( x ) = So, we have
390 + 15( x − 2) if x 2 C(0.5) = 390.
First, we look at the value of the
input, x. If 0 x 2, then the This implies that a usage
value of C(x) is 390. On the other of 0.5GB is charged ₱390.
hand, if x > 2, then the value of
C(x) is 390 +15(x − 2).
PIECEWISE-DEFINED FUNCTION
Solution 1.
By evaluation, we find C(0.5), C(2),
C(4), and C(2.8) by using the function And since 2 = 2, we also
say that C(2) = 390.
390 if 0 x 2
C( x ) =
390 + 15( x − 2) if x 2
Alternative Solution:
2x
25 if x 140,000
T(x) =
2 x + 250,000 if 140,000 x 200,000
25
PIECEWISE-DEFINED FUNCTION
END