# Graphing a Piecewise Function

I graphed this function below. I want to make sure I am graphing piecewise functions such as this one correctly.

• yes. it is correct. – Eleven-Eleven Jan 13 '15 at 20:15
• i wonder why did someone downvote this... perfectly reasonable to ask a question with own solution posted... – gt6989b Jan 13 '15 at 20:16
• Your graph is fine. You can also omit the circles (excluding / including point) at $x=1$ since the function is continuous there. – kremerd Jan 13 '15 at 20:28

$$f(x)=Piecewise[{{x +2 ,x <= -2 }, {x^2, -2<x<1 }, {-x+2, x>= 1}}]$$