The final subject we shall consider is the convergence of Fourier series. I shall show two examples, closely linked,
but with radically different behaviour.
f(x) = 1 for − π < x < 0; f(x) = −1 for 0 < x < π. |
g(x) = π∕2 + x for − π < x < 0; g(x) = π∕2 − x for 0 < x < π. |
Note that f is the derivative of g.
It is not very hard to find the relevant Fourier series,
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.