document.write( "Question 8341: How do you find the slope and equation of a line when you are just given two points?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #4600 by prabhjyot(165)\"\" \"About 
You can put this solution on YOUR website!
Slope of a Line:
\n" ); document.write( "If a line passes through two distinct points P1(x1 , y1) and P2(x2, y2), its slope is given by:
\n" ); document.write( "m = (y2 - y1) / (x2 - x1)
\n" ); document.write( "with x2 not equal to x1. \r
\n" ); document.write( "\n" ); document.write( "There are two basic forms of a line, the point-slope and the standard
\n" ); document.write( "(the standard is sometimes also called the slope-intercept form).
\n" ); document.write( "They are:\r
\n" ); document.write( "\n" ); document.write( "Standard: y = mx+b
\n" ); document.write( " m is the slope
\n" ); document.write( " b is the y-intercept (the value of y when x=0)\r
\n" ); document.write( "\n" ); document.write( "Point-Slope: (y-y1) = m(x-x1)
\n" ); document.write( " m is the slope
\n" ); document.write( " (x1,y1) is the given point (some point on the line)\r
\n" ); document.write( "\n" ); document.write( "Given points (x1,y1) and (x2,y2) find the equation of the line.
\n" ); document.write( "
\n" ); document.write( " 1) get the slope by m = (y2-y1)/(x2-x1).
\n" ); document.write( " 2) pick either (x1,y1) or (x2,y2) as the point to use with your
\n" ); document.write( " slope.
\n" ); document.write( " 3) substitute values into the equation (y-y1) = m(x-x1)
\n" ); document.write( "thatz all!
\n" ); document.write( "
\n" );