This appendix gives some simplified definitions and results from the subject of finite-difference schemes for numerically solving partial differential equations. Excellent references on this subject include Bilbao [53,55] and Strikwerda .
The simplifications adopted here are that we will exclude nonlinear and time-varying partial differential equations (PDEs). We will furthermore assume constant step-sizes (sampling intervals) when converting PDEs to finite-difference schemes (FDSs), i.e., sampling rates along time and space will be constant. Accordingly, we will assume that all initial conditions are bandlimited to less than half the spatial sampling rate, and that all excitations over time (such as summing input signals or ``moving boundary conditions'') will be bandlimited to less than half the temporal sampling rate. In short, the simplifications adopted here make the subject of partial differential equations isomorphic to that of linear systems theory . For a more general and traditional treatment of PDEs and their associated finite-difference schemes, see, e.g., .
Finite-Difference Schemes (FDSs) aim to solve differential
equations by means of finite differences. For example, as discussed
in §C.2, if denotes the displacement in meters of a vibrating
string at time seconds and position meters, we may approximate
the first- and second-order partial derivatives by
where denotes the time sampling interval and denotes the spatial sampling interval. Other types of finite-difference schemes were derived in Chapter 7 (§7.3.1), including a look at frequency-domain properties. These finite-difference approximations to the partial derivatives may be used to compute solutions of differential equations on a discrete grid:
where is a positive real constant (which turns out to be wave propagation speed). Then, as derived in §C.2, setting and substituting the finite-difference approximations into the ideal wave equation leads to the relation
The FDS is called explicit because it was possible to solve for the state at time as a function of the state at earlier times (and any other positions ). This allows it to be implemented as a time recursion (or ``digital filter'') which computes a solution at time from solution samples at earlier times (and any spatial positions). When an explicit FDS is not possible (e.g., a non-causal filter is derived), the discretized differential equation is said to define an implicit FDS. An implicit FDS can often be converted to an explicit FDS by a rotation of coordinates [55,481].
A finite-difference scheme is said to be convergent if all of its solutions in response to initial conditions and excitations converge pointwise to the corresponding solutions of the original differential equation as the step size(s) approach zero.
In the vibrating string example, the limit is taken as the step sizes (sampling intervals) and approach zero. Since the finite-difference approximations in Eq.(D.1) converge in the limit to the very definitions of the corresponding partial derivatives, we expect the FDS in Eq.(D.3) based on these approximations to be convergent (and it is).
In establishing convergence, it is necessary to provide that any initial conditions and boundary conditions in the finite-difference scheme converge to those of the continuous differential equation, in the limit. See  for a more detailed discussion of this topic.
The Lax-Richtmyer equivalence theorem provides a means of showing convergence of a finite-difference scheme by showing it is both consistent and stable (and that the initial-value problem is well posed) . The following subsections give basic definitions for these terms which applicable to our simplified scenario (linear, shift-invariant, fixed sampling rates).
A finite-difference scheme is said to be consistent with the original partial differential equation if, given any sufficiently differentiable function , the differential equation operating on approaches the value of the finite difference equation operating on , as and approach zero.
Thus, in the ideal string example, to show the consistency of Eq.(D.3) we must show that
In particular, we have
In taking the limit as and approach zero, we must maintain the relationship , and we must scale the FDS by in order to achieve an exact result:
as required. Thus, the FDS is consistent. See, e.g.,  for more examples.
Well Posed Initial-Value Problem
For a proper authoritative definition of ``well posed'' in the field of finite-difference schemes, see, e.g., . The definition we will use here is less general in that it excludes amplitude growth from initial conditions which is faster than polynomial in time.
As discussed in , a system is defined to be stable when its response to bounded initial conditions approaches zero as time goes to infinity. If the response fails to approach zero but does not exponentially grow over time (the lossless case), it is called marginally stable.
When marginally stable systems are allowed, it is necessary to accommodate polynomial growth with respect to time. As is well known in linear systems theory, repeated poles can yield polynomial growth . A very simple example is the ordinary differential equation (ODE)
When all poles of the system are strictly in the left-half of the Laplace-transform plane, the system is stable, even when the poles are repeated. This is because exponentials are faster than polynomials, so that any amount of exponential decay will eventually overtake polynomial growth and drag it to zero in the limit.
Marginally stable systems arise often in computational physical modeling. In particular, the ideal string is only marginally stable, since it is lossless. Even a simple unaccelerated mass, sliding on a frictionless surface, is described by a marginally stable PDE when the position of the mass is used as a state variable (see §7.1.2). Given any nonzero initial velocity, the position of the mass approaches either or infinity, exactly as in the example above. To avoid unbounded growth in practical systems, it is often preferable to avoid the use of displacement as a state variable. For ideal strings and freely sliding masses, force and velocity are usually good choices.
It should perhaps be emphasized that the term ``well posed'' normally allows for more general energy growth at a rate which can be bounded over all initial conditions . In this book, however, the ``marginally stable'' case (at most polynomial growth) is what we need. The reason is simply that we wish to excluded unstable PDEs as a modeling target. Note, however, that unstable systems can be used profitable over carefully limited time durations (see §9.7.2 for an example).
Note that solutions on the ideal string are not bounded, since, for example, an infinitely long string (non-terminated) can be initialized with a constant positive velocity everywhere along its length. This corresponds physically to a nonzero transverse momentum, which is conserved. Therefore, the string will depart in the positive direction, with an average displacement that grows linearly with .
A Class of Well Posed Damped PDEs
Thus, to the ideal string wave equation Eq.(C.1) we may add any number of even-order partial derivatives in , plus any number of mixed odd-order partial derivatives in and , where differentiation with respect to occurs only once. Because every member of this class of PDEs is only second-order in time, it is guaranteed to be well posed, as we now show.
To show Eq.(D.5) is well posed , we must show that the roots of the characteristic polynomial equation (§D.3) have negative real parts, i.e., that they correspond to decaying exponentials instead of growing exponentials. To do this, we may insert the general eigensolution
Let's now set , where is radian spatial frequency (called the ``wavenumber'' in acoustics) and of course , thereby converting the implicit spatial Laplace transform to a spatial Fourier transform. Since there are only even powers of the spatial Laplace transform variable , the polynomials and are real. Therefore, the roots of the characteristic polynomial equation (the natural frequencies of the time response of the system), are given by
For its tutorial value, let's also show that the PDE of Ruiz  is ill posed, i.e., that at least one component of the solution is a growing exponential. In this case, setting in Eq.(C.28), which we restate as
It is interesting to note that Ruiz discovered the exponentially growing solution, but simply dropped it as being non-physical. In the work of Chaigne and Askenfelt , it is believed that the finite difference approximation itself provided the damping necessary to eliminate the unstable solution . (See §7.3.2 for a discussion of how finite difference approximations can introduce damping.) Since the damping effect is sampling-rate dependent, there is an upper bound to the sampling rate that can be used before an unstable mode appears.
The Lax-Richtmyer equivalence theorem states that ``a consistent finite-difference scheme for a partial differential equation for which the initial-value problem is well posed is convergent if and only if it is stable.'' For a proof, see [481, Ch. 10].
Passivity of a Finite-Difference Scheme
A condition stronger than stability as defined above is passivity. Passivity is not a traditional metric for finite-difference scheme analysis, but it arises naturally in special cases such as wave digital filters (§F.1) and digital waveguide networks [55,35]. In such modeling frameworks, all signals have a physical interpretation as wave variables, and therefore a physical energy can be associated with them. Moreover, each delay element can be associated with some real wave impedance. In such situations, passivity can be defined as the case in which all impedances are nonnegative. When complex, they must be positive real (see §C.11.2).
To define passivity for all linear, shift-invariant finite difference schemes, irrespective of whether or not they are based on an impedance description, we will say that a finite-difference scheme is passive if all of its internal modes are stable. Thus, passivity is sufficient, but not necessary, for stability. In other words, there are finite difference schemes which are stable but not passive . A stable FDS can have internal unstable modes which are not excited by initial conditions, or which always cancel out in pairs. A passive FDS cannot have such ``hidden'' unstable modes.
The absence of hidden modes can be ascertained by converting the FDS to a state-space model and checking that it is controllable (from initial conditions and/or excitations) and observable . When the initial conditions can set the entire initial state of the FDS, it is then controllable from initial conditions, and only observability needs to be checked. A simple example of an unobservable mode is the second harmonic of an ideal string (and all even-numbered harmonics) when the only output observation is the midpoint of the string.
- PDE well posed PDE at least marginally stable
- FDS consistent FDS shift operator PDE operator as
- FDS stable stable or marginally stable as a digital filter
- FDS strictly stable stable as a digital filter
- FDS marginally stable marginally stable as a digital filter
Because the range of human hearing is bounded (nominally between 20 and 20 kHz), spectral components of a signal outside this range are not audible. Therefore, when the solution to a differential equation is to be considered an audio signal, there are frequency regions over which convergence is not a requirement.
Instead of pointwise convergence, we may ask for the following two properties:
- Superposition holds.
- Convergence occurs within the frequency band of human hearing.
In many cases, such as in digital waveguide modeling of vibrating strings, we can do better than convergence. We can construct finite difference schemes which agree with the corresponding continuous solutions exactly at the sample points. (See §C.4.1.)
The characteristic polynomial equation for a linear PDE with constant coefficients is obtained by taking the 2D Laplace transform of the PDE with respect to and . A simple way of doing this is to substitute the general eigensolution
into the PDE, where denotes the complex variable associated with the Laplace-transform with respect to time, and is the complex variable associated with the spatial Laplace transform.
where is a positive constant (sound speed, as discussed in §C.1).
The procedure, in principle, is to perform a spatial Fourier transform along all spatial dimensions, thereby reducing the finite-difference scheme to a time recursion in terms of the spatial Fourier transform of the system. The system is then stable if this time recursion is at least marginally stable as a digital filter.
where denotes radian spatial frequency (wavenumber). (On a more elementary level, the DTFT along can be carried out by substituting for in the finite-difference scheme.) This is now a second-order difference equation (digital filter) that needs its stability checked. This can be accomplished most easily using the Durbin recursion , or we can check that the poles of the recursion do not lie outside the unit circle in the plane.
In summary, von Neumann analysis verifies that no spatial Fourier components in the system are growing exponentially with respect to time.
Equivalence of Digital Waveguide and Finite Difference Schemes
Digital Waveguide Theory