Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2004/paper-2/2/solution

The square wave alternates between a low interval of length five and a high interval of length five; its integral average is three. In the real Fourier series convention
integration over one period gives
and
Thus only odd harmonics occur:
The Dirichlet-Jordan convergence theorem makes the sum equal to the function at its continuity points and to the mean of its one-sided limits at a jump. Consequently the sum is 3 at each of , regardless of any separately assigned values of the original function at those endpoints.
Figure 1.
A periodic square wave and its Fourier approximations
. Original plot of the alternating low and high intervals and two partial Fourier sums. The jump values of the Fourier series are their midpoint; finite sums exhibit Gibbs oscillations. Details.

New to topics? Read the docs here!