Wize High School Grade 12 Pre-Calculus Textbook > Functions (Basics)
Piecewise Functions
Popular Courses
Grade 12 Advanced Functions
Ontario High School
Grade 12 Pre-Calculus/Functions
Canada High School
Math 30-1
Alberta High School
Pre-Calculus 12
British Columbia High School
Algebra I
US High School
MATH 206
Concordia University
MATH 1030
University of Guelph
MATH 157
Simon Fraser University
MTH 103
Michigan State University
MATH 21
Pennsylvania State University
MAC 1140
University of Florida
MTH 103A
Michigan State University
MAT 012
University of California - Davis
MTH 116
Michigan State University
MAC 1105
Florida State University
MTH 116
Michigan State University
MATH 140
San Diego State University
MAC 1147
University of Florida
MATH 30-1
Bearspaw Christian School
MA 15300
Purdue University

0:00 / 0:00
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:
The domain of the function is:
The function f(x) can be expressed as 3 separate functions with restricted domains.
Blue Function:
Green Function:
Purple Function:
Therefore, the blue, green, and purple function can be expressed as a piecewise function, f(x):

0:00 / 0:00
Example: Piecewise Functions
The function, is graphed below.

- Find:
- Any discontinuities for
- The domain and range for
- Find a piecewise function that describes
Part 1.
a. There is only one discontinuity at
b. Domain:
Range:
Part 2.
Blue Function:
Red Function:
Green Function:
Purple Function:
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 and will remain the same whichever function is used.
The graph shown below is the graph of the piecewise function .

Select the following statements that are true about .
Practice: Piecewise Functions
Lynn plans on selling hats at a fundraiser. The wholesale hat company charges Lynn $10 a hat for the first 75 hats. After the first 75 hats purchased up to 150 hats, the price of the hat drops by $2.50/hat. After Lynn purchases 150 hats, the price will decrease to $5/hat.
Determine a function that models this situation.
Practice: Piecewise Functions
What value of 'a' would make the following piecewise function continuous?