The Gibbs phenomenon is a behavior of the
Fourier series of a function with a
jump discontinuity and is described as the following:As more Fourier series constituents or components are taken, the Fourier series shows the first overshoot in the oscillatory behavior around the jump point approaching ~ 9% of the (full) jump and this oscillation does not disappear but gets closer to the point so that the integral of the oscillation approaches zero.At the jump point, the Fourier series gives the average of the function's both side limits toward the point.
Square wave example The three pictures on the right demonstrate the Gibbs phenomenon for a
square wave (with peak-to-peak amplitude of c from -c/2 to c/2 and the periodicity L) whose Nth partial Fourier series is \frac{2c}{\pi}\left ( \sin(\omega x) + \frac{1}{3} \sin(3\omega x) + \cdots + \frac{1}{2N-1} \sin((2N-1)\omega x) \right ) where \omega = 2\pi/L. More precisely, this square wave is the function f(x) which equals \tfrac{c}{2} between 2n(L/2) and (2n+1)(L/2) and -\tfrac{c}{2} between (2n+1)(L/2) and (2n+2)(L/2) for every
integer n; thus, this square wave has a jump discontinuity of peak-to-peak height c at every integer multiple of L/2. As more sinusoidal terms are added (i.e., increasing N), the error of the partial Fourier series converges to a fixed height. But because the width of the error continues to narrow, the area of the error – and hence the energy of the error – converges to 0.
The square wave analysis reveals that the error exceeds the height (from zero) \tfrac{c}{2} of the square wave by \frac{c}{\pi} \int_0^\pi \frac{\sin(t)}{t}\ dt - \frac{c}{2} = c \cdot (0.089489872236\dots).() or about 9% of the full jump c. More generally, at any discontinuity of a piecewise continuously differentiable function with a jump of c, the Nth partial Fourier series of the function will (for a very large N value) overshoot this jump by an error approaching c \cdot (0.089489872236\dots) at one end and undershoot it by the same amount at the other end; thus the "full jump" in the partial Fourier series will be about 18% larger than the full jump in the original function. At the discontinuity, the partial Fourier series will converge to the
midpoint of the jump (regardless of the actual value of the original function at the discontinuity) as a consequence of
Dirichlet's theorem.
History The Gibbs phenomenon was first noticed and analyzed by
Henry Wilbraham in an 1848 paper. The paper attracted little attention until 1914 when it was mentioned in
Heinrich Burkhardt's review of mathematical analysis in
Klein's encyclopedia. In 1898,
Albert A. Michelson developed a device that could compute and re-synthesize the Fourier series. A widespread anecdote says that when the Fourier coefficients for a square wave were input to the machine, the graph would oscillate at the discontinuities, and that because it was a physical device subject to manufacturing flaws, Michelson was convinced that the overshoot was caused by errors in the machine. In fact the graphs produced by the machine were not good enough to exhibit the Gibbs phenomenon clearly, and Michelson may not have noticed it as he made no mention of this effect in his paper about his machine or his later letters to
Nature. Inspired by correspondence in
Nature between Michelson and
A. E. H. Love about the convergence of the Fourier series of the square wave function,
J. Willard Gibbs published a note in 1898 pointing out the important distinction between the limit of the graphs of the partial sums of the Fourier series of a
sawtooth wave and the graph of the limit of those partial sums. In his first letter Gibbs failed to notice the Gibbs phenomenon, and the limit that he described for the graphs of the partial sums was inaccurate. In 1899 he published a correction in which he described the overshoot at the point of discontinuity (
Nature, April 27, 1899, p. 606). In 1906,
Maxime Bôcher gave a detailed mathematical analysis of that overshoot, coining the term "Gibbs phenomenon" and bringing it into widespread use.
Explanation Informally, the Gibbs phenomenon reflects the difficulty inherent in approximating a
discontinuous function by a
finite series of
continuous sinusoidal waves. It is important to put emphasis on the word
finite, because even though every partial sum of the Fourier series overshoots around each discontinuity it is approximating, the limit of summing an infinite number of sinusoidal waves does not. The overshoot peaks moves closer and closer to the discontinuity as more terms are summed, so convergence is possible. There is no contradiction (between the overshoot error converging to a non-zero height even though the infinite sum has no overshoot), because the overshoot peaks move toward the discontinuity. The Gibbs phenomenon thus exhibits
pointwise convergence, but not
uniform convergence. For a piecewise
continuously differentiable (class C1) function, the Fourier series converges to the function at
every point except at jump discontinuities. At jump discontinuities, the infinite sum will converge to the jump discontinuity's midpoint (i.e. the average of the values of the function on either side of the jump), as a consequence of
Dirichlet's theorem. The Gibbs phenomenon is closely related to the principle that the
smoothness of a function controls the decay rate of its Fourier coefficients. Fourier coefficients of smoother functions will more rapidly decay (resulting in faster convergence), whereas Fourier coefficients of discontinuous functions will slowly decay (resulting in slower convergence). For example, the discontinuous square wave has Fourier coefficients (\tfrac{1}{1},{\scriptstyle\text{0}},\tfrac{1}{3},{\scriptstyle\text{0}},\tfrac{1}{5},{\scriptstyle\text{0}},\tfrac{1}{7},{\scriptstyle\text{0}},\tfrac{1}{9},{\scriptstyle\text{0}},\dots) that decay only at the rate of \tfrac{1}{n}, while the continuous
triangle wave has Fourier coefficients (\tfrac{1}{1^2},{\scriptstyle\text{0}},\tfrac{-1}{3^2},{\scriptstyle\text{0}},\tfrac{1}{5^2},{\scriptstyle\text{0}},\tfrac{-1}{7^2},{\scriptstyle\text{0}},\tfrac{1}{9^2},{\scriptstyle\text{0}},\dots) that decay at a much faster rate of \tfrac{1}{n^2}. This only 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 .
Solutions Since the Gibbs phenomenon comes from undershooting, it may be eliminated by using kernels that are never negative, such as the
Fejér kernel. 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. Using a continuous
wavelet transform, the wavelet Gibbs phenomenon never exceeds the Fourier Gibbs phenomenon. Also, using the
discrete wavelet transform with
Haar basis functions, the Gibbs phenomenon does not occur at all in the case of continuous data at jump discontinuities, and is minimal in the discrete case at large change points. In wavelet analysis, this is commonly referred to as the
Longo phenomenon. In the
polynomial interpolation setting, the Gibbs phenomenon can be mitigated using the S-Gibbs algorithm. == Formal mathematical description of the Gibbs phenomenon ==