Fourier series

Fourier transforms
Continuous Fourier transform
Fourier series
Discrete Fourier transform
Discrete-time Fourier transform
Related transforms

In mathematics, a Fourier series decomposes a periodic function into a sum of simple oscillating functions, namely sines and cosines. The study of Fourier series is a branch of Fourier analysis. Fourier series were introduced by Joseph Fourier (1768–1830) for the purpose of solving the heat equation in a metal plate. It led to a revolution in mathematics, forcing mathematicians to reexamine the foundations of mathematics and leading to many modern theories such as Lebesgue integration.

The heat equation is a partial differential equation. Prior to Fourier's work, there was no known solution to the heat equation in a general situation, although particular solutions were known if the heat source behaved in a simple way, in particular, if the heat source was a sine or cosine wave. These simple solutions are now sometimes called eigensolutions. Fourier's idea was to model a complicated heat source as a superposition (or linear combination) of simple sine and cosine waves, and to write the solution as a superposition of the corresponding eigensolutions. This superposition or linear combination is called the Fourier series.

Although the original motivation was to solve the heat equation, it later became obvious that the same techniques could be applied to a wide array of mathematical and physical problems. The basic results are very easy to understand using the modern theory.

The Fourier series has many applications in electrical engineering, vibration analysis, acoustics, optics, signal processing, image processing, quantum mechanics, etc.

Contents

Historical development

Joseph Fourier initiated the study of Fourier series in order to solve the heat equation.

Fourier series are named in honor of Joseph Fourier (1768-1830), who made important contributions to the study of trigonometric series, after preliminary investigations by Leonhard Euler, Jean le Rond d'Alembert, and Daniel Bernoulli. He applied this technique to find the solution of the heat equation, publishing his initial results in 1807 and 1811, and publishing his Théorie analytique de la chaleur in 1822.

From a modern point of view, Fourier's results are somewhat informal, due to the lack of a precise notion of function and integral in the early nineteenth century. Later, Dirichlet and Riemann expressed Fourier's results with greater precision and formality.

A revolutionary article

\varphi(y)=a\cos\frac{\pi y}{2}+a'\cos 3\frac{\pi y}{2}+a''\cos5\frac{\pi y}{2}+\cdots.

Multiplying both sides by \cos(2i+1)\frac{\pi y}{2}, and then integrating from y=-1 to y=+1 yields:

a_i=\int_{-1}^1\varphi(y)\cos(2i+1)\frac{\pi y}{2}\,dy.

—Joseph Fourier, Mémoire sur la propagation de la chaleur dans les corps solides, pp. 218--219.[1]

In these few lines, which are surprisingly close to the modern formalism used in Fourier series, Fourier unwittingly revolutionized both mathematics and physics. Although similar trigonometric series were previously used by Euler, d'Alembert, Daniel Bernoulli and Gauss, Fourier believed that such trigonometric series could represent arbitrary functions. While this is not true, the attempts over many years to clarify this idea have led to important discoveries in the theories of convergence, function spaces, and harmonic analysis.

When Fourier submitted his paper in 1807, the committee (composed of no lesser mathematicians than Lagrange, Laplace, Malus and Legendre, among others) concluded: ...the manner in which the author arrives at these equations is not exempt of difficulties and [...] his analysis to integrate them still leaves something to be desired on the score of generality and even rigour.

The birth of harmonic analysis

Since Fourier's time, many different approaches to defining and understanding the concept of Fourier series have been discovered, all of which are consistent with one another, but each of which emphasizes different aspects of the topic. Some of the more powerful and elegant approaches are based on mathematical ideas and tools that were not available at the time Fourier completed his original work. Fourier originally defined the Fourier series for real-valued functions of real arguments, and using the sine and cosine functions as the basis set for the decomposition.

Many other Fourier-related transforms have since been defined, extending the initial idea to other applications. This general area of inquiry is now sometimes called harmonic analysis. A Fourier series, however, can be used only for periodic signals.

Definition

