document.write( "Question 82667: How do you write the equation for a line passing through each pair of points?\r
\n" ); document.write( "\n" ); document.write( "example:
\n" ); document.write( "(3,5) (-3,1)
\n" ); document.write( "

Algebra.Com's Answer #59258 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!
\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: Finding the Equation of a Line
First lets find the slope through the points (\"3\",\"5\") and (\"-3\",\"1\")
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"m=%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29\" Start with the slope formula (note: (\"x%5B1%5D\",\"y%5B1%5D\") is the first point (\"3\",\"5\") and (\"x%5B2%5D\",\"y%5B2%5D\") is the second point (\"-3\",\"1\"))
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"m=%281-5%29%2F%28-3-3%29\" Plug in \"y%5B2%5D=1\",\"y%5B1%5D=5\",\"x%5B2%5D=-3\",\"x%5B1%5D=3\" (these are the coordinates of given points)
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"m=+-4%2F-6\" Subtract the terms in the numerator \"1-5\" to get \"-4\". Subtract the terms in the denominator \"-3-3\" to get \"-6\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"m=2%2F3\" Reduce
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " So the slope is
\n" ); document.write( "
\n" ); document.write( " \"m=2%2F3\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " ------------------------------------------------
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "Now let's use the point-slope formula to find the equation of the line:
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " ------Point-Slope Formula------
\n" ); document.write( " \"y-y%5B1%5D=m%28x-x%5B1%5D%29\" where \"m\" is the slope, and (\"x%5B1%5D\",\"y%5B1%5D\") is one of the given points
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " So lets use the Point-Slope Formula to find the equation of the line
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"y-5=%282%2F3%29%28x-3%29\" Plug in \"m=2%2F3\", \"x%5B1%5D=3\", and \"y%5B1%5D=5\" (these values are given)
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"y-5=%282%2F3%29x%2B%282%2F3%29%28-3%29\" Distribute \"2%2F3\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"y-5=%282%2F3%29x-2\" Multiply \"2%2F3\" and \"-3\" to get \"-6%2F3\". Now reduce \"-6%2F3\" to get \"-2\"
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( " \"y=%282%2F3%29x-2%2B5\" Add \"5\" to both sides to isolate y
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " \"y=%282%2F3%29x%2B3\" Combine like terms \"-2\" and \"5\" to get \"3\"
\n" ); document.write( "
\n" ); document.write( " ------------------------------------------------------------------------------------------------------------
\n" ); document.write( "
\n" ); document.write( " Answer:
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " So the equation of the line which goes through the points (\"3\",\"5\") and (\"-3\",\"1\") is:\"y=%282%2F3%29x%2B3\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " The equation is now in \"y=mx%2Bb\" form (which is slope-intercept form) where the slope is \"m=2%2F3\" and the y-intercept is \"b=3\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " Notice if we graph the equation \"y=%282%2F3%29x%2B3\" and plot the points (\"3\",\"5\") and (\"-3\",\"1\"), we get this: (note: if you need help with graphing, check out this solver)
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " Graph of \"y=%282%2F3%29x%2B3\" through the points (\"3\",\"5\") and (\"-3\",\"1\")
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( " Notice how the two points lie on the line. This graphically verifies our answer.
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );