# How do you write y=abs(x+2) as a piecewise function?

$y = \left\{\begin{matrix}x + 2 & \text{ if "x>=-2 \\ -(x+2) & " if } x < - 2\end{matrix}\right.$
abs("expression") = "expression, proved the expression has a value ">=0
abs("expression")= -"expression, when the expression has a value " < 0