document.write( "Question 1151632: A boat’s speed in still in water is 4km/h.The boat cruises from A to B along a river flowing at an average speed of X km/h in the direction A to B . If the distance AB is 5 km and the boat takes 2hr more on its return journey,determine x. Hence,find the total time taken for the whole journey. \n" ); document.write( "
Algebra.Com's Answer #773458 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let 4 = the rate of the boat in still water.
\n" ); document.write( "let R = the rate of the river.
\n" ); document.write( "let distance = 5
\n" ); document.write( "rate * time = distance.
\n" ); document.write( "with the current, the rate becomes (4 + R)
\n" ); document.write( "against the current, the rate becomes (4 - R)
\n" ); document.write( "let T = the time it takes going with the current.
\n" ); document.write( "then T + 2 = the time it takes coming back against the current.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the formulas are:
\n" ); document.write( "(4 + R) * T = 5
\n" ); document.write( "(4 - R) * (T + 2) = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "simplify these equations to get:
\n" ); document.write( "4T + RT = 5
\n" ); document.write( "4T + 8 - RT - 2R = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since they both equal 5, set them equal to each other to get:
\n" ); document.write( "4T + RT = 4T + 8 - RT - 2R
\n" ); document.write( "the 4T cancels out and you get RT = 8 - RT - 2R
\n" ); document.write( "subtract the right side of the equation from both sides of the equation to get:
\n" ); document.write( "RT - 8 + RT + 2R = 0
\n" ); document.write( "combine like terms to get:
\n" ); document.write( "2RT + 2R - 8 = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "factor the first original equation of 4T + RT = 5 to get:
\n" ); document.write( "T * (R + 4) = 5
\n" ); document.write( "divide both sides of this equation by (R + 4) to get:
\n" ); document.write( "T = 5 / (R + 4)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "replace T in 2RT + 2R - 8 = 0 to get:
\n" ); document.write( "2R * 5 / (R + 4) + 2R - 8 = 0
\n" ); document.write( "simplify to get:
\n" ); document.write( "10R / (R + 4) + 2R - 8 = 0
\n" ); document.write( "multiply both sides of this equation by (R + 4) to get:
\n" ); document.write( "10R + 2R * (R + 4) - 8 * (R + 4) = 0
\n" ); document.write( "simplify to get:
\n" ); document.write( "10R + 2R^2 + 8R - 8R - 32 = 0
\n" ); document.write( "combine like terms to get:
\n" ); document.write( "2R^2 + 10R - 32 = 0
\n" ); document.write( "divide both sides of this equation by 2 to get:
\n" ); document.write( "R^2 + 5R - 16 = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "factor this quadratic to get:
\n" ); document.write( "R = 2.2169905660283 or R = -7.2169905660283
\n" ); document.write( "R has to be positive, so R = 2.2169905660283\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your original equations are:
\n" ); document.write( "(4 + R) * T = 5
\n" ); document.write( "(4 - R) * (T + 2) = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "when R = 2.2169905660283, the first equation becomes:
\n" ); document.write( "(4 + 2.2169905660283) * T = 5
\n" ); document.write( "solve for T to get:
\n" ); document.write( "T = 5 / 6.2169905660283 = .8042476415\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your two original equations are, once again:
\n" ); document.write( "(4 + R) * T = 5
\n" ); document.write( "(4 - R) * (T + 2) = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "when R = 2.2169905660283 and T = .8042476415, these equations become:
\n" ); document.write( "(4 + 2.2169905660283) * .8042476415 = 5
\n" ); document.write( "(4 - 2.2169905660283) * (.8042476415 + 2) = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "use your calculator to confirm these equations are true.
\n" ); document.write( "i confirmed using my calculator.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is that the total time taken for the whole journey is .8042476415 + .8042476415 + 2 = 3.608495283 hours.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "it's not exactly a clean answer, but it does check out, assuming my original equations are correct.
\n" ); document.write( "i believe they are:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i used the following quadratic equation solver to find the roots of the quadratic.
\n" ); document.write( "https://www.mathsisfun.com/quadratic-equation-solver.html
\n" ); document.write( "this would have been a huge chore otherwise.
\n" ); document.write( "i didn't want to go through the large manual effort only to find that the solution was not good.
\n" ); document.write( "it turned out that the answer was good, even if it was messy.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the basic concepts is:
\n" ); document.write( "when you're going with the current, the formula becomes (B + R) * T = 5
\n" ); document.write( "when you're going against the current, the formula becomes (B - R) * (T + 2) = 5
\n" ); document.write( "
\n" );