[motivation]
### Finite-Dimensional Success
In $\mathbb{R}^n$ with the Euclidean inner product, every orthonormal basis $\{e_1, \dots, e_n\}$ provides a complete coordinate system. Given any vector $x \in \mathbb{R}^n$, the expansion
\begin{align*}
x = \sum_{k=1}^n (x, e_k)\, e_k
\end{align*}
holds as an algebraic identity, and the Pythagorean theorem gives $\|x\|^2 = \sum_{k=1}^n (x, e_k)^2$. Both facts are elementary consequences of linear independence and the dimension count: $n$ orthonormal vectors in an $n$-dimensional space must span. Convergence is not an issue because the sum is finite.
### The Infinite-Dimensional Attempt
Now consider $H = L^2(0, 2\pi)$ and the orthonormal sequence $\{e_k\}_{k=1}^\infty$ where, say, $e_k(x) = \frac{1}{\sqrt{2\pi}} e^{ikx}$. Given $f \in L^2(0, 2\pi)$, we can compute the Fourier coefficients $c_k = (f, e_k)_{L^2}$ and form the partial sums $S_N(f) = \sum_{k=1}^N c_k\, e_k$. Three questions arise that had no counterpart in finite dimensions:
1. **Does the [series](/page/Series) converge?** The partial sums $S_N(f)$ are elements of $H$, but there is no a priori reason why $\|f - S_N(f)\|$ should tend to zero. Convergence is an analytic question, not an algebraic one.
2. **Is the energy accounted for?** Even if $\sum c_k^2$ converges, it could converge to a value strictly less than $\|f\|^2$, meaning that the orthonormal system "misses" part of $f$. The Pythagorean identity $\|f\|^2 = \sum c_k^2$ — which was automatic in $\mathbb{R}^n$ — becomes a substantive claim (Parseval's identity) that must be proved.
3. **Is the system large enough?** A finite orthonormal set in an infinite-dimensional space cannot span. We need a criterion that distinguishes an orthonormal system that captures the entire space from one that captures only a proper subspace.
### The Resolution: Completeness
The correct condition is *completeness*: an orthonormal system $\{e_k\}$ is complete if the only element orthogonal to every $e_k$ is $0$. This is the exact analogue of the dimension count in $\mathbb{R}^n$: a complete orthonormal system has trivial orthogonal complement, so the [Orthogonal Decomposition Theorem](/theorems/241) forces $\overline{\operatorname{span}\{e_k\}} = H$. With completeness in hand, all three questions above are resolved: the [Fourier series](/page/Fourier%20Series) converges, Parseval's identity holds, and every element of $H$ is recovered by its Fourier expansion. The development below makes this precise.
[/motivation]