3 missions. Guess, learn, then check. Your place is saved.
Mission 1A population grows in proportion to its size. What equation is that?
Mission 2Foxes eat rabbits, rabbits feed foxes. Where does it all end?
Mission 3A spring bounces less each time. What equation does it obey?
The specification points and sources are listed under the lesson: see Sources.
Mission 1
A population grows in proportion to its size. What equation is that?
Make a guess: A population grows in proportion to its size. What equation is that?
HL calculus · differential equations and slope fields
Turning words into a differential equation
"The rate of change of PP" is dtdPdP/dt.
"Proportional to" means "equals a constant kk times". "Decreasing" makes the rate negative: write −k−k with k>0k > 0.
Example: a drink cools at a rate proportional to the difference between its temperature TT and room temperature 20 °C: dtdT=−k(T−20)dT/dt = −k(T − 20).
The general solution contains an arbitrary constant. An initial condition fixes it, giving a particular solution.
Quick check
?Water leaks from a tank at a rate proportional to the square root of the volume VV of water left. Which differential equation models this, with k>0k > 0?
HL calculus · differential equations and slope fields
Separation of variables
If dxdy=f(x)g(y)dy/dx = f(x) g(y), collect each variable on its own side and integrate:
∫g(y)1dy=∫f(x)dx∫ 1/(g(y)) dy = ∫ f(x) dx
One constant of integration is enough; put it on the xx side.
The key model: dxdy=kydy/dx = ky gives ln∣y∣=kx+cln |y| = kx + c, so y=Aekxy = Ae^kx, an exponential model.
Worked exampleHL calculus · differential equations and slope fields
Growth of a fish population
Question
A lake's fish population PP satisfies dtdP=0.04PdP/dt = 0.04P, where tt is in years, and P=500P = 500 when t=0t = 0. Find PP in terms of tt, and the time for the population to double.
1
Separate: ∫P1dP=∫0.04dt∫ 1/P dP = ∫ 0.04 dt
2
Integrate: lnP=0.04t+cln P = 0.04t + c, so the general solution is P=Ae0.04tP = Ae^0.04t
3
Use P=500P = 500 at t=0t = 0: A=500A = 500, so P=500e0.04tP = 500e^0.04t
4
Double means P=1000P = 1000: e0.04t=2e^0.04t = 2, so t=0.04ln2t = (ln 2)/0.04
Answer
P=500e0.04tP = 500e^0.04t; doubling time ≈17.3≈ 17.3 years (3 s.f.)
⚠️ Watch out
lnP=0.04t+cln P = 0.04t + c gives P=ece0.04tP = e^ce^0.04t, not e0.04t+ce^0.04t + c. The constant becomes a multiplier.
Calculate
?Solve dxdy=2xydy/dx = 2xy given that y=3y = 3 when x=0x = 0, and find the value of yy when x=1x = 1. Give your answer to 3 significant figures.
Calculate
?A cup of tea at 90 °C is left in a room at 20 °C. Its temperature TT °C after tt minutes satisfies dtdT=−0.1(T−20)dT/dt = −0.1(T − 20). Solve the differential equation and find the temperature after 10 minutes. Give your answer to 3 significant figures.
°C
HL calculus · differential equations and slope fields
Slope fields
A slope field draws a short segment at each grid point (x,y)(x, y) with gradient dxdydy/dx there.
A solution curve follows the segments; each initial point gives one curve.
Segments are horizontal where dxdy=0dy/dx = 0.
If dxdydy/dx depends on xx only, segments match down each vertical line; on yy only, along each horizontal line.
Worked exampleHL calculus · differential equations and slope fields
Reading a slope field
Question
The diagram shows the slope field of dxdy=x−ydy/dx = x − y. Find the gradients at (0,0)(0, 0), (2,1)(2, 1) and (0,1)(0, 1), state where the segments are horizontal, and show that y=x−1y = x − 1 is a solution curve.
1
Substitute each point: at (0,0)(0, 0), 0−0=00 − 0 = 0; at (2,1)(2, 1), 2−1=12 − 1 = 1; at (0,1)(0, 1), 0−1=−10 − 1 = −1
2
Horizontal where x−y=0x − y = 0: along the line y=xy = x
3
On y=x−1y = x − 1: dxdy=x−(x−1)=1dy/dx = x − (x − 1) = 1, which equals the line's own gradient
4
So every segment on y=x−1y = x − 1 lies along the line, and the line is a solution curve
Answer
gradients 0, 1 and −1−1; horizontal along y=xy = x; y=x−1y = x − 1 is a solution.
⚠️ Watch out
the line y=xy = x where segments are horizontal is not a solution curve: curves cross it at their turning points.
Sort it
?What does dxdydy/dx depend on? This tells you how the slope field repeats.
Tap a statement, then tap the group it belongs in. Then press Check.
Mission check
?A population grows in proportion to its size. What equation is that?
"Rate of growth proportional to size" is dtdP=kPdP/dt = kP. Separating variables gives P=P0ektP = P₀e^kt, exponential growth. Its slope field depends on PP only, so segments match along each horizontal line and get steeper as PP increases.
Mission 2
Foxes eat rabbits, rabbits feed foxes. Where does it all end?
Make a guess: Foxes eat rabbits, rabbits feed foxes. Where does it all end?
Calculus · differential equations
Euler's method
A differential equation dxdy=f(x,y)dy/dx = f(x, y) gives the gradient at every point. Euler's method follows that gradient in small steps of width hh:
yn+1=yn+hf(xn,yn),xn+1=xn+hyₙ₊₁ = yₙ + h f(xₙ, yₙ), xₙ₊₁ = xₙ + h
Each step uses the gradient at the start of the step.
A smaller stephh usually gives a more accurate estimate (but more steps).
In exams the values come from a spreadsheet or your GDC; you must set up the method correctly.
Worked exampleCalculus · differential equations
Two steps of Euler's method
Question
dxdy=x+ydy/dx = x + y with y=1y = 1 when x=0x = 0. Use Euler's method with h=0.1h = 0.1 to estimate yy when x=0.2x = 0.2.
1
First step, from (0,1)(0, 1): y1=1+0.1(0+1)=1.1y₁ = 1 + 0.1(0 + 1) = 1.1, at x1=0.1x₁ = 0.1
2
Second step, from (0.1,1.1)(0.1, 1.1): y2=1.1+0.1(0.1+1.1)=1.1+0.12y₂ = 1.1 + 0.1(0.1 + 1.1) = 1.1 + 0.12
3
So y2=1.22y₂ = 1.22 at x2=0.2x₂ = 0.2
Answer
y(0.2)≈1.22y(0.2) ≈ 1.22
⚠️ Watch out
update xx as well as yy each step. Using x=0x = 0 in the second step gives the wrong gradient.
Calculate
?dxdy=2x−ydy/dx = 2x − y with y(1)=3y(1) = 3. Use Euler's method with step h=0.5h = 0.5 to estimate y(2)y(2).
Calculus · differential equations
Coupled systems
In a coupled system, two quantities change together and each rate depends on both:
dtdx=f1(x,y,t),dtdy=f2(x,y,t)dx/dt = f₁(x, y, t), dy/dt = f₂(x, y, t)
Predator–prey example: rabbits xx grow on their own but are eaten, foxes yy die out on their own but are fed: dtdx=ax−bxydx/dt = ax − bxy, dtdy=−cy+dxydy/dt = −cy + dxy.
Euler's method updates both at once, using the old values of xx and yy in both formulas:
xn+1=xn+hf1xₙ₊₁ = xₙ + h f₁, yn+1=yn+hf2yₙ₊₁ = yₙ + h f₂, tn+1=tn+htₙ₊₁ = tₙ + h.
Calculate
?Rabbits xx (hundreds) and foxes yy (tens) satisfy dtdx=0.5x−0.1xydx/dt = 0.5x − 0.1xy and dtdy=−0.4y+0.02xydy/dt = −0.4y + 0.02xy, with x=30x = 30 and y=4y = 4 at t=0t = 0. Use Euler's method with h=0.1h = 0.1 (a spreadsheet or your GDC) to estimate yy at t=0.2t = 0.2. Give your answer to 3 significant figures.
Calculus · differential equations
Phase portraits and eigenvalues
For dtdx=ax+bydx/dt = ax + by, dtdy=cx+dydy/dt = cx + dy, the origin is an equilibrium point. A phase portrait plots yy against xx; each path is a trajectory.
The behaviour depends on the eigenvalues of (acbd)( a , b ; c , d ), the roots of λ2−(a+d)λ+(ad−bc)=0λ² − (a + d)λ + (ad − bc) = 0:
Eigenvalues
Trajectories
Both negative, or complex with negative real part
Move towards the origin (stable)
Both positive, or complex with positive real part
Move away from the origin
Real with opposite signs
Saddle point
Complex (non-zero real part)
Spirals
Purely imaginary
Circles or ellipses round the origin
Worked exampleCalculus · differential equations
An exact solution and a saddle point
Question
Solve dtdx=x+2ydx/dt = x + 2y, dtdy=2x+ydy/dt = 2x + y with x=3x = 3, y=1y = 1 at t=0t = 0, and describe the phase portrait.
1
Eigenvalues of (1221)( 1 , 2 ; 2 , 1 ): λ2−2λ−3=0λ² − 2λ − 3 = 0, so λ=3λ = 3 or λ=−1λ = −1
2
Eigenvectors: (11)( 1 ; 1 ) for λ=3λ = 3 and (1−1)( 1 ; −1 ) for λ=−1λ = −1
3
General solution: (xy)=Ae3t(11)+Be−t(1−1)( x ; y ) = Ae^3t( 1 ; 1 ) + Be^(−t)( 1 ; −1 )
4
At t=0t = 0: A+B=3A + B = 3 and A−B=1A − B = 1, so A=2A = 2, B=1B = 1
5
Opposite signs: a saddle. Paths come in along y=−xy = −x and go out along y=xy = x
Answer
x=2e3t+e−tx = 2e^3t + e^(−t), y=2e3t−e−ty = 2e^3t − e^(−t); the origin is a saddle point.
⚠️ Watch out
pair each eigenvalue with its own eigenvector. Swapping them gives a solution that does not satisfy the equations.
Sort it
?Each system dtdx=ax+bydx/dt = ax + by, dtdy=cx+dydy/dt = cx + dy has the eigenvalues shown. Sort by what the trajectories do.
Tap a statement, then tap the group it belongs in. Then press Check.
Calculate
?A system is dtdx=2x+ydx/dt = 2x + y, dtdy=4x−ydy/dt = 4x − y. Find the positive eigenvalue of its matrix.
Mission check
?Near their equilibrium, a model gives the extra rabbits xx and extra foxes yy as dtdx=−2ydx/dt = −2y, dtdy=0.5xdy/dt = 0.5x. Where does it all end?
The matrix (00.5−20)( 0 , −2 ; 0.5 , 0 ) has λ2+1=0λ² + 1 = 0, so λ=±iλ = ± i. Purely imaginary eigenvalues give closed ellipses round the equilibrium: in this model the rabbits and foxes rise and fall in a repeating cycle, with the foxes lagging behind the rabbits, and never settle.
Mission 3
A spring bounces less each time. What equation does it obey?
Make a guess: A spring bounces less each time. What equation does it obey?
Complex with negative real part: trajectories spiral into the origin
Answer
a damped oscillation. The object swings back and forth with shrinking amplitude and settles at x=0x = 0.
⚠️ Watch out
the phase portrait spirals, but the displacement–time graph is a wave that dies away. Both describe the same motion.
Quick check
?Write dt2d2x+3dtdx−4x=0d²x/dt² + 3dx/dt − 4x = 0 as a coupled system with dtdx=ydx/dt = y. Which is the second equation?
Calculus · differential equations
Euler's method for second-order equations
For dt2d2x=f(x,dtdx,t)d²x/dt² = f(x, dx/dt, t), set y=dtdxy = dx/dt and step both equations together:
xn+1=xn+hyn,yn+1=yn+hf(xn,yn,tn)xₙ₊₁ = xₙ + h yₙ, yₙ₊₁ = yₙ + h f(xₙ, yₙ, tₙ)
Then tn+1=tn+htₙ₊₁ = tₙ + h. Both updates use the old values.
You need two starting values: the initial displacement and the initial velocity.
A spreadsheet or your GDC generates the values in exams.
Worked exampleCalculus · differential equations
Two Euler steps for a damped spring
Question
dt2d2x=−4x−0.5dtdxd²x/dt² = −4x − 0.5dx/dt, with x=1x = 1 and dtdx=0dx/dt = 0 at t=0t = 0. Use Euler's method with h=0.1h = 0.1 to estimate xx and dtdxdx/dt at t=0.2t = 0.2.
1
Set up: dtdx=ydx/dt = y, dtdy=−4x−0.5ydy/dt = −4x − 0.5y, starting from x0=1x₀ = 1, y0=0y₀ = 0
at t=0.2t = 0.2, x≈0.96x ≈ 0.96 and dtdx≈−0.78dx/dt ≈ −0.78
⚠️ Watch out
in step 1 the displacement does not change, because the starting velocity is 0. That is correct, not a slip.
Calculate
?dt2d2x=2t−3xd²x/dt² = 2t − 3x, with x=2x = 2 and dtdx=1dx/dt = 1 when t=0t = 0. Use Euler's method with h=0.2h = 0.2 to estimate xx when t=0.4t = 0.4.
Sort it
?Each equation is dt2d2x+adtdx+bx=0d²x/dt² + adx/dt + bx = 0. Sort by the phase portrait.
Tap a statement, then tap the group it belongs in. Then press Check.
Calculate
?A spring obeys dt2d2x+0.6dtdx+9x=0d²x/dt² + 0.6dx/dt + 9x = 0. Find the real part of the eigenvalues of the matrix of the equivalent coupled system.
Mission check
?A spring bounces less each time. Which equation describes its motion?
A damped spring obeys dt2d2x+adtdx+bx=0d²x/dt² + adx/dt + bx = 0 with a,b>0a, b > 0: −bx−bx pulls it back and −adtdx−adx/dt resists the motion. Here λ=−0.3±2.98iλ = −0.3 ± 2.98i, so the phase path spirals into the origin: the spring keeps oscillating, but each bounce is smaller.
Recap
Big ideas
Translate words into a differential equation: rate = derivative, "proportional to" = constant times, decreasing = negative.
Separate the variables, integrate both sides with one constant, then use the initial condition; dxdy=kydy/dx = ky gives y=Aekxy = Ae^kx.
A slope field shows the gradient at each point; solution curves follow the segments.
Euler's method: yn+1=yn+hf(xn,yn)yₙ₊₁ = yₙ + h f(xₙ, yₙ). For a coupled system, update xx and yy together from the old values; a spreadsheet or GDC does the arithmetic.
For dtdx=ax+bydx/dt = ax + by, dtdy=cx+dydy/dt = cx + dy, the eigenvalues decide the phase portrait: negative (real part) in, positive out, opposite signs a saddle, complex spirals, imaginary ellipses.
With real distinct eigenvalues, (xy)=Aeλ1tv1+Beλ2tv2( x ; y ) = Ae^(λ₁ t)v₁ + Be^(λ₂ t)v₂.
Write dt2d2x=f(x,dtdx,t)d²x/dt² = f(x, dx/dt, t) as dtdx=ydx/dt = y, dtdy=f(x,y,t)dy/dt = f(x, y, t), then use Euler's method on both, from the old values.
dt2d2x+adtdx+bx=0d²x/dt² + adx/dt + bx = 0 has matrix (0−b1−a)( 0 , 1 ; −b , −a ) and λ2+aλ+b=0λ² + aλ + b = 0.
Imaginary λλ: ellipses (undamped oscillation). Complex with negative real part: spiral in (damped). Real, opposite signs: saddle.
🏆
Mini-lesson complete!
⭐⭐⭐
You've worked through Differential Equations (AI HL) for IB Diploma Mathematics: Applications & Interpretation HL. 🎉
Mission 1A population grows in proportion to its size. What equation is that?
Mission 2Foxes eat rabbits, rabbits feed foxes. Where does it all end?
Mission 3A spring bounces less each time. What equation does it obey?