Sign in

Integrated Math 2 / Unit 5: Modeling with Functions

5.4 Piecewise Functions

3 practice questionsNot yet reviewed

Notes

A piecewise function uses different rules on different parts of the domain.

  • Example: $f(x) = \begin{cases} x + 2 & x < 1 \\ 3x - 1 & x \geq 1 \end{cases}$.
  • To evaluate, first decide which condition the input meets. $f(-2) = -2 + 2 = 0$ and $f(4) = 3(4) - 1 = 11$.
  • Watch the endpoint: $f(1)$ uses the second rule because $x \geq 1$, so $f(1) = 2$.
  • Real examples: tax brackets, parking fees, shipping costs.

Practice

Let $f(x) = x + 2$ for $x < 1$ and $f(x) = 3x - 1$ for $x \geq 1$. Find $f(1)$.
For the piecewise function ($f(x) = x + 2$ for $x < 1$, $f(x) = 3x - 1$ for $x \geq 1$), find $f(4)$.
A garage charges $5 for up to 2 hours, then $3 for each additional hour. What does 5 hours of parking cost?

Ready for more? Take the Unit 5 test.