It is easy to show that in L^2 space if $f(x)$ is written as:
$$f(x)=\sum_{n=-\infty}^{\infty} c_{n} e^{i n x}$$
Then the basis exponential functions are orthogonal and thus the co-efficients can be expressed as:
$$c_{n}=\frac{1}{2 \pi} \int_{0}^{2 \pi} f(x) e^{-i n x} d x$$
In the textbook being read this is shown as the proof that the functions are orthogonal and span the space. However the above does not prove that these set of functions spans the L^2 space, it just shows they are an orthonormal set. How can one prove that they will also space the space?