document.write( "Question 342957: Trying to help my son with Algebra II, and I just can't remember!\r
\n" ); document.write( "\n" ); document.write( "Plane flies roundtrip from Denver to San Francisco a total of 1600 miles. Trip time is 9 hours. Return trip from San Francisco, the plane averages 40 mph faster than the outbound flight. What is the average speed to San Fran and back?
\n" ); document.write( "X1 = Avg speed out in mph
\n" ); document.write( "X2 = Avg speed back in mph
\n" ); document.write( "Y1 = time out in hours
\n" ); document.write( "Y2 = time back in hours
\n" ); document.write( "1600 Miles = X1*Y1 + X2*Y2
\n" ); document.write( "Y2= 9-Y1
\n" ); document.write( "X2 = X1 + 40 mph
\n" ); document.write( "X1 = 800/Y1\r
\n" ); document.write( "\n" ); document.write( "I set up to solve for mph, using the substitutions I've identified, and get lost...
\n" ); document.write( "

Algebra.Com's Answer #245448 by Alan3354(69443)\"\" \"About 
You can put this solution on YOUR website!
Plane flies roundtrip from Denver to San Francisco a total of 1600 miles. Trip time is 9 hours. Return trip from San Francisco, the plane averages 40 mph faster than the outbound flight. What is the average speed to San Fran and back?
\n" ); document.write( "--------------
\n" ); document.write( "Is 9 hours the time for the round trip? 800 miles each way? If so:
\n" ); document.write( "The average overall is 1600/9 =~ 177.8 mph
\n" ); document.write( "----------------------------
\n" ); document.write( "If you want the avg speed for each half of the trip:
\n" ); document.write( "d = rt
\n" ); document.write( "t = d/r
\n" ); document.write( "9 = 800/r + 800/(r+40)
\n" ); document.write( "9*r*(r+40) = 800(r+40) + 800r
\n" ); document.write( "9r^2 + 360r = 800r + 3200 + 800r = 1600r + 3200
\n" ); document.write( "9r^2 - 1240r - 3200 = 0
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: SOLVE quadratic equation (work shown, graph etc)
Quadratic equation \"ax%5E2%2Bbx%2Bc=0\" (in our case \"9x%5E2%2B-1240x%2B-3200+=+0\") has the following solutons:
\n" ); document.write( "
\n" ); document.write( " \"x%5B12%5D+=+%28b%2B-sqrt%28+b%5E2-4ac+%29%29%2F2%5Ca\"
\n" ); document.write( "
\n" ); document.write( " For these solutions to exist, the discriminant \"b%5E2-4ac\" should not be a negative number.
\n" ); document.write( "
\n" ); document.write( " First, we need to compute the discriminant \"b%5E2-4ac\": \"b%5E2-4ac=%28-1240%29%5E2-4%2A9%2A-3200=1652800\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=1652800 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28--1240%2B-sqrt%28+1652800+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%28-1240%29%2Bsqrt%28+1652800+%29%29%2F2%5C9+=+140.311816355503\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%28-1240%29-sqrt%28+1652800+%29%29%2F2%5C9+=+-2.53403857772532\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"9x%5E2%2B-1240x%2B-3200\" can be factored:
\n" ); document.write( " \"9x%5E2%2B-1240x%2B-3200+=+%28x-140.311816355503%29%2A%28x--2.53403857772532%29\"
\n" ); document.write( " Again, the answer is: 140.311816355503, -2.53403857772532.\n" ); document.write( "Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+9%2Ax%5E2%2B-1240%2Ax%2B-3200+%29\"

\n" ); document.write( "\n" ); document.write( "r = x (Ignore the negative solution)
\n" ); document.write( "r =~ 140 going
\n" ); document.write( "r + 40 =~ 180 returning
\n" ); document.write( "
\n" ); document.write( "
\n" );