document.write( "Question 1136804: Detroit Road starts in the center of the city, and Lorain Road starts 4 miles west of the center of the city. Both roads run southeast. If these roads are put on a coordinate plane with the center of the city at (0, 0), Lorain Road is represented by the equation y=-x-4 and Detroit Road is represented by the equation y=-x. How far away is Lorain Road from Detroit Road?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #754633 by ikleyn(52814)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "
\r\n" );
document.write( "To answer the question, it is enough to evaluate the distance from the point (0,0) to the line  y = -x - 4.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "There is a remarkable formula which ideally suits for this need.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    Let the straight line in a coordinate plane is defined in terms of its linear equation \r\n" );
document.write( "\r\n" );
document.write( "         a*x + b*y + c = 0,\r\n" );
document.write( "\r\n" );
document.write( "    where \"a\", \"b\" and \"c\" are real numbers, and let P = (\"x%5B0%5D\",\"y%5B0%5D\") be the point in the coordinate plane. \r\n" );
document.write( "\r\n" );
document.write( "    Then the distance from the point P to the straight line is equal to\r\n" );
document.write( "\r\n" );
document.write( "        d = \"abs%28a%2Ax%5B0%5D+%2B+b%2Ay%5B0%5D+%2B+c%29%2Fsqrt%28a%5E2+%2B+b%5E2%29\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Regarding this formula, see the lesson\r\n" );
document.write( "    The distance from a point to a straight line in a coordinate plane\r\n" );
document.write( "in this site.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Your equation in general form is  x + y + 4 = 0.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, your coefficients are a= 1, b= 1, c= 4,  \"x%5B0%5D\" = 0,  \"y%5B0%5D\"= 0.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Substitute this data    into the formula to get the distance under the question\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    \"abs%281%2A0+%2B+1%2A0+%2B+4%29%2Fsqrt%281%5E2%2B1%5E2%29\" = \"4%2Fsqrt%282%29\" = \"2%2Asqrt%282%29\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Answer.  The distance under the question is \"2%2Asqrt%282%29\".\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Again,  the lessons to read on this topic are\r
\n" ); document.write( "\n" ); document.write( "    - The distance from a point to a straight line in a coordinate plane \r
\n" ); document.write( "\n" ); document.write( "    - HOW TO calculate the distance from a point to a straight line in a coordinate plane \r
\n" ); document.write( "\n" ); document.write( "    - Using formula for the distance from a point to a straight line in a plane to solve word problems \r
\n" ); document.write( "\n" ); document.write( "in this site.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );