document.write( "Question 570227: I've been out sick since Monday and have been getting my work sent home. I've missed this lesson and can't for the life of me figure out how to do this. I've got 10 other similar problems to do but should be able to figure it out if some kind soul will help me understand.\r
\n" ); document.write( "\n" ); document.write( "Calculate the distance from point (-2,3) to the line y=x+1\r
\n" ); document.write( "\n" ); document.write( "I would really, really appreciate an explanation not just an answer since I have 9 more of these :)
\n" ); document.write( "

Algebra.Com's Answer #367636 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
They want the SHORTest distance from the
\n" ); document.write( "point to the line. There are lots of lines you
\n" ); document.write( "could draw from the point to the line, but
\n" ); document.write( "only 1 is the shortest.
\n" ); document.write( "That shortest distance is the perpendicular
\n" ); document.write( "from the point to the line.
\n" ); document.write( "-----------------------
\n" ); document.write( "The 1st thing to do is find the slope of the line.
\n" ); document.write( "Get it into the form \"+y+=+mx+%2B+b+\" where
\n" ); document.write( "\"+m+\" is the slope. ( It's already in that form )
\n" ); document.write( "\"+y+=+x+%2B+1+\" The slope is \"+1+\".
\n" ); document.write( "------------------------
\n" ); document.write( "Now you want the slope of ANY line which would
\n" ); document.write( "be perpendicular to this line.
\n" ); document.write( "That formula is \"+-%28+1%2Fm+%29+=+-%281%2F1%29+\",
\n" ); document.write( "so the perpendicular will have slope = \"+-1+\"
\n" ); document.write( "------------------------
\n" ); document.write( "Now you have the point (-2,3) and a slope. Use
\n" ); document.write( "the point-slope formula to get the equation of
\n" ); document.write( "the perpendicular line.
\n" ); document.write( "\"+%28+y+-+3+%29+%2F+%28+x+-%28-2%29+%29+=+-1+\"
\n" ); document.write( "\"+y+-+3+=+-1%2A%28+x+%2B+2+%29+\"
\n" ); document.write( "\"+y+=+-x+-+2+%2B+3+\"
\n" ); document.write( "\"+y+=+-x+%2B+1+\"
\n" ); document.write( "------------------------
\n" ); document.write( "Now where do these 2 lines intersect?
\n" ); document.write( "Add the equations:
\n" ); document.write( "\"+y+=+x+%2B+1+\"
\n" ); document.write( "\"+y+=+-x+%2B+1+\"
\n" ); document.write( "\"+2y+=+2+\"
\n" ); document.write( "\"+y+=+1+\"
\n" ); document.write( "and
\n" ); document.write( "\"+y+=+x+%2B+1+\"
\n" ); document.write( "\"+1+=+x+%2B+1+\"
\n" ); document.write( "\"+x+=+0+\"
\n" ); document.write( "So now you have 2 points, (-2,3) and (0,1)
\n" ); document.write( "The formula for distance is
\n" ); document.write( "distance = \"+sqrt%28+%28+-2+-+0%29%5E2+%2B+%28+3+-+1+%29%5E2+%29+\"
\n" ); document.write( "distance = \"+sqrt%28+%28-2%29%5E2+%2B+2%5E2+%29+\"
\n" ); document.write( "distance = \"+sqrt%28+4+%2B+4+%29+\"
\n" ); document.write( "distance = \"+2%2Asqrt%282%29+\"
\n" ); document.write( "-----------------------
\n" ); document.write( "Here's a plot of the line \"+y+=+x+%2B+1+\" and the line
\n" ); document.write( "perpendicular to it going through (-2,3)
\n" ); document.write( "The intersection is at (0,1) as you can see
\n" ); document.write( "\"+graph%28+400%2C+400%2C+-5%2C+5%2C+-5%2C+5%2C+x+%2B+1%2C+-x+%2B+1%29+\"
\n" ); document.write( "
\n" );