(a) How does your numerical solution compare with the
analytical solution at times
,
, and
?
Plot the numerical and analytical solutions at each time on
the same graph.
(b) Repeat part (a) with a time step equal to half the Courant limit.


(a) Either derive (or look up in Numerical Recipes) the form
of the Lax scheme for this problem, and write down the rule
for advancing the system from time
to time
.
(b) Hence write a program to solve the wave equation on the
same grid as in question 1, with initial conditions