document.write( "Question 118262: (writing linear equations in point slope form)
\n" ); document.write( "write the point-slope form of an wquation of the line that passes through each pair of points.\r
\n" ); document.write( "\n" ); document.write( "(-1,-7),(1,3)
\n" ); document.write( "

Algebra.Com's Answer #86376 by TP(29)\"\" \"About 
You can put this solution on YOUR website!
m(the gradient)=vertical distance between the two points/horizontal distance between the two points.
\n" ); document.write( "So m=(Y-y)/(X-x) where the two points have coordinates of (X,Y) and (x,y).
\n" ); document.write( "So here (X,Y)=(-1,-7) and (x,y)=(1,3).
\n" ); document.write( "Hence the gradient m=(-7-3)/(-1-1)=-10/-2=5.
\n" ); document.write( "Now the general equation of a straight line is y=mx+c where m is the gradient and c is the y intercept(the y value where the line crosses the vertical Y axis).
\n" ); document.write( "So far we have: y=5x+c.(i)
\n" ); document.write( "We need to find the value of c.
\n" ); document.write( "Since the line passes through (1,3) then we can replace x and y in our equation by 1 and 3 respectively.
\n" ); document.write( "This gives (i) as: 3=5*1+c
\n" ); document.write( "So 3=5+c
\n" ); document.write( "Subtract 5 from each side of the equation and we get: 3-5=c
\n" ); document.write( "So c=-2
\n" ); document.write( "Hence the required equation is y=5x-2 ANS
\n" ); document.write( "(N.B. You should verify your answer by replacing the x by -1 and the y by -7)
\n" ); document.write( "
\n" );