document.write( "Question 200239: my question states graph the piecewise function f(x)= 2-x if x greater than or equal to 0 and x^2=x>0. I know you can't show me the graph can you tell me how to do this? My textbook doesn't explain this well at all. \n" ); document.write( "
Algebra.Com's Answer #150550 by vleith(2983)\"\" \"About 
You can put this solution on YOUR website!
I think your problem statement is incorrect. As stated, both of the functions given are defined for x>0. If that is the case, then the functions are not piecewise.\r
\n" ); document.write( "\n" ); document.write( "One or the other must be defined when x is 'less than zero'. \r
\n" ); document.write( "\n" ); document.write( "Let's assume the first one is \"f%28x%29=+2-x+\" for x<=0.
\n" ); document.write( "Plot this line for enough values of x to allow you to draw it. Since this is a line, you only need 2 points. Pick x=0 and x=-1 (note that both value chosen for x are <=0).
\n" ); document.write( "When x=0, f(x) = 2-0 = 2. So one point is (0,2)
\n" ); document.write( "When x = -1, f(x) = 2 - (-1) = 3, So another point is (-1,3).
\n" ); document.write( "Plot those two points and draw the ray (not the entire line) that starts at (0,2) and goes up to the left through (-1,3).\r
\n" ); document.write( "\n" ); document.write( "Now do the next 'piece' of the plot.
\n" ); document.write( "\"f%28x%29=+x%5E2\" x>0
\n" ); document.write( "This is a parabola, so you will need to plot a few more points in order to approximate the drawring.
\n" ); document.write( "Pick values if x > 0, so let's use x=1, x=2. We will also want to see what happens when x is 'very close to zero' (we will fudge and use 0).
\n" ); document.write( "When x=0 , x^2 = 0. So point is (0,0)
\n" ); document.write( "When x = 1, x^2 = 1. Another point is (1,1)
\n" ); document.write( "When x=2, x^2 = 4. Another point is (2,4)
\n" ); document.write( "Maybe one more point , x=3 will help
\n" ); document.write( "When x=3, x^2=9. So (3,9)\r
\n" ); document.write( "\n" ); document.write( "Now plot those points and draw the curve (U shaped) that connects them. Only draw in the curve for values of x>0.\r
\n" ); document.write( "\n" ); document.write( "Now you have both 'pieces drawn. You can see that each value of x has one and only one value for y. The plot 'jumps' at x=0. So the plot is not smooth.
\n" ); document.write( "
\n" ); document.write( "
\n" );