Numerical solution of differential equationsEdexcel A-Level Further Maths: Revision notes
Section 1
Step length and the idea of a numerical solution
Many differential equations cannot be solved exactly. A numerical method starts from a known point and moves forward in equal steps of length , so . At each step the derivative at is replaced by a difference approximation that uses nearby values , , . The notation means the approximation to . Smaller steps usually give more accurate results but need more calculation. The three approximations on the specification are
Mixing up the indices: is the approximation at , not at .
Section 2
The forward difference method (Euler)
Substitute into and rearrange: Example: , , . Then , and . The exact solution is , so and the percentage error in is . Each step uses the gradient at the start of the interval, so errors build up.
Using in the gradient, or the old at every step. Update both and each time.
Set out a table of , , and so no step is skipped.
Section 3
The central difference method (first order)
The approximation is more accurate, because it is centred on . Substituting into gives It needs two starting values, and , because every step looks back two values. Find by the forward difference method. Example: , , . First . Then and .
Stepping from instead of . The central difference formula adds to .
Section 4
Second-order differential equations
Replace by . For this gives If the equation also contains , replace it by the central difference as well, then collect the , and terms. Example: with gives , so .
Substitute both approximations, multiply through by to clear fractions, and only then collect terms.
Section 5
Starting a second-order method
The second-order formula also needs two values, and , but the initial conditions give and at . Use the central difference at : which brings in the extra value . Write the recurrence formula with , and solve the two equations for and . Example: , , , and . Then and , so , and . (The exact value is .) A simpler start is .
Using as if the function were constant. Find from the derivative condition instead.
Section 6
Accuracy
Compare a numerical estimate with an exact value using the percentage error: Errors grow as more steps are taken. To improve an estimate, use a smaller step length , so that each difference approximation is closer to the true derivative, or use the central difference rather than the forward difference. For , , and , the estimate of is against an exact : an error of .
Always say why: a smaller gives a better approximation to the derivative, at the cost of more steps.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Numerical solution of differential equations
- The differential equation , with when , is solved numerically using the approximation with . Here and is the approximation to at .Given that , and that the exact solution is , calculate the percentage error in as an approximation to .2 marks
- The differential equation , with when , is solved numerically using the approximation with . Here , , and the value is found from the approximation .Find .2 marks
- The function satisfies , with and when . It is solved numerically with step length , where and approximates at , using and .Show that .3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).