Piecewise functions (advanced)
Piecewise Functions
Piecewise Functions is a topic in Other Functions in the Common Core State Standards. It is aligned to Standard F-IF.7b, which requires students to graph piecewise-defined functions, including step functions and absolute value functions.
A piecewise function uses different rules on different intervals; you evaluate it by choosing the piece whose condition holds.
Theory
A piecewise function is defined by different rules on different parts of its domain:
- Evaluate by choosing the piece whose condition holds.
- Closed dot includes the endpoint; open dot excludes it.
The structure:
How to use a piecewise function
- Read each rule and its condition.
- Find which condition the input satisfies.
- Apply that rule only.
- Watch endpoints: open vs closed.
Pick the piece matching each input.
| \(f(-2)\) | \(=\) | \(-2+1=-1\) |
| \(f(3)\) | \(=\) | \(3^2=9\) |
\(x=0\) satisfies \(x\ge0\), so use \(x^2\).
| \(f(0)\) | \(=\) | \(0^2=0\) |
Split at the point where the inside changes sign.
| \(|x|\) | \(=\) | \(\begin{cases}x,&x\ge0\\-x,&x<0\end{cases}\) |
\(-0.5<0\), so use \(x+1\).
| \(f(-0.5)\) | \(=\) | \(-0.5+1=0.5\) |
Common pitfalls
Frequently asked questions
What is a piecewise function?
A function defined by different rules on different intervals.
How do you evaluate a piecewise function?
Choose the piece whose condition the input satisfies.
What do open and closed dots mean?
Closed includes the endpoint; open excludes it.
Can two pieces apply to the same x?
No β the conditions must not overlap.