
ERROR AND STABILITY 227
proportional to a positive integer power of
the
temporal step size r or spatial step size
A.
Roundoff error results when the available number of decimal places used to
represent
a
number
is
less than the places required (representing | by 0.3333333, e.g.).
The storage capacity for number representation in modern computing machinery
usually means round-off errors are relatively small compared to truncation error.
However, it is possible that the effect of round-off error becomes very significant as
the number of calculations increase. Consequently, care must be used in decreasing
step size (either spatially or temporally) in an effort to reduce truncation error.
Numerical algorithms usually involve many steps or iterations in which truncation
error, round-off error, and other inaccuracies may accumulate. This type of error
is frequently referred to as accumulation error. Accumulation error is difficult to
isolate and measure. It is conceivable that different sources of error may offset each
other instead of simply combining to increase the error.
9.5.2 Stability
The stability of a numerical method concerns how any form of error (truncation or
rounding, etc.) or perturbation (in boundary conditions, initial conditions, or problem
parameters, etc) behaves as the numerical procedure continues. A precise definition
and formal treatment of stability is beyond the scope of this book. An interest reader
may consider the text by Linz [20] as a more in depth source.
At
a
more pedestrian level, a numerical method is said to be stable if the maximum
value of \φ^
—
Φι^
|
over the computation domain goes to zero as the maximum error
introduced at each grid point goes to zero. Likewise, the maximum of \φ^
—
Φ^·|
does not grow exponentially as the number of calculations grow.
The stability of a finite difference representation of a given PDE with prescribed
boundary conditions may be investigated in at least two different ways. One method
is to consider the finite difference representation of both the PDE and boundary
condition in a matrix form for which eigenvalue analysis is used to study stability.
A second method uses Fourier series representation of error to track its behavior
with respect to the finite difference representation of the PDE only. This analysis
technique is often referred to as the von Neumann method. The latter approach is
simpler to use, but does not account for instability effects from boundary conditions.
9.5.2.1 Explicit Case The von Neumann method is used in this section to
analyze the stability of the explicit form of the FD formulation for the ID heat
equation. The error E is due primarily to truncation in the algebraic representation
for the PDE, and may be thought of
as
a function of space and time. We do not know
a formula for E(x, t), but will assume it may be expressed as a Fourier series in both
x and another Fourier series in t. Let
oo
E(x, 0) = ]p A
k
cos(/?
fc
x) + B
k
sin(/?
fc
x)
k=0