In this section, ƒ(x) denotes a function of the real variable x. This function is usually taken to be periodic, of period 2π, which is to say that ƒ(x + 2π) = ƒ(x), for all real numbers x. We will attempt to write such a function as an infinite sum, or series of simpler functions. We will start by using an infinite sum of sine and cosine functions on the interval [−ππ], as Fourier did (see the quote above), and we will then discuss different formulations and generalizations.

Fourier's formula for 2π-periodic functions using sines and cosines

For a 2π-periodic function ƒ(x) that is integrable on [−ππ], the numbers

a_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x) \cos(nx)\, dx

and

b_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x) \sin(nx)\, dx

are called the Fourier coefficients of ƒ. The infinite sum

\frac{a_0}{2} +\sum_{n=1}^{\infty}[a_n \cos(nx) + b_n \sin(nx)]

is the Fourier series for ƒ on the interval [−ππ].

The Fourier series does not always converge, and even when it does the value of the series may differ from the value of the function. It is one of the main questions in Harmonic analysis to decide when it converges and when it is equal to the original function. If a function is square-integrable on the interval [−ππ], then the Fourier series converges to the function at almost every point. In engineering applications, the Fourier series is generally presumed to converge everywhere except at discontinuities, since the functions encountered in engineering are more well behaved than the ones that mathematicians can provide as counter-examples to this presumption. In particular, the Fourier series converges absolutely and uniformly to ƒ(x) whenever the derivative of ƒ(x) (which may not exist everywhere) is square integrable.[2] See Convergence of Fourier series.

It is possible to define Fourier coefficients for more general functions or distributions, in such cases convergence in norm or weak convergence is usually of interest.

Example: a simple Fourier series

Plot of a periodic identity function—a sawtooth wave.
Animated plot of the first five successive partial Fourier series.

We now use the formulae above to give a Fourier series expansion of a very simple function. Consider a sawtooth function (as depicted in the figure):

f(x) = x, \quad \mathrm{for } -\pi < x < \pi,
f(x + 2\pi) = f(x), \quad \mathrm{for } -\infty < x < \infty.

In this case, the Fourier coefficients are given by

\begin{align}
a_n &{} = \frac{1}{\pi}\int_{-\pi}^{\pi}x \cos(nx)\,dx = 0. \\
b_n &{}= \frac{1}{\pi}\int_{-\pi}^{\pi} x \sin(nx)\, dx = 2\frac{(-1)^{n+1}}{n}.\end{align}

And therefore:


\begin{align}
f(x) &= \frac{a_0}{2} + \sum_{n=1}^{\infty}\left[a_n\cos\left(nx\right)+b_n\sin\left(nx\right)\right] \\
&=2\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n} \sin(nx), \quad \mathrm{for} \quad -\infty < x < \infty .
\end{align}
 

 

 ( Eq.1)

 

Heat distribution in a metal plate, using Fourier's method.

One notices that the Fourier series expansion of our function looks much less simple than the formula ƒ(x) = x, and so it is not immediately apparent why one would need this Fourier series. While there are many applications, we cite Fourier's motivation of solving the heat equation. For example, consider a metal plate in the shape of a square whose side measures π meters, with coordinates (xy) ∈ [0, π] × [0, π]. If there is no heat source within the plate, and if three of the four sides are held at 0 degrees Celsius, while the fourth side, given by y = π, is maintained at the temperature gradient T(xπ) = x degrees Celsius, for x in (0, π), then one can show that the stationary heat distribution (or the heat distribution after a long period of time has elapsed) is given by

T(x,y) = 2\sum_{n=1}^\infty \frac{(-1)^{n+1}}{n} \sin(nx) {\sinh(ny) \over \sinh(n\pi)}.

Here, sinh is the hyperbolic sine function. This solution of the heat equation is obtained by multiplying each term of  Eq.1  by sinh(ny)/sinh(nπ). While our example function f(x) seems to have a needlessly complicated Fourier series, the heat distribution T(xy) is nontrivial. The function T cannot be written as a closed-form expression. This method of solving the heat problem was only made possible by Fourier's work.

