Piecewise Functions and the Basic Graphs
A piecewise function uses different rules on different stretches of inputs, like tax brackets. A handful of basic graphs, like , and , are worth knowing on sight, because most other graphs are built from them.
What the symbols mean
- Absolute value
Distance from 0, so it's never negative.
Explanation
A piecewise function is simply a function made of pieces: one rule for some inputs, a different rule for others. Phone plans work like this, with one price up to your data limit and another price after. The absolute value up top is the classic example, and it has two small pieces: when (leave positive numbers alone) and when (flip negative numbers to positive). So just means "distance from zero." The curly-bracket notation looks formal, but it's just a list of rules with a condition next to each.
Evaluating. Look at the conditions first, find the one your input satisfies, and use only that rule. The other rules simply don't apply there.
Graphing. Draw each piece only over its own interval. Where a piece stops, use a closed dot if that endpoint is included and an open dot if it isn't, so it's clear which rule owns the boundary.
The basic graphs. These five show up again and again. Later in this unit you'll shift, stretch and flip them to get almost everything else, so it's worth knowing their shapes and a couple of points on each.
| Function | Key points | Shape |
|---|---|---|
| U-shaped parabola | ||
| S-shaped, through the origin | ||
| Half a sideways parabola, starts at 0 | ||
| V-shape | ||
| Two branches; never touches either axis |
A common mistake. With a tax schedule like the one pictured below, it's tempting to think that crossing into a higher bracket taxes your whole income at the higher rate. It doesn't. Each rate applies only to the dollars inside its own bracket, so the tax function has corners where the rate changes but no jumps.
See it
Worked examples
For , find , and .
- 1
is less than 1, so use the first rule: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
For above, find .
For above, find .
For above, find .
Evaluate .
Which basic graph passes through , and ?
With those brackets (10% up to 10,000, 20% from 10,000 to 40,000, 30% above), how much tax is owed on an income of 25,000?
Solve .
The hardest one here. Get it, and you've got this lesson.
The function for , for and for has no jumps. Find and .
Where it's used
Tax brackets, shipping rates, phone plans with overage charges and a thermostat's on/off behavior are all piecewise functions.