We let
\(x\) stand for unknown quantity, the speed of the boat in still water. Then we make a table showing the distance, rate, and time for each part of the trip. We begin by filling in the information given in the problem.
Note that the current adds to the speed of the boat when it is travelling downstream, and is subtractied from its speed travelling upstream. We use the formula
\(~t = \dfrac{d}{r}~\) to fill in the last column of the table.
Notice that we did not use the \(4\dfrac{1}{2}\) hours in the table, because it was not the trip upstream or the trip downstream that took \(4\dfrac{1}{2}\) hours, but the total trip. We use the \(4\dfrac{1}{2}\) to write an equation. The sum of the times for the upstream and downstream trips was \(4\dfrac{1}{2}\) or \(\dfrac{9}{2}\) hours.
\begin{gather*}
\dfrac{18}{x+3}+\dfrac{18}{x-3} = \dfrac{9}{2}
\end{gather*}
To solve the equation, we multiply both sides by the LCD, \(2(x-3)(x+3)\text{.}\)
\begin{gather*}
\blert{2(x-3)(x+3)}\left(\dfrac{18}{x+3}+\dfrac{18}{x-3}\right) = \left(\dfrac{9}{2}\right)\blert{2(x-3)(x+3)}
\end{gather*}
Next, we apply the distributive law to multiply each term of the equation by the LCD.
\begin{align*}
\blert{2(x-3)\cancel{(x+3)}}\left(\dfrac{18}{\cancel{x+3}}\right)\amp+\blert{2\cancel{(x-3)}(x+3)}\left(\dfrac{18}{\cancel{x-3}}\right) \\
\amp=\left(\dfrac{9}{\cancel{2}}\right)\blert{\cancel{2}(x-3)(x+3)}\\
36(x-3)+36(x+3) \amp = 9(x-3)(x+3)
\end{align*}
We simplify each side of the equation and write it in standard form.
\begin{align*}
36x-108+36x+108 \amp = 9x^2-81~~~~~~~~\blert{\text{Combine like terms.}}\\
9x^2-72x-81 \amp =0
\end{align*}
The equation is quadratic, and we can solve it by factoring.
\begin{align*}
9(x^2-8x-9) \amp = 0\\
9(x-9)(x+1) \amp = 0~~~~~~~~\blert{\text{Set each factor equal to zero.}}\\
x-9=0~~~~x+1 \amp = 0\\
x=9~~~~~~~~~~x \amp =-1
\end{align*}
Finally, we check each solution by substituting into the original equation. Neither solution is extraneous. However, the speed of the boat is not a negative number, so we discard the solution \(x=-1\text{.}\) The boat travels at 9 miles per hour in still water.