Graph the piecewise-defined function f(x) = -1 - x if x <= 2, -4 + 2x if x > 2
Check the final answer first, then review the worked steps.
Step-by-step solution
- Analyze the first piece: $f(x) = -1 - x$ for $x \leq 2$. This is a line with a slope of $-1$ and a $y$-intercept of $-1$. At $x = 2$, $f(2) = -1 - 2 = -3$. Since $x \leq 2$, there should be a solid dot at $(2, -3)$.
- Analyze the second piece: $f(x) = -4 + 2x$ for $x > 2$. This is a line with a slope of $2$ and a $y$-intercept of $-4$. As $x$ approaches $2$, $f(x)$ approaches $-4 + 2(2) = 0$. Since $x > 2$, there should be an open circle at $(2, 0)$.
- Match with the options: Look for a graph with a solid dot at $(2, -3)$ and an open circle at $(2, 0)$. Graph B matches these conditions.