4.7 Convergence of Fourier series

The final subject we shall consider is the convergence of Fourier series. I shall show two examples, closely linked, but with radically different behaviour.


sq-tri


Figure 4.4: The square and triangular waves on their fundamental domain.

  1. A square wave,
    f(x) = 1 for − π < x < 0; f(x) = −1 for 0 < x < π.
  2. a triangular wave,
    g(x) = π∕2 + x for − π < x < 0; g(x) = π∕2 − x for 0 < x < π.

Note that f is the derivative of g.


Gibbs1   Gibbs2


Figure 4.5: The convergence of the Fourier series for the square (left) and triangular wave (right). the number M is the order of the highest Fourier component.

It is not very hard to find the relevant Fourier series,

\begin{eqnarray} f(x)& =& −{4\over π}{\mathop{∑ }}_{m=0}^{∞} {1\over 2m + 1}\mathop{sin}\nolimits (2m + 1)x, %&(4.33) \\ g(x)& =& {4\over π}{\mathop{∑ }}_{m=0}^{∞} {1\over { (2m + 1)}^{2}}\mathop{ cos}\nolimits (2m + 1)x.%&(4.34) \\ \end{eqnarray}

Let us compare the partial sums, where we let the sum in the Fourier series run from m = 0 to m = M instead of m = 0\mathop{\mathop{…}}∞. We note a marked difference between the two cases. The convergence of the Fourier series of g is uneventful, and after a few steps it is hard to see a difference between the partial sums, as well as between the partial sums and g. For f, the square wave, we see a surprising result: Even though the approximation gets better and better in the (flat) middle, there is a finite (and constant!) overshoot near the jump. The area of this overshoot becomes smaller and smaller as we increase M. This is called the Gibbs phenomenon (after its discoverer). It can be shown that for any function with a discontinuity such an effect is present, and that the size of the overshoot only depends on the size of the discontinuity! A final, slightly more interesting version of this picture, is shown in Fig. 4.6.


Gibbs


Figure 4.6: A three-dimensional representation of the Gibbs phenomenon for the square wave. The axis orthogonal to the paper labels the number of Fourier components.