Mixing problems for differential equations

 
 
mixing problems.jpeg
 
 
 

Setting up mixing problems as separable differential equations

Mixing problems are an application of separable differential equations. They’re word problems that require us to create a separable differential equation based on the concentration of a substance in a tank.

Usually we’ll have a substance like salt that’s being added to a tank of water at a specific rate. At the same time, the salt water mixture is being emptied from the tank at a specific rate. We usually that the contents of the tank are always perfectly mixed, and we’re asked to model the concentration in the tank at a certain time. The formula we use to model concentration is

???\frac{dy}{dt}=C_1r_1-C_2r_2???

where

???C_1??? is the concentration of the substance being added

???r_1??? is the rate at which the substance is added

???C_2??? is the concentration of the substance being removed

???r_2??? is the rate at which the substance is removed

Once we’ve plugged everything into the mixing problem formula, we’ll need to treat it as a separable differential equation, which means that we’ll separate variables, integrate both sides of the equation, and then try to find a general solution.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 
 
 

Walking through a video example of a mixing problem with different in and out rates and concentrations:


 
 
Differential Equations course.png

Take the course

Want to learn more about Differential Equations? I have a step-by-step course for that. :)

 
 

 
 

How to model the amount of salt in the tank at any time, and after a specific amount of time has passed

Example

A tank contains ???1,500??? L of water and ???20??? kg of dissolved salt. Fresh water is entering the tank at ???15??? L/min (the solution stays perfectly mixed), and the solution drains at a rate of ???10??? L/min. How much salt is in the tank at ???t??? minutes and at ???10??? minutes?

 

We’ll start with the mixing problem formula

???\frac{dy}{dt}=C_1r_1-C_2r_2???

In this problem, we’re interested in the concentration of salt in the tank.

???C_1=0??? kg/L because no salt is being added into the tank.

???r_1=15??? L/min because this is the rate at which water is entering the tank

???C_2=y/(1,500+5t)??? kg/L because we’re not sure how much salt is leaving the tank, but we know the initial amount of water is ???1,500??? L, and we’re adding ???15-10=5??? L every minute

???r_2=10??? L/min because this is the rate at which the solution is leaving the tank

If we plug all these values into the formula, we get

???\frac{dy}{dt}=(0)(15)-\left(\frac{y}{1,500+5t}\right)(10)???

???\frac{dy}{dt}=-\frac{10y}{1,500+5t}???

???\frac{dy}{dt}=-\frac{2y}{300+t}???

Now we’ll separate the variables.

???dy=-\frac{2y}{300+t}\ dt???

???\frac{1}{y}\ dy=-\frac{2}{300+t}\ dt???

mixing problems differential equations.jpg

Set up the equation from the in/out rate and in/out concentration, separate variables, then integrate to find the equation that models concentration over time

With the variables separated, we’ll integrate both sides of the equation.

???\int\frac{1}{y}\ dy=\int-\frac{2}{300+t}\ dt???

???\ln{|y|}+C_1=-2\ln{|300+t|}+C_2???

???\ln{|y|}=-2\ln{|300+t|}+C_2-C_1???

Raise both sides to the base ???e??? in order to eliminate the natural log.

???e^{\ln{|y|}}=e^{-2\ln{|300+t|}+C_2-C_1}???

???|y|=e^{C_2-C_1}e^{-2\ln{|300+t|}}???

???y=\pm e^{C_2-C_1}e^{\ln{(|300+t|)^{-2}}}???

???y=\pm e^{C_2-C_1}(|300+t|)^{-2}???

The ???\pm e^{C_2-C_1}??? is still just a constant, so we can simplify.

???y=C(|300+t|)^{-2}???

Time ???t??? will always be positive (it’s nonsensical to have “negative time”), so ???300+t??? will always be positive, and we can remove the absolute value bars from the ???|300+t|???.

???y=C(300+t)^{-2}???

???y=\frac{C}{(300+t)^2}???

We were told that initially ???20??? kg of dissolved salt existed in the tank, so ???y(0)=20???.

???20=\frac{C}{(300+0)^2}???

???20=\frac{C}{90,000}???

???C=1,800,000???

Plugging this back into the general solution, we get

???y=\frac{1,800,000}{(300+t)^2}???

This is the equation that models the amount of salt in the tank at ???t??? minutes. If we want to figure out how much salt is in the tank after ???5??? minutes, we just plug ???5??? in for ???t???. If we want to figure out how much salt is in the tank after ???20??? minutes, we just plug ???20??? in for ???t???.

We’ve also been asked in this problem to find the amount of salt in the tank after ???10??? minutes. Plugging ???10??? in for ???t???, we get

???y=\frac{1,800,000}{(300+10)^2}???

???y=\frac{1,800,000}{310^2}???

???y=\frac{1,800,000}{96,100}???

???y=\frac{18,000}{961}???

???y\approx18.73???

After ???10??? minutes, there’s ???18.73??? kg of salt in the tank.

 
Krista King.png
 

Get access to the complete Differential Equations course