TExcelTAD
Home › Calculus in Depth › Exponential Growth and Decay

Exponential Growth and Decay

When a quantity changes at a rate proportional to its own size, it grows or decays exponentially. This lesson proves that y=y0ekty = y_0 e^{kt} is the only solution of dydt=ky\frac{dy}{dt} = ky, then applies it to populations, radioactive decay, Newton's law of cooling and continuously compounded interest, which turns out to be a limit.

For a first look at exponential models see Exponential and Logarithmic Functions and What a Differential Equation Is.

The law of natural growth

The law of natural growth (k>0k > 0) or decay (k<0k < 0) is the differential equation

dydt=k⋅y\frac{dy}{dt} = k \cdot y

The relative growth rate (dy/dt)/y(dy/dt)/y is the constant kk. A population of bacteria with unlimited food, the amount of an undecayed isotope, and money earning continuous interest all follow it.

Theorem: the only solutions are y0ekty_0 e^{kt}

Theorem. The solutions of dydt=ky\frac{dy}{dt} = ky on an interval are exactly the functions y(t)=C⋅ekty(t) = C \cdot e^{kt}, and C=y(0)C = y(0).

Proof. First, y=Cekty = Ce^{kt} works: by the chain rule, y′=Ckekt=kyy' = Cke^{kt} = ky. Now let yy be any solution and consider u(t)=y(t)⋅e−ktu(t) = y(t) \cdot e^{-kt}. By the product rule,

u′(t)=y′(t)e−kt−k⋅y(t)e−kt=(ky−ky)e−kt=0u'(t) = y'(t)e^{-kt} - k \cdot y(t)e^{-kt} = (ky - ky)e^{-kt} = 0

A function with zero derivative on an interval is constant (a consequence of the Mean Value Theorem, proved in The Mean Value Theorem). So u(t)=Cu(t) = C, i.e. y=Cekty = Ce^{kt}. Setting t=0t = 0 gives C=y(0)C = y(0). ∎

The trick of multiplying by e−kte^{-kt} is the integrating factor idea that solves all first-order linear equations later in Linear Equations.

Population growth

Given two measurements, fit kk with logarithms: if y(t1)=y1y(t_1) = y_1 and y(0)=y0y(0) = y_0, then k=ln⁡(y1/y0)/t1k = \ln(y_1/y_0)/t_1. The doubling time is T2=ln⁡2/kT_2 = \ln 2 / k.

python · try it yourself
import math

y0, y5 = 1200, 3400            # colony size at hour 0 and hour 5
k = math.log(y5 / y0) / 5
T2 = math.log(2) / k
print(f"k = {k:.5f} per hour, doubling time = {T2:.3f} h")
for t in [0, 5, 10, 24]:
    print(f"t = {t:2d} h: y = {y0 * math.exp(k * t):12.1f}")
t_million = math.log(1_000_000 / y0) / k
print(f"reaches one million at t = {t_million:.2f} h")
k = 0.20829 per hour, doubling time = 3.328 h
t =  0 h: y =       1200.0
t =  5 h: y =       3400.0
t = 10 h: y =       9633.3
t = 24 h: y =     177914.0
reaches one million at t = 32.29 h

Real populations eventually feel limits of food and space, which the logistic model in Models for Population Growth captures. Exponential growth is the early-time approximation.

Radioactive decay and half-life

For decay, m(t)=m0e−rtm(t) = m_0 e^{-rt} with r>0r > 0. The half-life hh satisfies e−rh=12e^{-rh} = \frac{1}{2}, so r=ln⁡2/hr = \ln 2 / h and

m(t)=m0⋅2−t/hm(t) = m_0 \cdot 2^{-t/h}

Carbon dating inverts this: measure the fraction ff of carbon-14 remaining, then t=−h⋅log⁡2f=h⋅ln⁡(1/f)/ln⁡2t = -h \cdot \log_2 f = h \cdot \ln(1/f)/\ln 2, with h≈5730h \approx 5730 years.

Newton's law of cooling

An object at temperature T(t)T(t) in a room at constant temperature TsT_s cools at a rate proportional to the temperature difference:

dTdt=k(T−Ts)(k<0)\frac{dT}{dt} = k(T - T_s) \qquad (k < 0)

Substitute y=T−Tsy = T - T_s. Then dydt=dTdt=ky\frac{dy}{dt} = \frac{dT}{dt} = ky, so by the theorem y=y(0)ekty = y(0)e^{kt} and

T(t)=Ts+(T(0)−Ts)⋅ektT(t) = T_s + (T(0) - T_s) \cdot e^{kt}
python · try it yourself
import sympy as sp

t, k = sp.symbols('t k', real=True)
Ts, T0 = 21, 90                     # room 21 °C, tea poured at 90 °C
T = Ts + (T0 - Ts) * sp.exp(k * t)
k_val = sp.solve(sp.Eq(T.subs(t, 10), 60), k)[0]   # 60 °C after 10 min
print("k = ln(13/23)/10 ≈", round(float(k_val), 6), " check:", sp.simplify(k_val - sp.log(sp.Rational(13, 23)) / 10) == 0)
T_fit = T.subs(k, k_val)
print("T(20) ≈", round(float(T_fit.subs(t, 20)), 3))
t50 = sp.solve(sp.Eq(T_fit, 50), t)[0]
print("drinkable (50 °C) at t ≈", round(float(t50), 3), "min")
# check the ODE symbolically
print("ODE holds:", sp.simplify(sp.diff(T, t) - k * (T - Ts)) == 0)
k = ln(13/23)/10 ≈ -0.057054  check: True
T(20) ≈ 43.043
drinkable (50 °C) at t ≈ 15.193 min
ODE holds: True

Continuous compounding as a limit

Invest A0A_0 at annual rate rr, compounded nn times a year. After tt years you have A0(1+r/n)ntA_0(1 + r/n)^{nt}. As n→∞n \to \infty, this tends to A0ertA_0 e^{rt}, because

lim⁡n→∞(1+rn)n=er\lim_{n \to \infty} \left(1 + \frac{r}{n}\right)^n = e^r

Proof sketch. Take logs: n⋅ln⁡(1+r/n)=r⋅ln⁡(1+x)/xn \cdot \ln(1 + r/n) = r \cdot \ln(1 + x)/x with x=r/n→0x = r/n \to 0. Since ln⁡(1+x)/x\ln(1 + x)/x is the difference quotient of ln⁡\ln at 1, it tends to ln⁡′(1)=1\ln'(1) = 1. So the log tends to rr, and by continuity of exp⁡\exp the expression tends to ere^r. ∎

And A(t)=A0ertA(t) = A_0 e^{rt} solves dAdt=rA\frac{dA}{dt} = rA: continuous compounding is exactly natural growth.

python · try it yourself
import math

A0, r, t = 1000, 0.05, 10
for n in [1, 4, 12, 365, 10**6]:
    print(f"n = {n:>7}: {A0 * (1 + r / n) ** (n * t):.4f}")
print(f"continuous: {A0 * math.exp(r * t):.4f}")
n =       1: 1628.8946
n =       4: 1643.6195
n =      12: 1647.0095
n =     365: 1648.6648
n = 1000000: 1648.7212
continuous: 1648.7213

In software

  • Exponential backoff in network retries waits base⋅2n\text{base} \cdot 2^n: discrete exponential growth with doubling "time" one retry.
  • Exponential moving averages (ema=α⋅x+(1−α)⋅ema\text{ema} = \alpha \cdot x + (1 - \alpha) \cdot \text{ema}) forget old data by a factor (1−α)(1 - \alpha) per step, a discrete decay with half-life ln⁡2/−ln⁡(1−α)\ln 2 / {-\ln(1 - \alpha)} samples. Adam's moment estimates in ML are EMAs.
  • Learning-rate schedules often use lr0⋅e−k⋅epoch\text{lr}_0 \cdot e^{-k \cdot \text{epoch}}.
  • Game timers and smoothing: frame-rate independent damping uses value *= exp(−k·dt) rather than value *= 0.9, precisely so the decay follows dydt=−ky\frac{dy}{dt} = -ky regardless of frame time.
  • Finance code computes continuous-compounding discount factors e−rte^{-rt} everywhere.

