← Exercise library← All exercises for this theme
Theme 2 — Hilbert Spaces and Dirac Notation

Fourier basis and Parseval's identity

Keywords: Hilbert basis · Fourier series · Parseval's identity · Bessel's inequality · best approximation · infinite dimension

Exercise 1 : Fourier basis and Parseval's identity

Consider the Hilbert space of square-integrable functions on , equipped with the inner product , and the family of functions

Assume that this family is total, that is, its finite linear combinations are dense in .

Question 1
Show that the family is orthonormal. Deduce that it is a Hilbert basis of .

Solution
We calculate

If , the integrand is and the result is . If , an antiderivative of is , which takes the same value at because ; the integral vanishes. The family is therefore orthonormal, and since it is total, it is a Hilbert basis: every can be written , with , where the series converges in the norm.

Question 2
Calculate the coefficients of the function .

Solution
We have . For , the integrand is odd and . For , integrate by parts, differentiating and integrating :

where we used and . Thus

Question 3
Write Parseval's identity for this function. Deduce the value of .

Solution
Parseval's identity states that . On the one hand, . On the other hand, each integer appears twice, for and , and

Equating the two expressions gives

This is the celebrated Basel problem, solved by Euler in 1735, obtained here as a consequence of the Pythagorean theorem in infinite dimensions.

Question 4
Let be the partial sum of order . Show that is the best approximation to by a linear combination of , and calculate the error . How does it behave for large ?

Solution
The function is the orthogonal projection of onto the finite-dimensional subspace spanned by , since the projector onto this subspace is . By the best-approximation result established by the Pythagorean theorem, is the element of closest to . The error is the norm of the orthogonal component, which is again calculated from the remaining coefficients using Parseval's identity:

Comparison with the integral gives for large : the error tends to zero, but slowly. The slow decay of the coefficients arises because the periodic extension of the function is discontinuous at . As with the Fourier transform on the real line, the smoother a function is, the faster its Fourier coefficients decay.