Question: How do you create a function with restricted domain

I want to graph y=x^2, x>=0. but i want the axis to go from -2..2 so that you can see the restriction.  How do I go about this?

 

Please Wait...