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]

Examples from Modelling with first-order equations

All examples from Modelling with first-order equations.

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.

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.

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

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