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.
Solving separable differential equations
- Separate: y terms on the left, x terms on the right.
- Integrate both sides, adding one + c.
- Find c from the starting condition.
- Use logs to find k; keep it exact until the end.
Question 1 · Achieved
- Dy/dx = 6x − 2/x, for x > 0,
- And y = 4 when x = 1. Find y.
Q1: dy/dx = 6x − 2/x
- Integrate, keep the + c.
- The point finds c.
- y = ∫ (6x − 2/x) dxintegrate
- = 3x² − 2 ln x + ckeep the + c
- 4 = 3(1)² − 2 ln 1 + cx = 1, y = 4
- 4 = 3 − 0 + c, so c = 1ln 1 = 0
- y = 3x² − 2 ln x + 1
- dy/dx = 6x − 2/xdifferentiate back
Question 2 · Achieved
- d²y/dx² = 12x² − 6. The gradient is 3
- At x = 1, and the curve passes
- Through (0, 2). Find y.
Q2: d²y/dx² = 12x² − 6
- Integrate twice.
- Two constants, two facts.
- dy/dx = ∫ (12x² − 6) dxintegrate once
- = 4x³ − 6x + c₁
- 3 = 4 − 6 + c₁, so c₁ = 5x = 1, dy/dx = 3
- y = ∫ (4x³ − 6x + 5) dxintegrate again
- = x⁴ − 3x² + 5x + c₂a new constant
- 2 = 0 + c₂, so c₂ = 2point (0, 2)
- y = x⁴ − 3x² + 5x + 2
Question 3 · Merit
- Dy/dx = 2x/y, and y = 3 when x = 0.
- Find y in terms of x.
Q3: dy/dx = 2x/y
- Separate the variables.
- One + c, one side only.
- ∫ y dy = ∫ 2x dxseparate
- y²/2 = x² + cone constant
- 9/2 = 0 + c, so c = 9/2x = 0, y = 3
- y²/2 = x² + 9/2
- y² = 2x² + 9× 2, every term
- y = ±√(2x² + 9)
- y = −√(2x² + 9)gives y = −3 at x = 0
- y = √(2x² + 9)
Try it: dy/dx = 2x/y
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?
Q4: the model, and k
- Rate ∝ N: dN/dt = kN.
- Two facts: A, then k.
- dN/dt = kNrate ∝ number
- ∫ (1/N) dN = ∫ k dtseparate
- ln N = kt + cN > 0
- N = Ae^(kt)A = e^c
- 120 = Ae⁰, so A = 120t = 0
- 180 = 120e^(5k)t = 5
- e^(5k) = 1.5÷ 120
- k = (ln 1.5)/5 ≈ 0.081093ln both sides
Q4: when N = 400
- Keep k exact.
- Answer in years.
- N = 120e^(kt), k = (ln 1.5)/5
- 400 = 120e^(kt)N = 400
- e^(kt) = 10/3÷ 120
- kt = ln(10/3)ln both sides
- t = 5 ln(10/3) / ln 1.5k exact
- ≈ 14.847
- k ≈ 0.08 gives t ≈ 15.05k rounded too early
- after about 14.8 years
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?
Q5: solve the equation
- Separate, integrate.
- T(0) = 90 finds A.
- dT/dt = −k(T − 18)Newton's law
- ∫ dT/(T − 18) = ∫ −k dtseparate
- ln(T − 18) = −kt + cT > 18
- T − 18 = Ae^(−kt)A = e^c
- 90 − 18 = Ae⁰, so A = 72t = 0
- T = 18 + 72e^(−kt)
Q5: find k
- Isolate the e first.
- Then ln both sides.
- T = 18 + 72e^(−kt)
- 60 = 18 + 72e^(−5k)t = 5, T = 60
- 42 = 72e^(−5k)subtract 18
- e^(−5k) = 7/12÷ 72
- −5k = ln(7/12)ln both sides
- k = ln(12/7)/5 ≈ 0.10780÷ −5, flip the fraction
Q5: when T = 30
- Same steps again.
- Answer in minutes.
- T = 18 + 72e^(−kt), k ≈ 0.10780
- 30 = 18 + 72e^(−kt)T = 30
- 12 = 72e^(−kt)subtract 18
- e^(−kt) = 1/6÷ 72
- kt = ln 6ln both sides
- t = 5 ln 6 / ln(12/7)k exact
- ≈ 16.62
- after about 16.6 minutes
Try it: cooling
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.
Q6: warming, not cooling
- T starts below the room.
- So A is negative.
- dT/dt = −k(T − 22)Newton's law
- T < 22, so T − 22 < 0the drink warms
- ln|T − 22| = −kt + cseparate, integrate
- T − 22 = Ae^(−kt)A = ±e^c
- 4 − 22 = Ae⁰, so A = −18t = 0
- T = 22 − 18e^(−kt)
- T = 22 + 18e^(−kt)T(0) would be 40
Q6: k, then T = 16
- Isolate the e each time.
- k exact, round at the end.
- T = 22 − 18e^(−kt)
- 10 = 22 − 18e^(−10k)t = 10, T = 10
- e^(−10k) = 12/18 = 2/3−22, then ÷ −18
- k = −ln(2/3)/10 = ln 1.5/10ln both sides
- 16 = 22 − 18e^(−kt)T = 16
- e^(−kt) = 6/18 = 1/3−22, then ÷ −18
- t = 10 ln 3 / ln 1.5 ≈ 27.10
- after about 27.1 minutes
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.
The method that solved all six
- Separate, integrate, find the constant, then k.
| Step | How |
|---|---|
| y′ = f(x) | integrate, then find c |
| y″ = f(x) | twice: two constants |
| Separate | y terms left, x terms right |
| Constant | one c, found from the start |
| Find k | isolate e, then take ln |
| Answer | exact k, round at the end |
Challenge
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
- Separate the variables: ∫ y⁻² dy = ∫ cos x dx.
- Integrate: −1y = sin x + c, with one constant.
- At x = 0, y = 12: −2 = 0 + c, so c = −2. Then 1y = 2 − sin x, so y = 12 − sin x.
- 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.
- 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
- ∫ y⁻² dy = ∫ cos x dxseparate
- −1y = sin x + cone constant
- −2 = sin 0 + c, so c = −2x = 0, y = 12
- 1y = 2 − sin x, so y = 12 − sin x× −1, then flip
- −1 ≤ sin x ≤ 1, so 1 ≤ 2 − sin x ≤ 3never 0
- greatest y = 11 = 1 at x = π2sin x = 1
- least y = 13 at x = 3π2sin x = −1
- y = 12 − sin x; greatest 1, least 13
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
- Separate: ∫ h^(−12) dh = ∫ −k dt, so 2√h = −kt + c.
- At t = 0, h = 16: 2(4) = c, so c = 8. At t = 5, h = 9: 6 = −5k + 8, so k = 25.
- So √h = 4 − t5. A quarter of 16 is 4, so √h = 2 and t = 10 minutes.
- 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.
- 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
- ∫ h^(−12) dh = ∫ −k dtseparate
- 2√h = −kt + cpower rule: h^(12) ÷ (12)
- 2√16 = c, so c = 8t = 0, h = 16
- 2√9 = −5k + 8, so k = 25t = 5, h = 9
- √h = 4 − t5÷ 2
- √4 = 4 − t5, so t = 10h = 164 = 4 cm
- 0 = 4 − t5, so t = 20empty
- A quarter after 10 minutes; empty after 20 minutes
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
- Separate and integrate: ln|T − R| = −kt + c, so T − R = Ae^(−kt). At t = 0, A = 90 − R.
- With q = e^(−10k): 60 − R = (90 − R)q and 45 − R = (90 − R)q².
- Square the first and compare with the second times (90 − R): (60 − R)² = (90 − R)(45 − R).
- Expand: 3600 − 120R + R² = 4050 − 135R + R², so 15R = 450 and R = 30. Then q = 3060 = 12, so k = ln 210.
- T = 30 + 60e^(−kt). Set T = 35: e^(−kt) = 560 = 112, so t = 10 ln 12 / ln 2 ≈ 35.8 minutes.
Full working
- T − R = (90 − R)e^(−kt)separate, integrate, t = 0
- 60 − R = (90 − R)q, 45 − R = (90 − R)q²q = e^(−10k)
- (60 − R)² = (90 − R)(45 − R)eliminate q
- 3600 − 120R = 4050 − 135R, so R = 30R² cancels
- q = 60 − 3090 − 30 = 12, so k = ln 210e^(−10k) = 12
- 35 = 30 + 60e^(−kt), so e^(−kt) = 112T = 35
- t = ln 12 / k = 10 ln 12 / ln 2keep k exact
- R = 30 °C, k = ln 210; 35 °C after about 35.8 minutes
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 min