Gibbs phenomenon

Missing image
Gibbs_phenomenon_10.png
Approximation of square wave in 5 steps
Approximation of square wave in 25 steps
Enlarge
Approximation of square wave in 25 steps
Missing image
Gibbs_phenomenon_250.png
Approximation of square wave in 125 steps

In mathematics, the Gibbs phenomenon, named after the American physicist J. Willard Gibbs, (also known as ringing artifacts) is the peculiar manner in which the Fourier series of a piecewise continuously differentiable periodic function f behaves at a jump discontinuity: the nth partial sum of the Fourier series has large oscillations near the jump, which might increase the maximum of the partial sum above that of the function itself. The overshoot does not die out as the frequency increases, but approaches a finite limit.

The three pictures on the right demonstrate this for a square wave whose Fourier expansion is

<math> \sin(x)+\frac{1}{3}\sin(3x)+\frac{1}{5}\sin(5x)+\dotsb<math>

More precisely, this is the function f which equals <math>\pi/4<math> between <math>2n\pi<math> and <math>(2n+1)\pi<math> and <math>-\pi/4<math> between <math>2(n+1)\pi<math> and <math>2(n+2)\pi<math> for every integer n; thus this square wave has a jump discontinuity of height <math>\pi/2<math> at every integer multiple of <math>\pi<math>.

As can be seen, as the number of terms rises, the error of the approximation is reduced in width and energy, but converges to a fixed height. A calculation for the square wave (see Zygmund, chap. 8.5., or the computations at the end of this article) gives an explicit formula for the limit of the height of the error. It turns out that the Fourier series exceeds the height <math>\pi/4<math> of the square wave by

<math>\frac{1}{2}\int_0^\pi \frac{\sin t}{t}\, dt - \frac{\pi}{4} = \frac{\pi}{2} 0.089490\dots<math>

More generally, at any jump point of a piecewise continuously differentiable function with a jump of a, the nth partial Fourier series will (for n very large) overshoot this jump by approximately <math>0.089490... a<math> at one end and undershoot it by the same amount at the other end; thus the "jump" in the partial Fourier series will be about 18% larger than the jump in the original function. At the location of the discontinuity itself, the partial Fourier series will converge to the midpoint of the jump (regardless of what the actual value of the original function is at this point). The quantity

<math>\int_0^\pi \frac{\sin t}{t}\ dt = {1.851937052\dots} = \frac{\pi}{2} + \pi 0.089490...<math>

is sometimes known as the Wilbraham-Gibbs constant.

The Gibbs phenomenon was first observed by Albert Michelson via a mechanical graphing machine. Michelson developed a device in 1898 that could compute and re-synthesize the Fourier series. When a square wave was input into the machine, the graph would move to and from around the discontinuities. This would occur, and continue to occur, as the number of Fourier coefficients approached infinity.

The phenomenon was first explained mathematically by J. Willard Gibbs in 1899. Informally, it reflects the difficulty inherent in approximating a discontinuous function by a series of continuous sine and cosine waves. This phenomenon is also closely related to the principle that the decay of the Fourier coefficients of a function at infinity is controlled by the smoothness of that function; very smooth functions will have very rapidly decaying Fourier coefficients (and thus very rapidly convergent Fourier series), whereas discontinuous functions will have very slowly decaying Fourier coefficients (and thus very badly convergent Fourier series). Note for instance that the Fourier coefficients <math>1, 1/3, 1/5\, ...<math> of the discontinuous square wave described above decay only as fast as the harmonic series, which is not absolutely convergent; indeed, the above Fourier series turns out to be only conditionally convergent for almost every value of x. This provides a partial explanation of the Gibbs phenomenon, since Fourier series with absolutely convergent Fourier coefficients would be uniformly convergent by the Weierstrass M-test and would thus be unable to exhibit the above oscillatory behavior. By the same token, it is impossible for a discontinuous function to have absolutely convergent Fourier coefficients, since the function would thus be the uniform limit of continuous functions and therefore be continuous, a contradiction. See more about absolute convergence of Fourier series.

In practice, the difficulties associated with the Gibbs phenomenon can be ameliorated by using a smoother method of Fourier series summation, such as Fejér summation or Riesz summation, or by using sigma-approximation. If one uses a wavelet transform instead of the Fourier transform then the Gibbs phenomenon no longer occurs.

Contents

Formal mathematical description of the phenomenon

Let <math>f: {\Bbb R} \to {\Bbb R}<math> be a piecewise continuously differentiable function which is periodic with some period <math>L > 0<math>. Suppose that at some point <math>x_0<math>, the left limit <math>f(x_0^-)<math> and right limit <math>f(x_0^+)<math> of the function <math>f<math> differ by a non-zero gap <math>a<math>:

<math> f(x_0^+) - f(x_0^-) = a \neq 0.<math>

For each positive integer <math>N \geq 1<math>, let <math>S_N f<math> be the <math>N<math>th partial Fourier series

<math> S_N f(x) := \sum_{-N \leq n \leq N} \hat f(n) e^{2\pi i n x / L}

= \frac{1}{2} a_0 + \sum_{n=1}^N a_n \cos(2\pi nx/L) + b_n \sin(2\pi nx/L)<math> where the Fourier coefficients <math>\hat f(n), a_n, b_n<math> are given by the usual formulae

