To solve this problem, we use the accumulation equation
(1.10.1) on the amount of salt in the tank. In order to compute with this, we recognize that in terms of mass of salt moving into the tank
\begin{equation*}
\text{rate in} = \text{flow in} \times \text{concentration in}
\end{equation*}
and similarly for the mass of salt leaving the tank.
If we let
\(x\) represent the amount of salt in the tank at any time
\(t\) (which is the goal of the problem), we can write a differential equation for this using the accumulation equation
(1.10.1). This gives us that
\begin{equation*}
\frac{dx}{dt} = \text{rate in} - \text{rate out} = \text{flow in} \times \text{concentration in} - \text{flow out} \times \text{concentration out}
\end{equation*}
For this problem, we have that
\begin{align*}
\text{flow in} \amp = 3\\
\text{concentration in} \amp = 0.2 \\
\text{flow out} \amp = 3 \\
\text{concentration out}\amp = \frac{x}{\text{volume}} = \frac{x}{70} \text{.}
\end{align*}
The last of these lines comes from the fact that the tank is βwell-stirredβ or βwell-mixed.β This implies that the concentration of salt in the water leaving the tank is the same as the concentration in the tank, which we can compute as \(\frac{x}{\text{volume}}\text{.}\) In this case, since the flow rate in and out are both 3 gal/min, the volume of water in the tank is fixed at \(70\) gallons, so we can put this in the equation.
Therefore, our equation becomes
\begin{equation*}
\frac{dx}{dt} = (3\times 0.2) - \left(3 \times \frac{x}{70}\right).
\end{equation*}
We can rewrite this equation as
\begin{equation*}
\frac{dx}{dt} + \frac{3}{70}x = 0.6
\end{equation*}
which we recognize as a first order linear equation. We can then solve this using the method of integrating factors. Our factor \(r(t)\) is
\begin{equation*}
r(t) = e^{\int p(t)\, dt} = e^{\int \frac{3}{70}\, dt} = e^{\frac{3}{70} t},
\end{equation*}
which we can multiply on both sides of the equation to obtain
\begin{equation*}
e^{\frac{3}{70} t} \frac{dx}{dt} + e^{\frac{3}{70} t} \frac{3}{70} x = 0.6 e^{\frac{3}{70} t}.
\end{equation*}
The left side of this is a product rule derivative, so we can integrate both sides to obtain
\begin{equation*}
e^{\frac{3}{70} t} x = 0.6 \frac{70}{3} e^{\frac{3}{70} t} + C.
\end{equation*}
We can then isolate \(x\) to get our general solution as
\begin{equation*}
x = 14 + Ce^{-\frac{3}{70} t}.
\end{equation*}
Our initial condition tells us that \(x(0) = 5\text{.}\) Plugging this in gives that
\begin{equation*}
5 = x(0) = 14 + C \quad \Rightarrow \quad C = -9,
\end{equation*}
so the solution to the initial value problem, and thus our calculation for the amount of salt in the tank at any time \(t\text{,}\) is
\begin{equation*}
x(t) = 14 - 9e^{-\frac{3}{70} t}.
\end{equation*}
As
\(t\rightarrow \infty\text{,}\) we see that the exponential term goes to zero. This leaves us with 14 lbs of salt in the tank after a long time. This makes some sense because this would give us a concentration of
\(\frac{14}{70} = 0.2\) lb/gal, and that was exactly the concentration of the in-flow stream. It makes sense that after a long time of mixing and removing water from the tank, the concentration of the tank would match that of the incoming stream.