Find a course

Module 2: Solving First-Order EquationsLesson 3 of 1215 min

Separable Equations: Growth, Decay and Cooling

Solve separable equations by separating variables and integrating, then model exponential growth, radioactive decay, half-lives and Newton's law of cooling.

Step 1 of 12Learn

Separate and integrate

A first-order equation is separable if its right side factors into a function of t times a function of y:

dy/dt = g(t)·h(y)

Then you can move all the y's to one side and all the t's to the other, and integrate each side:

∫ dy / h(y) = ∫ g(t) dt

Example. Solve dy/dt = 2t·y.

  1. Separate: dy/y = 2t dt.
  2. Integrate: ln|y| = t2 + C.
  3. Solve for y: |y| = e^(t2 + C) = eC·e^(t2), so y = A·e^(t2), where A = ±eC can be any nonzero constant.
  4. Check for lost solutions: we divided by y, which assumed y ≠ 0. But y = 0 also solves the equation, so allow A = 0 too. The general solution is y = A·e^(t2).

Example with a nonlinear equation. Solve dy/dt = y2 with y(0) = 1. Separate: dy/y2 = dt. Integrate: −1/y = t + C. At t = 0, y = 1 gives C = −1. So y = 1/(1 − t).

This solution blows up at t = 1, even though the equation looks harmless. Nonlinear equations can do that: the faster y grows, the faster it grows faster. Linear equations never blow up in finite time unless their coefficients do.

Common mistakes: forgetting the constant of integration (or adding it on both sides, which is redundant), and dropping solutions like y = 0 that were lost when dividing.

Step 2 of 12Practice · Work it out

Solve dy/dt = −3t2·y with y(0) = 5. What is y(1)? Give your answer to three decimal places.

Step 3 of 12Learn

Exponential growth and decay

The most important separable equation is

dy/dt = k·y

Its solution is y = y₀·e^(kt), where y₀ = y(0). If k > 0 the quantity grows exponentially; if k < 0 it decays.

Doubling time and half-life. For growth, the time to double satisfies e^(kT) = 2, so T_double = ln 2 / k ≈ 0.693/k. For decay with rate constant λ (so dy/dt = −λy), the half-life is t½ = ln 2 / λ.

Radiocarbon dating. Carbon-14 has a half-life of about 5,730 years, so λ = 0.693/5730 ≈ 1.21 × 10-4 per year. A bone with 25% of the original C-14 has gone through two half-lives: about 11,460 years old. For 30%, solve 0.30 = e^(−λt): t = −ln(0.30)/λ ≈ 1.204/1.21 × 10-4 ≈ 9,950 years.

Continuous compounding. Money growing at 5% per year compounded continuously obeys dA/dt = 0.05A, so it doubles in 0.693/0.05 ≈ 13.9 years. That's the origin of the "rule of 70" (or 72) for doubling times.

Where it breaks. Pure exponential growth is only ever a short-term model. Bacteria in a dish, a viral video or a startup's users all eventually run out of room, food or people. Adding that limit gives the logistic equation, which you'll study in the next module.

Step 4 of 12Chart

Exponential decay: carbon-14

Carbon-14 decays with dy/dt = k·y, k ≈ −0.000121 per year, a half-life of about 5,730 years. Each half-life cuts the remaining amount in half, whatever the starting amount.

Exponential decay: carbon-14Line chart with 6 categories: 0: 100%; 5,730: 50%; 11,460: 25%; 17,190: 12.5%; 22,920: 6.25%; 28,650: 3.13%.0%20%40%60%80%100%05,73011,46017,19022,92028,650Years
Exponential decay: carbon-14
YearsCarbon-14 remaining
0100%
5,73050%
11,46025%
17,19012.5%
22,9206.25%
28,6503.13%

Step 5 of 12Try the calculator

Exponential growth and decay

Enter an initial amount, a rate constant k (negative for decay) and a time.

Amount y(t)
49.991
Fraction remaining
0.4999
Doubling time (k > 0) or half-life (k < 0)
5,728.5

Step 6 of 12Practice · Work it out

A bacterial culture grows according to dy/dt = ky and doubles every 20 minutes. Starting from 1,000 cells, how many cells are there after 2 hours?

Step 7 of 12Learn

Newton's law of cooling

A cup of coffee at 90 °C sits in a 20 °C room. Newton's law of cooling says its temperature changes at a rate proportional to the temperature difference:

dT/dt = −k(T − T_a)

where T_a is the ambient (room) temperature and k > 0. The bigger the gap, the faster the cooling.

This is separable. Let u = T − T_a. Then du/dt = −ku, so u = u₀e^(−kt), and

T(t) = T_a + (T₀ − T_a)·e^(−kt)

The temperature approaches the room temperature exponentially, never quite reaching it. The gap shrinks by the same fraction in each equal time interval.

Example. With T₀ = 90 °C, T_a = 20 °C and k = 0.05 per minute, after 10 minutes:

T = 20 + 70e^(−0.5) ≈ 20 + 42.5 = 62.5 °C.

When is it drinkable at 60 °C? Solve 60 = 20 + 70e^(−0.05t): e^(−0.05t) = 40/70, so t = ln(70/40)/0.05 ≈ 11.2 minutes.

Finding k from data. If the coffee is 70 °C after 5 minutes, then 50/70 = e^(−5k), so k = ln(1.4)/5 ≈ 0.067 per minute.

Forensics. Investigators use the same law, run backward, to estimate time of death from body temperature measurements, though real bodies cool in a more complicated way than a cup of coffee, so estimates come with wide margins.

Step 8 of 12Explore

Newton's law of cooling

The curve shows T(t) = Ta + (T0 − Ta)e^(−kt) over 60 minutes. Change the starting temperature, the room temperature and the cooling constant. Try a cold drink warming up: set T0 below Ta.

020406080100 0204060
Temperature after 10 min
62.5 °C
Time for the gap to halve
13.9 min

Step 9 of 12Note

Step 10 of 12Practice · Work it out

A metal rod at 200 °C is placed in a 25 °C room and cools by Newton's law with k = 0.1 per minute. What is its temperature after 15 minutes? Round to one decimal.

Step 11 of 12Note

Step 12 of 12Practice · Choose one

The solution of dy/dt = y2 with y(0) = 2 is y = 2/(1 − 2t). What happens as t approaches 0.5?