Euler's method
Many differential equations cannot be solved with formulas. Euler's method solves them approximately: it follows the tangent to the solution over a small step, stops, recalculates the gradient and repeats. It is HL content, and it is usually asked as a table of a few steps on Paper 1, or with the graphic display calculator (GDC) on Paper 2.
The idea: follow the tangent
You have a differential equation and a starting point through which the solution passes. The equation gives the gradient of the solution at any point , even if you do not know the solution.
If you take a small horizontal step (the step size) and follow the tangent instead of the curve, you make a small error. From the new point you calculate the gradient again with and advance another step. In this way you build a polygonal line that imitates the solution curve.
The number of steps you need is . With to go from to you need steps.
Slope field
The slope field draws, on a grid of points, a short segment with the gradient at each point. Any solution of the equation is a curve that just touches all those segments. Each Euler step does exactly that: it relies on one segment and moves in its direction.
Accuracy: step size and error
Euler gives an approximation, not the exact value. Two ideas are worth being clear about.
Errors accumulate: each step starts from a point that is already approximate, not from the exact point of the solution.
Worked examples
Three Euler steps
Let with when . Use Euler's method with step .
a) Calculate .
b) Calculate .
c) Estimate the value of for .
Solution
Here , , and .
a) , with .
b) , with .
c) For we need .
| 0 | 0 | 1 |
| 1 | 0.5 | 0.5 |
| 2 | 1 | 0.75 |
| 3 | 1.5 | 1.375 |
Answer: .
Euler against the exact solution
Consider with .
a) Apply Euler's method with to estimate .
b) Apply the method with to estimate .
c) Solve the equation exactly and find .
d) Which estimate is better? Is the estimate an underestimate or an overestimate?
Solution
a) With each step multiplies by . You need steps:
b) With there are steps and each one multiplies by :
c) Separating variables, , so , and with we get . Hence .
d) The error with is and with it is . The estimate with the smaller step is better. Both are underestimates, because is convex and the tangents lie below the curve.
Answer: (), (), (exact); the estimate is better, and it is an underestimate.
Cooling a drink
A drink at is left in a room at . Its temperature (in degrees) at minute satisfies
a) Use Euler's method with to estimate .
b) Solve the equation exactly and calculate to three significant figures.
c) Calculate the error of the estimate in part a) to three significant figures and state whether it is an underestimate or an overestimate.
d) Estimate with (six steps). Give the result to two decimal places.
Solution
a) With and :
b) It is separable: , so , that is, . With we get . Then
c) The error is . The estimate is an underestimate: the solution is convex (it decreases more and more slowly).
d) Each step with multiplies the difference by : The error falls to about : when the step is halved, the error is roughly halved.
In the exam: for "estimate using Euler's method" you must write the formula and the table of steps: the final result alone does not earn the method marks. If they ask you to compare with the exact solution, make clear which is which.
Common mistakes
Summary
- The equation gives the gradient of the solution at each point.
- Euler: and , starting from .
- It is organised in a table , and you need steps.
- Smaller step, more accuracy; the error accumulates. Convex solution: Euler underestimates; concave: it overestimates.
- The slope field shows the direction of the solutions at each point of the grid.
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp