Orthogonal polynomials

Definition (weighted inner product) open_in_new

In the vector space $V$ of continuous functions $f: [a,b]\to \C$, we can equip $V$ with an inner product $$ \begin{align*} \langle f,g\rangle_w = \int_{a}^{b} f(x)\overline{g(x)} w(x) \d x \end{align*} $$ where $w: (a,b)\to \R_{>0}$, the weight function, is such that $\int_{a}^{b} w(x) \d x$ exists.

We can also define the norm $$ \begin{align*} \|f\|_w = \sqrt{\langle f,f\rangle_w}. \end{align*} $$

Definition (orthogonal polynomial) open_in_new

Given a weighted inner product, a polynomial $Q_n \in \mathcal{P}_n$ is said to be the $n$-th orthogonal polynomial if $$ \begin{align*} \langle Q_n, p\rangle = 0 \qquad \text{for all }p\in \mathcal{P}_{n-1}. \end{align*} $$

Lemma (unique monic orthogonal polynomial) open_in_new

Given a weighted inner product, for each $n\geq 0$, there exists a unique monic orthogonal polynomial $Q_n\in \mathcal{P}_n$.

Furthermore, any $p\in \mathcal{P}_n$ can be written uniquely as the linear combination $$ \begin{align*} p = \sum_{k=0}^{n} \frac{\langle p, Q_k\rangle}{\|Q_k\|^2}Q_k. \end{align*} $$

Proof

Theorem (recurrence relation of monic orthogonal polynomial) open_in_new

Given a weighted inner product, the monic orthogonal polynomials satisfy $$ \begin{align*} Q_{-1}(x) ={}& 0, \\ Q_0(x) ={}& 1, \\ Q_{n+1}(x) ={}& (x-a_n) \, Q_n(x) - b_n \,Q_{n-1}(x) \end{align*} $$ where $$ \begin{align*} a_n = \frac{\langle xQ_n,Q_n\rangle}{\langle Q_n, Q_n\rangle}, \qquad b_n = \frac{\langle Q_n, Q_n\rangle}{\langle Q_{n-1}, Q_{n-1}\rangle} > 0. \end{align*} $$

Proof

Lemma (roots of orthogonal polynomials) open_in_new

Given a weighted inner product, an $n$-th orthogonal polynomial has $n$ distinct simple roots in $(a,b)$.

Proof

Least square polynomial fitting open_in_new
Least square polynomial fitting problem

Given $f\in C[a,b]$ and a weight function $w(x)\geq 0$, find the (weighted) least square approximant $$ \begin{align*} p^\ast = \arg \min_{p\in \mathcal{P}_n} \|f-p\|_{w} \end{align*} $$ where $$ \begin{align*} \|f-p\|_w = \left(\int_{a}^{b} |f-g|^2 w \d x\right)^{1/2}. \end{align*} $$

Theorem (least square approximant) open_in_new

For a least square polynomial fitting problem, let $(Q_k)_{k=0}^n$ be the orthogonal polynomials.

Then the least square approximant is given by $$ \begin{align*} p^\ast = \sum_{k=0}^{n} \frac{\langle f,Q_k\rangle}{\|Q_k\|^2} Q_k \in \mathcal{P}_n \end{align*} $$ with error $$ \begin{align*} \|f-p^\ast\|^2 = \|f\|^2 - \|p^\ast\|^2 = \|f\|^2 - \sum_{k=0}^{n} \frac{\langle f,Q_k\rangle^2}{\|Q_k\|^2}. \end{align*} $$

Proof

Theorem (Parseval's identity for orthogonal polynomials) open_in_new

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

  • To find a polynomial $p$ such that $\|f-p\|\leq ε$, compute the partial sums $\sum_{k=0}^{N} \frac{\langle f,Q_k\rangle^2}{\|Q_k\|^2}$ until it is at least $\|f\|^2 - ε^2$.