mastree

Differential equations: 6 exam questions solved step by step

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

Solving separable differential equations

  1. Separate: y terms on the left, x terms on the right.
  2. Integrate both sides, adding one + c.
  3. Find c from the starting condition.
  4. Use logs to find k; keep it exact until the end.
Your turn

Question 1 · Achieved

  • Dy/dx = 6x − 2/x, for x > 0,
  • And y = 4 when x = 1. Find y.
Worked example

Q1: dy/dx = 6x − 2/x

  • Integrate, keep the + c.
  • The point finds c.
  1. y = ∫ (6x − 2/x) dxintegrate
  2. = 3x² − 2 ln x + ckeep the + c
  3. 4 = 3(1)² − 2 ln 1 + cx = 1, y = 4
  4. 4 = 3 − 0 + c, so c = 1ln 1 = 0
  5. y = 3x² − 2 ln x + 1
  6. dy/dx = 6x − 2/xdifferentiate back
Your turn

Question 2 · Achieved

  • d²y/dx² = 12x² − 6. The gradient is 3
  • At x = 1, and the curve passes
  • Through (0, 2). Find y.
Worked example

Q2: d²y/dx² = 12x² − 6

  • Integrate twice.
  • Two constants, two facts.
  1. dy/dx = ∫ (12x² − 6) dxintegrate once
  2. = 4x³ − 6x + c₁
  3. 3 = 4 − 6 + c₁, so c₁ = 5x = 1, dy/dx = 3
  4. y = ∫ (4x³ − 6x + 5) dxintegrate again
  5. = x⁴ − 3x² + 5x + c₂a new constant
  6. 2 = 0 + c₂, so c₂ = 2point (0, 2)
  7. y = x⁴ − 3x² + 5x + 2
Your turn

Question 3 · Merit

  • Dy/dx = 2x/y, and y = 3 when x = 0.
  • Find y in terms of x.
Worked example

Q3: dy/dx = 2x/y

  • Separate the variables.
  • One + c, one side only.
  1. ∫ y dy = ∫ 2x dxseparate
  2. y²/2 = x² + cone constant
  3. 9/2 = 0 + c, so c = 9/2x = 0, y = 3
  4. y²/2 = x² + 9/2
  5. y² = 2x² + 9× 2, every term
  6. y = ±√(2x² + 9)
  7. y = −√(2x² + 9)gives y = −3 at x = 0
  8. y = √(2x² + 9)
Key idea

Try it: dy/dx = 2x/y

Your turn

Question 4 · Merit, in context

  • Kiwi on a predator-free island grow at
  • A rate proportional to the number, N.
  • N = 120 now, and 180 after 5 years.
  • When will there be 400 kiwi?
Worked example

Q4: the model, and k

  • Rate ∝ N: dN/dt = kN.
  • Two facts: A, then k.
  1. dN/dt = kNrate ∝ number
  2. ∫ (1/N) dN = ∫ k dtseparate
  3. ln N = kt + cN > 0
  4. N = Ae^(kt)A = e^c
  5. 120 = Ae⁰, so A = 120t = 0
  6. 180 = 120e^(5k)t = 5
  7. e^(5k) = 1.5÷ 120
  8. k = (ln 1.5)/5 ≈ 0.081093ln both sides
Worked example

Q4: when N = 400

  • Keep k exact.
  • Answer in years.
  1. N = 120e^(kt), k = (ln 1.5)/5
  2. 400 = 120e^(kt)N = 400
  3. e^(kt) = 10/3÷ 120
  4. kt = ln(10/3)ln both sides
  5. t = 5 ln(10/3) / ln 1.5k exact
  6. ≈ 14.847
  7. k ≈ 0.08 gives t ≈ 15.05k rounded too early
  8. after about 14.8 years
Your turn

Question 5 · Excellence, in context

  • A pie at 90 °C cools in a room at 18 °C,
  • By Newton's law: dT/dt = −k(T − 18).
  • After 5 minutes it is 60 °C.
  • When will it reach 30 °C?
Worked example

Q5: solve the equation

  • Separate, integrate.
  • T(0) = 90 finds A.
  1. dT/dt = −k(T − 18)Newton's law
  2. ∫ dT/(T − 18) = ∫ −k dtseparate
  3. ln(T − 18) = −kt + cT > 18
  4. T − 18 = Ae^(−kt)A = e^c
  5. 90 − 18 = Ae⁰, so A = 72t = 0
  6. T = 18 + 72e^(−kt)
