document.write( "Question 638348: How do you write a linear equation from x and y coordinates \n" ); document.write( "
Algebra.Com's Answer #402146 by MathLover1(20849)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "1.
\n" ); document.write( "Find the slope of the line by dividing the change in y-coordinates by the change in x-coordinates: \r
\n" ); document.write( "\n" ); document.write( "\"slope+=+%28y2+-+y1%29%2F%28x2+-+x1%29\". \r
\n" ); document.write( "\n" ); document.write( "For example, given the coordinates (2, 0) and (-1, 3), the \"slope+=+%283+-+0%29%2F%28-1+-+2%29+=+-1\".\r
\n" ); document.write( "\n" ); document.write( "If both of the x-coordinates equal some value \"k\", the slope and y-intercept are undefined, and the equation for the line will be \"x+=+k\".\r
\n" ); document.write( "\n" ); document.write( "2.\r
\n" ); document.write( "\n" ); document.write( "Calculate the y-intercept by multiplying the slope times one of the x-coordinates and subtracting the product from the y-coordinate of the same point: \r
\n" ); document.write( "\n" ); document.write( "\"y-intercept+=+y1+-+slope%2Ax1\", where \"x1\" and \"y1\" are coordinates of one of the given points. \r
\n" ); document.write( "\n" ); document.write( "For example, knowing that the \"slope+=+-1\", use the point (2, 0): \"y-intercept+=+0+-+%28-1%29%2A2+=+2\".\r
\n" ); document.write( "\n" ); document.write( "3.\r
\n" ); document.write( "\n" ); document.write( "Write the equation for the line in the \"slope-intercept\" format: \r
\n" ); document.write( "\n" ); document.write( "\"y+=+slope%2Ax+%2B+y-intercept\". \r
\n" ); document.write( "\n" ); document.write( "In the given example, \"y+=+-x+%2B+2\".\r
\n" ); document.write( "\n" ); document.write( "4.\r
\n" ); document.write( "\n" ); document.write( "Verify the equation by plugging in the \"x\"- and \"y-coordinates\" of the given points. If the equation remains balanced after simplifying, your equation is good. \r
\n" ); document.write( "\n" ); document.write( "For example, given the equation \"y+=+-x+%2B+2\", plug in the first point (2,0): \r
\n" ); document.write( "\n" ); document.write( "\"0+=+-2+%2B+2\". That's true, so everything checks out so far. \r
\n" ); document.write( "\n" ); document.write( "Try again with (-1, 3):
\n" ); document.write( "\"3+=+1+%2B+2\". That's true too, so the equation is good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );