Course contentsShow
← Mathematics
Lesson 2377 of 3,12148. Ordinary Differential EquationsFree lesson

Mixing Problems and Compartment Models

Apply first-order ODEs to model concentrations in tanks with inflow and outflow; solve and interpret physical quantities.

Mixing Problems and Compartment Models

You'll learn how to model and solve real-world concentration problems using first-order differential equations.

The Core Idea

Imagine a tank containing a saltwater solution. Fresh water flows in, and the mixed solution flows out. How does the salt concentration change over time? This is a mixing problem, and it's governed by a simple principle:

Rate of change of substance = Rate in - Rate out

This translates directly into a first-order ODE where you track the amount of substance (not concentration) in the tank.

Setting Up the Model

For a tank with volume V:

  • Let A(t) = amount of substance at time t
  • Concentration = A(t)/V(t) (volume might change!)
  • Rate in = (concentration in) × (flow rate in)
  • Rate out = (concentration out) × (flow rate out) = [A(t)/V(t)] × (flow rate out)

This gives you: dA/dt = (rate in) - (rate out)

Physical Interpretation

The resulting ODE is typically first-order linear, which you solve using the integrating factor method. The solution A(t) tells you how much substance is in the tank at any time. Divide by the volume to get concentration.

Think of it like this: The tank is a "compartment" that mixes instantly and uniformly. Blood flow through organs, chemical reactors, and environmental pollutant dispersal all follow similar logic.

Example Structure

A tank holds 100 L of pure water. Brine (5 g/L salt) flows in at 3 L/min, and mixed solution flows out at 3 L/min. Find salt amount A(t).

  • dA/dt = 5(3) - A(t)/100 = 15 - 3A/100
  • This is linear: dA/dt + (3/100)A = 15
  • Solve with integrating factor e^(3t/100)

Key Takeaway: Mixing problems reduce to first-order linear ODEs by tracking substance amount and carefully accounting for inflow/outflow rates; the solution reveals how concentrations evolve dynamically.