Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 39 ยท Introduction to Differential Equations

Growth, Decay and Logistic Models

Model populations, radioactive decay and limited growth with differential equations: dy/dt = ky and the logistic equation, with code to explore them.

Differential equations became famous because they describe how real systems change. Two models appear again and again: exponential growth and decay, where the rate of change is proportional to the amount present, and the logistic model, where growth slows as resources run out.

Exponential growth and decay

Suppose a quantity y(t) changes at a rate proportional to its current size:

Text
dy/dt = k y

This is separable. Separate and integrate: dy/y = k dt, so ln(abs(y)) = kt + C, and

Text
y(t) = yโ‚€ e^(kt)

where yโ‚€ = y(0) is the starting amount. If k > 0, the quantity grows exponentially; if k < 0, it decays.

Typical uses:

  • Population with unlimited food and space (bacteria in the early stage of a culture).
  • Radioactive decay, where each atom has the same chance of decaying per second, so dN/dt = -ฮปN.
  • Compound interest compounded continuously: dA/dt = rA gives A = Aโ‚€ e^(rt).

Half-life and doubling time

For decay, the half-life Tยฝ is the time for the amount to halve: yโ‚€ e^(kT) = yโ‚€/2, so e^(kT) = 1/2 and

Text
Tยฝ = ln(2) / |k|

Likewise, with growth the doubling time is ln(2) / k. Notice that neither depends on how much you started with.

Example. Carbon-14 has a half-life of about 5,730 years. The decay constant is k = ln(2)/5730 โ‰ˆ 0.000121 per year. A sample that has 25% of its original carbon-14 has gone through two half-lives, about 11,460 years. Using the formula: 0.25 = e^(-kt), so t = ln(4)/k = 2 ln 2 / k = 2 ร— 5730 years. The idea is the basis of radiocarbon dating (real-world dating also needs calibration, which we skip here).

Python Decay and half-life calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Limited growth: the logistic model

Exponential growth cannot go on forever: food, space and other resources run out. The logistic equation captures this:

Text
dP/dt = r P (1 - P/K)

Here r is the growth rate when the population is small and K is the carrying capacity, the largest population the environment can support.

  • When P is small, 1 - P/K โ‰ˆ 1 and growth is nearly exponential.
  • When P approaches K, the factor (1 - P/K) approaches 0 and growth stops.
  • If P > K, the factor is negative and the population shrinks back toward K.

The constant solutions P = 0 and P = K are equilibria. P = K is stable: nearby populations move toward it. P = 0 is unstable: any small population grows away from it.

The solution (found by separating variables and partial fractions) is

Text
P(t) = K / (1 + A e^(-rt)),     where A = (K - Pโ‚€)/Pโ‚€

The graph is an S-shaped curve, steepest at P = K/2, where the growth rate dP/dt is largest.

Python Compare exponential and logistic growth

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Simulating with Euler's method

You do not need the formula to explore the logistic model: step it forward with Euler's method and compare the simulation with the exact solution.

Python Logistic model: Euler versus exact

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Real populations are more complicated than any one equation: there are births, deaths, predators and seasons. Models are simplified pictures, useful because they let us test ideas and make predictions, but always limited by their assumptions.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. The solution of dy/dt = ky with y(0) = yโ‚€ is

    Separating variables gives ln(abs(y)) = kt + C, so y = yโ‚€ e^(kt).
  2. 2. For a decay constant k > 0 in dN/dt = -kN, the half-life is

    Set e^(-kT) = 1/2, then T = ln(2)/k.
  3. 3. In the logistic equation, what does K represent?

    K is the population size the environment can sustain; growth stops when P reaches K.
  4. 4. When is the logistic population growing fastest?

    The growth rate rP(1 - P/K) is largest at P = K/2.

Summary

  • dy/dt = ky has solution y = yโ‚€ e^(kt): growth for k > 0, decay for k < 0.
  • Half-life is ln 2 / |k|; it does not depend on the amount.
  • The logistic equation dP/dt = rP(1 - P/K) models growth that levels off at the carrying capacity K.
  • Euler's method can simulate any of these models.

Next: Practice Set: Applications of Derivatives