<math> \hat f(n) := \frac{1}{L} \int_0^L f(x) e^{-2\pi i nx/L}\ dx<math>
<math> a_n := \frac{2}{L} \int_0^L f(x) \cos(2\pi nx/L)\ dx<math>
<math> b_n := \frac{2}{L} \int_0^L f(x) \sin(2\pi nx/L)\ dx.<math>

Then we have

<math> \lim_{N \to \infty} S_N f(x_0 + \frac{L}{2N}) = f(x_0^+) + 0.089490... a<math>

and

<math> \lim_{N \to \infty} S_N f(x_0 - \frac{L}{2N}) = f(x_0^-) - 0.089490... a<math>

but

<math> \lim_{N \to \infty} S_N f(x_0) = \frac{f(x_0^-) + f(x_0^+)}{2}.<math>

More generally, if <math>x_N<math> is any sequence of real numbers which converges to <math>x_0<math> as <math>N \to \infty<math>, and if the gap a is positive then

<math> \limsup_{N \to \infty} S_N f(x_N) \leq f(x_0^+) + 0.089490... a<math>

and

<math> \liminf_{N \to \infty} S_N f(x_N) \geq f(x_0^-) - 0.089490... a.<math>

If instead the gap a is negative, one needs to interchange limit superior with limit inferior, and also interchange the ≤ and ≥ signs, in the above two inequalities.

The square wave example

We now illustrate the above Gibbs phenomenon in the case of the square wave described earlier. In this case the period L is <math>2\pi<math>, the discontinuity <math>x_0<math> is at zero, and the jump a is equal to <math>\pi/2<math>. For simplicity let us just deal with the case when N is even (the case of odd N is very similar). Then we have

<math>S_N f(x) = \sin(x) + \frac{1}{3} \sin(3x) + \cdots + \frac{1}{N-1} \sin((N-1)x).<math>

Substituting <math>x=0<math>, we obtain

<math>S_N f(0) = 0 = \frac{-\frac{\pi}{4} + \frac{\pi}{4}}{2} = \frac{f(0^-) + f(0^+)}{2}<math>

as claimed above. Next, we compute

<math>S_N f(\frac{2\pi}{2N}) = \sin\left(\frac{\pi}{N}\right) + \frac{1}{3} \sin\left(\frac{3\pi}{N}\right)

+ \cdots + \frac{1}{N-1} \sin\left( \frac{(N-1)\pi}{N} \right).<math>

If we introduce the sinc function <math>\operatorname{sinc}(x) := \sin(x)/x<math>, we can rewrite this as

<math>S_N f\left(\frac{2\pi}{2N}\right) = \frac{1}{2} \left[ \frac{2\pi}{N} \operatorname{sinc}\left(\frac{\pi}{N}\right) + \frac{2\pi}{N} \operatorname{sinc}\left(\frac{3\pi}{N}\right)

+ \cdots + \frac{2\pi}{N} \operatorname{sinc}\left( \frac{(N-1)\pi}{N} \right) \right].<math>

But the expression in square brackets is a numerical integration approximation to the integral <math>\int_0^\pi \operatorname{sinc}(t)\ dt<math> (more precisely, it is a midpoint rule approximation with spacing <math>2\pi/N<math>). Since the sinc function is continuous, this approximation converges to the actual integral as <math>N \to \infty<math>. Thus we have

<math>\lim_{N \to \infty} S_N f(\frac{2\pi}{2N}) = \frac{1}{2} \int_0^\pi \operatorname{sinc}(t)\ dt = \frac{\pi}{4} +

0.089490... \frac{\pi}{2}<math> which was what was claimed in the previous section. A similar computation shows

<math>\lim_{N \to \infty} S_N f(-\frac{2\pi}{2N}) = -\frac{1}{2} \int_0^\pi \operatorname{sinc}(t)\ dt = -\frac{\pi}{4} -

0.089490... \frac{\pi}{2}<math>

See also

Publications

  • Gibbs, J. W., "Fourier Series". Nature 59, 200 and 606, 1899.
  • Antoni Zygmund, Trigonometrical series, Dover publications, 1955.
  • Wilbraham, H. On a certain periodic function, Cambridge and Dublin Math. J., 3 (1848), pp. 198-201.

External links and references

  • Braennlund, Johan, "Why are sine waves fundamental (http://groups.google.ca/groups?selm=4a2h6p%24io6%40columba.udac.uu.se)".
  • Weisstein, Eric W., "Gibbs Phenomenon (http://mathworld.wolfram.com/GibbsPhenomenon.html)". From MathWorld--A Wolfram Web Resource.
  • Prandoni, Paolo, "Gibbs Phenomenon (http://lcavwww.epfl.ch/~prandoni/dsp/gibbs/gibbs.html)".
  • Radaelli-Sanchez, Ricardo, and Richard Baraniuk, "Gibbs Phenomenon (http://cnx.rice.edu/content/m10092/latest/)". The Connexions Project. (Creative Commons Attribution License)
  • Pavel, "Gibbs phenomenon (http://klebanov.homeip.net/~pavel/fb/java/la_applets/Gibbs/)". math.mit.edu. (Java applet)
Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools