Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Modelling with first-order equations

Translating proportional change, relaxation and conservation laws into first-order ODE models.

This page turns verbal rate laws into first-order equations. Each model follows the same steps: translate the law into an equation, solve it with first-order methods, use data to fix the constants and interpret the solution on the interval where the assumptions hold.

Translating rate laws into models

[METHOD]

Translate a rate law

Build a first-order model by translating the verbal rate law:

  • proportional change gives P′=kPP'=kP;
  • relaxation towards a target gives T′=−k(T−A)T'=-k(T-A), with k>0k>0 for decay toward the target;
  • conservation gives rate of change=inflow−outflow.\text{rate of change}=\text{inflow}-\text{outflow}.

Use initial or measured data to determine the constants, then interpret the resulting solution on the physical interval where the model is valid.

The differential equation describes the local rate, while the data and parameters describe the particular system. Proportional growth is exponential, while relaxation approaches its target. Depending on the law, the translation can lead to a separable equation, a first-order linear equation or a logistic equation below.

Relaxation towards equilibrium

For an autonomous model y′=f(y)y'=f(y), an equilibrium is a constant solution y(t)=y∗y(t)=y_*, so it must satisfy f(y∗)=0f(y_*)=0.

When the rate is proportional to the difference from a fixed target, the model is linear and the difference decays exponentially. The target is an equilibrium and the solution approaches it without crossing it on the usual positive-time branch.

[EXAMPLE]

Newton's law of cooling

If AA is a constant ambient temperature, the rate of change of the temperature difference is proportional to that difference:

ddt(T−A)=−k(T−A),k>0.\frac{d}{dt}(T-A)=-k(T-A), \qquad k>0.

Equivalently,

T′=−k(T−A).T'=-k(T-A).

If tt is measured in hours, then kk has units of h−1\mathrm{h}^{-1}; the same inverse-time units apply to any first-order rate constant.

Separation or the linear method gives

T(t)=A+(T0−A)e−kt.T(t)=A+(T_0-A)e^{-kt}.

The difference T−AT-A keeps its sign and decays exponentially. A hotter object cools monotonically, a colder object warms monotonically and

lim⁡t→∞T(t)=A.\lim_{t\to\infty}T(t)=A.

As a forensic application, a body's temperature is measured at 11:30 am and again an hour later. Let t=0t=0 be 11:30 am. The data are

T(0)=24.5,T(1)=24.0,A=20.T(0)=24.5,\qquad T(1)=24.0,\qquad A=20.

Using the first measurement,

T(t)=20+4.5e−kt.T(t)=20+4.5e^{-kt}.

The second measurement gives

24=20+4.5e−k⟹e−k=89⟹k=ln⁡98.24=20+4.5e^{-k} \quad\Longrightarrow\quad e^{-k}=\frac89 \quad\Longrightarrow\quad k=\ln\frac98.

If death occurred τ\tau hours before 11:30 am, the body was at normal temperature 36.5∘C36.5^\circ\mathrm{C} at t=−τt=-\tau:

36.5=20+4.5ekτ.36.5=20+4.5e^{k\tau}.

Therefore

τ=ln⁡(16.5/4.5)k=ln⁡(11/3)ln⁡(9/8)≈11.03 hours.\tau =\frac{\ln(16.5/4.5)}{k} =\frac{\ln(11/3)}{\ln(9/8)} \approx11.03\text{ hours}.

The estimated time of death is about 12:28 am. This estimate assumes a constant ambient temperature and cooling coefficient over the whole period; the ODE alone cannot verify those assumptions.

Conservation of a changing quantity

Conservation models track an amount rather than a concentration. The outflow concentration depends on the current amount divided by the current volume, which is why a changing-volume tank produces a first-order linear equation with a variable coefficient.

[EXAMPLE]

A salt solution

Let S(t)S(t) be the amount of salt in grams and V(t)V(t) the volume in litres. For a well-stirred tank,

salt rate in=(inflow rate)(inflow concentration),\text{salt rate in} =(\text{inflow rate})(\text{inflow concentration}),

and

salt rate out=(outflow rate)S(t)V(t).\text{salt rate out} =(\text{outflow rate})\frac{S(t)}{V(t)}.

Suppose S(0)=50S(0)=50, V(0)=300V(0)=300, the inflow is 33 litres per minute at 22 grams per litre and the outflow is 22 litres per minute. Assuming the tank remains well mixed and no salt is created or removed except by the streams, the volume is

V(t)=300+t,V(t)=300+t,

and conservation gives

S′=6−2S300+t.S'=6-\frac{2S}{300+t}.

The equation is linear:

S′+2300+tS=6.S'+\frac{2}{300+t}S=6.

An integrating factor is (300+t)2(300+t)^2, so

((300+t)2S)′=6(300+t)2.\bigl((300+t)^2S\bigr)'=6(300+t)^2.

Integrating gives (300+t)2S=2(300+t)3+C(300+t)^2S=2(300+t)^3+C. At t=0t=0, C=3002(50)−2(300)3=−49 500 000C=300^2(50)-2(300)^3=-49\,500\,000. Thus

S(t)=2(300+t)−49 500 000(300+t)2grams.S(t)=2(300+t)-\frac{49\,500\,000}{(300+t)^2} \quad\text{grams}.

The concentration tends to 22 grams per litre as tt increases, which matches the inflow concentration.

The volume grows because inflow exceeds outflow. The physical domain is t≥0t\geq0 (so V(t)=300+t>0V(t)=300+t>0); extending the formula to earlier times would need a separate physical justification.

Proportional and limited growth

Proportional growth gives the exponential model and has no finite carrying capacity. Adding a factor that reduces per-capita growth as the population approaches KK produces the logistic model.

[EXAMPLE]

Exponential population growth

If the rate is proportional to the population,

P′=kP,P(t)=P0ekt.P'=kP, \qquad P(t)=P_0e^{kt}.

If tt is measured in hours and P(1)=32P0P(1)=\frac32P_0, then ek=3/2e^k=3/2. The time needed to reach 3P03P_0 satisfies

ekt=3⟹t=ln⁡3ln⁡(3/2)≈2.71 hours.e^{kt}=3 \quad\Longrightarrow\quad t=\frac{\ln3}{\ln(3/2)} \approx2.71\text{ hours}.
[DEFINITION]

Logistic model

The logistic model combines proportional growth with a reduction in the per-capita growth rate as the population approaches a carrying capacity KK:

P′=αP(1−PK).P'=\alpha P\left(1-\frac{P}{K}\right).

Here α>0\alpha>0, K>0K>0 and P≥0P\ge0; if tt is measured in a time unit, α\alpha has inverse-time units. The equilibria are P=0P=0 and P=KP=K. For 0<P<K0<P<K, the population grows; for P>KP>K, it decreases. Its separated solution has the form

P(t)=K1+Ae−αt.P(t)=\frac{K}{1+Ae^{-\alpha t}}.

This expression is interpreted only on intervals where its denominator is nonzero; for a physical population one usually takes the forward-time branch with P(0)>0P(0)>0; the zero equilibrium is listed separately below.

To see where the formula comes from, separate on a branch with P>0P>0 and P≠KP\ne K. Since

1P(1−P/K)=1P+1K−P,\frac{1}{P(1-P/K)}=\frac1P+\frac1{K-P},

integration gives ln⁡∣P∣−ln⁡∣K−P∣=αt+C\ln|P|-\ln|K-P|=\alpha t+C. Solving this ratio for PP gives the displayed expression, with A=K/P(0)−1A=K/P(0)-1 when P(0)>0P(0)>0. The zero equilibrium P=0P=0 is not obtained from a finite AA and must be included separately; P=KP=K corresponds to A=0A=0. The bounded relaxation model P′=k(Pc−P)P'=k(P_c-P) also approaches a target, but logistic growth is proportional to both the current population and the remaining fraction of carrying capacity.

[EXAMPLE]

A city with a carrying capacity

Suppose the carrying capacity is K=5K=5 million, with P(0)=1P(0)=1 million and P(10)=2P(10)=2 million. The logistic solution is

P(t)=51+4e−αt,P(t)=\frac{5}{1+4e^{-\alpha t}},

because P(0)=1P(0)=1. Using P(10)=2P(10)=2,

2=51+4e−10α⟹e−10α=38⟹α=110ln⁡83.2=\frac{5}{1+4e^{-10\alpha}} \quad\Longrightarrow\quad e^{-10\alpha}=\frac38 \quad\Longrightarrow\quad \alpha=\frac1{10}\ln\frac83.

Thus, with population measured in millions,

P(t)=51+4e−(ln⁡(8/3))t/10,lim⁡t→∞P(t)=5.P(t)=\frac{5}{1+4e^{-(\ln(8/3))t/10}}, \qquad \lim_{t\to\infty}P(t)=5.

On this page