h(x) = -4 if x < -2, x-2 if -2 <= x < 2, -4 if x >= 2

Check the final answer first, then review the worked steps.

Answer

\(h(x) = \begin{cases} -4 & x < -2 \\ x-2 & -2 \le x < 2 \\ -4 & x \ge 2 \end{cases}\)

Work

  1. For $x < -2$, draw $y = -4$ (open circle at $(-2, -4)$).
  2. For $-2 \le x < 2$, draw $y = x - 2$ (closed circle at $(-2, -4)$, open circle at $(2, 0)$).
  3. For $x \ge 2$, draw $y = -4$ (closed circle at $(2, -4)$).

Step-by-step solution

The function consists of a horizontal line $y=-4$ for $x < -2$, a line segment $y=x-2$ from $(-2, -4)$ to $(2, 0)$, and a horizontal line $y=-4$ for $x \ge 2$.