The following result makes clear that the coefficients of a vector with respect to an orthonormal basis of an infinite-dimensional inner product space describe the vector in ever increasing precision.
We will use theorem Convergence for monotonic sequences. Since all terms of the series are non-negative, the series is weakly increasing. So, if we prove the inequality for each , then we will have established that the series is bounded and the convergence criterion can be applied. Thus, it is left for us to prove this inequality.
Consider the partial sum . Then, for , we have
This means that is orthogonal to each for . Since is a linear combination of , this implies . By the Pythagorean theorem, this gives the equality
In particular,
We now use Properties of orthogonal systems (or the complex version thereof)
This proves that, for each , we have In particular, the series is bounded. Since all terms of the series are non-negative, the series is weakly increasing. Thus, the series satisfies the conditions of the Convergence for monotonic sequences. Application of this theorem gives the statement about convergence. This finishes the proof of the theorem.
If we were to ignore issues about infinity, we could view the equality as an instance of the Pythagorean theorem. The right-hand side, however, need not represent a vector of . An example showing that it need not belong to is the inner product space of all polynomials on with the inner product that makes orthonormal. The exponential function is known not to be a polynomial function, and so does not belong to , although every finite sum does.
We now turn our attention to answering the following question: given a orthonormal system, under which conditions can we write an approximation for in terms of the , i.e. ? This question has an elegant answer provided we add some additional structure to our inner product space.
Let's start by slightly generalising the familiar notion of Fourier series for a function .
Let be a Hilbert space and an orthogonal system in . For any we say that is the -th Fourier coefficient of with respect to and that the formal series
is the Fourier series of with respect to .
Now we state a theorem that, together with Bessel's inequality, will help formulate the solution.
Let be a Hilbert space and let be an orthonormal system in . If is a sequence in , is convergent iff is.
Let's start by assuming that converges and equals . Then, by using the continuity of the inner product, we can write for each :
and, by Bessel's inequality:
Now we prove the converse by assuming that converges and we fix . By the Pythagorean theorem, we have
Fixing and choosing such that we deduce that is a Cauchy sequence and hence converges.
As an immediate corollary of this theorem, we have that
In a Hilbert space endowed with a orthonormal system , the "generalised" Fourier series defined above converges for every and we can write
Now let . Using again the continuity of the inner product, we can write for each
so if the only element such that for all is then we have for all
In light of this, we give the following definition of orthonormal basis for a Hilbert space .
Let be a Hilbert space and be an orthonormal subset of . Given , if for all implies then is a complete orthonormal subset of . If can be indexed by , we call it complete orthonormal subset or orthonormal basis for .
Consider the inner product space of all piecewise smooth real functions on with inner product given by The system is orthonormal. The corresponding coefficients and and the so-called Fourier coefficients of (in the complex version, the orthonormal system is replaced by for ).
Let's try to verify that they actually constitute an orthonormal basis. We need to impose the condition that for each
But these are exactly the formulas for the coefficients , of the Fourier series of , which must then be a constant: in particular, since
must hold as well, it must be .
But the convergence theorem applies to the functions of , so this series converges pointwise to - except for at most a finite set of discontinuities - which is thus bound to be . Hence is indeed an orthonormal basis.