Evaluating Piecewise-Defined Functions
What you'll learn: You'll learn how to find function values when a function uses different formulas depending on which part of the domain your input falls into.
What Is a Piecewise-Defined Function?
A piecewise-defined function is like a mathematical chameleon—it changes its behavior based on the input value. Instead of using one formula for all inputs, it uses different formulas for different intervals of the domain.
Think of it like a taxi fare system: the price per mile might be 3 per mile after that. The pricing "rule" changes depending on how far you've traveled.
How to Evaluate
To evaluate a piecewise function at a specific input:
- Identify which interval your input falls into by checking the conditions
- Use the corresponding formula for that interval
- Substitute and calculate as you would with any function
Example
Consider this piecewise function:
f(x) = { x + 3, if x < 2
{ x² - 1, if x ≥ 2
To find f(1): Since 1 < 2, use the first formula: f(1) = 1 + 3 = 4
To find f(5): Since 5 ≥ 2, use the second formula: f(5) = 5² - 1 = 25 - 1 = 24
To find f(2): Since 2 ≥ 2 (the boundary belongs to the second piece), use the second formula: f(2) = 2² - 1 = 4 - 1 = 3
Watch the Boundaries!
Pay close attention to whether boundary points use < or ≤ (and > or ≥). The symbols tell you exactly which formula to use when your input lands right on the dividing line.
Key Takeaway: To evaluate a piecewise function, first determine which piece (interval) contains your input, then use only that piece's formula to calculate the output.