Note: The rule of 70: doubling time≈70/(growth in percent)\text{doubling time} \approx 70 / (\text{growth in percent}), because ln⁡2≈0.693\ln 2 \approx 0.693.

Exercises

Exercise 1: Half-life

An isotope has a half-life of 8 days. What fraction remains after 20 days?

Answer

2−2.5≈0.17682^{-2.5} \approx 0.1768, about 17.7 %.

Solution
m(t)/m0=2−t/h=2−20/8=2−2.5=142≈0.1768m(t)/m_0 = 2^{-t/h} = 2^{-20/8} = 2^{-2.5} = \frac{1}{4\sqrt{2}} \approx 0.1768

Exercise 2: Fit a growth rate

A population grows from 500 to 800 in 3 years under natural growth. Find kk and the doubling time.

Answer

k=ln⁡(1.6)/3≈0.1567k = \ln(1.6)/3 \approx 0.1567 per year; doubling time ≈4.42\approx 4.42 years.

Solution
800=500e3k  ⟹  k=ln⁡(1.6)/3≈0.470004/3≈0.156668T2=ln⁡2/k≈0.693147/0.156668≈4.424 years\begin{aligned} &800 = 500e^{3k} \implies k = \ln(1.6)/3 \approx 0.470004/3 \approx 0.156668 \\ &T_2 = \ln 2 / k \approx 0.693147 / 0.156668 \approx 4.424\ \text{years} \end{aligned}

Exercise 3: Cooling

A metal part at 200 °C is placed in 25 °C air and is at 125 °C after 4 minutes. When does it reach 50 °C?

Answer

About 13.9 minutes.

Solution
T−25=175ekt;100=175e4k  ⟹  k=ln⁡(4/7)/450−25=175ekt  ⟹  ekt=1/7  ⟹  t=ln⁡(1/7)/k=4⋅ln⁡7/ln⁡(7/4)\begin{aligned} &T - 25 = 175e^{kt}; \quad 100 = 175e^{4k} \implies k = \ln(4/7)/4 \\ &50 - 25 = 175e^{kt} \implies e^{kt} = 1/7 \implies t = \ln(1/7)/k = 4 \cdot \ln 7 / \ln(7/4) \end{aligned}
python · try it yourself
import math
print(round(4 * math.log(7) / math.log(7 / 4), 4))
13.9089

Exercise 4: Uniqueness with a constant term

Show that every solution of dydt=ky+b\frac{dy}{dt} = ky + b (k≠0k \ne 0) is y=Cekt−b/ky = Ce^{kt} - b/k.

Answer

Shift by the equilibrium −b/k-b/k: u=y+b/ku = y + b/k satisfies dudt=ku\frac{du}{dt} = ku, so u=Cektu = Ce^{kt}.

Solution
u=y+b/k  ⟹  u′=y′=ky+b=k(y+b/k)=kuby the theorem u=Cekt, so y=Cekt−b/k\begin{aligned} &u = y + b/k \implies u' = y' = ky + b = k(y + b/k) = ku \\ &\text{by the theorem } u = Ce^{kt}, \text{ so } y = Ce^{kt} - b/k \end{aligned}

Newton's law of cooling is the case b=−kTsb = -kT_s.

Test yourself

Which function solves dydt=−0.3y\frac{dy}{dt} = -0.3y with y(0)=7y(0) = 7?

  1. 7e0.3t7e^{0.3t}
  2. 7−0.3t7 - 0.3t
  3. 7e−0.3t7e^{-0.3t}
  4. e−0.3t+6e^{-0.3t} + 6

A quantity's doubling time is 6 hours. What is kk?

  1. 6/ln⁡26 / \ln 2
  2. ln⁡2/6\ln 2 / 6
  3. 2/62 / 6
  4. ln⁡6/2\ln 6 / 2

In the uniqueness proof, why is u(t)=y(t)e−ktu(t) = y(t)e^{-kt} constant?

  1. Because yy is positive
  2. Because e−kte^{-kt} is decreasing
  3. Because u′(t)=0u'(t) = 0 on an interval
  4. Because u(0)=y(0)u(0) = y(0)