next up previous
Next: About this document ...

Math428: Problem Set #4 Solution Guide

1.
Derive the optimal coefficients for 3rd order Adams-Bashforth.


So, we are seeking the coefficients A1, A2, A3 for the AB3 method

uk+1 = uk + h(A1 fk + A2 fk-1 + A3 fk-2.

The procedure is straightforward. Remember, the coefficients are independent of h so what works for one value of h works for all values of h. Let h=1 to keep it simple. For a third order method, we expect to choose coefficients such that the uk's are exact for any cubic polynomial. So, we shall choose a test function

y = c0 + c1 x + c2 x2 + c3 x3,

and so,

y' = c1 + 2 c2 x + 3 c3 x2.

Substituting this into the method, we have

c0 + c1 + c2 + c3 = c0 + A1 c1 + A2 ( c1 - 2 c2 + 3 c3) + A2 (c1 - 4 c2 + 12 c3).

This is true for all cubics, so

c1(1-A1-A2-A3) + c2(1+2 A2+4 A3) + c3(1-3 A2 -12 A3) = 0

and
\begin{align*}1-A_1-A_2-A_3 & =0 \\
1+2 A_2+4 A_3 & = 0 \\
1-3 A_2 -12 A_3 & = 0.
\end{align*}
When you solve this linear system, you find that
$A_1 = \frac{23}{12}, A_2 = -\frac{4}{3}$, and $A_3 = \frac{5}{12}$.


2.
[KC 8.4:4] Use the method of undetermined coefficients to derive the fourth-order Adams-Bashforth formula

\begin{displaymath}x_{n+1} = x_n + \frac{h}{24}\left[24 f_n - 59 f_{n-1} + 37 f_{n-2} - 9
f_{n-3}\right]
\end{displaymath}


Just set h=1, plug in a quartic and solve the resulting linear system.


3.
[KC 8.4:5] Derive the fourth-order Adams-Moulton formula

\begin{displaymath}x_{n+1} = x_n + \frac{h}{24}\left[9 f_{n+1} +
19 f_n - 5 f_{n-1} + f_{n-2}\right]
\end{displaymath}


Just set h=1, plug in a quartic and solve the resulting linear system.


4.
Consider the ``poor man's orbital problem''

\begin{displaymath}x' = -y, \ \ \ \ y' = x \ \ \ \ x(0) = 1, y(0) = 0.
\end{displaymath}

Solve the problem for $0 \leq t \leq 8 \pi$ (four revolutions) with $h=\pi/20$ and $h=\pi/40$ using forward Euler, backward Euler, 3rd order Adams-Bashforth, 3rd order Adams-Bashforth-Moulton. Use an appropriate Taylor series start-up procedure.


I implemented all four methods and plot the results below.

\resizebox{3in}{!}{\includegraphics{fe.eps}} \resizebox{3in}{!}{\includegraphics{be.eps}}

\resizebox{3in}{!}{\includegraphics{ab3.eps}} \resizebox{3in}{!}{\includegraphics{abm3.eps}}

Of course, the Euler methods are not as accurate as the Adams family methods. More interesting is the qualitative behavior of these methods. All methods orbit roughly four times. Notice that the forward method spirals out which is precisely what one would expect from the stability test via the scalar test equation. Remember that the imaginary axis for the forward Euler equation is entirely in the unstable region. The opposite is true for the backward Euler method. The imaginary axis is entirely within the stable region. Ideally, a numerical method would ``hug'' the imaginary axis in the $h\lambda$ plane so reproduce oscillator behavior with as little decay or growth as possible.

Looking at the lower two plots, we see that the Adam's family methods are much more accurate for the given step-size, and they have been stability properties. Remember in class how the AB4 hugged the imaginary axis for small h? This is important! Both AB3 and ABM3 have the same order of accuracy, but if you examine the stability diagrams ABM3 does a far better job of hugging the imaginary axis than AB3. Below, I zoom in on the starting and ending positions of ABM3. Where AB3 spirals inward slightly, ABM3 spirals outward slightly (why?).

\resizebox{3in}{!}{\includegraphics{abm3zoom.eps}}



 
next up previous
Next: About this document ...
Louis F Rossi
2002-04-09