These appendices are Professor Drummond's notes on the numerical algorithms discussed in the main part of this text. They are kept here as an alternative discussion to that given above.
How can we treat PDEs numerically?
First of all, it is clear that these PDE problems have many similarities to the coupled first-order differential equations (ODEs) treated earlier in the computational laboratory. Thus, many of the ideas from this field can be used here as well. This leads to the first obvious guess at how to treat this problem numerically, which is the first-order Euler method.
As a general rule, we can develop any method by considering a Taylor
series expansion of the spatial and temporal derivatives around a
given point, so as to give discrete approximations to the derivatives
for numerical integration purposes. Thus, for example, if we divide
time into a lattice of
, with
, then: