Mixing and cooling look like different physical processes, but their equations have the same shape: the current state moves toward a stable equilibrium, and the distance from that equilibrium decays exponentially.
A constant-volume mixing model
Suppose a tank initially contains 100 gallons of well-stirred solution and Q0 pounds of dissolved salt. To track the salt over time, define:
Q(t) as the amount of salt, in pounds, after t minutes;
r>0 as both the inflow and outflow rate, in gallons per minute;
41 lb/gal as the salt concentration of the incoming solution.
Because liquid enters and leaves at the same rate, the volume stays fixed at 100 gallons. The amount of salt changes according to
rate of change=rate in−rate out.
The incoming salt rate is concentration times flow rate:
(41gallb)(rmingal)=4rminlb.
Because the mixture is continuously stirred, the concentration is uniform throughout the tank at any instant. The outgoing fluid therefore carries salt at that same concentration:
100Q(t)gallb.
Thus the outgoing salt rate is
(100Q(t)gallb)(rmingal)=100rQ(t)minlb.
Subtracting the two rates gives the initial-value problem
Q′+100rQ=4r,Q(0)=Q0.
Keeping the units visible is a useful error check: every term in the differential equation must have units of pounds per minute.
Solving the mixing equation
Because this is a first-order linear differential equation, begin with the integrating factor:
μ(t)=e∫r/100dt=ert/100.
After multiplying the equation by μ(t), the left side becomes a product derivative:
dtd(ert/100Q(t))=4rert/100.
Integrating both sides gives
ert/100Q(t)=4r∫ert/100dt+C=25ert/100+C.
Dividing by the integrating factor,
Q(t)=25+Ce−rt/100.
The initial condition determines the constant:
Q0=Q(0)=25+C,C=Q0−25.
Therefore,
Q(t)=25+(Q0−25)e−rt/100.
The number 25 is not an arbitrary constant. At equilibrium, the tank has the same concentration as the incoming solution, so
100gal(41gallb)=25lb.
For r>0, the exponential factor tends to zero. If Q0<25, the amount rises toward 25; if Q0>25, it falls toward 25; and if Q0=25, it stays there.
Stable salt equilibrium at 25 pounds
Q(0) = 50 lb
Q(0) = 25 lb
Q(0) = 10 lb
The exponential term keeps the initial deviation's sign while making its size decay. A solution approaches 25 lb from its own side and never crosses the equilibrium.
How fast does the tank approach equilibrium?
Take Q0=50 lb and r=3 gal/min. Then
Q(t)=25+25e−3t/100.
Being within 2% of the 25-lb equilibrium means
∣Q(t)−25∣≤0.02(25)=0.5.
Since this solution approaches equilibrium from above, it first enters the tolerance band when Q(T)=25.5. Solving,
Now consider the inverse design problem: what flow rate is needed to reach the same tolerance within 45 minutes? The threshold case satisfies
25+25e−45r/100=25.5.
Therefore,
rmin=45100ln50≈8.69gal/min.
Any r≥rmin reaches the tolerance band no later than 45 minutes.
Newton's law of cooling
Thermal transfer follows the same stable-equilibrium pattern. Let T(t) be an object's temperature and let Troom be the constant temperature of its surroundings. Newton's law of cooling states that the rate of temperature change is proportional to the temperature difference:
dtdT=−k(T−Troom),k>0.
The minus sign makes the model move toward room temperature:
If T>Troom, then T′<0, so the object cools.
If T<Troom, then T′>0, so the object warms.
If T=Troom, then T′=0, so the temperature is at equilibrium.
The equation is both separable and linear. Separating variables gives
∫T−TroomdT=∫−kdt,
so
ln∣T−Troom∣=−kt+C.
After exponentiating and absorbing the sign into the arbitrary constant,
T(t)=Troom+C1e−kt.
If T(0)=T0, then C1=T0−Troom. Hence
T(t)=Troom+(T0−Troom)e−kt.
The temperature difference T(t)−Troom decays exponentially, so T(t) approaches Troom without crossing it under this model.
Example: cooling coffee
A cup of coffee is poured at 90∘C into a room at 20∘C. After one minute, its temperature is 85∘C. The model is