Skip to content

Applications - Mixing Problems

You will learn how to set up and solve differential equations for mixing problems involving tanks with inflow and outflow of different concentrations. This is a classic applied problem that appears throughout engineering and chemistry.

Imagine a tank containing a fixed volume of liquid. A solution with a certain concentration flows in, while the well-mixed solution flows out at the same rate (so the volume stays constant).

Let Q(t)Q(t) be the amount of solute (in grams, pounds, etc.) in the tank at time tt. Then the rate of change is:

dQdt=rate inrate out\frac{dQ}{dt} = \text{rate in} - \text{rate out}

If the inflow has concentration cinc_{\text{in}} and flow rate rr, and the outflow has concentration QV\frac{Q}{V} (where VV is the constant volume), the equation becomes:

dQdt=rcinrQV\frac{dQ}{dt} = r \cdot c_{\text{in}} - r \cdot \frac{Q}{V}

This is a first-order linear differential equation, which we already know how to solve using an integrating factor.

The diagram above shows a typical mixing tank setup. Solution flows in from the top with concentration cinc_{\text{in}} at rate rr, mixes thoroughly, and flows out the bottom at the same rate.

Example 1: Basic Mixing

A 100-liter tank initially contains 10 kg of salt. Pure water flows in at 5 L/min while the well-mixed solution flows out at the same rate. How much salt remains after 20 minutes?

Solution: V=100V = 100, r=5r = 5, cin=0c_{\text{in}} = 0.

dQdt=05Q100=Q20\frac{dQ}{dt} = 0 - \frac{5Q}{100} = -\frac{Q}{20}

Solution: Q(t)=10et/20Q(t) = 10e^{-t/20}

At t=20t = 20: Q(20)3.68Q(20) \approx 3.68 kg.

Example 2: With Nonzero Inflow

A 200-gallon tank starts with 40 pounds of salt. Brine containing 2 lb/gal flows in at 3 gal/min while the mixture flows out at 3 gal/min. Find the amount of salt after 30 minutes.

Solution:

dQdt=63Q200\frac{dQ}{dt} = 6 - \frac{3Q}{200}

Integrating factor: e3t/200e^{3t/200}. Solving gives:

Q(t)=400360e3t/200Q(t) = 400 - 360e^{-3t/200}

At t=30t = 30: Q(30)184.6Q(30) \approx 184.6 pounds.

Example 3: Changing Volume

(Advanced) A tank starts with 50 liters of pure water. Brine at 0.5 kg/L flows in at 2 L/min while mixture flows out at 3 L/min. Set up the equation (note volume is decreasing).

Solution: Volume at time tt: V(t)=50tV(t) = 50 - t. The equation becomes more complex but is still solvable with similar techniques.

Mixing problems model real industrial processes: chemical plants blending solutions, water treatment facilities adding chlorine, pharmaceutical companies mixing medications, and even home brewing or cooking when ingredients are continuously added and drained. Environmental engineers use them to track pollutant levels in lakes or rivers when there is inflow from contaminated streams and outflow to the ocean.

In a typical mixing tank problem with constant volume, the differential equation is based on:
If pure water flows into a tank, the inflow concentration $c_{\text{in}}$ is:
The term $r \cdot \frac{Q}{V}$ represents:
Mixing tank problems are usually solved using:
As $t \to \infty$ in a constant-volume mixing problem with nonzero inflow concentration, $Q$ approaches: