Skip to content

9709 · Unit 16 · Paper 3 only: Pure Mathematics 3

Differential equations.

9709 · Unit 16 · Differential equations
Revisionbyexamplicity

Forming and solving a differential equation

§3.8 · Differential equations

A rate tells you how fast something is changing right now. A differential equation turns that rate into an equation, and solving it tells the whole story: the value at every time. One hot metal block runs through this unit. It sits in a room held at 18°C and cools.

1Turn the words into an equation

Say what changes and what it changes with, write the rate as a derivative, and give a fall a minus sign.
Worked example

A block’s temperature T°C falls at a rate equal to 0.2 times its excess above the room temperature of 18°C. Time t is in minutes, and T = 78 when t = 0. Form the differential equation and find the rate at the start.

  1. T changes with t, so the rate is dT/dt
    excess above the room=T − 18
  2. A fall is a negative rate
    dTdt=−15(T−18)
  3. Put in T = 78 for the starting rate
    dT/dt=−0.2(78 − 18) = −12
  4. Answer
    dT/dt = −0.2(T − 18); at the start T falls by 12°C per minute
18385878−12−8−40dT/dt / °C min⁻¹temperature T / °C(78, −12)(38, −4)18: zero rate
The equation is first order: it has dT/dt and no second derivative. The 0.2 has units min⁻¹.
T = 78 when t = 0 is a value, not a rate. It is used later to pick the solution, never as dT/dt.

2Separate the variables, then integrate

Put every T on the side with dT and every t on the side with dt. Integrate each side in its own variable and add one constant.
Worked example

Find the general solution of dTdt=−15(T−18).

  1. Divide by T − 18 (for T ≠ 18)
    1T−18 dT = −15 dt
  2. Integrate each side
    ∫1T−18dT=∫(−15)dtln(|T−18|)=−15t+C
  3. Exponentiate: the log constant becomes a multiplier
    |T−18|=eCe−15t
  4. Answer
    T=18+Ae−15t, where A can be any constant
05101520020406080100temperature / °Ctime / minA = 80A = 60A = 40limit 18°C
  • Each value of A gives one curve: a family of solutions.
  • Dividing left out T = 18. Both sides are then 0, so it does solve the equation: the equilibrium solution, the member with A = 0.
  • A > 0 starts above the room; A < 0 starts below it.

3Use the starting value to pick one curve

A particular solution is the one member of the family that fits the given condition. Check it by differentiating.
Worked example

Find the particular solution with T = 78 when t = 0.

  1. Start from the general solution
    T=18+Ae−15t
  2. Put in t = 0 and T = 78; e⁰ = 1
    78=18 + AA=60
  3. Answer
    T=18+60e−15t
✓Check dT/dt = −12e⁻ᵗᐟ⁵ and −0.2(T − 18) = −0.2 × 60e⁻ᵗᐟ⁵ = −12e⁻ᵗᐟ⁵: the same. T(0) = 18 + 60 = 78.
05101520020406080100temperature / °Ctime / min(0, 78)initial tangentlimit 18°C
The constant multiplies e⁻ᵗᐟ⁵. Writing 18 + e⁻ᵗᐟ⁵ + C instead gives a curve that does not satisfy the equation.

4Try it

Your turn

1 A cup of tea in a room at 20°C cools at a rate equal to 0.1 times its excess temperature θ − 20. Write the differential equation, with t in minutes.

2 Solve dydx=3y, given that y = 2 when x = 0.

3 Solve dN/dt = −0.4(N − 50), given that N = 20 when t = 0.

  1. 1
    dθ/dt = −0.1(θ − 20)
  2. 2
    ∫(1/y) dy = ∫3 dx, ln y = 3x + C; C = ln 2, so y = 2e³ˣ
  3. 3
    N = 50 + Ae⁻⁰·⁴ᵗ; 20 = 50 + A, so A = −30: N = 50 − 30e⁻⁰·⁴ᵗ (it starts below 50 and rises)
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
  • not yet? step 3
Practise with s26/35 Q6 (related proportional-rate practice); s26/33 Q10 (related shifted-log practice); s26/33 Q10 (related initial-condition practice)
1 / 4
9709 · Unit 16 · Differential equations
Revisionbyexamplicity

Using the solution: values, limits and targets

§3.8 · Differential equations

Once you have solved it, the equation becomes a prediction machine. Put in a time and you get the temperature. Differentiate and you get the rate. Let t grow and you see where the block settles. The block from the first page cools by T=18+60e−15t, with t in minutes.

1Read a value and a rate at one time

Substitute into T(t) for a temperature. Differentiate first, then substitute, for a rate.
05101520020406080100temperature / °Ctime / min(0, 78)40.126.1limit 18°C05101520020406080100temperature / °Ctime / min(0, 78)40.126.1limit 18°C
Worked example

Temperature at 10 min

  1. Substitute t = 10 in T(t)
    T(10)=18 + 60e⁻²
  2. Answer
    T(10) ≈ 26.1°CThat is 8.12°C above the room.
Worked example

Rate at 10 min

  1. Differentiate first: T′ = −12e⁻ᵗᐟ⁵
    T′(10)=−12e⁻²
  2. Answer
    T′(10) ≈ −1.62°C min⁻¹Still falling, but more slowly than at the start.
Temperature at 10 min
T(10) = 18 + 60e⁻²Substitute t = 10 in T(t).T(10) ≈ 26.1°CThat is 8.12°C above the room.
Rate at 10 min
T′(10) = −12e⁻²Differentiate first: T′ = −12e⁻ᵗᐟ⁵.T′(10) ≈ −1.62°C min⁻¹Still falling, but more slowly than at the start.

2See where it settles, and why it never gets there

  1. The exponential term dies away
    As t → ∞, e⁻ᵗᐟ⁵ → 0
  2. So T stays above 18°C at every time
    For every finite t, 60e⁻ᵗᐟ⁵ > 0
  3. Answer
    T → 18°C, but never reaches itThe room temperature is the limiting value.
As t → ∞, e⁻ᵗᐟ⁵ → 0The exponential term dies away.For every finite t, 60e⁻ᵗᐟ⁵ > 0So T stays above 18°C at every time.T → 18°C, but never reaches itThe room temperature is the limiting value.
The prediction assumes the room stays at 18°C and the rate law keeps holding. Change either, and the model changes.

3Find when it reaches a target

Set T(t) equal to the target. Isolate the exponential, then take ln of both sides.
Worked example

When does the block first reach 38°C?

  1. Set the solution equal to the target
    38=18 + 60e⁻ᵗᐟ⁵
  2. Subtract 18, then divide by 60
    20=60e⁻ᵗᐟ⁵e⁻ᵗᐟ⁵=1/3
  3. Take ln of both sides
    −t/5=ln(1/3) = −ln 3
  4. Answer
    t=5ln(3) ≈ 5.49 min
✓Check T falls the whole time (T′ = −12e⁻ᵗᐟ⁵ < 0), so it passes 38°C only once; there the rate is −0.2(38 − 18) = −4°C min⁻¹.
05101520020406080100temperature / °Ctime / min(0, 78)385 ln 3limit 18°C
38°C is 20°C above the room, not 38°C above it: subtract 18 first. A target at or below 18°C has no answer, because the block never gets there.

4Find an unknown constant from a second reading

When the rate constant k is unknown, two conditions are needed: the start fixes the multiplier, a second reading fixes k.
Worked example

A block cools by T′ = −k(T − 18), with k > 0. Initially T = 78, and a reading recorded to 0.1°C gives T = 40.1 at t = 5. Find k to 3 significant figures and predict T at t = 10.

  1. Separate, integrate and use T(0) = 78
    ln(T − 18)=−kt + CT=18 + 60e⁻ᵏᵗ
  2. Use the reading at 5 min
    40.1=18 + 60e⁻⁵ᵏe⁻⁵ᵏ=22.1/60k=−ln(22.1/60) ÷ 5 = 0.200
  3. Predict T at 10 min
    T=18 + 60e⁻¹⁰ᵏ = 26.1°C
  4. Answer
    k = 0.200 min⁻¹ (3 s.f.); T(10) = 26.1°C
05101520020406080100temperature / °Ctime / min(0, 78)(5, 40.1)fit to the readinglimit 18°C
✓Check at t = 5 the model gives 18 + 22.1 = 40.1°C. The reading is rounded, so k is only an estimate.

5Try it

Your turn

1 A pie cools so that T = 20 + 70e⁻⁰·¹ᵗ, with t in minutes. Find T after 5 minutes, and the temperature it settles to.

2 For the same pie, find when T = 55. Give an exact answer, then 3 significant figures.

3 A drink cools by dθ/dt = −k(θ − 20). θ = 90 at t = 0 and θ = 55 at t = 4. Find k exactly.

  1. 1
    20 + 70e⁻⁰·⁵ ≈ 62.5°C; it settles to 20°C
  2. 2
    70e⁻⁰·¹ᵗ = 35, e⁻⁰·¹ᵗ = 1/2, t = 10 ln 2 ≈ 6.93 min
  3. 3
    θ = 20 + 70e⁻ᵏᵗ; 35 = 70e⁻⁴ᵏ, so k = (ln 2)/4 ≈ 0.173
Tick what you can do now
Practise with s26/35 Q6 (related two-condition parameter practice); s26/35 Q6 (related exponential-solution practice); s26/31 Q11(b) (related solution-to-value practice)
2 / 4
9709 · Unit 16 · Differential equations
Revisionbyexamplicity

Integrating each side: parts and partial fractions

§3.8 · Differential equations

The block’s integrals were easy: 1/(T − 18) on one side, a constant on the other. Separating only decides which variable goes on which side. Each side is then an ordinary integral, so use whatever it needs: integration by parts, partial fractions, or both.

1Separate, then integrate one side by parts

Divide so that y is only on the left. If the x-side is a product such as 2x ln x, use parts with u = ln x.
Worked example

For x > 0 and y > 1, solve dydx=2x(y−1)ln(x) with y = 3 when x = 1. Give y explicitly.

  1. Separate: divide by y − 1
    ∫1/(y − 1) dy=∫2x ln x dx
  2. Parts: u = ln x, dv = 2x dx, so du = dx/x, v = x²
    ∫2x ln x dx=x² ln x − ∫x dx
  3. Integrate, then use x = 1, y = 3
    ln(y − 1)=x² ln x − x²/2 + Cln 2=−1/2 + C
  4. Exponentiate the whole right side
    y − 1=2ex² ln x − x²/2 + 1/2
  5. Answer
    y = 1 + 2ex² ln x − x²/2 + 1/2
✓Check with H = x² ln x − x²/2 + 1/2, H′ = 2x ln x, so y′ = 2eᴴ × 2x ln x = (y − 1) × 2x ln x; y(1) = 3
00.511.520246810yxy = 1 is never reached(1, 3): slope 0

2Partial fractions on one side, parts on the other

A fraction with two linear factors splits into partial fractions first. If you cannot make y the subject, an implicit answer, an equation linking x and y, is enough.
Worked example

For x ≥ 0 and y > 1, solve ln(y)dydx=2x+3(x+1)(x+2) with y = e when x = 0.

  1. Split the x-side
    (2x + 3)/[(x + 1)(x + 2)]=1/(x + 1) + 1/(x + 2)
  2. Integrate ln y by parts: u = ln y, dv = dy
    ∫ln y dy=y ln y − ∫1 dy = y ln y − y
  1. Integrate both sides; one constant
    y ln y − y=ln(x + 1) + ln(x + 2) + C
  2. Use x = 0, y = e
    e − e=0 + ln 2 + CC=−ln 2
  3. Answer
    y ln y − y = ln[(x + 1)(x + 2)/2]
✓Check at x = 0, y = e: both sides are 0
Integrate each side in its own variable. ∫ln y dy is not ln y × y + C: it needs parts.

3Try it

Your turn

1 After separating, (y + 1) dy = x cos x dx. Which method does each side need? Integrate both.

2 Solve ydydx=xex, given that y = 2 when x = 0. Give y² in terms of x.

3 For x > 0 and y > 0, solve dydx=yx(x+1), given that y = 1 when x = 1.

  1. 1
    left: a simple power, (y + 1)²/2; right: parts with u = x, x sin x + cos x
  2. 2
    y²/2 = xeˣ − eˣ + C; 2 = −1 + C, C = 3: y² = 2eˣ(x − 1) + 6
  3. 3
    1/(x(x + 1)) = 1/x − 1/(x + 1); ln y = ln x − ln(x + 1) + C, so y = Ax/(x + 1); A = 2: y = 2x/(x + 1)
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
Practise with s26/32 Q10(b); s26/33 Q10; m26/32 Q8 (related parts-and-separation practice)
3 / 4
9709 · Unit 16 · Differential equations
Revisionbyexamplicity

Choosing the right branch

§3.8 · Differential equations

Sometimes there is more than one way back to y. A square has a + and a − square root, and tan y = 3 has an answer in every half-turn. The starting value tells you which branch the curve is on, so use it before you choose.

1A square root: choose the sign that fits the start

After integrating, keep the squared form, put in the starting point, then test both signs.
Worked example

For x ≥ 0, a curve satisfies dydx=x(x+1)y−2 and y = −1 when x = 0. Find y in terms of x.

  1. Separate (the equation needs y ≠ 2)
    (y − 2) dy=(x² + x) dx
  2. Integrate
    12(y−2)2=13x3+12x2+C
  1. Use x = 0, y = −1
    (−1 − 2)²/2=C, so C = 9/2(y − 2)²=9 + x² + 2x³/3
  2. Take both roots, then test the start
    y=2 ± √(9 + x² + 2x³/3)at x=0: 2 + 3 = 5 or 2 − 3 = −1
  3. Answer
    y=2−9+x2+23x3
✓Check for x ≥ 0 the square root is at least 3, so y ≤ −1 < 2: the curve never reaches the excluded y = 2
123−6−4−2246810yxy = 2(0, −1)wrong branch: (0, 5)selected: below 2
  • The minus branch passes through (0, −1). The plus branch starts at (0, 5): it solves the equation but not the condition.
  • Check by differentiating: y′ = −x(x + 1)/√(…), and y − 2 = −√(…), so x(x + 1)/(y − 2) agrees.

2An inverse tangent: choose the interval

A calculator gives tan⁻¹ between −π/2 and π/2. If y must lie in another interval, add π (or a multiple of π) to land in it.
Worked example

Solve dy/dx = e⁻ˣ sin²y with y = 5π/4 when x = 0, and π < y < 3π/2. Find y when x = ln 3, in radians to 3 significant figures.

  1. Divide by sin²y and integrate
    ∫cosec²y dy=∫e⁻ˣ dx−cot y=−e⁻ˣ + C
  2. Use y = 5π/4, where cot y = 1
    −1=−1 + C, so C = 0tan y=eˣ
  3. Answer
    y = π + tan⁻¹(eˣ); at x = ln 3, y = π + tan⁻¹3 ≈ 4.39
✓Check at x = 0, y = π + π/4 = 5π/4, inside π < y < 3π/2
012333.544.55y / radiansx3π/25π/4ln 3π + tan⁻¹3
tan⁻¹3 ≈ 1.25 is the calculator’s answer, but it is not between π and 3π/2. Add π.

3Try it

Your turn

1 After integrating and using the start, (y − 1)² = x + 4, with y = −1 when x = 0. Find y.

2 Solve dydx=xy, given that y = −3 when x = 0.

3 Solve dy/dx = 2x cos²y with y = π when x = 0, and π/2 < y < 3π/2. Find y when x = 1.

  1. 1
    y = 1 ± √(x + 4); at x = 0 the minus sign gives −1: y = 1 − √(x + 4)
  2. 2
    y² = x² + 9; y(0) = −3, so y = −√(x² + 9)
  3. 3
    ∫sec²y dy = ∫2x dx, tan y = x² (C = 0); y = π + tan⁻¹(x²); at x = 1, y = 5π/4 ≈ 3.93
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
Practise with s26/31 Q11(b) (related branch-selection practice)
4 / 4