In this lesson, you will graph piecewise functions. Specifically, this lesson will cover:
1. Graphing a Function on a Restricted Domain
When we graph a function, we are considering the entire function. What if we only wanted part of the graph?
-
To sketch a portion of the graph, a
restricted domain is used. Recall that the domain of a function is the set of all possible inputs for a function.
For instance, in Graph 3 above, the
is the domain restriction since it is not the entire domain of
(which is all real numbers).
-
When an endpoint is included, we represent it by using a closed circle. See Graphs 2, 3, and 4.
When an endpoint is not included, we represent it by using an open circle. See Graph 3.
-
Consider the following function:
Graph this function.Remembering that

is a line with slope 2 and y-intercept 1, we graph the line but only for values of
x up to and including 4.
-
- Restricted Domain
- Part of, but not the entire, domain of a function.
2. Graphing a Piecewise Function
A piecewise function is made up of other functions that are on restricted domains. For instance, consider the function:

The function tells us to use “

”, but only if the input is less than 2, and to use “

” if the input is at least 2.
This means that the graph of the function will be “part of” the graph of
along with “part of” the graph of
Here is how we put this together:
The graph of
is these pieces put together on one graph as follows:
-
The following video walks you through the process of graphing a piecewise function.
In this lesson, you learned that in cases where you want to sketch only a part of a graph, you would graph a function on a restricted domain, which is part of (but not the entire) domain of a function. You also learned how to graph a piecewise function, which is the result of bringing together the graphs of each piece of the function over the respective restricted domains.
SOURCE: THIS WORK IS ADAPTED FROM CHAPTER 0 OF CONTEMPORARY CALCULUS BY DALE HOFFMAN AND PRECALCULUS BY JAY ABRAMSON. ACCESS FOR FREE AT OPENSTAX.ORG/BOOKS/PRECALCULUS/PAGES/1-INTRODUCTION-TO-FUNCTIONS