Piecewise-defined functions
The rule. A piecewise function uses different rules over different intervals of the input. To evaluate it at a value, first decide which interval that value falls into, then use ONLY that interval's rule. At a boundary between pieces, the inequalities decide which piece owns the point: x ≥ 3 includes 3, but x < 3 does not. You never plug the input into every rule or add the pieces together — exactly one rule applies to each input.
How to approach it
Start here. Find the input value and decide which interval contains it, paying attention if it sits exactly on a boundary.
Plan
- Locate the input among the intervals.
- At a boundary, read the inequality to see which piece owns the endpoint.
- Pick the single matching rule and evaluate it.
Work it. Apply only the selected rule and simplify.
Check yourself. Did you use exactly one branch, let the inequality decide any boundary, and avoid evaluating all the pieces or combining them?
Worked examples
Worked example 1
Let f(x) = x + 4 for x ≤ 1 and f(x) = 2x for x > 1. Find f(1).
The input is 1, which sits exactly on the boundary. The condition x ≤ 1 includes 1, so the first rule owns it.
Plan
- Check which interval contains x = 1.
- See that x ≤ 1 includes the endpoint 1.
- Apply only the first rule, x + 4.
| f(1) = 1 + 4 | 1 satisfies x ≤ 1, so use the first rule |
| = 5 | add |
Check. The other rule, 2x, applies only for x > 1, which excludes 1, so it is not used. Thus f(1) = 5.
Answer: f(1) = 5
Worked example 2
Let f(x) = x2 for x < 0, f(x) = 3x + 1 for 0 ≤ x < 4, and f(x) = 10 for x ≥ 4. Find f(-2) + f(5).
This function has three rules over three intervals. We evaluate f(-2) and f(5) separately, each with the single rule for its interval, then add.
Plan
- Locate -2: since -2 < 0, use the rule x2.
- Locate 5: since 5 ≥ 4, use the constant rule 10.
- Evaluate each, then add the two outputs.
| f(-2) = (-2)2 = 4 | -2 < 0, so use x2 |
| f(5) = 10 | 5 ≥ 4, so use the constant rule |
| f(-2) + f(5) = 4 + 10 = 14 | add the two outputs |
Check. Each input uses exactly one rule: -2 is not ≥ 4 and 5 is not < 0, so no piece is mixed. The sum is 14.
Answer: f(-2) + f(5) = 14
Common mistakes
Using the wrong interval's rule
Applies a rule from an interval that does not contain the input. Check which interval the input falls in first, then use only that rule.
Assigning a boundary to the wrong piece
At a boundary value, gives the endpoint to the wrong rule by misreading ≤ versus <, or calls it undefined or shared by both pieces. For x ≥ 3, the value 3 belongs to that piece.
Evaluating every piece
Plugs the input into all the rules and reports several answers, or adds the pieces together. Only one rule applies to a given input; pick that one.
Reading the inequality backwards
Misreads an interval condition, such as x > 0 versus x < 0, and picks the branch by a flipped inequality. Read the direction of each inequality carefully before choosing.
Related lessons
- Before this: Evaluate & interpret function notation f(x)
Practice this until it sticks
The adaptive tutor has 5 practice questions on this skill, names the exact mistake when you miss one, and gives you a fresh problem to confirm the fix. It is part of the Digital SAT program: $59 once, 12 months of access, no renewal.
See the Digital SAT programEnroll