Home › IB Maths AI HL › Exam practice › Differential Equations and Eulers Method

IB Maths AI HL · Unit 5

Differential Equations and Eulers Method: AI HL exam practice with markscheme

Covers integrating-factor DEs; second-order differential equations; separable first-order DEs. Work through the 10 questions on paper as if it were the exam, then open each solution and mark your work against the markscheme.

10 questions · 45 marks · about 54 minutes · 5 Paper 1 style, 5 Paper 2 style

Download the PDF 5 pages, worked solutions after the questions

Question 1

4 marks · Paper 2 style · calculator allowed

Solve dydx−yx=x2, x>0, y(1)=2.

Find y. [4]

Show solution

integrating factor 1x A1

ddx(yx)=x M1

yx=x22+32 A1

y=x32+3x2 A1

Answer: y=x3+3x2

Question 2

4 marks · Paper 2 style · calculator allowed

Use Euler's method with h=0.1 for the coupled system x˙=0.5x−0.1xy, y˙=−0.3y+0.05xy, with x(0)=4, y(0)=2, to estimate x(0.2) and y(0.2).

Find the estimates. [4]

Show solution

x1=4.12, y1=1.98 M1A1

x2=4.24 A1

y2=1.96 A1

Answer: x≈4.24, y≈1.96

Question 3

4 marks · Paper 1 style · calculator allowed

Find the integrating factor for dydx+3yx=1, x>0, and solve the equation given y(1)=0.

Find y. [4]

Show solution

e∫3xdx=x3 A1

ddx(x3y)=x3 M1

x3y=x44−14 A1

y=x4−14x3 A1

Answer: y=x4−14x3

Question 4

5 marks · Paper 1 style · calculator allowed

The rate at which a hot liquid cools is proportional to its temperature y, modelled by dydt=−ky for a positive constant k. Initially, y(0)=100, and after 2 minutes, y(2)=50. Find the exact temperature of the liquid after 6 minutes, y(6).

[5]

Show solution

Use the exponential decay solution with y(0)=100: y(t)=100e−kt M1
Use y(2)=50: 100e−2k=50 M1
So the 2-minute decay factor is e−2k=0.5 A1
Write y(6) in terms of this factor: y(6)=100e−6k=100(e−2k)3 M1
y(6)=100(0.5)3=12.5 A1

Answer: 12.5

Question 5

5 marks · Paper 1 style · calculator allowed

A system of coupled differential equations is given by dxdt=x+y and dydt=x−y. At t=0, the initial coordinates are (x0,y0)=(1,1). Use Euler's method with a step size of h=0.5 to find the coordinates (x,y) at t=1.

[5]

Show solution

Apply Euler's method to both equations with h=0.5: x1=x0+h(x0+y0)=1+0.5(1+1), y1=y0+h(x0−y0)=1+0.5(1−1) M1
Coordinates at t=0.5: (x1,y1)=(2,1) A1
Second step using the new coordinates: x2=2+0.5(2+1), y2=1+0.5(2−1) M1
x2=3.5 A1
y2=1.5, so at t=1, (x,y)=(3.5,1.5) A1

Answer: (3.5,1.5)

Question 6

5 marks · Paper 1 style · calculator allowed

Consider the differential equation dydx=x−y2, with initial condition y(1)=1.
Use Euler’s method with a step size of h=0.2 to find the approximate value of y(1.4). Show your intermediate steps in a table.

[5]

Show solution

Euler's method: yn+1=yn+hf(xn,yn) with f(x,y)=x−y2, x0=1,y0=1,h=0.2 M1
Step 1: f(x0,y0)=1−12=0 A1
y1=1+0.2(0)=1 at x1=1.2 A1
Step 2: f(x1,y1)=1.2−12=0.2 A1
y2=1+0.2(0.2)=1.04 at x2=1.4 A1

nxnynf(xn,yn)yn+1
01101
11.210.21.04
21.41.04

Approximate value: y(1.4)≈1.04

Answer: 1.04

Question 7

6 marks · Paper 1 style · calculator allowed

Find the exact particular solution to the differential equation: dydx=ycos⁡x given the boundary condition that y(0)=e2.

[6]

Show solution

Separate variables: 1ydy=cos⁡xdx M1
Integrate both sides: ∫1ydy=∫cos⁡xdx
ln⁡|y|=sin⁡x+C A1 A1
Substitute x=0,y=e2: ln⁡(e2)=sin⁡0+C M1
2=0+C⟹C=2 A1
Exact particular solution: y=esin⁡x+2 (or y=e2esin⁡x) A1

Answer: e(sinx+2)

Question 8

3 marks · Paper 2 style · calculator allowed

The equation x¨+2x˙+5x=0 is written as x˙=y, y˙=−5x−2y.

Find the eigenvalues and describe the motion. [3]

Show solution

λ2+2λ+5=0 M1

λ=−1±2i A1

stable spiral: damped oscillation A1

Answer: λ=−1±2i; a stable spiral

Question 9

4 marks · Paper 2 style · calculator allowed

The equation x¨+3x˙+2x=0 models a damped spring.

Write it as a system and find the eigenvalues; describe the motion. [4]

Show solution

x˙=y, y˙=−2x−3y A1

λ2+3λ+2=0 M1

λ=−1, −2 A1

stable node: returns to rest without oscillating A1

Answer: λ=−1, −2; no oscillation

Question 10

5 marks · Paper 2 style · calculator allowed

Solve dydx+2y=ex, y(0)=1, using an integrating factor.

Find y. [5]

Show solution

integrating factor e2x M1A1

ddx(ye2x)=e3x A1

ye2x=13e3x+c, c=23 A1

y=13ex+23e−2x A1

Answer: y=13ex+23e−2x

How the marks work: M marks are for a correct method, A marks for an accurate answer that follows it, R marks for a reason, and AG means the answer is given in the question. A mark in brackets, like (M1), can be implied by later correct work.

Notes, worked examples and more questions on this topic: AI HL Differential Equations and Eulers Method. Previous topic: Differential Equations. Next topic: Differentiation. Every AI HL topic.

Revise first with the AI HL revision notes, then finish on real papers: IB Maths AI HL past papers.