Worked example

Q5: find k

  • Isolate the e first.
  • Then ln both sides.
  1. T = 18 + 72e^(−kt)
  2. 60 = 18 + 72e^(−5k)t = 5, T = 60
  3. 42 = 72e^(−5k)subtract 18
  4. e^(−5k) = 7/12÷ 72
  5. −5k = ln(7/12)ln both sides
  6. k = ln(12/7)/5 ≈ 0.10780÷ −5, flip the fraction
Worked example

Q5: when T = 30

  • Same steps again.
  • Answer in minutes.
  1. T = 18 + 72e^(−kt), k ≈ 0.10780
  2. 30 = 18 + 72e^(−kt)T = 30
  3. 12 = 72e^(−kt)subtract 18
  4. e^(−kt) = 1/6÷ 72
  5. kt = ln 6ln both sides
  6. t = 5 ln 6 / ln(12/7)k exact
  7. ≈ 16.62
  8. after about 16.6 minutes
Key idea

Try it: cooling

Your turn

Question 6 · Excellence, in context

  • A drink at 4 °C is left in a room at 22 °C.
  • DT/dt = −k(T − 22). After 10 minutes
  • It is 10 °C. Find T in terms of t,
  • And when it reaches 16 °C.
Worked example

Q6: warming, not cooling

  • T starts below the room.
  • So A is negative.
  1. dT/dt = −k(T − 22)Newton's law
  2. T < 22, so T − 22 < 0the drink warms
  3. ln|T − 22| = −kt + cseparate, integrate
  4. T − 22 = Ae^(−kt)A = ±e^c
  5. 4 − 22 = Ae⁰, so A = −18t = 0
  6. T = 22 − 18e^(−kt)
  7. T = 22 + 18e^(−kt)T(0) would be 40
Worked example

Q6: k, then T = 16

  • Isolate the e each time.
  • k exact, round at the end.
  1. T = 22 − 18e^(−kt)
  2. 10 = 22 − 18e^(−10k)t = 10, T = 10
  3. e^(−10k) = 12/18 = 2/3−22, then ÷ −18
  4. k = −ln(2/3)/10 = ln 1.5/10ln both sides
  5. 16 = 22 − 18e^(−kt)T = 16
  6. e^(−kt) = 6/18 = 1/3−22, then ÷ −18
  7. t = 10 ln 3 / ln 1.5 ≈ 27.10
  8. after about 27.1 minutes
Key idea

Try it: cooling and warming curves

Common mistakes

  • Adding the constant at the very end, after squaring.
    Add c as soon as you integrate, then find it.
  • Newton's law: T = Ae^(−kt) with no room temperature.
    The difference from the room decays: T − 18 = Ae^(−kt).
  • y² = 2x² + 9, so y = ±√(2x² + 9).
    y = 3 when x = 0 is positive, so keep only the positive root.
Summary

The method that solved all six

  • Separate, integrate, find the constant, then k.
StepHow
y′ = f(x)integrate, then find c
y″ = f(x)twice: two constants
Separatey terms left, x terms right
Constantone c, found from the start
Find kisolate e, then take ln
Answerexact k, round at the end

Challenge

1

Solve dydx = y² cos x, given that y = 12 when x = 0. Explain why the solution is defined for every x, and find the greatest and least values of y.

Hint

Separate: y⁻² dy on the left, cos x dx on the right. Find the constant straight after integrating, before you rearrange. Then think about how big and small sin x can be.

Answer

y = 12 − sin x; 2 − sin x is always at least 1, so it is never 0; greatest value 1 (at x = π2), least value 13 (at x = 3π2)

Step by step
  1. Separate the variables: ∫ y⁻² dy = ∫ cos x dx.
  2. Integrate: −1y = sin x + c, with one constant.
  3. At x = 0, y = 12: −2 = 0 + c, so c = −2. Then 1y = 2 − sin x, so y = 12 − sin x.
  4. sin x lies between −1 and 1, so 2 − sin x lies between 1 and 3. It is never 0, so y is defined everywhere.
  5. y is largest when the bottom is smallest (1, when sin x = 1) and smallest when the bottom is largest (3, when sin x = −1).
Full working
  1. ∫ y⁻² dy = ∫ cos x dxseparate
  2. −1y = sin x + cone constant
  3. −2 = sin 0 + c, so c = −2x = 0, y = 12
  4. 1y = 2 − sin x, so y = 12 − sin x× −1, then flip
  5. −1 ≤ sin x ≤ 1, so 1 ≤ 2 − sin x ≤ 3never 0
  6. greatest y = 11 = 1 at x = π2sin x = 1
  7. least y = 13 at x = 3π2sin x = −1
  8. y = 12 − sin x; greatest 1, least 13
2

Water drains from a tank through a hole in its base. The depth h cm after t minutes satisfies dhdt = −k√h. The depth is 16 cm at the start and 9 cm after 5 minutes. Find when the depth is a quarter of its starting value, and when the tank is empty. Explain how this differs from a quantity that decays with dNdt = −kN.

Hint

Separate as h^(−12) dh = −k dt. Integrating a power of h gives you √h, not a logarithm. Use the two readings to find the constant, then k.

Answer

√h = 4 − t5; a quarter (4 cm) after 10 minutes; empty after 20 minutes. Exponential decay never reaches 0, but this model does.

Step by step
  1. Separate: ∫ h^(−12) dh = ∫ −k dt, so 2√h = −kt + c.
  2. At t = 0, h = 16: 2(4) = c, so c = 8. At t = 5, h = 9: 6 = −5k + 8, so k = 25.
  3. So √h = 4 − t5. A quarter of 16 is 4, so √h = 2 and t = 10 minutes.
  4. Empty: √h = 0, so t = 20 minutes. Dropping to a quarter takes half the time of emptying, because the water slows as it gets shallower.
  5. With dNdt = −kN, N = N₀e^(−kt), which is never 0. Here the rate depends on √h, which shrinks more slowly than h, so the tank empties in a finite time.
Full working
  1. ∫ h^(−12) dh = ∫ −k dtseparate
  2. 2√h = −kt + cpower rule: h^(12) ÷ (12)
  3. 2√16 = c, so c = 8t = 0, h = 16
  4. 2√9 = −5k + 8, so k = 25t = 5, h = 9
  5. √h = 4 − t5÷ 2
  6. √4 = 4 − t5, so t = 10h = 164 = 4 cm
  7. 0 = 4 − t5, so t = 20empty
  8. A quarter after 10 minutes; empty after 20 minutes
3

A pot of soup cools by Newton's law, dTdt = −k(T − R), where T °C is its temperature after t minutes and the room temperature R °C is not known. Readings: 90 °C at t = 0, 60 °C at t = 10 and 45 °C at t = 20. Find R and k exactly, and when the soup reaches 35 °C.

Hint

Solve to get T − R = (90 − R)e^(−kt). Let q = e^(−10k). The 10 minute reading gives one equation with q, and the 20 minute reading gives one with q². Eliminate q.

Answer

R = 30 °C, k = ln 210; 35 °C after 10 ln 12 / ln 2 ≈ 35.8 minutes

Step by step
  1. Separate and integrate: ln|T − R| = −kt + c, so T − R = Ae^(−kt). At t = 0, A = 90 − R.
  2. With q = e^(−10k): 60 − R = (90 − R)q and 45 − R = (90 − R)q².
  3. Square the first and compare with the second times (90 − R): (60 − R)² = (90 − R)(45 − R).
  4. Expand: 3600 − 120R + R² = 4050 − 135R + R², so 15R = 450 and R = 30. Then q = 3060 = 12, so k = ln 210.
  5. T = 30 + 60e^(−kt). Set T = 35: e^(−kt) = 560 = 112, so t = 10 ln 12 / ln 2 ≈ 35.8 minutes.
Full working
  1. T − R = (90 − R)e^(−kt)separate, integrate, t = 0
  2. 60 − R = (90 − R)q, 45 − R = (90 − R)q²q = e^(−10k)
  3. (60 − R)² = (90 − R)(45 − R)eliminate q
  4. 3600 − 120R = 4050 − 135R, so R = 30R² cancels
  5. q = 60 − 3090 − 30 = 12, so k = ln 210e^(−10k) = 12
  6. 35 = 30 + 60e^(−kt), so e^(−kt) = 112T = 35
  7. t = ln 12 / k = 10 ln 12 / ln 2keep k exact
  8. R = 30 °C, k = ln 210; 35 °C after about 35.8 minutes

More challenge problems

Practice

Practise this

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

More in AS 91579