Topic 6 · Lesson 1 of 4
First order differential equations
Notation
Start at and take steps of length : , , and so on. Write for the approximate value of at , and for the gradient found by putting and into the differential equation.
Euler's method
Near the curve is close to its tangent. Following the tangent for a distance :
This comes from the approximation , the gradient of the chord from to .
Worked example
Euler's method
Given with at , use to estimate at .
Show solutionHide solution
- , so .
- , so .
- .
A table with columns , , and keeps the working clear.
The midpoint formula
A better approximation to the gradient at uses the points on either side, the gradient of the chord from to :
Each new value needs the two before it, so the formula cannot start on its own. Find another way (often one step of Euler's method, or a value given in the question), then continue with the midpoint formula.
Worked example
The midpoint formula
For the same equation, , , use Euler's method for and then the midpoint formula to estimate at and , with .
Show solutionHide solution
- As before, .
- , so .
- , so .
The exact solution is , which gives and . The midpoint value at is much closer than Euler's 0.811.
Accuracy
- Errors build up with each step, so estimates get worse the further you go.
- Halving roughly halves the error of Euler's method, at the cost of twice as many steps.
- Euler's method is poor where the gradient changes quickly, because the tangent soon leaves the curve.
- Percentage error .
Practise this topic
Both are part of Premium.