document.write( "Question 280645: determine the slope of the line
\n" ); document.write( "(0,2) (-1,0)
\n" ); document.write( "

Algebra.Com's Answer #203975 by oberobic(2304)\"\" \"About 
You can put this solution on YOUR website!
slope = rise/run
\n" ); document.write( "rise = change in y = y2 - y1
\n" ); document.write( "run = change in x = x2 - x1
\n" ); document.write( ".
\n" ); document.write( "Now define your two points:
\n" ); document.write( "(x1, y1) = (0, 2)
\n" ); document.write( "(x2, y2) = (-1,0)
\n" ); document.write( ".
\n" ); document.write( "rise = 0 -2 = -2
\n" ); document.write( "run = -1 -0 = -1
\n" ); document.write( ".
\n" ); document.write( "slope = rise/run = -2 / -1 = 2
\n" ); document.write( ".
\n" ); document.write( "You may notice that the two points given are the y-intercept and the x-intercept.
\n" ); document.write( ".
\n" ); document.write( "You also can check your work by graphing.
\n" ); document.write( "Given y = mx+b,
\n" ); document.write( "we think the equation of the line going through (0,2) and (-1,0) ought to be:
\n" ); document.write( "y = 2x +2
\n" ); document.write( ".
\n" ); document.write( "\"graph%28500%2C500%2C-5%2C5%2C-5%2C5%2C2%2Ax%2B2%29\"
\n" ); document.write( ".
\n" ); document.write( "By visual inspection, we see that the line slopes up to the right, which must be the case if the slope is positive. So, that's one check.
\n" ); document.write( ".
\n" ); document.write( "We also can inspect the graph to ensure it goes through a third point.
\n" ); document.write( "Say, x = 1
\n" ); document.write( "y = 2+2 = 4
\n" ); document.write( "Is the point (1,4) on the graph?
\n" ); document.write( "Yes.
\n" ); document.write( ".
\n" ); document.write( "Answer:
\n" ); document.write( "The slope is 2.
\n" ); document.write( ".
\n" ); document.write( "Done.
\n" ); document.write( "
\n" );