Piecewise Functions
Piecewise Functions
Pre-Cal Advanced
Ms. Ouseph
Objective for today!
A function defined by
different equations on
different domains.
In other words…
Think of it as only
having a “chunk” of a
function!
We’ll harp more about that later…
1 f(1) = 3(1) = $3
2 f(2) = 3(2) = $6
3 f(3) = 3(3) = $9
4 f(4) = 3(4) = $12
Equation 1: y = 3x
*For any number of hours parked after 4 hours, it costs us $2/hour to park*
0≤x≤4
Equation 2: y = 2x + 4 only works when…
The total number of hours parked (x) are between greater than 4
x>4
Combining these two, we have a piecewise function!
f(x) = { 3x,
2x + 4,
0≤x≤4
x>4
How do we graph a piecewise function??
Using the table we created, we can plot points on a graph to graph
the piecewise function!
y = 3x, 0 ≤ x ≤ 4 y = 2x + 4, x > 4
x y x y
0 0 Open 4 12
1 3 5 14
2 6 6 16
3 9 7 18
4 12 Closed 8 20
Each function must live in its own “neighborhood”
Let's put up a fence to separate these two “neighborhoods.”
x=4
Note: Its OK y = 3x y = 2x + 4
for each lives here! lives here!
neighborhoo
d to lie on
the fence.
They just
can’t cross
over it!
Parking Hours vs. Payment Both equations are “on the fence,” but
one point (from y=3x) is closed while
the other (from y=2x+4) is open!
f(x) = { 3x,
2x + 4,
0≤x≤4
x>4
Total Payment
Closed Open
x y x y
1 5 1 3
0 3 2 2
-1 1 3 1
-2 -1 4 0
Now let’s use these table of values to graph
our piecewise function!
x y x y
1 5 1 3
0 3 2 2
-1 1 3 1
-2 -1 4 0
•
•
x y x y
(0 3 ) Closed Open ( 0 1)
-1 2 1 2
-2 -1 2 3
-3 -6 3 4
Now let’s use these table of values to graph
our piecewise function!
x y x y
0 3 0 1
-1 2 1 2
-2 -1 2 3
-3 -6 3 4