Piecewise
Functions
Learn to define, graph, and model with functions built from multiple rules across different intervals: the key to real-world modelling.
What Is a Piecewise Function?
A piecewise function is defined by different expressions on different intervals of its domain. Instead of one single rule, the function "switches" its formula depending on the input value.
A Simple Visual Example
Why Do They Matter?
Many real-world situations cannot be described by a single formula. Costs, speeds, temperatures, and tax rates often change at specific thresholds.
The Formal Definition
Domain Notation for Each Piece
Continuous vs. Discontinuous
Piecewise vs. Absolute Value
| Piecewise Function | Absolute Value | |
|---|---|---|
| Definition | Multiple rules on different intervals | \( |x| = \begin{cases} x, & x \geq 0 \\ -x, & x < 0 \end{cases} \) |
| Graph shape | Can be any combination of curves/lines | V-shape (special case) |
| Pieces | Any number \( \geq 2 \) | Exactly 2 |
| Continuity | May be continuous or have jumps | Always continuous |
| Key insight | General framework | Special case of piecewise |
How to Define & Graph
Example 1: Evaluate \( f(x) \)
\( f(1) = 2(1) + 1 = \) 3
\( f(5) = 5^2 - 2 = \) 23
Example 1: Graph of \( f(x) \)
Example 2: Real-World Model
A parking garage charges $2 per hour for the first 3 hours, then $5 per hour after that. Write the cost function \( C(t) \) where \( t \) is hours parked.
Example 2: Graph of \( C(t) \)
Example 3: Finding Unknowns
Find the value of \( k \) that makes this function continuous:
Common Mistakes
Summary Checklist
| Concept | Key Point | Watch For |
|---|---|---|
| Definition | Multiple rules, non-overlapping domains | Each \( x \) maps to exactly one \( y \) |
| Notation | Brace notation with conditions | \( \leq \) vs \( < \) at boundaries |
| Graphing | Plot each piece on its interval | ● closed, ○ open at endpoints |
| Continuity | Left limit = right limit = \( f(a) \) | Evaluate both pieces at boundary |
| Modelling | Match context to interval structure | Units and context labels on graph |
Question 1 of 5
Given \( f(x) = \begin{cases} x + 4, & x < 1 \\ 2x^2, & x \geq 1 \end{cases} \), what is \( f(1) \)?
Question 2 of 5
A phone plan charges $0.10 per minute for the first 100 minutes, then $0.05 per minute after that. What is the cost for 150 minutes?
Question 3 of 5
For \( h(x) = \begin{cases} 2x + k, & x \leq 4 \\ x^2, & x > 4 \end{cases} \) to be continuous, what must \( k \) equal?
Question 4 of 5
On the graph of a piecewise function, a filled dot (●) at a boundary point means:
Question 5 of 5
Which of the following is NOT a valid piecewise function?