01 / 21

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.

Differential Equations

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

Inflow
\(\text{rate} = r_{\text{in}}\)
Outflow
\(\text{rate} = r_{\text{out}}\)
\(Q(t) = \text{salt}\)
\(V(t) = \text{volume}\)
well-stirred

Key Variables & Units

\( Q(t) \)
Amount of salt in tank (kg or g)
\( V(t) \)
Volume of liquid in tank (L or gal)
\( r_{\text{in}},\; r_{\text{out}} \)
Flow rates (L/min or gal/min)
\( c_{\text{in}} \)
Inflow concentration (kg/L)

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:

\( r_{\text{in}} = r_{\text{out}} \)
Volume stays constant: \( V(t) = V_0 \). ODE has constant coefficients.
\( r_{\text{in}} \neq r_{\text{out}} \)
Volume changes linearly. The ODE coefficient becomes time-dependent.

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

1
Identify the variables: \( Q(t) \), \( V(t) \), \( r_{\text{in}} \), \( r_{\text{out}} \), \( c_{\text{in}} \), and initial condition \( Q(0) \).
2
Write the volume equation: \( V(t) = V_0 + (r_{\text{in}} - r_{\text{out}})\,t \).
3
Set up the ODE: \(\dfrac{dQ}{dt} = c_{\text{in}}\,r_{\text{in}} - \dfrac{Q}{V(t)}\,r_{\text{out}}\).
4
Rewrite in standard linear form: \( Q' + P(t)\,Q = G(t) \).
5
Compute the integrating factor \(\mu(t) = e^{\int P(t)\,dt}\), multiply through, and integrate.
6
Apply the initial condition to find the constant \( C \). Check units.

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} \).

\(t\) (min)
\(Q\) (kg)
0 100 75 50 25 100 200 300 400
\(25\)
\(Q(0)=100\)

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\):

\( Q(0) > Q_{\infty} \)
Salt decreases exponentially toward equilibrium (dilution).
\( Q(0) < Q_{\infty} \)
Salt increases toward equilibrium (concentration builds up).

Concentration vs Amount

Be careful about what the problem asks for: the amount \( Q(t) \) or the concentration \( c(t) \).

Amount \( Q(t) \)
Total mass of solute in the tank (kg). This is what the ODE directly solves for.
Concentration \( c(t) \)
Mass per unit volume: \( c(t) = \dfrac{Q(t)}{V(t)} \) (kg/L). Compute after finding \( Q \).

Common Mistakes

Constant Outflow Concentration
Using \( c_{\text{in}} \) instead of \(\dfrac{Q(t)}{V(t)}\) for the outflow concentration. The outflow concentration changes over time.
Ignoring Volume Changes
Using \( V_0 \) when \( r_{\text{in}} \neq r_{\text{out}} \). You must substitute \( V(t) = V_0 + (r_{\text{in}} - r_{\text{out}})t \).
Unit Mismatches
Mixing grams with kilograms, or liters with gallons. Verify that every term in \(\dfrac{dQ}{dt}\) has units of mass/time.

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?