When working with piecewise functions, graphing them can be split into simpler tasks. Essentially, you consider each piece of the function separately and plot it on the same set of axes. This makes it easier to understand how the different parts fit together.
For our function, we have:
- The part where \(x \leq 0\) with the equation \(f(x) = x^2 - 4\). This is a parabola opening upwards with its vertex at \((0, -4)\).
- The part where \(x > 0\) following the linear equation \(f(x) = 2x + 4\). It’s a straight line passing through the points \((0, 4)\) and moving upwards with a slope of 2.
When sketching, pay attention to the endpoints where the behavior changes. At \(x = 0\), the parabola ends, and the straight line begins. A clear diagram will show this transition without any overlaps or gaps.