Another application of this Fourier series is to solve the Basel problem by using Parseval's theorem. The example generalizes and one may compute ζ(2n), for any positive integer n.

The modern version using complex exponentials

We can use Euler's formula,

 e^{inx} = \cos(nx)+i\sin(nx), \,

where i is the imaginary unit, to give a more concise formula:

f(x) = \sum_{n=-\infty}^{\infty} c_n e^{inx}.

The Fourier coefficients are then given by:

c_n = \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x) e^{-inx}\, dx.

The Fourier coefficients a_n, b_n, c_n are related via

a_n = { c_n + c_{-n} } for n=0,1,2,\dots,

and

b_n = i( c_{n} - c_{-n} ) for n=1,2,\dots

The notation cn is inadequate for discussing the Fourier coefficients of several different functions. Therefore it is customarily replaced by a modified form of ƒ (in this case), such as F or \scriptstyle\hat{f},  and functional notation often replaces subscripting.  Thus:


\begin{align}
f(x) &= \sum_{n=-\infty}^{\infty} \hat{f}(n)\cdot e^{inx} \\
&= \sum_{n=-\infty}^{\infty} F[n]\cdot e^{inx} \quad \mbox{(engineering)}.
\end{align}

In engineering, particularly when variable x represents time, the coefficient sequence is called a frequency domain representation. Square brackets are often used to emphasize that the domain of this function is a discrete set of frequencies.

Fourier series on a general interval [ab]

The following formula, with appropriate complex-valued coefficients G[n], is a periodic function with period τ on all of R:

g(x)=\sum_{n=-\infty}^\infty G[n]\cdot e^{i 2\pi \frac{n}{\tau} x}\ .

If a function is square-integrable in the interval [aa + τ], it can be represented in that interval by the formula above. If g(x) is integrable, then the Fourier coefficients are given by:

G[n] = \frac{1}{\tau}\int_a^{a+\tau} g(x)\cdot e^{-i 2\pi \frac{n}{\tau} x}\, dx.

Note that if the function to be represented is also τ-periodic, then a is an arbitrary choice. Two popular choices are a = 0, and a = −τ/2.

Another commonly used frequency domain representation uses the Fourier series coefficients to modulate a Dirac comb:


G(f) \ \stackrel{\mathrm{def}}{=} \ \sum_{n=-\infty}^{\infty} G[n]\cdot \delta \left(f-\frac{n}{\tau}\right)

where variable ƒ represents a continuous frequency domain. When variable x has units of seconds, ƒ has units of hertz. The "teeth" of the comb are spaced at multiples (i.e. harmonics) of 1/τ, which is called the fundamental frequency. The original g(x) can be recovered from this representation by an inverse Fourier transform:


\begin{align}
\mathcal{F}^{-1}\{G(f)\} &=
\mathcal{F}^{-1}\left\{ \sum_{n=-\infty}^{\infty} G[n]\cdot \delta \left(f-\frac{n}{\tau}\right)\right\}\\
&= \sum_{n=-\infty}^{\infty} G[n]\cdot \underbrace{\mathcal{F}^{-1}\left\{\delta\left(f-\frac{n}{\tau}\right)\right\}}_{e^{i2\pi \frac{n}{\tau} x}\cdot \underbrace{\mathcal{F}^{-1}\{\delta (f)\}}_{1}}\\
&= \sum_{n=-\infty}^{\infty} G[n]\cdot e^{i2\pi \frac{n}{\tau} x} \quad = \ \ g(x).
\end{align}

The function G(f)\, is therefore commonly referred to as a Fourier transform, even though the Fourier integral of a periodic function is not convergent.[3]

Fourier series on a square

We can also define the Fourier series for functions of two variables x and y in the square [−ππ]×[−ππ]:

