☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Differential Equations cheatsheet (IB Maths AI HL)
Every differential-equations skill for IB Mathematics Applications & Interpretation HL — forming a DE from a described rate, exponential growth & decay, Newton's law of cooling, separable equations, logistic models, slope fields and Euler's method, all built into real modelling problems. Written by an IB-certified teacher.
What this cheatsheet covers
Differential equations are where the IB Mathematics Applications & Interpretation HL calculus strand turns into genuine modelling. A differential equation (DE) ties a quantity to its own rate of change, so an AI question rarely asks you to solve one in the abstract — it asks you to build the equation from a described rate ("the rate of cooling is proportional to..."), then either solve it (separate the variables and integrate, or read off the standard growth / cooling / logistic template) or step it forward numerically with Euler's method when no neat formula exists. A GDC is always allowed, so the marks live in setting up the model, choosing the method and reading the answer back with the right units.
This cheatsheet condenses the whole range — from forming and solving DEs in AHL 5.14, through slope fields in AHL 5.15, to Euler's method in AHL 5.16 — onto one page, and flags the traps that quietly cost method marks.
Forming a differential equation
AHL 5.14Rate of change:$\dfrac{dQ}{dt}$ is the phrase "the rate of change of $Q$" — this is always the left-hand sideProportional to size:"rate is proportional to the amount present" $\Rightarrow \dfrac{dQ}{dt}=kQ$Proportional to a gap:"rate is proportional to how far $Q$ is from $A$" $\Rightarrow \dfrac{dQ}{dt}=k(Q-A)$Then solve it:separate the variables and integrate, or step forward with Euler $y_{n+1}=y_n+h\,f(x_n,y_n)$
A differential equation contains a derivative: it states the rule for how fast a quantity changes. Most AI questions hand you that rule in words, so your first job is to translate the sentence into calculus.
Exponential growth & decay
AHL 5.14Model:$\dfrac{dN}{dt}=kN$Solution:$N=N_0e^{kt}$, where $N_0$ is the initial value at $t=0$Growth vs decay:$k>0$ grows, $k<0$ decays; the doubling time or half-life comes from $e^{kt}=2$ or $\tfrac12$Continuous rate:a continuous rate of $r\%$ per period means $k=\dfrac{r}{100}$
The archetype DE: a quantity whose rate is proportional to its own size. One template covers app users, bacterial mass, radioactive decay and continuously compounded value.
Finding the rate constant $k$
AHL 5.14From the start value:using $(t_1,N_1)$: $\;k=\dfrac{1}{t_1}\ln\!\dfrac{N_1}{N_0}$From any two points:$k=\dfrac{1}{t_2-t_1}\ln\!\dfrac{N_2}{N_1}$
When $k$ is not given, two data points pin it down. Rearranging $N=N_0e^{kt}$ with logarithms isolates $k$.
Newton's law of cooling
AHL 5.14Model:$\dfrac{d\theta}{dt}=-k(\theta-\theta_s)$, where $\theta_s$ is the surrounding (ambient) temperatureSolution:$\theta=\theta_s+(\theta_0-\theta_s)e^{-kt}$ — the object cools toward $\theta_s$Find $k$:a second reading gives $e^{-kt_1}=\dfrac{\theta_1-\theta_s}{\theta_0-\theta_s}$, so $k=-\dfrac{1}{t_1}\ln\!\dfrac{\theta_1-\theta_s}{\theta_0-\theta_s}$Find the time:isolate $e^{-kt}$, take $\ln$, then divide by $-k$
An object cools at a rate proportional to how far its temperature is above the surroundings — the "proportional to a gap" template from §1. This is the DE behind forensic time-of-death estimates.
Separable first-order DEs
AHL 5.14Separable form:$\dfrac{dy}{dx}=f(x)\,g(y)$Method:$\displaystyle\int\frac{1}{g(y)}\,dy=\int f(x)\,dx$, then add a single constant $+C$Example 1:$\dfrac{dy}{dx}=\dfrac{x}{y}\Rightarrow\displaystyle\int y\,dy=\int x\,dx\Rightarrow y^2=x^2+K$Example 2:$\dfrac{dy}{dx}=xy\Rightarrow \ln y=\tfrac{x^2}{2}+C\Rightarrow y=Ae^{x^2/2}$
The general method whenever the two variables can be split onto opposite sides. Gather each variable with its own differential, integrate both sides, then use the initial condition.
Logistic growth: saturating models
AHL 5.14Logistic DE:$\dfrac{dP}{dt}=rP\left(1-\dfrac{P}{K}\right)$Solution:$P=\dfrac{K}{1+Ae^{-rt}}$, with $A=\dfrac{K-P_0}{P_0}$Fastest growth:at $P=\dfrac{K}{2}$ (the steepest point); the initial rate is $rP_0\left(1-\dfrac{P_0}{K}\right)$
Real populations do not grow for ever — they saturate. The logistic DE bends exponential growth down to a ceiling called the carrying capacity $K$.
Approach to equilibrium: mixing & dosing
AHL 5.14Model:$\dfrac{dy}{dt}=a-by$ — constant supply $a$, proportional removal $by$Equilibrium:$y=\dfrac{a}{b}$, where inflow exactly balances outflow (set $\dfrac{dy}{dt}=0$)Solution:$y=\dfrac{a}{b}+\left(y_0-\dfrac{a}{b}\right)e^{-bt}$
Mixing tanks, drug doses and cooling all share one shape: a constant inflow against an outflow proportional to the current amount. The quantity relaxes exponentially to a steady state.
Slope fields
AHL 5.15Segment slope:substitute the point $(x,y)$ into $\dfrac{dy}{dx}$ to get the gradient drawn there
A slope field lets you read a DE geometrically without solving it. At each grid point the DE gives a gradient; drawing a short segment of that slope everywhere produces the field, and any solution curve simply threads through, staying tangent to the segments.
Euler's method: numerical solution
AHL 5.16Update rule:$y_{n+1}=y_n+h\,f(x_n,y_n)$, and $x_{n+1}=x_n+h$One step:take the gradient $f(x_n,y_n)$ at the old point, multiply by $h$, add to $y_n$Step length:smaller $h$ means more steps but a closer estimate
When a DE has no tidy formula, Euler's method marches the solution forward along the tangent slope, one small step $h$ at a time.
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "the rate of ... is proportional to ..." | Form $\dfrac{dQ}{dt}=kQ$ or $k(Q-A)$; name the variable first | Sign of $k$: $+$ growth, $-$ decay / cooling |
| "grows / decays exponentially; find the amount" | $N=N_0e^{kt}$; a continuous $r\%$ gives $k=r/100$ | Compute the exponent $kt$ before pressing $e^x$ |
| "find the growth / decay constant" | Two points: $k=\dfrac{1}{t_2-t_1}\ln\dfrac{N_2}{N_1}$ | Decay makes $k$ negative — keep the sign |
| "temperature after $t$ / when does it cool to..." | $\theta=\theta_s+(\theta_0-\theta_s)e^{-kt}$; isolate $e^{-kt}$, then $\ln$ | Keep $\theta_s$ separate; subtract it before logs |
| "solve $\dfrac{dy}{dx}=f(x)g(y)$" | Separate: $\int\frac{1}{g}\,dy=\int f\,dx$, add $+C$, apply the condition | $+C$ at integration; correct root sign for $y$ |
| "population with a ceiling / carrying capacity" | Logistic $P=\dfrac{K}{1+Ae^{-rt}}$, $A=\dfrac{K-P_0}{P_0}$ | Fastest at $P=K/2$; $P\to K$ as $t\to\infty$ |
| "estimate $y$ using Euler / step $h$" | Tabulate $y_{n+1}=y_n+h\,f(x_n,y_n)$ | Old point for the gradient, then advance $x$ |
| "percentage error / accuracy of the estimate" | $\left|\dfrac{\text{approx}-\text{exact}}{\text{exact}}\right|\times100\%$ | Exact in the denominator; Euler underestimates a convex curve |
Worked Example — Cooling Coffee by Euler's Method
Question (AI HL Paper 2 style — 8 marks)
A cup of coffee at $90^\circ$C is left to cool in a room held at a constant $20^\circ$C. Its temperature $\theta$ (in $^\circ$C) after $t$ minutes is modelled by $$\frac{d\theta}{dt}=-0.1(\theta-20),\qquad \theta(0)=90.$$ (a) Using Euler's method with step length $h=5$, estimate the temperature after $15$ minutes.
(b) Solve the differential equation and hence find the exact temperature after $15$ minutes.
(c) Find the percentage error of the Euler estimate.
(d) Explain why Euler's method underestimates the true temperature here.
Solution
- (a) The update rule is $\theta_{n+1}=\theta_n+h\,f(t_n,\theta_n)=\theta_n+5\big[-0.1(\theta_n-20)\big]$. (M1)
So after $15$ minutes, $\theta\approx28.75\approx28.8^\circ$C. (A1)(A1)
$n$ $t_n$ $\theta_n$ $f=-0.1(\theta_n-20)$ $\theta_{n+1}=\theta_n+5f$ 0 0 90 $-7$ $90+5(-7)=55$ 1 5 55 $-3.5$ $55+5(-3.5)=37.5$ 2 10 37.5 $-1.75$ $37.5+5(-1.75)=28.75$ 3 15 28.75 — — - (b) Separate the variables and integrate: $\displaystyle\int\frac{d\theta}{\theta-20}=\int-0.1\,dt\Rightarrow\ln|\theta-20|=-0.1t+C$, so $\theta-20=Ae^{-0.1t}$. The condition $\theta(0)=90$ gives $A=70$, hence $\theta=20+70e^{-0.1t}$. At $t=15$: $\theta=20+70e^{-1.5}=35.6^\circ$C (3 s.f.). (M1)(A1)
- (c) $\varepsilon=\left|\dfrac{28.75-35.619}{35.619}\right|\times100\%=19.3\%$ (3 s.f.). (M1)(A1)
- (d) The exact curve is decreasing but concave up — its slope flattens as $\theta\to20$. Euler follows the steeper starting tangent across each whole step, so it drops too fast and lands below the true curve, giving an underestimate. (R1)
Examiner's note: keep the sign of $f$ (negative, because the coffee is cooling) and read $e^{-1.5}$ straight off the GDC. The step $h=5$ is deliberately coarse, which is why the error is as large as $19\%$; halving $h$ would roughly halve it. Always put the exact value in the denominator of the percentage error — using the estimate there is a common slip.
Common Student Questions
- How do I turn a worded "rate is proportional to" sentence into a differential equation?
- When do I separate the variables and when do I use Euler's method?
- Why does Euler's method usually underestimate the answer?
- In Newton's law of cooling, what is $k$ and how do I find it?
- Do I need the "$+C$" when I integrate a differential equation?
How do I turn a worded "rate is proportional to" sentence into a differential equation?
When do I separate the variables and when do I use Euler's method?
Why does Euler's method usually underestimate the answer?
In Newton's law of cooling, what is $k$ and how do I find it?
Do I need the "$+C$" when I integrate a differential equation?
Your next step




