How to solve mixing problems with differential equations
In a mixing problem, the tank can gain water while it loses salt. We’ll track the amount of salt and the volume separately, then put them together to find the concentration leaving the tank. Let’s use a tank that fills faster than it drains.
Write a rate equation for the amount of salt
Let be the amount of salt and be the liquid volume. The amount changes at the rate salt enters minus the rate salt leaves. Each salt rate is a concentration times a liquid flow rate.
The outflow has the same concentration as the tank because the mixture stays uniform. The volume changes by each minute when the flow rates are constant.
Example: Set up the equation for a filling tank
A tank starts with 1,500 liters of liquid and 20 kilograms of dissolved salt. Fresh water flows in at 15 liters per minute and the mixture drains at 10 liters per minute. Find the salt amount after any time in the model and after 10 minutes.
The tank gains liters per minute, so . The fresh water brings in no salt. Multiply the concentration leaving the tank by the outflow rate.
Separate, integrate, and use the initial amount
For the solution with positive initial salt, separate the variables. The expression is positive for .
Exponentiating gives the inverse square. Now plug into the solution and solve for .
After 10 minutes, the tank contains about 18.73 kilograms of salt. If you need the concentration at any time, divide the salt amount by the volume . The formula models the process while the liquid stays well mixed and the stated flows continue without overflow.