Mixing Problems
Inflow & Outflow
Learn to model how concentration changes over time in a tank with continuous inflow and outflow using first-order linear ODEs.
What Is a Mixing Problem?
A mixing problem models a tank (or container) where a solution flows in at some rate and concentration, the contents are kept well-stirred, and the mixture flows out at some rate. We want to find the amount of solute \( Q(t) \) in the tank at any time \( t \).
Visualizing the Tank Model
Key Variables & Notation
The Fundamental ODE
The rate of change of solute follows one simple principle:
Rewriting in Standard Linear Form
When \( r_{\text{in}} = r_{\text{out}} = r \), the volume is constant \( V_0 \), and the ODE becomes a first-order linear ODE:
This has the standard form \( Q' + P(t)\,Q = G(t) \), where:
Solving with the Integrating Factor
Constant vs. Changing Volume
| Constant Volume | Changing Volume | |
|---|---|---|
| Condition | \( r_{\text{in}} = r_{\text{out}} \) | \( r_{\text{in}} \neq r_{\text{out}} \) |
| Volume | \( V(t) = V_0 \) (fixed) | \( V(t) = V_0 + (r_{\text{in}} - r_{\text{out}})t \) |
| ODE type | Constant-coefficient linear | Variable-coefficient linear |
| Difficulty | Straightforward | Requires more careful integration |
| Caution | None special | Tank may overflow or empty |
How to Solve Any Mixing Problem
Example 1: Constant Volume
A tank holds 100 L of pure water. Brine with 0.5 kg/L of salt enters at 4 L/min. The well-stirred mixture exits at 4 L/min. Find \( Q(t) \), the kg of salt at time \( t \).
Example 1: Solution
Solution Curve for Example 1
Example 2: Changing Volume
A tank initially contains 200 L with 10 kg of salt. Brine at 0.3 kg/L flows in at 5 L/min. The mixture exits at 3 L/min. Find \( Q(t) \).
Example 2: Full Solution
Long-Term Behavior & Equilibrium
In constant-volume mixing problems, the solution always approaches an equilibrium:
Common Mistakes to Avoid
Summary Reference Table
| Component | Formula / Expression |
|---|---|
| Balance Law | \( \frac{dQ}{dt} = r_{\text{in}} c_{\text{in}} - r_{\text{out}} \frac{Q}{V(t)} \) |
| Volume | \( V(t) = V_0 + (r_{\text{in}} - r_{\text{out}})t \) |
| Standard Form | \( Q' + P(t)\,Q = G(t) \) |
| Integrating Factor | \( \mu(t) = e^{\int P(t)\,dt} \) |
| Const. Vol. Solution | \( Q(t) = c_{\text{in}} V_0 + (Q_0 - c_{\text{in}} V_0)\,e^{-rt/V_0} \) |
| Equilibrium | \( Q_\infty = c_{\text{in}} \cdot V_0 \) |
| Time Constant | \( \tau = V_0 / r \) |
Question 1 of 5
A 500 L tank of pure water receives brine at 0.2 kg/L flowing in at 10 L/min, with the mixture leaving at 10 L/min. What is \( Q_\infty \), the long-run amount of salt?
Question 2 of 5
In a mixing problem with \( r_{\text{in}} = 6 \) L/min and \( r_{\text{out}} = 4 \) L/min, what happens to the volume?
Question 3 of 5
For the ODE \( Q' + \frac{1}{25}\,Q = 2 \), what is the integrating factor \( \mu(t) \)?
Question 4 of 5
A tank has \( V_0 = 100 \) L and flow rate \( r = 4 \) L/min. The time constant is \( \tau = V_0/r \). After one time constant, the solution reaches approximately what fraction of its equilibrium?
Question 5 of 5
A tank starts with 50 kg of salt. Pure water (no salt) flows in at 3 L/min, and the mixture leaves at 3 L/min. As \( t \to \infty \), what happens to the amount of salt?