Differential equations: growth, decay and Newton's cooling
What this lesson covers
- A differential equation gives a rate; solving it gives the quantity itself.
- Separating variables and integrating both sides leaves one constant, found from the starting condition.
A rate, and the quantity behind it
- A differential equation gives a rate.
- Solving it gives the quantity.
- Every integration brings a constant.
dy/dx = 6x² − 4, y = 5 at x = 1
- Integrate, with + c.
- Put in the point to find c.
- dy/dx = 6x² − 4
- y = ∫ (6x² − 4) dxintegrate
- = 2x³ − 4x + ckeep the + c
- 5 = 2(1)³ − 4(1) + cx = 1, y = 5
- 5 = −2 + c, so c = 7
- y = 2x³ − 4x + 7
A second derivative: a = 4e²ᵗ
- Integrate twice.
- Two constants, in turn.
- a = 4e²ᵗat rest at the origin
- v = ∫ 4e²ᵗ dt = 2e²ᵗ + c₁integrate
- 0 = 2e⁰ + c₁ = 2 + c₁v = 0 at t = 0
- c₁ = −2
- v = 2e²ᵗ − 2
- s = ∫ (2e²ᵗ − 2) dtintegrate again
- = e²ᵗ − 2t + c₂a new constant
s = 0 at t = 0 does not mean c = 0
- E⁰ = 1, not 0.
- Always substitute.
- s = e²ᵗ − 2t + c₂
- c₂ = 0assumed, not found
- 0 = e⁰ − 2(0) + c₂s = 0 at t = 0
- 0 = 1 + c₂, so c₂ = −1e⁰ = 1
- s = e²ᵗ − 2t − 1
- s(0) = 1 − 0 − 1 = 0
- c₂ = 0 gives s(0) = 1not 0
Separating variables: dy/dx = ky
- Separate y and x.
- The c goes into the power.
- dy/dx = ky
- ∫ (1/y) dy = ∫ k dxseparate
- ln y = kx + cy > 0, no modulus
- y = e^(kx + c)undo the log
- y = Ae^(kx)A = e^c
One constant, all the way: a 2025 error
- The c goes into the power.
- Call it A and keep it.
- y = e^(kx) + cc moved
- y = e^(kx + c)
- = e^(kx) × e^cindex law
- = Ae^(kx)one constant, A
Growth: N = Ae^(kt)
- T = 0 gives A.
- A second reading gives k.
- N = Ae^(kt)
- 200 = Ae⁰ = At = 0
- 800 = 200e^(2k)t = 2
- e^(2k) = 4divide by 200
- 2k = ln 4ln both sides
- k = (ln 4)/2 = ln 2 ≈ 0.6931
Try it: growth
When is N = 6400?
- Isolate the exponential.
- Answer in context.
- 6400 = 200e^(kt)
- e^(kt) = 32divide by 200
- kt = ln 32ln both sides
- t = ln 32 / ln 2k = ln 2
- = 5 ln 2 / ln 2 = 532 = 2⁵
- after 5 hours
Graphing calculator
Newton's law of cooling
- Separate and integrate.
- T(0) = 100 gives A.
- dT/dt = −k(T − 20)
- ∫ dT/(T − 20) = ∫ −k dtseparate
- ln(T − 20) = −kt + cT > 20
- T − 20 = Ae^(−kt)A = e^c
- 100 − 20 = Ae⁰, so A = 80t = 0
- T = 20 + 80e^(−kt)
Cooling towards the room
- It falls towards 20 °C, never below.
- T(10) = 60 gives k.
- Then find when T = 40.

