document.write( "Question 339836: Two cars are approaching an intersection. One is 3 miles South of the intersection and is moving at a constant speed of 40 mph. At the same time, the other car is 4 miles East of the intersection and is moving at a constant speed of 50 mph. Express the distance d between the cars as a function of time t. \n" ); document.write( "
Algebra.Com's Answer #243522 by jrfrunner(365)\"\" \"About 
You can put this solution on YOUR website!
you basically have a right triangle formed by the movement of the cars, one from coming from the east and one coming from the south
\n" ); document.write( "--
\n" ); document.write( "let d=ditance between the cars.
\n" ); document.write( "let x=distance from car from the east to the meeting point
\n" ); document.write( "let y=distance from car from the south to the meeting point
\n" ); document.write( "distance=speed*time; d=s*t
\n" ); document.write( "let \"D%5Be%5D\"=Distance by car from east
\n" ); document.write( "let \"D%5Bs%5D\"=Distance by car from south
\n" ); document.write( "let \"d%5Be%5D\"=\"shrinking\" distance by car from east
\n" ); document.write( "let \"d%5Bs%5D\"=\"shrinking\" distance by car from south
\n" ); document.write( "let \"D%5Bc%5D\"=Distance between cars
\n" ); document.write( "let \"d%5Bc%5D\"=\"shrinking\" distance between cars
\n" ); document.write( "--
\n" ); document.write( "at t=0, one car is 4 miles east and the other car is 3 miles south, so the distance between them, by the pythagorean theorem:
\n" ); document.write( " \"D%5Bc%5D=sqrt%28x%5E2%2By%5E2%29=sqrt%283%5E2%2B4%5E2%29=5\"
\n" ); document.write( "--
\n" ); document.write( "as time goes forward, the distances from the east and the south shrink toward their meeting point.
\n" ); document.write( "car from the east travels a distance: \"D%5Be%5D=50%2At\" in general
\n" ); document.write( "relative to the meeting point 4 miles away the distance shrinks
\n" ); document.write( "as \"d%5Be%5D=4-50%2At\"
\n" ); document.write( "--
\n" ); document.write( "car from the south travels a distance: \"D%5Bs%5D=40%2At\" in general
\n" ); document.write( "relative to the meeting point 3 miles away the distance shrinks
\n" ); document.write( "as \"d%5Bs%5D=3-40%2At\"
\n" ); document.write( "--
\n" ); document.write( "
\n" ); document.write( "
\n" );