Piecewise Functions

Piecewise Functions
A piecewise function is a function composed of 2 or more functions with restricted domains.
The notation used for a piecewise function is displayed below:
where each piece of f(x) represents a function and its domain.
A continuous piecewise function means:
- The function is continuous over the entire domain
- You do not have to lift your pencil from the paper in order to sketch its graph
- The output values on the boundary points are equivalent
A discontinuous piecewise function means:
- The function has discontinuities (holes, gaps, breaks, asymptotes) over the domain
- You have to lift your pencil from the paper in order to sketch its graph
- The output values on the boundary points are not equivalent
Example
The following piecewise function, f(x), is graphed below:

There are 2 discontinuities:
- x=0
- x∈(2,3)
The domain of the function is:
[−5,0] ∪ [0,2] ∪ [3,10]
The function f(x) can be expressed as 3 separate functions with restricted domains.
Blue Function:
y=x where −5≤x≤0
Green Function:
y=x2+10,≤x≤2
Purple Function:
y=5,3≤x≤10
Therefore, the blue, green, and purple function can be expressed as a piecewise function, f(x):

Example: Piecewise Functions
The function, f(x), is graphed below.

- Find:
- Any discontinuities for f(x).
- The domain and range for f(x)
- Find a piecewise function that describes f(x).
Part 1.
a. There is only one discontinuity at x=3.
b. Domain:
[−5,10]
{x∈R∣ −5≤x≤10}
Range:
[0,4]
{y∈R∣ 0≤y≤4}
Part 2.
Blue Function:
y=−21x; −5≤x≤0
Red Function:
y=x; 0<x<3
Green Function:
y=(x−5)2; 3≤x≤6
Purple Function:
y=1; 6<x≤10
Therefore,
Note that there are a few different ways we could have chosen to include the endpoints on some of these domains while still being correct, as the points at x=0 and x=6 will remain the same whichever function is used.