Integrating factors & Euler’s method
Solving linear first-order equations exactly with an integrating factor, and approximating solutions of any first-order equation numerically with Euler’s method.
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.
- Recognise a linear first-order equation and put it in standard formAHL 5.18
- Find the integrating factor and use it to solve the equationAHL 5.18
- Apply Euler’s method by hand and with a GDCAHL 5.18
- Explain whether Euler’s method over- or underestimates, and how to improve itAHL 5.18
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.
The left side of is exactly by the product rule, so integrates at once to . An integrating factor is a multiplier chosen to make any linear equation look like that. When no exact method works, Euler’s method follows the slope field in small straight steps to approximate the solution.
2.1 Linear equations and the integrating factor
For , multiply through by . Then
We want to equal . That needs , a separable equation with solution . No constant is needed in : any one integrating factor works.
The equation must be in standard form first: coefficient of equal to 1, and the term on the left.
2.2 Euler’s method
For with and step length :
Each step moves along the tangent at the current point for a horizontal distance . It works for any first-order equation, including ones with no exact solution.
Accuracy. The error comes from following the tangent instead of the curve. If the solution is concave up (), tangents lie below the curve, so Euler underestimates; if concave down, it overestimates. Halving roughly halves the error, at the cost of twice as many steps.
| 0 | 0 | 1 | 1 | 1.1 |
| 1 | 0.1 | 1.1 | 1.2 | 1.22 |
| 2 | 0.2 | 1.22 | 1.42 | 1.362 |
In Lists & Spreadsheet: column A for (=a1+0.1 filled down), column B for with and b2=b1+0.1*(a1+b1) filled down. Change the step in one cell to compare accuracies. Write down at least the first step and the final value in your working.
3Explore it
The navy curve is the exact solution; the red polyline is Euler’s method. Make the step length smaller and watch the error shrink.
4Common mistakes & exam tips
Common mistakes
- Finding the integrating factor before putting the equation in standard form.
- Writing but losing the sign of .
- Forgetting to multiply the right-hand side by .
- Forgetting the constant after integrating , or not dividing it by at the end.
- In Euler’s method, using the new with the old (or vice versa) when evaluating .
Exam tips
- Write the line explicitly: it is usually worth a mark.
- Simplify and straight away.
- For Euler on Paper 2, give answers to the accuracy asked; keep full accuracy in intermediate steps.
- Comment on accuracy using concavity or by comparing with the exact solution.
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 exam, with full markschemes. Give yourself about 1 minute per mark.
Consider the differential equation , with when .
- (a)Use Euler’s method with a step length of 0.1 to find an approximate value of when .[3]
- (b)Use an integrating factor to show that .[4]
- (c)Find the percentage error in your answer to (a).[1]
| (a) | |
| (M1) | |
| (A1) | |
| (1.7919) | A1 |
| (b) | |
| , | M1 |
| M1A1 | |
| A1AG | |
| (c) | |
| exact ; error | A1 |
Solve the differential equation , , given that when .
| M1 | |
| A1 | |
| M1 | |
| A1 | |
| A1 | |
| A1 |
Solve , given that when .
| A1 | |
| M1 | |
| by parts: | M1A1 |
| A1 | |
| A1 |
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're scoring well above, try real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2024 · TZ2 · Paper 2 | Q12 | Euler’s method, then showing is an integrating factor | ★★★ |
| May 2023 · TZ1 · Paper 2 | Q12 | Euler’s method with step length 0.03 | ★★ |
| Nov 2025 · TZ3 · Paper 2 | Q12 | Euler’s method on a homogeneous equation | ★★★ |
| May 2022 · TZ1 · Paper 2 | Q12 | Euler’s method with step length 0.1 | ★★ |