Try it: cooling
Finding k from T(10) = 60
- Isolate the exponential.
- Then ln both sides.
- T = 20 + 80e^(−kt)
- 60 = 20 + 80e^(−10k)t = 10, T = 60
- 40 = 80e^(−10k)subtract 20
- e^(−10k) = 1/2divide by 80
- −10k = ln(1/2) = −ln 2ln both sides
- k = ln 2 / 10 ≈ 0.0693divide by −10
When is the water at 40 °C?
- Isolate, then ln.
- Keep k exact.
- T = 20 + 80e^(−kt)
- k = ln 2 / 10
- 40 = 20 + 80e^(−kt)T = 40
- 20 = 80e^(−kt)subtract 20
- e^(−kt) = 1/4divide by 80
- −kt = ln(1/4) = −ln 4ln both sides
- t = ln 4 / k = 10 ln 4 / ln 2
- = 10(2 ln 2)/ln 2 = 20ln 4 = 2 ln 2
- after 20 minutes
Keep k exact
- Isolate, then ln both sides.
- Round only at the end.
- k = ln 2 / 10exact
- t = ln 4 / k = 20
- k ≈ 0.07rounded too early
- t = ln 4 / 0.07 ≈ 19.80drifts
Where the marks are
- Achieved: integrate, find the constant.
- Merit: separate, use starting values.
- Excellence: models in context, logs.
What to take away
- Integrate, keep one constant, and find it by substituting.
| y′ = f(x) | integrate, find c |
| y″ = f(x) | twice, two constants |
| y′ = ky | y = Ae^(kx) |
| Cooling | T − room = Ae^(−kt) |
| Find k | isolate, then ln |
| c | never assume zero |
Common mistakes
- ln y = kx + c, so y = e^(kx) + cThe c stays in the power: y = e^(kx + c) = e^c × e^(kx) = Ae^(kx), with one constant A.
- s = e²ᵗ − 2t + c₂ and s = 0 at t = 0, so c₂ = 0.e⁰ = 1, so 0 = 1 + c₂ gives c₂ = −1 and s = e²ᵗ − 2t − 1.
- k ≈ 0.07, so t = ln 4 ÷ 0.07 ≈ 19.80 minutes.Keep k = ln 2 / 10 exact and round only at the end: t = 10 ln 4 / ln 2 = 20 minutes.
- T = Ae^(−kt) and T(0) = 100, so A = 100.It cools towards the room, so the model is T − 20 = Ae^(−kt) and A = 100 − 20 = 80.
Your turn: four questions
- Question 2 has two constants.
- Question 4: a room at 15 °C.
| Given | Find | |
|---|---|---|
| 1 | dy/dx = e²ˣ, y(0) = 3 | y |
| 2 | y″ = 12x, y′(0) = 1 | y, if y(1) = 5 |
| 3 | dN/dt = kN, N(0) = 50 | N(8), if N(4) = 150 |
| 4 | room 15 °C, T(0) = 75 | T(30), if T(10) = 45 |
Show answer
1. y = (1/2)e²ˣ + c; 3 = 1/2 + c, so y = (1/2)e²ˣ + 5/2. 2. y′ = 6x² + 1, y = 2x³ + x + c₂; y(1) = 5 gives c₂ = 2, so y = 2x³ + x + 2. 3. N = 50e^(kt); e^(4k) = 3, so N(8) = 50 × 3² = 450. 4. T − 15 = 60e^(−kt); e^(−10k) = 1/2, so T(30) = 15 + 60 × 1/8 = 22.5 °C.
The answers: questions 1 and 2
- 1. y = ∫ e²ˣ dx = (1/2)e²ˣ + creverse chain rule
- 3 = (1/2)e⁰ + c, so c = 5/2x = 0, y = 3
- y = (1/2)e²ˣ + 5/2
- 2. y′ = ∫ 12x dx = 6x² + c₁integrate
- 1 = 6(0)² + c₁, so c₁ = 1y′(0) = 1
- y = ∫ (6x² + 1) dx = 2x³ + x + c₂
- 5 = 2 + 1 + c₂, so c₂ = 2y(1) = 5
- y = 2x³ + x + 2
The answers: questions 3 and 4
- 3. N = 50e^(kt)N(0) = 50
- 150 = 50e^(4k), so e^(4k) = 3N(4) = 150
- N(8) = 50e^(8k) = 50(e^(4k))²index law
- = 50 × 3² = 450
- 4. T − 15 = 60e^(−kt)T(0) = 75, so A = 60
- 30 = 60e^(−10k), so e^(−10k) = 1/2
- T(30) = 15 + 60e^(−30k)
- = 15 + 60(1/2)³ = 15 + 7.5e^(−30k) = (1/2)³
- = 22.5 °C
Sample question: Achieved
Solve the differential equation dydx = 2e^(2x) + 4x, given that y = 5 when x = 0.
Hint
Integrate both terms and keep + c. When you substitute x = 0, remember e⁰ = 1.
Answer
y = e^(2x) + 2x² + 4
Step by step
- dydx gives the rate, so integrating it gives y itself. Write + c straight away.
- 2e^(2x): divide by 2, the derivative of the inside, so it becomes e^(2x).
- 4x: raise the power and divide, so it becomes 2x².
- So y = e^(2x) + 2x² + c.
- Use y = 5 when x = 0: 5 = e⁰ + 0 + c. Since e⁰ = 1, 5 = 1 + c, so c = 4.
- Classic mistake: taking e⁰ as 0 and getting c = 5.
- So y = e^(2x) + 2x² + 4.
- Check: at x = 0, y = 1 + 0 + 4 = 5. Differentiating gives 2e^(2x) + 4x. Both match.
Full working
- y = ∫ (2e^(2x) + 4x) dx = e^(2x) + 2x² + c÷ 2 for e^(2x)
- 5 = e⁰ + 0 + c = 1 + cx = 0, y = 5
- c = 4
- y = e^(2x) + 2x² + 4
Sample questions: Merit
A bacteria culture grows so that dNdt = kN, where t is in hours. At t = 0 there are 500 bacteria, and at t = 3 there are 1500. Find k exactly, and find when there are 12 000 bacteria.
Hint
dNdt = kN has solution N = Ae^(kt). Use t = 0 for A, t = 3 for k, then isolate the exponential and take ln.
Answer
k = ln 33; 12 000 bacteria after about 8.68 hours
Step by step
- The rate is proportional to N, so separate the variables: ∫ (1N) dN = ∫ k dt gives ln N = kt + c, so N = Ae^(kt).
- At t = 0, N = 500: 500 = Ae⁰ = A. So N = 500e^(kt).
- At t = 3, N = 1500: 1500 = 500e^(3k), so e^(3k) = 3.
- Take ln of both sides: 3k = ln 3, so k = ln 33 ≈ 0.366. Keep it exact for now.
- Now N = 12 000: 12 000 = 500e^(kt), so e^(kt) = 24.
- ln both sides: kt = ln 24, so t = ln 24k = 3 ln 24ln 3.
- On a calculator, t ≈ 8.68 hours.
- Classic mistake: rounding k to 0.37 too early. Then t = ln 240.37 ≈ 8.59, which drifts away from the true answer.
- Check: 500e^(0.366 × 8.68) ≈ 500 × 24 = 12 000.
Full working
- N = Ae^(kt)separate and integrate
- A = 500t = 0
- 1500 = 500e^(3k), so e^(3k) = 3t = 3
- k = ln 33ln both sides
- e^(kt) = 24, so t = 3 ln 24ln 3N = 12 000
- k = ln 33; t ≈ 8.68 hours
A cup of tea at 90 °C is left in a room at 18 °C. It cools by Newton's law, dTdt = −k(T − 18), with t in minutes. After 5 minutes it is at 60 °C. Find k exactly, and the temperature after 15 minutes.
Hint
The solution is T − 18 = Ae^(−kt). Use t = 0 to find A and t = 5 to find e^(−5k). Then notice that e^(−15k) = (e^(−5k))³.
Answer
k = (15)ln(127) ≈ 0.108; about 32.3 °C after 15 minutes
Step by step
- Separate the variables: ∫ dTT − 18 = ∫ −k dt, so ln(T − 18) = −kt + c, which gives T − 18 = Ae^(−kt).
- At t = 0, T = 90: 90 − 18 = A, so A = 72. So T = 18 + 72e^(−kt).
- At t = 5, T = 60: 60 − 18 = 72e^(−5k), so e^(−5k) = 4272 = 712.
- ln both sides: −5k = ln(712), so k = −(15)ln(712) = (15)ln(127) ≈ 0.108.
- Classic mistake: using T = Ae^(−kt) with no 18. That models cooling to 0 °C, not to the room.
- After 15 minutes: e^(−15k) = (e^(−5k))³ = (712)³ = 3431728.
- T(15) = 18 + 72 × 3431728 = 18 + 14.29 = 32.29, so about 32.3 °C.
- Check it makes sense: 32.3 °C is above the room's 18 °C and below 60 °C, and the drop is slowing, as cooling should.
Full working
- T − 18 = Ae^(−kt)separate and integrate
- A = 90 − 18 = 72t = 0
- 42 = 72e^(−5k), so e^(−5k) = 712t = 5
- k = (15)ln(127) ≈ 0.108ln both sides
- T(15) = 18 + 72(712)³e^(−15k) = (e^(−5k))³
- k = (15)ln(127); T(15) ≈ 32.3 °C
Sample questions: Excellence
A kererū population in a reserve grows at a rate proportional to its size. There were 120 birds at the start of 2020 and 150 at the start of 2024. Form and solve a differential equation for the population P, t years after the start of 2020. The reserve can support about 300 birds. In which year does the model reach 300, and how far should this prediction be trusted?
Hint
Rate proportional to size means dPdt = kP. Use the 2020 and 2024 counts to find A and k, then solve P = 300 with logs.
Answer
dPdt = kP, so P = 120e^(kt) with k = ln 1.254 ≈ 0.0558. P = 300 after about 16.4 years, during 2036. Treat this with caution: near the reserve's limit, growth will slow, so the real date is likely later.
Step by step
- Rate proportional to size means dPdt = kP, where k is a constant to find.
- Separate and integrate: ∫ (1P) dP = ∫ k dt, so ln P = kt + c and P = Ae^(kt).
- Start of 2020 is t = 0, so A = 120. So P = 120e^(kt).
- Start of 2024 is t = 4: 150 = 120e^(4k), so e^(4k) = 1.25 and k = ln 1.254 ≈ 0.0558.
- Now P = 300: 300 = 120e^(kt), so e^(kt) = 2.5 and t = ln 2.5k = 4 ln 2.5ln 1.25.
- On a calculator, t ≈ 16.4 years. Counting from the start of 2020, that is during 2036.
- Classic mistake: adding 16.4 to 2024 instead of 2020. t was measured from 2020.
- Check: 120e^(0.0558 × 16.4) ≈ 120 × 2.5 = 300.
- How far to trust it: the model assumes growth keeps speeding up for ever. A reserve that can support only 300 birds will run short of food and space as numbers get close to 300.
- So growth will slow down near 300, and the population will probably reach it later than 2036, or level off just below it.
- The model is also built on only two counts, so a single bad year, such as a harsh winter or more predators, could change k a lot.
- Conclusion: the model is reasonable for the next few years, but the 2036 date is likely too early.
Full working
- dPdt = kP, so P = Ae^(kt)separate and integrate
- A = 120t = 0 at the start of 2020
- e^(4k) = 1.25, so k = ln 1.254 ≈ 0.0558t = 4
- e^(kt) = 2.5, so t = 4 ln 2.5ln 1.25 ≈ 16.4P = 300
- 2020 + 16.4 = 2036.4during 2036
- growth must slow near the limit of 300limitation
- P = 120e^(0.0558t); reaches 300 during 2036, probably later in reality
Solve dydx = 6x²y, given that y = 2 when x = 0. Hence find the exact value of x for which y = 2e⁸, and explain why y can never be zero or negative.
Hint
Separate the variables: divide both sides by y and integrate each side. Put the constant into the power, then find it from the condition.
Answer
y = 2e^(2x³); x = ∛4; y is 2 times a power of e, and powers of e are always positive
Step by step
- The right side has both x and y, so we cannot just integrate. Separate them: (1y) dy = 6x² dx.
- Integrate both sides: ln y = 2x³ + c. Only one constant is needed, because constants on both sides combine.
- Undo the log: y = e^(2x³ + c) = e^c × e^(2x³). Call e^c = A, so y = Ae^(2x³).
- Classic mistake: writing y = e^(2x³) + c. The constant is inside the power, so it multiplies, not adds.
- Use y = 2 when x = 0: 2 = Ae⁰ = A. So y = 2e^(2x³).
- Hence: 2e^(2x³) = 2e⁸, so e^(2x³) = e⁸ and 2x³ = 8.
- x³ = 4, so x = ∛4 ≈ 1.587.
- Why y is never zero or negative: y = 2 × e^(2x³), and e raised to any power is always positive. Twice a positive number is positive.
- This also fits the equation: if y is positive, dydx = 6x²y is never negative, so y never decreases towards zero.
- Check: differentiate y = 2e^(2x³) with the chain rule: 2e^(2x³) × 6x² = 6x² × y. It matches.
Full working
- (1y) dy = 6x² dxseparate the variables
- ln y = 2x³ + cintegrate both sides
- y = Ae^(2x³)A = e^c
- A = 2x = 0, y = 2
- 2x³ = 8, so x³ = 4y = 2e⁸
- e^(2x³) > 0 for every x, so y > 0why y is never zero or negative
- y = 2e^(2x³); x = ∛4
Practise this
Report a mistake
More in AS 91579
The integration toolkit: surds, e, trig and the chain rule10 min
Integrating fractions: when it is ln, and when it is not9 min
The constant of integration: find c, never assume it9 min
Definite integrals and area, including between two curves11 min
Trapezium and Simpson's rules: numerical areas10 min
Differential equations: growth, decay and Newton's cooling11 min
Integration toolkit: 7 exam questions solved step by step10 min
Integrating fractions: 7 exam questions solved step by step10 min
Constant of integration: 7 exam questions solved step by step11 min
Definite integrals: 7 exam questions solved step by step11 min
Numerical integration: 6 exam questions solved step by step11 min
Differential equations: 6 exam questions solved step by step11 minIs your child on track?
Take the free placement test