Suppose you have two points P(a,b) and Q(c,d)
\n" );
document.write( "Let the line passing through P and Q have a slope 'm'
\n" );
document.write( "Then
\n" );
document.write( "or [difference in y-coordinates/difference of x-coordinates]
\n" );
document.write( "
\n" );
document.write( "Now take any one of the two points,say P(a,b)
\n" );
document.write( "We have the slope m
\n" );
document.write( "Taking slope-point form we get
\n" );
document.write( "y-b=m(x-a)
\n" );
document.write( "
\n" );
document.write( "Now we have the equation,to find the yintercept put x=0
\n" );
document.write( "y-b=m(x-a)
\n" );
document.write( "y-b=m(0-a)
\n" );
document.write( "y-b=-am
\n" );
document.write( "
\n" );
document.write( "To make it clear,take an example
\n" );
document.write( "There are two points A(1,5) B(4,7). Find the slope,equation and y-intercept.
\n" );
document.write( "A(1,5) B(4,7)
\n" );
document.write( "slope m=(7-5)/(4-1)
\n" );
document.write( "m=2/3
\n" );
document.write( "Equation of the line taking point A:
\n" );
document.write( "(y-5)=m(x-1)
\n" );
document.write( "y-5=2/3(x-1)
\n" );
document.write( "3(y-5)=2(x-1)
\n" );
document.write( "3y-15=2x-2
\n" );
document.write( "3y=2x-2+15
\n" );
document.write( "3y=2x+13
\n" );
document.write( "To find y-intercept,x=0
\n" );
document.write( "3y=2(0)+13
\n" );
document.write( "3y=15
\n" );
document.write( "y=5
\n" );
document.write( "therefore,Y-intercept=(0,5)
\n" );
document.write( "
\n" );
document.write( "Hope this helps,
\n" );
document.write( "Prabhat
\n" );
document.write( "