We consider the numerical solution of the initial value problem
1) Determine the local truncation error for the leapfrog method (see Definition 5.14, page 298).
For the remainder of this assignment, assume
.
2) Discuss the accuracy of the leapfrog method by comparing with
.
Assume that
,
where
.
Assume also
.
3) Analyze the stability of leapfrog method. Again assume that
,
where
and assume
.
In particular, discuss the stability of the method when
a)
is real.
b)
is purely imaginary.
c)
is complex (i.e., with non-zero real and imaginary parts).
4) Write a computer program to implement the leapfrog method. Discuss the results of various runs of your program in the context of your stability analysis.
5) Repeat exercise 2) for the fourth order Runge-Kutta method (page 281).
6) Determine the stability diagram for the fourth order
Runge-Kutta method. Do this numerically, not analytically. Again, assume
that
,
where
and assume
.
This assignment is due on Wednesday, 7 April 1999, at 12:40 p.m.