Skip to main content

Section 1.4 Piecewise Defined Functions

In this section, we’ll explore piecewise-defined functions, which are functions constructed from pieces of several other functions. We’ll find the domain and range of these types of functions, as well as graph, evaluate, and solve them. And given the graph of a piecewise-defined function, we’ll construct the formula for the graph’s function.

Subsection Textbook Reference

This relates to content in §3.2 of Algebra and Trigonometry 2e
 1 
http://tiny.cc/111Z-Textbook
.

Exercises Preparation Exercises

1.

A family event charges $4/person, with a maximum of $20 for any single family.
(a)
How much will a family of three pay?
(b)
How much will a family of seven pay?
(c)
At what number of people does the calculation change from being per person to a single charge for the whole family?

2.

In November 2022, Portland General Electric set the rates for basic residential service as a function of the number of kilowatt-hours (kWh) of energy used. The rates in November 2022 were $0.0642/kWh when up to 1000 kWh (kilowatt-hours) are used and if greater than 1000 kWh are used, then the first 1000kWh are billed at the $0.0642/kWh rate and $0.07002/kWh is charged for the energy usage greater than the initial 1000 kWh.
(a)
What is the cost for using 740 kWh?
(b)
What is the cost for using 1320 kWh?
(c)
What is the formula to find the cost for using \(x\) kWh if \(x\) is greater than 1000 kWh?

Exercises Practice Exercises

1.

Let \(f(x)=\begin{cases} x^2-4 \amp \text{if } {-2}\leq x \lt 3\\ \frac{2}{3}x-1 \amp \text{if } x\geq 3 \end{cases}\)
(a)
Evaluate \(f(5)\text{.}\)
(b)
What is the domain of \(f\text{?}\)
(c)
Graph \(y = f(x)\) below.
described in detail following the image
An empty graph.

2.

The graph of \(y=g(x)\) is in Figure 1.4.1.
described in detail following the image
Graph of a piecewise function consisting of three linear pieces. One line extends off the graph to the left, passes through the point \((-6,-1)\text{,}\) and ends with a filled circle at \((-3,1)\text{.}\) One line begins with an empty circle at \((-3, -4)\) and ends with an empty circle at \((1,-4)\text{.}\) One line begins with a filled circle at \((2,3)\text{,}\) passes through the point \((3,1)\text{,}\) and extends off the graph to the right.
Figure 1.4.1. \(y=g(x)\)
(a)
Evaluate \(g(-2)\text{.}\)
(b)
Solve \(g(x) = -1\text{.}\)
(c)
What is the domain of \(g\text{?}\)
(d)
What is the range of \(g\text{?}\)
(e)
State the formula for the function \(g\text{.}\)

Subsection Definitions

Definition 1.4.2. Piecewise-Defined Functions.

A piecewise-defined function is a function which uses different formulas for calculating the output on different intervals of its domain. Each formula is used on a distinct interval of the domain.
The notation we use to write a piecewise-defined function is:
\begin{equation*} f(x)=\begin{cases} \text{formula #1} \amp \textrm{if} \quad x \text{ is in this part of the domain of } f \\ \text{formula #2} \amp \textrm{if} \quad x \text{ is in this other part of the domain of } f \\ \text{etc.} \amp \textrm{if} \quad \text{etc.} \end{cases} \end{equation*}
The domain of the function is the union of the intervals used by the separate formulas.

Example 1.4.3.

The function
\begin{equation*} f(x)=\begin{cases} -\frac{1}{2}(x+3)^2+4 \amp \textrm{if}\quad -5 \lt x \leq 1 \\ \sqrt{x-1}+3 \amp \textrm{if}\quad x \gt 1 \\ \end{cases} \end{equation*}
is a piece-wise defined function.
Its graph is in Figure 1.4.4.
Its domain is \((-5, \infty)\) and its range is \([-4,\infty)\text{.}\)
described in detail following the image
Graph of \(f(x)\) defined above, consisting of two pieces. A downward facing parabola begins with an empty circle at \((-5,2)\) and ends with a filled circle at \((1,-4)\text{.}\) Another begins with an empty circle at \((1,3)\) and extends off to the right of the graph.
Figure 1.4.4. \(y=f(x)\)

Exercises Exit Exercises

1.

Use \(F(x) = \begin{cases} -\frac{1}{2}x^2+1 \amp \textrm{if} \quad x \leq 2 \\ -\frac{1}{2}x + 5 \amp \textrm{if} \quad x \gt 4 \end{cases}\) to answer the following.
(a)
Evaluate \(F(8)\text{.}\)
(b)
Evaluate \(F(-6)\text{.}\)

2.

In November 2022, Portland General Electric set the rates for basic residential service to be $0.0642/kWh for up to 1000 kWh used and then $0.07002/kWh for any usage greater than 1000 kWh. Find a piecewise-defined function that gives the cost of electricity used (in dollars) as a function of \(x\text{,}\) the amount of kWh used.

3.

\(y = G(x)\) is graphed in Figure 1.4.5 below.
described in detail following the image
Graph of a piecewise function consisting of three linear pieces. One line extends off the graph to the left, passes through the point \((-5,0)\text{,}\) and ends with a filled circle at \((-4,-3)\text{.}\) One line begins with an empty circle at \((-4, 1)\) and ends with an empty circle at \((2,5.5)\text{.}\) One line begins with a filled circle at \((3,3)\text{,}\) passes through the point \((4,2)\text{,}\) and extends off the graph to the right.
Figure 1.4.5. \(y=G(x)\)
(a)
State the formula for the function \(G\text{.}\)
(b)
Evaluate \(G(-4)\) from the graph.
(c)
Solve \(G(x) = 0\) from the graph.

Reflection Reflection

1.

On a scale of 1-5, how are you feeling with the concepts related to the graphical behaviors of functions?