Salt & Concentration
Models
Learn how to model mixing problems using first-order differential equations: track the amount of solute flowing in and out of a tank over time.
What Is a Mixing Problem?
A tank contains a liquid with some dissolved substance (often salt). A solution flows in at a known rate and concentration, and the well-stirred mixture flows out at another rate. We want to find \( Q(t) \): the amount of salt in the tank at time \( t \).
The Tank Setup
Key Variables & Units
The Core ODE
The fundamental balance equation for salt in a well-stirred tank:
Rate in is constant when inflow concentration and rate are fixed. Rate out depends on \( Q(t) \) because the outflow carries the current tank concentration \(\dfrac{Q}{V}\).
Tracking Volume Over Time
The liquid volume changes if the inflow and outflow rates differ:
Constant vs Variable Volume
| Constant Volume | Variable Volume | |
|---|---|---|
| Condition | \( r_{\text{in}} = r_{\text{out}} \) | \( r_{\text{in}} \neq r_{\text{out}} \) |
| ODE Form | \( Q' + \tfrac{r}{V_0}\,Q = c_{\text{in}} r \) | \( Q' + \tfrac{r_{\text{out}}}{V_0 + (r_{\text{in}}-r_{\text{out}})t}\,Q = c_{\text{in}} r_{\text{in}} \) |
| Integrating Factor | \( e^{rt/V_0} \) | \( \big[V_0+(r_{\text{in}}-r_{\text{out}})t\big]^{r_{\text{out}}/(r_{\text{in}}-r_{\text{out}})} \) |
| Difficulty | Straightforward | More involved |
How to Solve Step by Step
Example 1: Equal Rates
A 500 L tank initially contains 100 kg of dissolved salt. Brine with concentration 0.05 kg/L flows in at 6 L/min, and the well-stirred mixture flows out at 6 L/min. Find \( Q(t) \).
Example 1: Solution
Rewrite: \( Q' + \tfrac{3}{250}\,Q = 0.3 \). Integrating factor: \( \mu = e^{3t/250} \).
As \( t \to \infty \), \( Q(t) \to 25 \) kg: the tank approaches the equilibrium concentration of the inflow.
Example 2: Unequal Rates
A 200 L tank starts with pure water (\( Q(0) = 0 \)). Brine at 0.5 kg/L enters at 3 L/min. The mixture leaves at 2 L/min. Find \( Q(t) \).
Standard form: \( Q' + \dfrac{2}{200+t}\,Q = 1.5 \). The integrating factor is \( \mu(t) = (200+t)^2 \).
Example 2: Solution
Multiply by \( \mu = (200+t)^2 \):
Integrate: \( (200+t)^2 Q = 0.5\,(200+t)^3 + C \).
Apply \( Q(0) = 0 \): \( 200^2 \cdot 0 = 0.5 \cdot 200^3 + C \), so \( C = -4{,}000{,}000 \).
The salt amount grows over time. Note: the tank overflows when \( V(t) \) exceeds the physical tank capacity, so the model is valid only while \( V(t) \leq V_{\max} \).
Equilibrium & Long-Term Behavior
When \( r_{\text{in}} = r_{\text{out}} \), the system reaches a steady state. Setting \(\dfrac{dQ}{dt} = 0\):
Concentration vs Amount
Be careful about what the problem asks for: the amount \( Q(t) \) or the concentration \( c(t) \).
Common Mistakes
Summary Checklist
| Step | Action | Watch Out |
|---|---|---|
| 1 | Identify \( Q(0), V_0, r_{\text{in}}, r_{\text{out}}, c_{\text{in}} \) | Units must be consistent |
| 2 | Write \( V(t) \) | Constant only if rates equal |
| 3 | Set up \( Q' = \text{in} - \text{out} \) | Out uses \( Q/V(t) \), not \( c_{\text{in}} \) |
| 4 | Standard form \( Q' + P(t)Q = G \) | Sign on \( P(t) \) must be positive |
| 5 | Integrating factor \( \mu \), integrate | Don't forget the constant \( C \) |
| 6 | Apply \( Q(0) \) to find \( C \) | Check: does \( Q \to Q_\infty \)? |
Question 1 of 5
A 100 L tank with 10 kg of salt has brine at \( 0.2 \) kg/L flowing in at 4 L/min and out at 4 L/min. What is \( \dfrac{dQ}{dt} \) at \( t = 0 \)?
Question 2 of 5
If \( r_{\text{in}} = 5 \) L/min and \( r_{\text{out}} = 3 \) L/min with \( V_0 = 100 \) L, what is \( V(t) \)?
Question 3 of 5
For a constant-volume tank with \( V = 200 \) L and flow rate \( r = 10 \) L/min, the ODE is \( Q' + \tfrac{r}{V}Q = c_{\text{in}} r \). What is the integrating factor?
Question 4 of 5
A 500 L tank with equal inflow/outflow (\( r = 6 \) L/min) and \( c_{\text{in}} = 0.05 \) kg/L reaches equilibrium at \( Q_\infty \). What is \( Q_\infty \)?
Question 5 of 5
A student writes the outflow rate of salt as \( c_{\text{in}} \cdot r_{\text{out}} \) instead of \(\dfrac{Q(t)}{V(t)} \cdot r_{\text{out}}\). What is wrong with this?