Real-world situations often behave differently in different conditions. Tax brackets charge different rates at different income levels. Shipping costs jump at weight thresholds. Cell phone plans charge nothing for data up to a limit, then charge per gigabyte.
Piecewise functions let us model these situations with one mathematical object that uses different formulas on different parts of its domain.
| Property | Value |
|---|---|
| Chapter | 1 - Functions and Limits |
| Section | 1.1 |
| Difficulty | Intermediate |
| Time | ~20 minutes |
A piecewise function is written using a brace that groups different formulas with their conditions:
$$f(x) = \begin{cases} \text{formula}_1 & \text{if condition}_1 \\ \text{formula}_2 & \text{if condition}_2 \\ \vdots & \vdots \end{cases}$$
Example:
$$f(x) = \begin{cases} x + 3 & \text{if } x < 1 \\ 5 & \text{if } x = 1 \\ x^2 & \text{if } x > 1 \end{cases}$$
Process:
Example: For the function above, find $f(-2)$, $f(1)$, and $f(3)$.
Process:
y
|
5 | ● (the point (1,5))
|
4 |
| ○ (excluded: x=1 gives y=4 from x^2, but we use 5 instead)
3 |
| ●
2 |/ (line y = x + 3 for x < 1)
|
1 ○-+-○-------→ x
| parabola y = x² for x > 1
The absolute value is a classic piecewise function:
$$\vert x\vert = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}$$
Why $-x$ for negatives? If $x$ is negative (like $x = -3$), then $-x$ is positive ($-(-3) = 3$), which gives the correct absolute value.
Graph shape: V-shaped, with vertex at the origin.
y
|
3 |● ●
| \ /
2 | \ /
| \
1 | / \
| / \
●-------→ x
-3 -2 -1 1 2 3
For the function $$g(x) = \begin{cases} 2x + 1 & \text{if } x \leq 2 \\ 7 - x & \text{if } x > 2 \end{cases}$$
Evaluate: $g(0)$, $g(2)$, $g(5)$.
Sketch the graph of: $$f(x) = \begin{cases} x + 2 & \text{if } x < 1 \\ 3 & \text{if } x \geq 1 \end{cases}$$
Be sure to indicate open and closed circles at the boundary.
For the function: $$h(x) = \begin{cases} \sqrt{x} & \text{if } 0 \leq x \leq 4 \\ 6 - x & \text{if } x > 4 \end{cases}$$
Write $f(x) = \vert 2x - 6\vert $ as a piecewise function (without absolute value signs) and sketch its graph.
A parking garage charges:
| Error | Example | Correction |
|---|---|---|
| Wrong boundary | Using $x = 1$ with "$x < 1$" formula | Check inequality: is the boundary included? |
| Forgetting endpoint markers | Drawing continuous line through breakpoint | Use ● for included, ○ for excluded |
| Mixing up $-x$ in $\|x\|$ | Thinking $-x$ is always negative | When $x < 0$, $-x$ is positive |
The Road with Multiple Speed Limits:
Think of a piecewise function like a road with different speed limits in different zones. At mile marker 10, the limit might change from 55 to 35. You follow whichever rule applies to your current location. The "breakpoints" are like zone boundaries; you need to know which zone you're in to follow the right rule.
| Previous | Up | Next |
|---|---|---|
| Difference Quotient | Ch1 §1 Skills | Function Symmetry |
Last updated: 2026-01-22