Vertex Learn

Differential equations: growth, decay and Newton's cooling

WorksheetShare to Classroom

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.
Key idea

A rate, and the quantity behind it

  • A differential equation gives a rate.
  • Solving it gives the quantity.
  • Every integration brings a constant.
Worked example

dy/dx = 6x² − 4, y = 5 at x = 1

  • Integrate, with + c.
  • Put in the point to find c.
  1. dy/dx = 6x² − 4
  2. y = ∫ (6x² − 4) dxintegrate
  3. = 2x³ − 4x + ckeep the + c
  4. 5 = 2(1)³ − 4(1) + cx = 1, y = 5
  5. 5 = −2 + c, so c = 7
  6. y = 2x³ − 4x + 7
Worked example

A second derivative: a = 4e²ᵗ

  • Integrate twice.
  • Two constants, in turn.
  1. a = 4e²ᵗat rest at the origin
  2. v = ∫ 4e²ᵗ dt = 2e²ᵗ + c₁integrate
  3. 0 = 2e⁰ + c₁ = 2 + c₁v = 0 at t = 0
  4. c₁ = −2
  5. v = 2e²ᵗ − 2
  6. s = ∫ (2e²ᵗ − 2) dtintegrate again
  7. = e²ᵗ − 2t + c₂a new constant
Worked example

s = 0 at t = 0 does not mean c = 0

  • E⁰ = 1, not 0.
  • Always substitute.
  1. s = e²ᵗ − 2t + c₂
  2. c₂ = 0assumed, not found
  3. 0 = e⁰ − 2(0) + c₂s = 0 at t = 0
  4. 0 = 1 + c₂, so c₂ = −1e⁰ = 1
  5. s = e²ᵗ − 2t − 1
  6. s(0) = 1 − 0 − 1 = 0
  7. c₂ = 0 gives s(0) = 1not 0
Worked example

Separating variables: dy/dx = ky

  • Separate y and x.
  • The c goes into the power.
  1. dy/dx = ky
  2. ∫ (1/y) dy = ∫ k dxseparate
  3. ln y = kx + cy > 0, no modulus
  4. y = e^(kx + c)undo the log
  5. y = Ae^(kx)A = e^c
Worked example

One constant, all the way: a 2025 error

  • The c goes into the power.
  • Call it A and keep it.
  1. y = e^(kx) + cc moved
  2. y = e^(kx + c)
  3. = e^(kx) × e^cindex law
  4. = Ae^(kx)one constant, A
Worked example

Growth: N = Ae^(kt)

  • T = 0 gives A.
  • A second reading gives k.
  1. N = Ae^(kt)
  2. 200 = Ae⁰ = At = 0
  3. 800 = 200e^(2k)t = 2
  4. e^(2k) = 4divide by 200
  5. 2k = ln 4ln both sides
  6. k = (ln 4)/2 = ln 2 ≈ 0.6931
Key idea

Try it: growth

Worked example

When is N = 6400?

  • Isolate the exponential.
  • Answer in context.
  1. 6400 = 200e^(kt)
  2. e^(kt) = 32divide by 200
  3. kt = ln 32ln both sides
  4. t = ln 32 / ln 2k = ln 2
  5. = 5 ln 2 / ln 2 = 532 = 2⁵
  6. after 5 hours
Key idea

Graphing calculator

Worked example

Newton's law of cooling

  • Separate and integrate.
  • T(0) = 100 gives A.
  1. dT/dt = −k(T − 20)
  2. ∫ dT/(T − 20) = ∫ −k dtseparate
  3. ln(T − 20) = −kt + cT > 20
  4. T − 20 = Ae^(−kt)A = e^c
  5. 100 − 20 = Ae⁰, so A = 80t = 0
  6. T = 20 + 80e^(−kt)
Worked example

Cooling towards the room

  • It falls towards 20 °C, never below.
  • T(10) = 60 gives k.
  • Then find when T = 40.
Cooling towards the room
Key idea

Try it: cooling

Worked example

Finding k from T(10) = 60

  • Isolate the exponential.
  • Then ln both sides.
  1. T = 20 + 80e^(−kt)
  2. 60 = 20 + 80e^(−10k)t = 10, T = 60
  3. 40 = 80e^(−10k)subtract 20
  4. e^(−10k) = 1/2divide by 80
  5. −10k = ln(1/2) = −ln 2ln both sides
  6. k = ln 2 / 10 ≈ 0.0693divide by −10
Worked example

When is the water at 40 °C?

  • Isolate, then ln.
  • Keep k exact.
  1. T = 20 + 80e^(−kt)
  2. k = ln 2 / 10
  3. 40 = 20 + 80e^(−kt)T = 40
  4. 20 = 80e^(−kt)subtract 20
  5. e^(−kt) = 1/4divide by 80
  6. −kt = ln(1/4) = −ln 4ln both sides
  7. t = ln 4 / k = 10 ln 4 / ln 2
  8. = 10(2 ln 2)/ln 2 = 20ln 4 = 2 ln 2
  9. after 20 minutes
