Spectral methods are a class of techniques used inapplied mathematics andscientific computing to numerically solve certaindifferential equations. The idea is to write the solution of the differential equation as a sum of certain "basis functions" (for example, as aFourier series which is a sum ofsinusoids) and then to choose the coefficients in the sum in order to satisfy the differential equation as well as possible.
Spectral methods andfinite-element methods are closely related and built on the same ideas; the main difference between them is that spectral methods use basis functions that are generally nonzero over the whole domain, while finite element methods use basis functions that are nonzero only on small subdomains (compact support). Consequently, spectral methods connect variablesglobally while finite elements do solocally. Partially for this reason, spectral methods have excellent error properties, with the so-called "exponential convergence" being the fastest possible, when the solution issmooth. However, there are no known three-dimensional single-domain spectralshock capturing results (shock waves are not smooth).[1] In the finite-element community, a method where the degree of the elements is very high or increases as the grid parameterh increases is sometimes called aspectral-element method.
Spectral methods can be used to solvedifferential equations (PDEs, ODEs, eigenvalue, etc)[2] andoptimization problems. When applying spectral methods to time-dependent PDEs, the solution is typically written as a sum of basis functions with time-dependent coefficients; substituting this in the PDE yields a system of ODEs in the coefficients which can be solved using anynumerical method for ODEs.[3] Eigenvalue problems for ODEs are similarly converted to matrix eigenvalue problems[citation needed].
Spectral methods were developed in a long series of papers bySteven Orszag starting in 1969 including, but not limited to, Fourier series methods for periodic geometry problems, polynomial spectral methods for finite and unbounded geometry problems, pseudospectral methods for highly nonlinear problems, and spectral iteration methods for fast solution of steady-state problems. The implementation of the spectral method is normally accomplished either withcollocation or aGalerkin or aTau approach . For very small problems, the spectral method is unique in that solutions may be written out symbolically, yielding a practical alternative to series solutions for differential equations.
Spectral methods can be computationally less expensive and easier to implement than finite element methods; they shine best when high accuracy is sought in simple domains with smooth solutions. However, because of their global nature, the matrices associated with step computation are dense and computational efficiency will quickly suffer when there are many degrees of freedom (with some exceptions, for example if matrix applications can be written asFourier transforms). For larger problems and nonsmooth solutions, finite elements will generally work better due to sparse matrices and better modelling of discontinuities and sharp bends.
Here we presume an understanding of basic multivariatecalculus andFourier series. If is a known, complex-valued function of two real variables, and g is periodic in x and y (that is,) then we are interested in finding a functionf(x,y) so that
where the expression on the left denotes the second partial derivatives off inx andy, respectively. This is thePoisson equation, and can be physically interpreted as some sort of heat conduction problem, or a problem in potential theory, among other possibilities.
If we writef andg in Fourier series:
and substitute into the differential equation, we obtain this equation:
We have exchanged partial differentiation with an infinite sum, which is legitimate if we assume for instance thatf has a continuous second derivative. By the uniqueness theorem for Fourier expansions, we must then equate the Fourier coefficients term by term, giving
*
which is an explicit formula for the Fourier coefficientsaj,k.
With periodic boundary conditions, thePoisson equation possesses a solution only ifb0,0 = 0. Therefore, we can freely choosea0,0 which will be equal to the mean of the resolution. This corresponds to choosing the integration constant.
To turn this into an algorithm, only finitely many frequencies are solved for. This introduces an error which can be shown to be proportional to, where and is the highest frequency treated.
Compute the Fourier transform (aj,k) off via the formula (*).
Computef by taking an inverse Fourier transform of (aj,k).
Since we're only interested in a finite window of frequencies (of sizen, say) this can be done using afast Fourier transform algorithm. Therefore, globally the algorithm runs intimeO(n logn).
With Fourier transformed initial conditions and forcing, this coupled system of ordinary differential equations may be integrated in time (using, e.g., aRunge Kutta technique) to find a solution. The nonlinear term is aconvolution, and there are several transform-based techniques for evaluating it efficiently. See the references by Boyd and Canuto et al. for more details.
One can show that if is infinitely differentiable, then the numerical algorithm using Fast Fourier Transforms will converge faster than any polynomial in the grid size h. That is, for any n>0, there is a such that the error is less than for all sufficiently small values of. We say that the spectral method is of order, for every n>0.
Because aspectral element method is afinite element method of very high order, there is a similarity in the convergence properties. However, whereas the spectral method is based on the eigendecomposition of the particular boundary value problem, the finite element method does not use that information and works for arbitraryelliptic boundary value problems.
^pp 235, Spectral Methods: evolution to complex geometries and applications to fluid dynamics, By Canuto, Hussaini, Quarteroni and Zang, Springer, 2007.
^Muradova, Aliki D. (2008). "The spectral method and numerical continuation algorithm for the von Kármán problem with postbuckling behaviour of solutions".Adv Comput Math.29 (2):179–206, 2008.doi:10.1007/s10444-007-9050-7.hdl:1885/56758.S2CID46564029.
^Muradova, Aliki D. (2015). "A time spectral method for solving the nonlinear dynamic equations of a rectangular elastic plate".Journal of Engineering Mathematics.92:83–101, 2015.doi:10.1007/s10665-014-9752-z.
Bengt Fornberg (1996)A Practical Guide to Pseudospectral Methods. Cambridge University Press, Cambridge, UK
D. Gottlieb and S. Orzag (1977) "Numerical Analysis of Spectral Methods : Theory and Applications", SIAM, Philadelphia, PA
J. Hesthaven, S. Gottlieb and D. Gottlieb (2007) "Spectral methods for time-dependent problems", Cambridge UP, Cambridge, UK
Steven A. Orszag (1969)Numerical Methods for the Simulation of Turbulence, Phys. Fluids Supp. II, 12, 250–257
Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007)."Section 20.7. Spectral Methods".Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press.ISBN978-0-521-88068-8.
Jie Shen, Tao Tang and Li-Lian Wang (2011) "Spectral Methods: Algorithms, Analysis and Applications" (Springer Series in Computational Mathematics, V. 41, Springer),ISBN354071040X
Lloyd N. Trefethen (2000)Spectral Methods in MATLAB. SIAM, Philadelphia, PA
Muradova A. D. (2008) "The spectral method and numerical continuation algorithm for the von Kármán problem with postbuckling behaviour of solutions", Advances in Computational Mathematics, 29, pp. 179–206,https://doi.org/10.1007/s10444-007-9050-7.
Muradova A. D. (2015) "A time spectral method for solving the nonlinear dynamic equations of a rectangular elastic plate", Journal of Engineering Mathematics, 92, pp. 83–101,https://doi.org/10.1007/s10665-014-9752-z.