http://mathworld.wolfram.com/FourierSeries.html
A Fourier series is an expansion of a periodic function in terms of an infinite sum ofsines and cosines. Fourier series make use of the orthogonality relationships of the sine and cosine functions. The computation and study of Fourier series is known asharmonic analysis and is extremely useful as a way to break up anarbitrary periodic function into a set of simple terms that can be plugged in, solved individually, and then recombined to obtain the solution to the original problem or an approximation to it to whatever accuracy is desired or practical. Examples of successive approximations to common functions using Fourier series are illustrated above.
In particular, since the superposition principle holds for solutions of a linear homogeneous ordinary differential equation, if such an equation can be solved in the case of a single sinusoid, the solution for an arbitrary function is immediately available by expressing the original function as a Fourier series and then plugging in the solution for each sinusoidal component. In some special cases where the Fourier series can be summed in closed form, this technique can even yield analytic solutions.
Any set of functions that form a complete orthogonal system have a corresponding generalized Fourier series analogous to the Fourier series. For example, using orthogonality of the roots of aBessel function of the first kind gives a so-called Fourier-Bessel series.
The computation of the (usual) Fourier series is based on the integral identities
(1)
|
|||
(2)
|
|||
(3)
|
|||
(4)
|
|||
(5)
|
for , where is theKronecker delta.
Using the method for a generalized Fourier series, the usual Fourier series involving sines and cosines is obtained by taking and. Since these functions form acomplete orthogonal system over , the Fourier series of a function is given by
where
(7)
|
|||
(8)
|
|||
(9)
|
and , 2, 3, .... Note that the coefficient of the constant term has been written in a special form compared to the general form for ageneralized Fourier series in order to preserve symmetry with the definitions of and.
The Fourier cosine coefficient and sine coefficient are implemented in theWolfram Language asFourierCosCoefficient[expr,t,n] and FourierSinCoefficient[expr,t,n], respectively.
A Fourier series converges to the function (equal to the original function at points of continuity or to the average of the two limits at points of discontinuity)
if the function satisfies so-called Dirichlet boundary conditions. Dini's test gives a condition for the convergence of Fourier series.
As a result, near points of discontinuity, a "ringing" known as the Gibbs phenomenon, illustrated above, can occur.
For a function periodic on an interval instead of, a simple change of variables can be used to transform the interval of integration from to. Let
(11)
|
|||
(12)
|
Solving for gives, and plugging this in gives
Therefore,
(14)
|
|||
(15)
|
|||
(16)
|
Similarly, the function is instead defined on the interval , the above equations simply become
(17)
|
|||
(18)
|
|||
(19)
|
In fact, for periodic with period,any interval can be used, with the choice being one of convenience or personal preference (Arfken 1985, p. 769).
The coefficients for Fourier series expansions of a few common functions are given in Beyer (1987, pp. 411-412) and Byerly (1959, p. 51). One of the most common functions usually analyzed by this technique is thesquare wave. The Fourier series for a few common functions are summarized in the table below.
function | Fourier series | |
Fourier series--sawtooth wave | ||
Fourier series--square wave | ||
Fourier series--triangle wave |
If a function is even so that , then isodd. (This follows since isodd and aneven function times anodd function is anodd function.) Therefore, for all. Similarly, if a function isodd so that, then isodd. (This follows since iseven and aneven function times anodd function is anodd function.) Therefore, for all.
The notion of a Fourier series can also be extended to complex coefficients. Consider a real-valued function . Write
Now examine
(21)
|
|||
(22)
|
|||
(23)
|
|||
(24)
|
|||
(25)
|
so
The coefficients can be expressed in terms of those in the Fourier series
(27)
|
|||
(28)
|
|||
(29)
|
For a function periodic in , these become
(30)
|
|||
(31)
|
These equations are the basis for the extremely important Fourier transform, which is obtained by transforming from a discrete variable to a continuous one as the length .
The complex Fourier coefficient is implemented in the Wolfram Language as FourierCoefficient[expr,t,n].