Forming and solving a differential equation
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
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.
- T changes with t, so the rate is dT/dtexcess above the room=T − 18
- A fall is a negative rate
- Put in T = 78 for the starting ratedT/dt=−0.2(78 − 18) = −12
- AnswerdT/dt = −0.2(T − 18); at the start T falls by 12°C per minute
2Separate the variables, then integrate
Find the general solution of .
- Divide by T − 18 (for T ≠ 18)dT = − dt
- Integrate each side
- Exponentiate: the log constant becomes a multiplier
- Answer, where A can be any constant
- 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
Find the particular solution with T = 78 when t = 0.
- Start from the general solution
- Put in t = 0 and T = 78; e⁰ = 178=18 + AA=60
- Answer
4Try it
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 , given that y = 2 when x = 0.
3 Solve dN/dt = −0.4(N − 50), given that N = 20 when t = 0.
- 1dθ/dt = −0.1(θ − 20)
- 2∫(1/y) dy = ∫3 dx, ln y = 3x + C; C = ln 2, so y = 2e³ˣ
- 3N = 50 + Ae⁻⁰·⁴ᵗ; 20 = 50 + A, so A = −30: N = 50 − 30e⁻⁰·⁴ᵗ (it starts below 50 and rises)
Using the solution: values, limits and targets
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 , with t in minutes.
1Read a value and a rate at one time
Temperature at 10 min
- Substitute t = 10 in T(t)T(10)=18 + 60e⁻²
- AnswerT(10) ≈ 26.1°CThat is 8.12°C above the room.
Rate at 10 min
- Differentiate first: T′ = −12e⁻ᵗᐟ⁵T′(10)=−12e⁻²
- AnswerT′(10) ≈ −1.62°C min⁻¹Still falling, but more slowly than at the start.
2See where it settles, and why it never gets there
3Find when it reaches a target
When does the block first reach 38°C?
- Set the solution equal to the target38=18 + 60e⁻ᵗᐟ⁵
- Subtract 18, then divide by 6020=60e⁻ᵗᐟ⁵e⁻ᵗᐟ⁵=1/3
- Take ln of both sides−t/5=ln(1/3) = −ln 3
- Answer≈ 5.49 min
4Find an unknown constant from a second reading
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.
- Separate, integrate and use T(0) = 78ln(T − 18)=−kt + CT=18 + 60e⁻ᵏᵗ
- Use the reading at 5 min40.1=18 + 60e⁻⁵ᵏe⁻⁵ᵏ=22.1/60k=−ln(22.1/60) ÷ 5 = 0.200
- Predict T at 10 minT=18 + 60e⁻¹⁰ᵏ = 26.1°C
- Answerk = 0.200 min⁻¹ (3 s.f.); T(10) = 26.1°C
5Try it
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.
- 120 + 70e⁻⁰·⁵ ≈ 62.5°C; it settles to 20°C
- 270e⁻⁰·¹ᵗ = 35, e⁻⁰·¹ᵗ = 1/2, t = 10 ln 2 ≈ 6.93 min
- 3θ = 20 + 70e⁻ᵏᵗ; 35 = 70e⁻⁴ᵏ, so k = (ln 2)/4 ≈ 0.173
Integrating each side: parts and partial fractions
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
For x > 0 and y > 1, solve with y = 3 when x = 1. Give y explicitly.
- Separate: divide by y − 1∫1/(y − 1) dy=∫2x ln x dx
- Parts: u = ln x, dv = 2x dx, so du = dx/x, v = x²∫2x ln x dx=x² ln x − ∫x dx
- Integrate, then use x = 1, y = 3ln(y − 1)=x² ln x − x²/2 + Cln 2=−1/2 + C
- Exponentiate the whole right sidey − 1=2ex² ln x − x²/2 + 1/2
- Answery = 1 + 2ex² ln x − x²/2 + 1/2
2Partial fractions on one side, parts on the other
For x ≥ 0 and y > 1, solve with y = e when x = 0.
- Split the x-side(2x + 3)/[(x + 1)(x + 2)]=1/(x + 1) + 1/(x + 2)
- Integrate ln y by parts: u = ln y, dv = dy∫ln y dy=y ln y − ∫1 dy = y ln y − y
- Integrate both sides; one constanty ln y − y=ln(x + 1) + ln(x + 2) + C
- Use x = 0, y = ee − e=0 + ln 2 + CC=−ln 2
- Answery ln y − y = ln[(x + 1)(x + 2)/2]
3Try it
1 After separating, (y + 1) dy = x cos x dx. Which method does each side need? Integrate both.
2 Solve , given that y = 2 when x = 0. Give y² in terms of x.
3 For x > 0 and y > 0, solve , given that y = 1 when x = 1.
- 1left: a simple power, (y + 1)²/2; right: parts with u = x, x sin x + cos x
- 2y²/2 = xeˣ − eˣ + C; 2 = −1 + C, C = 3: y² = 2eˣ(x − 1) + 6
- 31/(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)
Choosing the right branch
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
For x ≥ 0, a curve satisfies and y = −1 when x = 0. Find y in terms of x.
- Separate (the equation needs y ≠ 2)(y − 2) dy=(x² + x) dx
- Integrate
- Use x = 0, y = −1(−1 − 2)²/2=C, so C = 9/2(y − 2)²=9 + x² + 2x³/3
- Take both roots, then test the starty=2 ± √(9 + x² + 2x³/3)at x=0: 2 + 3 = 5 or 2 − 3 = −1
- Answer
- 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
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.
- Divide by sin²y and integrate∫cosec²y dy=∫e⁻ˣ dx−cot y=−e⁻ˣ + C
- Use y = 5π/4, where cot y = 1−1=−1 + C, so C = 0tan y=eˣ
- Answery = π + tan⁻¹(eˣ); at x = ln 3, y = π + tan⁻¹3 ≈ 4.39
3Try it
1 After integrating and using the start, (y − 1)² = x + 4, with y = −1 when x = 0. Find y.
2 Solve , 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.
- 1y = 1 ± √(x + 4); at x = 0 the minus sign gives −1: y = 1 − √(x + 4)
- 2y² = x² + 9; y(0) = −3, so y = −√(x² + 9)
- 3∫sec²y dy = ∫2x dx, tan y = x² (C = 0); y = π + tan⁻¹(x²); at x = 1, y = 5π/4 ≈ 3.93