Functions Review
Piecewise Functions
Evaluate a piecewise function f(x) = {x² if x < 2; 3x-2 if x ≥ 2} at three different input values, applying the correct piece each time.
For f(x) = x² if x < 2; 3x - 2 if x ≥ 2: f(1): since 1 < 2, use x²: f(1) = 1² = 1. f(2): since 2 ≥ 2, use 3x - 2: f(2) = 3(2) - 2 = 4. f(3): since 3 ≥ 2, use 3x - 2: f(3) = 3(3) - 2 = 7.
Example
piecewise-functions
A piecewise function uses different formulas on different parts of its domain. To evaluate, first determine which piece applies to the input value, then use that formula.