algebraunstuck.com

Unit 1 · Function review & piecewise

Piecewise functions

About 14 minFree, no account needed
Goal
Evaluate a piecewise function by choosing the piece whose condition the input meets.

A piecewise function uses different formulas on different parts of the number line. To evaluate one, first ask: which condition does my input satisfy? Then use that piece, and only that piece.

Example 1

Piecewise f(−2): pick the piece first, then substitute

f(x)={2x+1,x<1x2−3,x≥1f(−2)= ?f(x)=\begin{cases}2x+1, & x<1\\ x^2-3, & x\ge 1\end{cases}\quad f(-2)=\ ?
  1. −2 is less than 1, so use the first piece

    −2<1  ⟹  f(x)=2x+1-2<1\implies f(x)=\mv{p}{2x+1}
  2. Substitute −2 into that piece

    f(−2)=2(−2)+1f(-2)=\mv{p}{2(-2)+1}
  3. Simplify

    f(−2)=−3f(-2)=-3

Check: −2 < 1, so f(−2) = 2(−2) + 1 = −3 ✓

Watch the breakpoint. An input equal to it goes to the piece whose condition uses ≤\le or ≥\ge. On a graph, that end gets a filled dot and the other piece ends in an open circle.

Example 2

f(1) at the breakpoint: only one piece includes x = 1

f(x)={2x+1,x<1x2−3,x≥1f(1)= ?f(x)=\begin{cases}2x+1, & x<1\\ x^2-3, & x\ge 1\end{cases}\quad f(1)=\ ?
  1. 1 is not less than 1, but 1 ≥ 1: use the second piece

    1≥1  ⟹  f(x)=x2−31\ge1\implies f(x)=\mv{p}{x^2-3}
  2. Substitute 1 into that piece

    f(1)=12−3f(1)=\mv{p}{1^2-3}
  3. Simplify

    f(1)=−2f(1)=-2

Check: x = 1 belongs to x ≥ 1 only; f(1) = −2 ✓

xy−4−3−2−11234−8−448(1, −2)(−2, −3)
Open circle at (1, 3): x = 1 is not in the first piece. Filled dot at (1, −2): it is in the second.

Practice

10 practice problems with hints, then a mastery check of 8 questions, right on this page.