Theorem (Fourier series in inner product space)

Let $X$ be an inner product space with an orthonormal basis $(e_n)_{n\in \N}$. For all $x\in X$, $$ \begin{align*} x = \sum_{n=1}^{\infty} \langle x,e_n\rangle e_n. \end{align*} $$

We call $\langle x,e_n\rangle$ the $n$-th Fourier coefficient of $x$ with respect to $(e_n)$, and $\sum_{n=1}^{\infty} \langle x,e_n\rangle e_n$ the Fourier series.

Proof