Spectral methods
From Scholarpedia
| David Gottlieb and Sigal Gottlieb (2009), Scholarpedia, 4(9):7504. | doi:10.4249/scholarpedia.7504 | revision #67646 [link to/cite this article] | |||||||||||||||||||
Curator: Dr. Sigal Gottlieb, Professor of Mathematics, University of Massachusetts Dartmouth
Spectral methods are powerful methods used for the solution of partial differential equations. Unlike finite difference methods, spectral methods are global methods, where the computation at any given point depends not only on information at neighboring points, but on information from the entire domain. Spectral methods converged exponentially, which makes them more accurate than local methods. Global methods are preferable to local methods when the solution varies considerably in time or space, when very high spatial resolution is required, and also when long time integration is needed.
Contents |
Finite Differences vs. Spectral Methods:
Finite difference methods are obtained by approximating a function u(x) by a local polynomial interpolant, and the derivatives of u(x) are then approximated by differentiating this local polynomial. Here local refers to the use of nearby grid points to approximate the function or its derivative at a given point. For slowly varying functions, the use of local polynomial interpolants based on a small number of interpolating grid points is very reasonable. Indeed, it seems to make little sense to include function values far away from the point of interest in approximating the derivative. However, using low-degree local polynomials to approximate solutions containing very significant spatial or temporal variation requires a very fine grid in order to accurately resolve the function. Clearly, the use of fine grids requires significant computational resources in simulations of interest to science and engineering. In the face of such limitations we seek alternative schemes that will allow coarser grids, and therefore fewer computational resources. Spectral methods are such methods; they use all available function values to construct the necessary approximations.Fourier spectral methods for time-dependent PDEs:
Global methods begin with the fact that if the function
is sufficiently smooth (typically we require
and
to be piecewise continuous) then it has a series expansion
where
are some complete set of functions (preferably orthogonal under some inner product). The coefficients
are calculated based on the global behavior of the function.
For example, it is well known that if
is a
periodic function on
and is square integrable, then it has a Fourier series expansion
where the Fourier coefficients are calculated by
and
. This formula tells us that at any point
the function's value has a representation that depends on the entire domain. This is what we call a global representation of the function.
Spectral methods use the idea of global representations to find high order approximations. If we wish to find an approximation
to a function
which is a solution to a given PDE we have two approaches:
Galerkin methods:
In the Galerkin approach we find the approximation so that the residual is orthogonal to the space from which
comes. This is accomplished by ensuring that the residual is orthogonal to each of the basis functions. Consider the simple PDE
. We wish to find an approximate solution
.
We define the residual
and require that
for all
.
Since
and
the coefficients are defined by
for
. Here
denotes the derivative of
with respect to time
. This means that to obtain the Galerkin approximation
we need to solve the ODEs
for the coefficients
. In this case we can do this analytically, of course, but in general we do this using some ODE solver.
This simple approach becomes complicated when the PDE is highly nonlinear. For example, if we want to solve the PDE
, we have the residual
and we want it to be orthogonal to the Fourier basis functions:
. This is not easy to do. It is not clear if this is possible!
For such complicated problems, we'd like to avoid the need for inner products. This leads us to the second approach.
Collocation methods:
In this approach, we require the residual to vanish at a given set of points. For example, consider the hyperbolic PDE
, for which we wish to find an approximate solution
. We define the residual
and require that
at a specified set of points
. This describes an ODE which can be evolved in time.
To see how this works, it's convenient to consider the fully discrete case. Assume that we have the initial condition
, so that we assign
. We define a sequence of vectors which contain the approximations
, where
,
and so
is known. Our goal is to step forward from
to
.
We start with the values of
and use this to compute
. For each time-level
we can compute the discrete Fourier coefficients
such that
for the set of points
. This is accomplished by solving the linear system
, where the matrix
contains the basis functions at the collocation points, the vector
contains the function values to be interpolated, and the vector
contains the coefficients. Once we know the Fourier coefficients of the function, we can easily differentiate it, because
. In matrix form, we can write
where we refer to the matrix
as the differentiation matrix. Now to step forward in time we use an ODE solver, -- for simplicity, let's use Euler's method here (but never in real life!):
.
To summarize this procedure,
.
For the collocation method, a nonlinearity does not complicate matters. For example, the PDE
becomes
which can be solved numerically by any ODE solver.
Stability of spectral methods
The Fourier Galerkin method is stable for the linear problem
where the linear operator
is semi-bounded in the
norm. This is harder to show for the Fourier collocation method for the hyperbolic problems -- the presence of aliasing error complicates the stability of the method. To counteract the aliasing term, we must add a viscosity term or filter to stabilize the method.
A good review of the research on the stability of the Fourier collocation methods for linear problems is given by Tadmor in his paper Stability Analysis of finite-difference, pseudospectral, and Fourier-Galerkin approximations for time dependent problems which appeared in SIAM Review 29 (1987) pp. 525-555. The stabilization of these methods using the vanishing viscosity methods was developed in the series of papers by Maday and Tadmor and Tadmor (1989, 1990, 1993):
- Maday and Tadmor, Analysis of the spectral vanishing viscosity method for periodic conservation laws. SIAM Journal on Numerical Analysis 26 (1989) pp. 854-870.
- Tadmor, Convergence of spectral methods for nonlinear conservation laws. SIAM Journal of Numerical Analysis, 26 (1989) pp. 30--44.
- Tadmor, Shock capturing by the spectral viscosity method. Computer Methods in Applied Mechanics and Engineering 80 (1990) pp. 197--208.
- Schochet, The rate of convergence of spectral viscosity methods for periodic scalar conservation laws. SIAM Journal on Numerical Analysis 27 (1990) pp.1142-1159.
The alternative (equivalent) use of filters stabilization can be found in Gottlieb and Hesthaven, Spectral methods for hyperbolic problems. in Journal of Computational and Applied Mathematics 128 (2001) pp. .
The situation for nonlinear problems is much more difficult, and some results can be found in Tadmor's paper, Superviscosity and spectral approximations of nonlinear conservation laws. in Numerical Methods for Fluid Dynamics IV (edited by M. J. Baines and K. W. Morton) Oxford University Press, London, 1993 pp. 69--82.
Spectral methods with other basis functions
Spectral methods can be constructed with other orthogonal polynomials rather than the Fourier basis functions. If the
problem considered is periodic, the Fourier basis functions are usually used. If the problem is defined in the bounded
domain but is not periodic, then the usual choice of basis functions are the Chebyshev or Legendre polynomials which are
defined in the interval
. If the domain is semi-bounded,
, the Laguerre
polynomials are used and if the domain is unbounded
, the Hermite polynomials are used. The
last two polynomials are used in particular in kinetic theory. The Galerkin and collocation methods are defined in the same way
as described above with the Fourier spectral methods.
References
There are many wonderful books on spectral methods. We list a few of them here:
- C. Bernadi and Y. Maday
- J.P. Boyd, Chebyshev and Fourier Spectral Methods, Dover Press (2000)
- C. Canuto A. Quarteroni T. A. Zang M. Y. Hussaini, Spectral Methods in Fluid Dynamics
- M. Deville, P Fischer, and E. Mund High-Order Methods in Incompressible Fluid Flows
- B. Fornberg A Practical Guide to Pseudospectral Methods, Cambridge University Press (1998)
- D. Funaro, Spectral Elements for Transport-Dominated Equations
- D. Funaro Polynomial Approximation of Differential Equations
- D. Gottlieb and S. Orszag, The Numerical Analysis of Spectral Methods, SIAM (1987)
- B.-Y. Guo, Spectral Methods and Their Applications
- J. S. Hesthaven, S. Gottlieb, D. Gottlieb, Spectral Methods for Time-Dependent Problems, Cambridge University Press (2006)
- G. Karniadakis and S. Sherwin, Spectral/hp Methods in Computational Fluid Dynamics
- L.N. Trefethen, Spectral Methods in Matlab, SIAM (2001)
- R. Peyret Spectral Methods for Incompressible Viscous Flow
Internal references
- Kendall E. Atkinson (2007) Numerical analysis. Scholarpedia, 2(8):3163.
- Andrei D. Polyanin, William E. Schiesser, Alexei I. Zhurov (2008) Partial differential equation. Scholarpedia, 3(10):4605.
- Philip Holmes and Eric T. Shea-Brown (2006) Stability. Scholarpedia, 1(10):1838.
See also
Numerical analysis, Partial differential equations
| David Gottlieb, Sigal Gottlieb (2009) Spectral methods. Scholarpedia, 4(9):7504, (go to the first approved version) Created: 6 June 2008, reviewed: 21 August 2009, accepted: 2 September 2009 |
| Invited by: | Dr. Skip Thompson, Radford University, Radford, Virginia |
| Action editor: | Dr. Barbara Zubik-Kowal, Department of Mathematics, Boise State University, Idaho, USA |












