Piecewise Function Formula
A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.
The Formula
Ask yourself: Does the formula used depend on which interval the input falls into?
Quick example
Notation
What this formula means
A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.
A piecewise function is like the speed-limit zones along a road: your position decides which limit applies, and only one sign governs any stretch. Where two zones meet, the limits may match or change abruptly, just as pieces can join or jump.
Formal view
Worked examples
Example 1
easyShow solution
Answer
First step
Full solution
- 2. For : since , use . So .
- 3. For : since , use . So .
Example 2
mediumExample 3
mediumCommon mistakes
- Evaluating with the wrong piece - first locate which interval the input falls in, then use only that formula.
- Ignoring the endpoint inequality - versus decides which piece owns a boundary value.
- Letting intervals overlap - each input must belong to exactly one piece, or it is not a function.
Why this formula matters
Many real rules are several formulas stitched together. A phone bill of $20 for up to 5 GB plus $8 per extra GB cannot be one straight line, because the cost is flat at first and then climbs. Reading pieces and boundaries correctly lets you compute charges, graph jumps honestly, and later test whether a function is continuous where its pieces meet.
Frequently asked questions
What is the Piecewise Function formula?
A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.
How do you use the Piecewise Function formula?
Use a piecewise function when a rule changes at a threshold: 'up to 5 GB', 'for income over $50,000', 'the first hour costs…, each additional hour…', or any absolute value. Write one piece per interval, with no overlaps, and decide which piece owns each boundary. If one formula describes every input, it is a single-formula function; if every piece is a constant, it is a step function, such as postage bands or rounding.
What do the symbols mean in the Piecewise Function formula?
uses brace notation to define each piece.
Why is the Piecewise Function formula important in Math?
Many real rules are several formulas stitched together. A phone bill of $20 for up to 5 GB plus $8 per extra GB cannot be one straight line, because the cost is flat at first and then climbs. Reading pieces and boundaries correctly lets you compute charges, graph jumps honestly, and later test whether a function is continuous where its pieces meet.
What do students get wrong about Piecewise Function?
The procedure for piecewise function is the easy part; the trap is evaluating with the wrong piece. Asking "Does the formula used depend on which interval the input falls into?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
What should I learn before the Piecewise Function formula?
Before studying the Piecewise Function formula, you should understand: function definition, domain.
The full guide
This formula is covered in depth in Functions and Graphs: Complete Foundations for Algebra and Calculus.