Artificial intelligent assistant

aquarium polluted water differential equation An aquarium contains 10 gallons of polluted water.A filter is attached to this aquarium which drains off the polluted water at the rate of 5 gallons per hour.and replaces it at the same rate by pure water.How long does it take to reduce the pollution to half of its initial level? ans is 2log2. I did not understand 2nd line.If i take x gallon polluted water at any time t then dx/dt= -5 which is not correct as answer contains log term means some proportionality with x is there. Please help me solve it.

The misleading part is the statement that you are removing "polluted water". The rate of removing this water is clearly constant. **But** your goal is to remove the **pollutant** , the stuff in the water, and its concentration goes down from the first moment.

Assume that at some time $t$ the tank contains $y$ pollutant. It could be grams of salt, ounces of ammonia or whatever. As you pump out a little of this polluted water in a short time $dt$, the amount of $y$ changes. Since the $y$ of pollutant is spread out over the whole 10 gallons, the concentration is $\frac{y}{10}$. You are removing 5 gallons of this polluted water per hour, so in a time $dt$ you remove a volume $5\times dt$. So the change in the amount of y, $dy$, is given by$$dy=-\frac{y}{10}\times 5 \times dt $$and the solution to this equations proceeds as above.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 52344556d9a4401ee4c97928ec2977ca