Piecewise and Absolute Value Functions
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn how to define, evaluate, graph, and analyze piecewise functions and absolute value functions. If you covered piecewise functions in Algebra 2, this is a recap with some new depth, including writing absolute value expressions as piecewise functions and analyzing continuity at the boundary points.
The Concept
Section titled “The Concept”Piecewise Functions
Section titled “Piecewise Functions”A piecewise function uses different rules for different parts of its domain. It’s written using cases:
To evaluate: check which condition the input satisfies, then use that rule. The key is paying attention to the boundary points and whether they use < or ≤.
Absolute Value Functions
Section titled “Absolute Value Functions”The absolute value function is the most common piecewise function:
Its graph is a V-shape with vertex at the origin. Transformations work the same as with other functions: y = a|x - h| + k has vertex at (h, k), opens up if a > 0 and down if a < 0, and is stretched or compressed by |a|.
Worked Example
Section titled “Worked Example”Example 1: Evaluate a piecewise function
Find f(-2) and f(3):
For f(-2): since -2 < 0, use the first rule:
For f(3): since 3 ≥ 0, use the second rule:
Example 2: Graph y = |x - 2| + 1
This is the basic V-shape shifted right 2 and up 1. The vertex is at (2, 1). The left arm has slope -1 and the right arm has slope +1.
Example 3: Write |2x - 6| as a piecewise function
First find the critical point where the expression inside equals zero: 2x - 6 = 0, so x = 3.
Example 4: Check continuity at a boundary
At x = 2, check both sides:
- From the left: x + 4 = 2 + 4 = 6
- From the right: 3x = 3(2) = 6
Both sides give 6, so g is continuous at x = 2. If they didn’t match, there would be a jump discontinuity.
Real-World Application
Section titled “Real-World Application”Piecewise and absolute value functions model many real situations:
- Tax brackets: different rates apply to different income ranges
- Shipping costs: base fee plus per-pound charge, with different rates above certain weights
- Utility pricing: one rate for the first 500 kWh, a higher rate after that
- Distance and displacement: absolute value gives total distance regardless of direction
- Temperature control: heating kicks in below a setpoint, cooling above it
Example: a phone plan charges 10 per additional GB. That’s a piecewise function: