document.write( "Question 678688: How do I find the distance between the following pairs of points (-2,-5) and (-2,3).\r
\n" ); document.write( "\n" ); document.write( "Also, how do i find the slope of the line segments joining them.\r
\n" ); document.write( "\n" ); document.write( "Help is appreciated, thank you very much.
\n" ); document.write( "

Algebra.Com's Answer #421583 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
The distance formula is:
\n" ); document.write( "\"+d+=+sqrt%28+%28+x%5B2%5D+-+x%5B1%5D+%29%5E2+%2B+%28+y%5B2%5D+-+y%5B1%5D+%29%5E2+%29+\"
\n" ); document.write( "given:
\n" ); document.write( "P1 ( -2,-5 )
\n" ); document.write( "P2 ( -2, 3 )
\n" ); document.write( "\"+d+=+sqrt%28+%28+-2+-%28-2%29+%29%5E2+%2B+%28+3+-%28-5%29+%29%5E2+%29+\"
\n" ); document.write( "\"+d+=+sqrt%28++%28-2+%2B+2++%29%5E2+%2B+%28+3+%2B+5+%29%5E2+%29+\"
\n" ); document.write( "\"+d+=+sqrt%28++0%5E2+%2B+8%5E2+%29+\"
\n" ); document.write( "\"+d+=+sqrt%28+8%5E2+%29+\"
\n" ); document.write( "\"+d+=+8+\"
\n" ); document.write( "------------
\n" ); document.write( "The slope is ( change in y ) / ( change in x )
\n" ); document.write( "slope = \"+%28+3+-+%28-5%29+%29+%2F+%28+-2+-+%28+-2+%29+%29+\"
\n" ); document.write( "slope = \"+%28+3+%2B+5+%29+%2F+%28+-2+%2B+2+%29+\"
\n" ); document.write( "slope = \"+8+%2F+0+\"
\n" ); document.write( "When \"+0+\" is in the denominator of a slope, that
\n" ); document.write( "means the slope is infinite, and that means it is a vertical line
\n" ); document.write( "through ( -2, y ) where y can be anything
\n" ); document.write( "
\n" ); document.write( "
\n" );