I recently began my first course in intro do ordinary differential equations. The textbook recommended for the class is "Elementary Differential Equations and Boundary Value problems, 10th edition" by Boyce and DiPrima.
I also have the solutions manual, but not all questions are worked in it.
There is one question near the start that I decided the work, and it wasn't in the back so I thought people here could share their input.
I will write the problem, then explain what I have done so far. I am not sure if it is correct however, or if I am making some mistakes.
Your pool containing $60\,000$ gallons of water is contaminated by $5\,\rm kg$ of a non-toxic dye. The filtering system can take water from the pool, remove the dye and return the clean water at a rate of $200\,\rm gal/min$.
It then asks a variety of questions, such as, write an initial value problem, is the system capable of removing enough dye such that the concentration is less than $0.02\,\rm g/gal$ within $4$ hours, find the time $T$ at which is first is $0.02\,\rm g/gal$, and lastly the flow sufficient to achieve the concentration of $0.02\,\rm g/gal$ in $4$ hours.
What I did so far;
Let $q(t)$ be the amount of dye present at time $t$.
The original concentration of the dye is
$$q(0)=\frac{5\,\rm kg}{60\,000\,\rm gal}\quad\text{or}\quad q(0)=8.33\cdot 10^{-2}\,\rm g/gal$$
The filter is capable of removing the dye at $t=0$ of a rate calculated by the product of this initial concentration by $200\,\rm gal/min$, that is,
$$16\frac{\rm g}{\rm min}$$
But after this I know I need to calculate it as
$$\frac{dq}{dt}$$
I am not sure the best way, I'm thinking along the lines of, the volume of the pool is not changing so the flow of chemical out at time $t$ would be equal to $200\,\rm gal/min$ $(q(t)/60\,000\,\rm gal)$
I was thinking also that since no new dye is being added, it may just be something like
$$8.33\cdot 10^{-2}-\left[\left(200\frac{\rm gal}{\rm min}\right)\left(\frac{q(t)}{60\,000\,\rm gal}\right)\right]$$
But I am having a bit of trouble formulating this. Is it on the right track at least? Thank you for reading and taking any time to help or respond.