document.write( "Question 129828: How do you graph y=x+2 and y=-2x+2 \n" ); document.write( "
Algebra.Com's Answer #94801 by solver91311(24713)\"\" \"About 
You can put this solution on YOUR website!
You need two points to define a line (no more and no less), so pick a value for x, put it into the equation, determine the value for y that corresponds, and then plot the point with the x-coordinate of the value you picked and the y-coordinate for the value that resulted from your choice. Then do it again for a different value of x. Once you have plotted two points, draw a line through them and you are done.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since you can choose any value you like for x, pick something that will make the arithmetic simple. 0 is always a good choice.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"cartoon%28y=red%28x%29%2B2%2Cy=red%280%29%2B2%29\"
\n" ); document.write( "\"y=2\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So our first point is (0,2), because we chose 0 for x, and that resulted in 2 for y.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's try x = 1
\n" ); document.write( "\"cartoon%28y=red%28x%29%2B2%2Cy=red%281%29%2B2%29\"
\n" ); document.write( "\"y=3\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So the second point is (1,3), because we chose 1 for x, and that resulted in 3 for y.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plot the points:
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then draw the line:\r
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Follow this same procedure for the other equation.
\n" ); document.write( "
\n" );