Theorem (Parseval's identity for orthogonal polynomials)

Given a weighted inner product with $[a,b]$ finite, let $(Q_k)_{k=0}^n$ be the orthogonal polynomials.

Then for any $f\in C[a,b]$, $$ \begin{align*} \sum_{k=0}^{\infty} \frac{\langle f,Q_k\rangle^2}{\|Q_k\|^2} = \|f\|^2. \end{align*} $$

Proof