f(x,y) = \sum_{j,k \in \mathbb{Z}} c_{j,k}e^{ijx}e^{iky},
c_{j,k} = {1 \over 4 \pi^2} \int_{-\pi}^{\pi} \int_{-\pi}^{\pi} f(x,y) e^{-ijx}e^{-iky}\, dx \, dy\ .

Aside from being useful for solving partial differential equations such as the heat equation, one notable application of Fourier series on the square is in image compression. In particular, the jpeg image compression standard uses the two-dimensional discrete cosine transform, which is a Fourier transform using the cosine basis functions.

Hilbert space interpretation

Main article: Hilbert space

In the language of Hilbert spaces, the set of functions \{ e_n = e^{i n x},n\in\mathbb{Z}\} is an orthonormal basis for the space L^2([-\pi,\pi]) of square-integrable functions of [-\pi,\pi]. This space is actually a Hilbert space with an inner product given by:

\langle f, g \rangle \ \stackrel{\mathrm{def}}{=} \ \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x)\overline{g(x)}\,dx.

The basic Fourier series result for Hilbert spaces can be written as

f=\sum_{n=-\infty}^{\infty} \langle f,e_n \rangle e_n.

This corresponds exactly to the complex exponential formulation given above. The version with sines and cosines is also justified with the Hilbert space interpretation. Clearly, the sines and cosines form an orthonormal set:

\int_{-\pi}^{\pi} \cos(mx)\, \cos(nx)\, dx = \pi \delta_{mn},
\int_{-\pi}^{\pi} \sin(mx)\, \sin(nx)\, dx = \pi \delta_{mn}

(where \delta_{mn} is the Kronecker delta), and

\int_{-\pi}^{\pi} \cos(mx)\, \sin(nx)\, dx = 0.

The density of their span is a consequence of the Stone-Weierstrass theorem.

Properties

We say that f \in C^k(\mathbb{T}) if f is a function of \mathbb{R} which is k times differentiable, its kth derivative is continuous, and is 2\pi-periodic.

General case

There are many possible avenues for generalizing Fourier series. The study of Fourier series and its generalizations is called Harmonic analysis.

Generalized functions

Main articles: Generalized function and Distribution (mathematics)

One can extend the notion of Fourier coefficients to functions which are not square-integrable, and even to objects which are not functions. This is very useful in engineering and applications because we often need to take the Fourier series of a periodic repetition of a Dirac delta function. The Dirac delta δ is not actually a function; still, it has a Fourier transform and its periodic repetition has a Fourier series:

\hat{\delta}(n)={1 \over 2\pi}\text{ for every }n.\,

This generalization to distributions enlarges the domain of definition of the Fourier transform from L2([−ππ]) to a superset of L2. The Fourier series converges weakly.

Compact groups

Main articles: Compact group and Lie group

One of the interesting properties of the Fourier transform which we have mentioned, is that it carries convolutions to pointwise products. If that is the property which we seek to preserve, one can produce Fourier series on any compact group. Typical examples include those classical groups that are compact. This generalizes the Fourier transform to all spaces of the form L2(G), where G is a compact group, in such a way that the Fourier transform carries convolutions to pointwise products. The Fourier series exists and converges in similar ways to the [−ππ] case.

Riemannian manifolds

The atomic orbitals of chemistry are spherical harmonics and can be used to produce Fourier series on the sphere.
Main articles: Laplace operator and Riemannian manifold

If the domain is not a group, then there is no intrinsically defined convolution. However, if X is a compact Riemannian manifold, it has a Laplace-Beltrami operator. The Laplace-Beltrami operator is the differential operator that corresponds to Laplace operator for the Riemannian manifold X. Then, by analogy, one can consider heat equations on X. Since Fourier arrived at his basis by attempting to solve the heat equation, the natural generalization is to use the eigensolutions of the Laplace-Beltrami operator as a basis. This generalizes Fourier series to spaces of the type L^2(X), where X is a Riemannian manifold. The Fourier series converges in ways similar to the [-\pi,\pi] case. A typical example is to take X to be the sphere with the usual metric, in which case the Fourier basis consists of spherical harmonics.

