How does Euler's method step a differential equation forward numerically, and what limits its accuracy?
Use Euler's method and the improved Euler (midpoint) method to obtain a numerical solution of a first-order differential equation
A focused answer to the H2 Further Mathematics outcome on numerical solution of ODEs. Euler's method as a tangent step, the step size, accumulation of error, and the improved Euler (midpoint) method for greater accuracy.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to obtain a numerical (step-by-step) solution of a first-order differential equation with a given initial condition, using Euler's method and its improved (midpoint) variant. You should understand each step as moving along a tangent, the role of the step size, how error accumulates, and why the improved method is more accurate.
The answer
Euler's method
Given and a starting point , Euler's method steps forward by following the tangent:
where is the step size. Each step uses the gradient at the current point to predict the next .
The geometric picture
At the differential equation gives the gradient . Euler's method assumes the solution follows that straight tangent for one step of width . Because the true curve bends away from the tangent, each step introduces a small error.
Step size and error
A smaller step size gives a more accurate result, since the tangent approximation holds better over a shorter interval, but needs more steps. Euler's method has error proportional to per unit interval (first order), and the local errors accumulate over the steps, so estimates drift from the true solution as you go further.
The improved Euler (midpoint) method
Euler's method is crude because it uses only the gradient at the start of each step. The improved method corrects this by also using the gradient at the predicted end (or midpoint) and averaging:
Averaging the two end gradients accounts for how the gradient changes across the step, making the method second order (error proportional to ) and much more accurate for the same .
Examples in context
Example 1. Simulating motion with no closed form. When a drag force makes a projectile's equation of motion unsolvable in closed form, Euler or improved-Euler stepping produces the trajectory numerically, the basic idea behind physics simulation engines.
Example 2. Population and climate models. Large systems of differential equations in ecology and climate science are advanced in time by stepping methods of this family; the trade-off between step size, accuracy and computation is exactly the one Euler's method illustrates.
Try this
Q1. Write Euler's method for . [1 mark]
- Cue. .
Q2. How does reducing the step size affect the accuracy? [1 mark]
- Cue. It increases accuracy (the tangent approximation holds better over a shorter step), at the cost of more steps.
Q3. Why is the improved Euler method more accurate than basic Euler? [2 marks]
- Cue. It averages the gradients at the start and predicted end of each step, accounting for the gradient's change, giving second-order accuracy.
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original6 marksUse Euler's method with step size to estimate for , given .Show worked answer β
Euler's method is , where is the gradient.
Start: , .
Step 1: gradient . So at .
Step 2: gradient . So at .
Hence .
Markers reward the Euler formula, computing the gradient at each step, and the two-step result .
Original7 marksFor with , use the improved Euler (midpoint) method with to estimate in one step, and explain why it is more accurate than the basic Euler method.Show worked answer β
The improved Euler method first predicts with the gradient at the start, then corrects using the average of the start and predicted-end gradients (or the midpoint gradient). Using the average-gradient form:
Start gradient: . Predicted end value (basic Euler): at . End gradient at the prediction: .
Improved estimate using the average gradient: .
So . This is more accurate than basic Euler (which uses only the start gradient and gives in one step) because it accounts for how the gradient changes across the interval by averaging the two end gradients, reducing the truncation error.
Markers reward the predictor gradient, the corrector using the average of the two gradients, the value , and the explanation that averaging the gradient improves accuracy.
Related dot points
- Apply the Newton-Raphson method to find a root of an equation numerically and discuss its convergence and failure cases
A focused answer to the H2 Further Mathematics outcome on the Newton-Raphson method. The iterative formula, its geometric meaning as a tangent intercept, choosing a starting value, the quadratic convergence, and the situations in which the method fails.
- Solve an equation by fixed-point iteration of the form x = g(x), and use the derivative condition to decide convergence
A focused answer to the H2 Further Mathematics outcome on fixed-point iteration. Rearranging f(x) = 0 into x = g(x), the iteration x_{n+1} = g(x_n), the staircase and cobweb diagrams, and the convergence condition that the magnitude of g prime is less than one.
- Approximate a definite integral using the trapezium rule and Simpson's rule and comment on the accuracy of the estimate
A focused answer to the H2 Further Mathematics outcome on numerical integration. The trapezium rule and Simpson's rule, the strip width and ordinates, applying each rule, the over- or under-estimate behaviour, and which rule is more accurate.
- Solve first-order differential equations by separation of variables and by the integrating factor method, applying initial conditions
A focused answer to the H2 Further Mathematics outcome on first-order differential equations. Separation of variables, the integrating factor method for linear equations, general and particular solutions, and applying initial conditions.