document.write( "Question 123257: Hank travels home to Smithville every weekend from Ottawa.The distance each way is 800km. Anxious to return home, he decides to increase his speed by 20km/h and realizes that he arrives home two hours earlier than the time it took him to travel from home to Ottawa. How long does the trip to Ottawa usually take? \n" ); document.write( "
Algebra.Com's Answer #90500 by rajagopalan(174)\"\" \"About 
You can put this solution on YOUR website!
Hank travels home to Smithville every weekend from Ottawa.The distance each way is 800km. Anxious to return home, he decides to increase his speed by 20km/h and realizes that he arrives home two hours earlier than the time it took him to travel from home to Ottawa. How long does the trip to Ottawa usually take?\r
\n" ); document.write( "\n" ); document.write( "Let the normal speed=x kmph
\n" ); document.write( "Time for onward trip =dist/speed=800/x .. .. .. .. ..A
\n" ); document.write( "Time for return trip=dist/speed=800/(x+20).. .. .. ..B\r
\n" ); document.write( "\n" ); document.write( "Difference in times =A-B
\n" ); document.write( "gives us:
\n" ); document.write( "(800/x)-(800/(x+20))=2
\n" ); document.write( "taking x(x+20) as LCM, we get the quadratic 2x^2+40x-16000=0
\n" ); document.write( "which boils down to x^2+40x-8000
\n" ); document.write( "solution is:\r
\n" ); document.write( "\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 \"1x%5E2%2B20x%2B-8000+=+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=%2820%29%5E2-4%2A1%2A-8000=32400\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=32400 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28-20%2B-sqrt%28+32400+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%2820%29%2Bsqrt%28+32400+%29%29%2F2%5C1+=+80\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%2820%29-sqrt%28+32400+%29%29%2F2%5C1+=+-100\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"1x%5E2%2B20x%2B-8000\" can be factored:
\n" ); document.write( " \"1x%5E2%2B20x%2B-8000+=+%28x-80%29%2A%28x--100%29\"
\n" ); document.write( " Again, the answer is: 80, -100.\n" ); document.write( "Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+1%2Ax%5E2%2B20%2Ax%2B-8000+%29\"

\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "we get x=80
\n" ); document.write( "at speed of 80 time=800/80=10hours
\n" ); document.write( "at speed 80+20 time=80/100=8 hours
\n" ); document.write( "then 10-8 hours=2 hours
\n" ); document.write( "okay\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );