Slope fields & Euler’s method
Most differential equations cannot be solved exactly. A slope field shows the shape of every solution at once, and Euler’s method builds an approximate solution step by step. The same idea works for coupled systems such as predators and prey.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Draw and interpret slope fields, and sketch solution curves on themAHL 5.15
- Find equilibrium solutions and long-term behaviour from a slope fieldAHL 5.15
- Use Euler’s method to approximate the solution of AHL 5.16
- Use Euler’s method for coupled systems , AHL 5.16
- Explain how the step size affects the accuracyAHL 5.16
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
A differential equation gives the gradient at every point, even if we cannot solve it. Draw a short line with that gradient at many points and you get a slope field. Follow the little lines and you trace a solution. Euler’s method does the following numerically: take a small step along the tangent, then look up the new gradient, and repeat.
2.1 Slope fields
Slope field for
To sketch a solution curve through a given point, start at the point and move so the curve is always tangent to the nearby lines; curves never cross. Where the lines are horizontal, . A horizontal line of zero slopes, such as for , is an equilibrium solution.
2.2 Euler’s method
is the step length. For a coupled system, update both: , , .
2.3 Coupled systems
Two populations that affect each other, such as rabbits and foxes , give a pair of equations. Euler’s method updates both values at each step, using the old values of both in each formula. A spreadsheet or the GDC does many steps quickly.
In the TI-Nspire Lists & Spreadsheet app, put and in row 1, then in row 2 type formulas such as =a1+0.1 and =b1+0.1·(a1+b1) and fill down (menu → Data → Fill). For a coupled system use one column each for , and . In the exam you may use any permitted technology, but show the first step by hand so the method is clear.
3Explore it
The slope field for dy/dx = x − y with an Euler path (red) starting at (0, y₀), and the exact solution (dashed). Make the step h smaller and watch the red path approach the true curve.
4Common mistakes & exam tips
Common mistakes
- Using the new value with the old value (or the other way round) when working out the gradient.
- Forgetting to multiply the gradient by .
- In a coupled system, using the updated to compute the new in the same step.
- Drawing solution curves that cross each other or cut across the slope lines.
- Rounding at each step: keep full accuracy and round only the final answer.
Exam tips
- Set the working out as a table: , , , , .
- To explain under- or overestimation, link it to the concavity of the solution curve.
- "How could the approximation be improved?": use a smaller step size.
- For equilibrium solutions, solve for constant .
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
Consider the differential equation , with when .
- (a)Use Euler’s method with a step length of 0.25 to find an approximate value of when .[4]
- (b)The exact value is 0.632. State, with a reason, how the approximation could be improved.[1]
| (a) | |
| (M1) | |
| (A1) | |
| (A1) | |
| A1 | |
| (b) | |
| use a smaller step length, so each tangent step stays closer to the curve | R1 |
The slope field for the differential equation is shown.
- (a)Find the gradient of the solution curve at the point .[1]
- (b)Write down the equilibrium solutions.[2]
- (c)Sketch the solution curve through and describe its long-term behaviour.[2]
| (a) | |
| A1 | |
| (b) | |
| A1 | |
| A1 | |
| (c) | |
| increasing S-shaped curve following the slopes | A1 |
| as increases | A1 |
The numbers of rabbits, , and foxes, , on an island are modelled by and , where is in years. Initially and .
- (a)Use Euler’s method with a step length of 0.5 to find the values of and after 1 year.[4]
- (b)Find the non-zero equilibrium populations.[3]
- (c)Explain what the term represents.[1]
| (a) | |
| , | (M1)(A1) |
| A1 | |
| A1 | |
| (b) | |
| and | (M1) |
| A1 | |
| A1 | |
| (c) | |
| rabbits being eaten by foxes: the loss grows with the number of meetings between them | R1 |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| Nov 2021 · Paper 1 | Q13 | Slope field for | ★★☆ |
| May 2024 · TZ2 · Paper 1 | Q7 | Euler’s method with step size 0.1 | ★☆☆ |
| May 2024 · TZ1 · Paper 2 | Q5 | Identifying a slope field, then Euler’s method | ★★☆ |
| Nov 2024 · Paper 1 | Q17 | Fish and insects: Euler’s method for a coupled system | ★★★ |
