document.write( "Question 189657: Distance from a Point to a Line
\n" ); document.write( "6.Find the exact distance from the point D(4,-2) to the line segment joining the points E(1,3) and F(-4,-2).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "pleaseeee help me ...thank you very much!!
\n" ); document.write( "

Algebra.Com's Answer #142313 by Alan3354(69443)\"\" \"About 
You can put this solution on YOUR website!
Distance from a Point to a Line
\n" ); document.write( "6.Find the exact distance from the point D(4,-2) to the line segment joining the points E(1,3) and F(-4,-2).
\n" ); document.write( "---------------
\n" ); document.write( "Step 1 - find the slope of the line
\n" ); document.write( "slope, m, = diffy/diffx = (-2-3)/(-4-1)
\n" ); document.write( "m = 1
\n" ); document.write( "--------------
\n" ); document.write( "Step 2 - find the equation of the line.
\n" ); document.write( "y-y1 = m*(x-x1) where (x1,y1) is either point (E or F)
\n" ); document.write( "y-3 = 1*(x-1)
\n" ); document.write( "y = x+2
\n" ); document.write( "-------
\n" ); document.write( "Step 3 - find the eqn of the line thru the point perpendicular to line EF. The shortest distance is on the line perpendicular.
\n" ); document.write( "The slope of lines perpendicular is the negative inverse of the slope of the line EF.
\n" ); document.write( "m2 = -1
\n" ); document.write( "use the method from Step 2
\n" ); document.write( "y-y1 = m*(x-x1) (x1,y1) is point D (4,-2)
\n" ); document.write( "y+2 = -1(x-4)
\n" ); document.write( "y = -x + 2
\n" ); document.write( "---------------
\n" ); document.write( "Step 4, find the point of intersection of the 2 lines
\n" ); document.write( "y = x+2
\n" ); document.write( "y = -x + 2
\n" ); document.write( "------------ Add
\n" ); document.write( "2y = 4
\n" ); document.write( "y = 2
\n" ); document.write( "x = 0
\n" ); document.write( "--> the point (0,2)
\n" ); document.write( "------
\n" ); document.write( "Last step, find the distance from D to (0,2)
\n" ); document.write( "s = \"sqrt%28diffy%5E2+%2B+diffx%5E2%29\"
\n" ); document.write( "x = \"sqrt%284%5E2+%2B+4%5E2%29\"
\n" ); document.write( "x = \"sqrt%2832%29\"
\n" ); document.write( "x = \"4sqrt%282%29\"
\n" ); document.write( "
\n" ); document.write( "
\n" );