I graphed this function below. I want to make sure I am graphing piecewise functions such as this one correctly.
-
4$\begingroup$ yes. it is correct. $\endgroup$– Eleven-ElevenJan 13, 2015 at 20:15
-
$\begingroup$ i wonder why did someone downvote this... perfectly reasonable to ask a question with own solution posted... $\endgroup$– gt6989bJan 13, 2015 at 20:16
-
4$\begingroup$ Your graph is fine. You can also omit the circles (excluding / including point) at $x=1$ since the function is continuous there. $\endgroup$– kremerdJan 13, 2015 at 20:28
1 Answer
If you want to check your functions yourself, try wolfram-alpha
It is quite not pretty to plot a piecewise function there, but it is possible.
$$f(x)=Piecewise[{{x +2 ,x <= -2 }, {x^2, -2<x<1 }, {-x+2, x>= 1}}]$$
Unfortunately the circles are missing, but you already drew them right.