document.write( "Question 161585: A river is flowing at a rate of 5 km/h. A boat travels 12km upstream and 36km downstream in a total of 9hours. What is the speed of the boat in still water? \n" ); document.write( "
Algebra.Com's Answer #119061 by Alan3354(69443)\"\" \"About 
You can put this solution on YOUR website!
A river is flowing at a rate of 5 km/h. A boat travels 12km upstream and 36km downstream in a total of 9hours. What is the speed of the boat in still water?
\n" ); document.write( "--------------------------
\n" ); document.write( "B = speed of boat
\n" ); document.write( "B-5 = speed of boat upstream
\n" ); document.write( "B+5 = speed downstream
\n" ); document.write( "--------------------
\n" ); document.write( "h = hours going upstream
\n" ); document.write( "h*(B-5) = 12
\n" ); document.write( "(9-h)*(B+5) = 36
\n" ); document.write( "---------------
\n" ); document.write( "B = 12/h + 5
\n" ); document.write( "B = 36/(9-h) - 5
\n" ); document.write( "B = 12/h + 5 = 36/(9-h) - 5
\n" ); document.write( "12/h + 10 = 36/(9-h)
\n" ); document.write( "Multiply by h*(9-h)
\n" ); document.write( "12(9-h) + 10h(9-h) = 36h
\n" ); document.write( "108-12h + 90h-10h^2 = 36h
\n" ); document.write( "Collect terms
\n" ); document.write( "-10h^2 + 42h + 108 = 0
\n" ); document.write( "5h^2 - 21h - 54 = 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 \"5x%5E2%2B-21x%2B-54+=+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-21%29%5E2-4%2A5%2A-54=1521\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=1521 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28--21%2B-sqrt%28+1521+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%28-21%29%2Bsqrt%28+1521+%29%29%2F2%5C5+=+6\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%28-21%29-sqrt%28+1521+%29%29%2F2%5C5+=+-1.8\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"5x%5E2%2B-21x%2B-54\" can be factored:
\n" ); document.write( " \"5x%5E2%2B-21x%2B-54+=+%28x-6%29%2A%28x--1.8%29\"
\n" ); document.write( " Again, the answer is: 6, -1.8.\n" ); document.write( "Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+5%2Ax%5E2%2B-21%2Ax%2B-54+%29\"

\n" ); document.write( "\n" ); document.write( "The online solver always uses x, so sub h for x.
\n" ); document.write( "The -1.8 hours is not usable, so the time going upstream is,
\n" ); document.write( "h = 6 hours.
\n" ); document.write( "-------------
\n" ); document.write( "Sub h into B = 12/h + 5 to solve for B
\n" ); document.write( "B = 12/6 + 5
\n" ); document.write( "B = 7 kph
\n" ); document.write( "-------------
\n" ); document.write( "The people should have gotten out and walked, woulda been faster.
\n" ); document.write( "
\n" ); document.write( "
\n" );