Von Neumann stability analysis explained

In numerical analysis, von Neumann stability analysis (also known as Fourier stability analysis) is a procedure used to check the stability of finite difference schemes as applied to linear partial differential equations.[1] The analysis is based on the Fourier decomposition of numerical error and was developed at Los Alamos National Laboratory after having been briefly described in a 1947 article by British researchers John Crank and Phyllis Nicolson.This method is an example of explicit time integration where the function that defines governing equation is evaluated at the current time.Later, the method was given a more rigorous treatment in an article co-authored by John von Neumann.

Numerical stability

The stability of numerical schemes is closely associated with numerical error. A finite difference scheme is stable if the errors made at one time step of the calculation do not cause the errors to be magnified as the computations are continued. A neutrally stable scheme is one in which errors remain constant as the computations are carried forward. If the errors decay and eventually damp out, the numerical scheme is said to be stable. If, on the contrary, the errors grow with time the numerical scheme is said to be unstable. The stability of numerical schemes can be investigated by performing von Neumann stability analysis. For time-dependent problems, stability guarantees that the numerical method produces a bounded solution whenever the solution of the exact differential equation is bounded. Stability, in general, can be difficult to investigate, especially when the equation under consideration is nonlinear.

In certain cases, von Neumann stability is necessary and sufficient for stability in the sense of Lax–Richtmyer (as used in the Lax equivalence theorem): The PDE and the finite difference scheme models are linear; the PDE is constant-coefficient with periodic boundary conditions and has only two independent variables; and the scheme uses no more than two time levels. Von Neumann stability is necessary in a much wider variety of cases. It is often used in place of a more detailed stability analysis to provide a good guess at the restrictions (if any) on the step sizes used in the scheme because of its relative simplicity.

Illustration of the method

The von Neumann method is based on the decomposition of the errors into Fourier series. To illustrate the procedure, consider the one-dimensional heat equation \frac = \alpha \fracdefined on the spatial interval

L

, with the notationu_j^n = u(x_j,t^n)where

xj

are the specific x values, and

tn

are the sequence of t values.

We can discretize the heat equation[2] aswherer = \frac

Then the solution

n
u
j
of the discrete equation approximates the analytical solution

u(x,t)

of the PDE on the grid.
n
\epsilon
j
as \epsilon_j^n = N_j^n - u_j^nwhere
n
u
j
is the solution of the discretized equation that would be computed in the absence of round-off error, and
n
N
j
is the numerical solution obtained in finite precision arithmetic. Since the exact solution
n
u
j
must satisfy the discretized equation exactly, the error
n
\epsilon
j
must also satisfy the discretized equation.[3] Here we assumed that
n
N
j
satisfies the equation, too (this is only true in machine precision). Thusis a recurrence relation for the error. Equations and show that both the error and the numerical solution have the same growth or decay behavior with respect to time. For linear differential equations with periodic boundary condition, the spatial variation of error may be expanded in a finite Fourier series with respect to

x

, in the interval

L

, aswhere the wavenumber

km=

\pim
L
with

m=-M,...,-2,-1,0,1,2,...,M

and

M=L/\Deltax

. The time dependence of the error is included by assuming that the amplitude of error

Em

is a function of time. Often the assumption is made that the error grows or decays exponentially with time, but this is not necessary for the stability analysis.

If the boundary condition is not periodic, then we may use the finite Fourier integral with respect to

x

:

Since the difference equation for error is linear (the behavior of each term of the series is the same as series itself), it is enough to consider the growth of error of a typical term:if a Fourier series is used orif a Fourier integral is used.

As the Fourier series can be considered to be a special case of the Fourier integral, we will continue the development using the expressions for the Fourier integral.

The stability characteristics can be studied using just this form for the error with no loss in generality. To find out how error varies in steps of time, substitute equation into equation, after noting that\begin \epsilon_j^n & = E_m(t) e^ \\ \epsilon_j^ & = E_m(t+\Delta t) e^ \\ \epsilon_^n & = E_m(t) e^ \\ \epsilon_^n & = E_m(t) e^,\endto yield (after simplification)

Introducing

\theta=km\Deltax\in[-\pi,\pi]

and using the identities\sin\left(\frac\right)= \frac \qquad \rightarrow \qquad \sin^2\left(\frac\right) = -\fracequation may be written asDefine the amplification factorThe necessary and sufficient condition for the error to remain bounded is that

|G|\leq1.

Thus, from equations and, the condition for stability is given byNote that the term

4r\sin2(\theta/2)

is always positive. Thus, to satisfy Equation :For the above condition to hold for all

m

(and therefore all

\sin2(\theta/2)

). The highest value the sinusoidal term can take is 1 and for that particular choice if the upper threshold condition is satisfied, then so will be for all grid points, thus we haveEquation gives the stability requirement for the FTCS scheme as applied to one-dimensional heat equation. It says that for a given

\Deltax

, the allowed value of

\Deltat

must be small enough to satisfy equation .

Similar analysis shows that a FTCS scheme for linear advection is unconditionally unstable.

Notes and References

  1. https://books.google.com/books?id=y77n2ySMJHUC&pg=PA523&dq=von+Neumann+stability+analysis#PPA523,M1 Analysis of Numerical Methods by E. Isaacson, H. B. Keller
  2. in this case, using the FTCS discretization scheme
  3. Book: Computational Fluid Dynamics: The Basics with Applications . Anderson, J. D. Jr. . John D. Anderson. . 1994 .