Express as a piecewise function. y = |x^2 + 2x – 8|:

y = $\begin{cases} -x^2 - 2x + 8 & \text{if } x^2 + 2x - 8 \leq 0 \\ x^2 + 2x - 8 & \text{if } x^2 + 2x - 8 > 0 \end{cases}$