Locally compact Abelian groups

Main article: Pontryagin duality

The generalization to compact groups discussed above does not generalize to noncompact, nonabelian groups. However, there is a straightfoward generalization to Locally Compact Abelian (LCA) groups.

This generalizes the Fourier transform to L^1(G) or L^2(G), where G is an LCA group. If G is compact, one also obtains a Fourier series, which converges similarly to the [-\pi,\pi] case, but if G is noncompact, one obtains instead a Fourier integral. This generalization yields the usual Fourier transform when the underlying locally compact Abelian group is \mathbb{R}.

Approximation and convergence of Fourier series

An important question for the theory as well as applications is that of convergence. In particular, it is often necessary in applications to replace the infinite series \sum_{-\infty}^\infty by a finite one,

S_N(x) = \sum_{n=-N}^N \hat{f}(n) e^{inx}.

This is called a partial sum. We would like to know, in which sense does SN(x) converge to f(x) as N tends to infinity.

Least squares property

We say that p is a trigonometric polynomial of degree N when it is of the form

p(x)=\sum_{n=-N}^N p_n e^{inx}.

Note that S_N(x) is a trigonometric polynomial of degree N. Parseval's theorem implies that

Theorem. S_N(x) is the unique best trigonometric polynomial of degree N approximating f(x), in the sense that, for any trigonometric polynomial p\neq S_N of degree N, we have \|S_N - f\| \lneqq \|p - f\|.

Here, the Hilbert space norm is

\| g \| = \sqrt{{1 \over 2\pi} \int_{-\pi}^{\pi} |g(x)|^2 \, dx}.

Convergence

Main article: Convergence of Fourier series

Because of the least squares property, and because of the completeness of the Fourier basis, we obtain an elementary convergence result.

Theorem. If f\in L^2([-\pi,\pi]), then the Fourier series converges in L^2([-\pi,\pi]), that is, \|S_N - f\|_2 converges to 0 as N goes to infinity.

We have already mentioned that if f is twice continuously differentiable, then n^2 \hat{f}(n) converges to zero as n goes to infinity. This immediately gives a second convergence result.

Theorem. If f \in C^2(\mathbb{T}), then \sup_x |f(x) - S_N(x)| \leq \sum_{|n|>N} |\hat{f}(n)| converges to zero, i.e., S_N converges to f uniformly.

In particular, S_N converges to f pointwise.

Many further cases are discussed in the main article, Convergence of Fourier series, ranging from the moderately simple result that the series converges at x if f is differentiable at x, to Lennart Carleson's much more sophisticated result that the Fourier series of an L^2 function actually converges almost everywhere.

Divergence

Since Fourier series have such good convergence properties, many are often surprised by some of the negative results. For example, the Fourier series of a continuous T-periodic function need not converge pointwise.

In 1922, Andrey Kolmogorov published an article entitled "Une série de Fourier-Lebesgue divergente presque partout" in which he gave an example of a Lebesgue-integrable function whose Fourier series diverges almost everywhere. He later constructed an example of an integrable function whose Fourier series diverges everywhere (Katznelson 1976).

See also

Notes

  1. Gallica - Fourier, Jean-Baptiste-Joseph (1768-1830). Oeuvres de Fourier. 1888
  2. Georgi P. Tolstov (1976). Fourier Series. Courier-Dover. ISBN 0486633179. http://books.google.com/books?id=XqqNDQeLfAkC&pg=PA82&dq=fourier-series+converges+continuous-function&ei=L0rJSMvANIPsswOs-pzXDA&sig=ACfU3U3teR3Wwlu7HYq_qHV4QZqj6sYP5A. 
  3. Since the integral defining the Fourier transform of a periodic function is not convergent, it is necessary to view the periodic function and its transform as distributions. In this sense \mathcal{F}\{e^{i2\pi \frac{n}{\tau} x}\} is a Dirac delta function, which is an example of a distribution.

References

External links

This article incorporates material from example of Fourier series on PlanetMath, which is licensed under the GFDL.