Worked example

Keep k exact

  • Isolate, then ln both sides.
  • Round only at the end.
  1. k = ln 2 / 10exact
  2. t = ln 4 / k = 20
  3. k ≈ 0.07rounded too early
  4. t = ln 4 / 0.07 ≈ 19.80drifts
Key idea

Where the marks are

  • Achieved: integrate, find the constant.
  • Merit: separate, use starting values.
  • Excellence: models in context, logs.
Summary

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′ = kyy = Ae^(kx)
CoolingT − room = Ae^(−kt)
Find kisolate, then ln
cnever assume zero

Common mistakes

  • ln y = kx + c, so y = e^(kx) + c
    The 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

Your turn: four questions

  • Question 2 has two constants.
  • Question 4: a room at 15 °C.
GivenFind
1dy/dx = e²ˣ, y(0) = 3y
2y″ = 12x, y′(0) = 1y, if y(1) = 5
3dN/dt = kN, N(0) = 50N(8), if N(4) = 150
4room 15 °C, T(0) = 75T(30), if T(10) = 45
1
2
3
4
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.

Worked example

The answers: questions 1 and 2

  1. 1. y = ∫ e²ˣ dx = (1/2)e²ˣ + creverse chain rule
  2. 3 = (1/2)e⁰ + c, so c = 5/2x = 0, y = 3
  3. y = (1/2)e²ˣ + 5/2
  4. 2. y′ = ∫ 12x dx = 6x² + c₁integrate
  5. 1 = 6(0)² + c₁, so c₁ = 1y′(0) = 1
  6. y = ∫ (6x² + 1) dx = 2x³ + x + c₂
  7. 5 = 2 + 1 + c₂, so c₂ = 2y(1) = 5
  8. y = 2x³ + x + 2
Worked example

The answers: questions 3 and 4

  1. 3. N = 50e^(kt)N(0) = 50
  2. 150 = 50e^(4k), so e^(4k) = 3N(4) = 150
  3. N(8) = 50e^(8k) = 50(e^(4k))²index law
  4. = 50 × 3² = 450
  5. 4. T − 15 = 60e^(−kt)T(0) = 75, so A = 60
  6. 30 = 60e^(−10k), so e^(−10k) = 1/2
  7. T(30) = 15 + 60e^(−30k)
  8. = 15 + 60(1/2)³ = 15 + 7.5e^(−30k) = (1/2)³
  9. = 22.5 °C
Your turn

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
  1. dydx gives the rate, so integrating it gives y itself. Write + c straight away.
  2. 2e^(2x): divide by 2, the derivative of the inside, so it becomes e^(2x).
  3. 4x: raise the power and divide, so it becomes 2x².
  4. So y = e^(2x) + 2x² + c.
  5. Use y = 5 when x = 0: 5 = e⁰ + 0 + c. Since e⁰ = 1, 5 = 1 + c, so c = 4.
  6. Classic mistake: taking e⁰ as 0 and getting c = 5.
  7. So y = e^(2x) + 2x² + 4.
  8. Check: at x = 0, y = 1 + 0 + 4 = 5. Differentiating gives 2e^(2x) + 4x. Both match.
Full working
  1. y = ∫ (2e^(2x) + 4x) dx = e^(2x) + 2x² + c÷ 2 for e^(2x)
  2. 5 = e⁰ + 0 + c = 1 + cx = 0, y = 5
  3. c = 4
  4. y = e^(2x) + 2x² + 4
Your turn

Sample questions: Merit

1

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
  1. The rate is proportional to N, so separate the variables: ∫ (1N) dN = ∫ k dt gives ln N = kt + c, so N = Ae^(kt).
  2. At t = 0, N = 500: 500 = Ae⁰ = A. So N = 500e^(kt).
  3. At t = 3, N = 1500: 1500 = 500e^(3k), so e^(3k) = 3.
  4. Take ln of both sides: 3k = ln 3, so k = ln 33 ≈ 0.366. Keep it exact for now.
  5. Now N = 12 000: 12 000 = 500e^(kt), so e^(kt) = 24.
  6. ln both sides: kt = ln 24, so t = ln 24k = 3 ln 24ln 3.
  7. On a calculator, t ≈ 8.68 hours.
  8. Classic mistake: rounding k to 0.37 too early. Then t = ln 240.37 ≈ 8.59, which drifts away from the true answer.
  9. Check: 500e^(0.366 × 8.68) ≈ 500 × 24 = 12 000.
Full working
  1. N = Ae^(kt)separate and integrate
  2. A = 500t = 0
  3. 1500 = 500e^(3k), so e^(3k) = 3t = 3
  4. k = ln 33ln both sides
  5. e^(kt) = 24, so t = 3 ln 24ln 3N = 12 000
  6. k = ln 33; t ≈ 8.68 hours
2

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
  1. Separate the variables: ∫ dTT − 18 = ∫ −k dt, so ln(T − 18) = −kt + c, which gives T − 18 = Ae^(−kt).
  2. At t = 0, T = 90: 90 − 18 = A, so A = 72. So T = 18 + 72e^(−kt).
  3. At t = 5, T = 60: 60 − 18 = 72e^(−5k), so e^(−5k) = 4272 = 712.
  4. ln both sides: −5k = ln(712), so k = −(15)ln(712) = (15)ln(127) ≈ 0.108.
  5. Classic mistake: using T = Ae^(−kt) with no 18. That models cooling to 0 °C, not to the room.
  6. After 15 minutes: e^(−15k) = (e^(−5k))³ = (712)³ = 3431728.
  7. T(15) = 18 + 72 × 3431728 = 18 + 14.29 = 32.29, so about 32.3 °C.
  8. 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
  1. T − 18 = Ae^(−kt)separate and integrate
  2. A = 90 − 18 = 72t = 0
  3. 42 = 72e^(−5k), so e^(−5k) = 712t = 5
  4. k = (15)ln(127) ≈ 0.108ln both sides
  5. T(15) = 18 + 72(712)³e^(−15k) = (e^(−5k))³
  6. k = (15)ln(127); T(15) ≈ 32.3 °C
Your turn

Sample questions: Excellence

1

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
  1. Rate proportional to size means dPdt = kP, where k is a constant to find.
  2. Separate and integrate: ∫ (1P) dP = ∫ k dt, so ln P = kt + c and P = Ae^(kt).
  3. Start of 2020 is t = 0, so A = 120. So P = 120e^(kt).
  4. Start of 2024 is t = 4: 150 = 120e^(4k), so e^(4k) = 1.25 and k = ln 1.254 ≈ 0.0558.
  5. Now P = 300: 300 = 120e^(kt), so e^(kt) = 2.5 and t = ln 2.5k = 4 ln 2.5ln 1.25.
  6. On a calculator, t ≈ 16.4 years. Counting from the start of 2020, that is during 2036.
  7. Classic mistake: adding 16.4 to 2024 instead of 2020. t was measured from 2020.
  8. Check: 120e^(0.0558 × 16.4) ≈ 120 × 2.5 = 300.
  9. 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.
  10. So growth will slow down near 300, and the population will probably reach it later than 2036, or level off just below it.
  11. 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.
  12. Conclusion: the model is reasonable for the next few years, but the 2036 date is likely too early.
Full working
  1. dPdt = kP, so P = Ae^(kt)separate and integrate
  2. A = 120t = 0 at the start of 2020
  3. e^(4k) = 1.25, so k = ln 1.254 ≈ 0.0558t = 4
  4. e^(kt) = 2.5, so t = 4 ln 2.5ln 1.25 ≈ 16.4P = 300
  5. 2020 + 16.4 = 2036.4during 2036
  6. growth must slow near the limit of 300limitation
  7. P = 120e^(0.0558t); reaches 300 during 2036, probably later in reality
2

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
  1. The right side has both x and y, so we cannot just integrate. Separate them: (1y) dy = 6x² dx.
  2. Integrate both sides: ln y = 2x³ + c. Only one constant is needed, because constants on both sides combine.
  3. Undo the log: y = e^(2x³ + c) = e^c × e^(2x³). Call e^c = A, so y = Ae^(2x³).
  4. Classic mistake: writing y = e^(2x³) + c. The constant is inside the power, so it multiplies, not adds.
  5. Use y = 2 when x = 0: 2 = Ae⁰ = A. So y = 2e^(2x³).
  6. Hence: 2e^(2x³) = 2e⁸, so e^(2x³) = e⁸ and 2x³ = 8.
  7. x³ = 4, so x = ∛4 ≈ 1.587.
  8. 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.
  9. This also fits the equation: if y is positive, dydx = 6x²y is never negative, so y never decreases towards zero.
  10. Check: differentiate y = 2e^(2x³) with the chain rule: 2e^(2x³) × 6x² = 6x² × y. It matches.
Full working
  1. (1y) dy = 6x² dxseparate the variables
  2. ln y = 2x³ + cintegrate both sides
  3. y = Ae^(2x³)A = e^c
  4. A = 2x = 0, y = 2
  5. 2x³ = 8, so x³ = 4y = 2e⁸
  6. e^(2x³) > 0 for every x, so y > 0why y is never zero or negative
  7. y = 2e^(2x³); x = ∛4
Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91579

Is your child on track?

Take the free placement test