Polynomial interpolation

Denote $\mathcal{P}_n$ as the set of all real polynomials of degree at most $n$.

Polynomial interpolation problem

Given a continuous function $f: [a,b]\to \R$ and distinct nodes $x_0, x_1, \ldots, x_n \in [a,b]$, find a polynomial $p\in \mathcal{P}_n$ such that $p(x_i) = f(x_i)$ for $i=0,1,\ldots,n$.

Theorem (interpolation theorem) open_in_new

The solution to a polynomial interpolation problem exists and is unique.

Proof

Definition (nodal polynomial) open_in_new

For a polynomial interpolation problem, the nodal polynomial is defined as $$ \begin{align*} ω(x) = \prod_{i=0}^{n} (x-x_i) \in \mathcal{P}_{n+1}. \end{align*} $$

  • The roots of $ω$ is precisely $x_0, \ldots, x_n$.

  • $ω'(x_i) = \prod_{j\neq i} (x_i-x_j)$.

Lagrange interpolating polynomial open_in_new

For a polynomial interpolation problem, define the Lagrange fundamental polynomials, for $i=0,1,\ldots,n$, $$ \begin{align*} l_i(x) = \prod_{j\neq i} \frac{x-x_j}{x_i-x_j} = \frac{ω(x)}{ω'(x_i)\,(x-x_i)}\in \mathcal{P}_n \end{align*} $$ which satisfies $l_i(x_j) = δ_{ij}$.

Then a solution to the problem is $$ \begin{align*} p(x) = \sum_{i=0}^{n} f(x_i)\,l_i(x) = \sum_{i=0}^{n} \frac{f(x_i)}{ω'(x_i)} \frac{ω(x)}{x-x_i}. \end{align*} $$

However this is very unstable in numerical evaluation.

Newton interpolating polynomial open_in_new

Definition (divided difference) open_in_new

In a polynomial interpolation problem, the divided difference of $f$ of order $k$ is the leading coefficient of the polynomial $p_k\in \mathcal{P}_k$ that interpolates $f$ on $x_0, \ldots, x_k$.

  • $f[x_0] = f(x_0)$.

  • By the Lagrange form, $$ \begin{align*} f[x_0, \ldots, x_n] = \sum_{i=0}^{n} \frac{f(x_i)}{ω'(x_i)}. \end{align*} $$

Theorem (Newton interpolating polynomial) open_in_new

For a polynomial interpolation problem, the interpolating polynomial is given by $$ \begin{align*} p_n(x) = \sum_{k=0}^{n} f[x_0, \ldots, x_k] \prod_{i=0}^{k-1} (x-x_i) \end{align*} $$ where $f[x_0, \ldots, x_k]$ is the divided difference.

Proof

Theorem (recurrence relation of divided difference) open_in_new

The divided differences satisfy the recurrence relation $$ \begin{align*} f[x_0, x_1, \ldots, x_{k-1}, x_k] = \frac{f[x_1, \ldots, x_{k-1}, x_k] - f[x_0, x_1, \ldots, x_{k-1}]}{x_k - x_0}. \end{align*} $$

Proof

Example (Newton interpolating polynomial)

Error bounds for polynomial interpolation open_in_new

Theorem (polynomial interpolation error) open_in_new

Suppose $f\in C^{n+1}[a,b]$ in a polynomial interpolation problem.

The interpolating polynomial $p\in \mathcal{P}_n$ has interpolation error $$ \begin{align*} f(x) - p(x) = f[x_0, \ldots, x_n, x]\, ω(x) = \frac{1}{(n+1)!} \, ω(x) \,f^{(n+1)}(ξ) \end{align*} $$ for some $ξ\in [a,b]$.

Proof

  • This gives a bound of the maximal error $$ \begin{align*} \|f-p\|_{\infty} \leq \frac{1}{(n+1)!} \|ω\|_\infty \|f^{(n+1)}\|_\infty \end{align*} $$ where $\|g\|_\infty = \max_{x\in [a,b]} |g(x)|$ is the $L^\infty$ norm. We want to use nodes $x_0, \ldots, x_n$ so that $\|ω\|_\infty$ is minimised.

Definition (Chebyshev polynomial) open_in_new

The Chebyshev polynomial $T_n$ on $[-1,1]$ is defined as $$ \begin{align*} T_n(x) = \cos(n\cos\inv x), \qquad x\in [-1,1]. \end{align*} $$

  • Trigonometric identity implies the recurrence relation $$ \begin{align*} T_0 ={}& 1, \\ T_1 ={}& x, \\ T_{n+1}(x) ={}& 2x\, T_n(x) - T_{n-1}(x) \end{align*} $$ so $T_n$ are indeed polynomials.

  • The highest degree term in $T_n$ is $2^{n-1} x^n$.

Theorem (Chebyshev polynomial has minimum L-inf norm) open_in_new

Among all monic polynomials $\mathcal{P}_n$, the Chebyshev polynomial $γT_{n}$ has the smallest $L^\infty$ norm $$ \begin{align*} \inf_{a_i} \max_{x\in [-1,1]} |x^n + a_{n-1} x^{n+1} + \ldots + a_0| = \|γT_n\| = γ \end{align*} $$ where $γ = 1/2^{n-1}$.

Proof

Corollary (optimality of Chebyshev nodes) open_in_new

Among all choices of interpolating nodes $Δ = (x_i)_{i=0}^n$, the Chebyshev nodes $Δ^\ast = (x_i^\ast)_{i=0}^n$ where $$ \begin{align*} x_i^\ast = \cos \biggl(\frac{2i+1}{2n+2}π\biggr) \end{align*} $$ give the best estimate for interpolation error, i.e. $$ \begin{align*} \inf_{Δ} \|ω_Δ\|_\infty = \|ω_{Δ^\ast}\|_\infty = \frac{1}{2^n} \end{align*} $$ and so $$ \begin{align*} \|f-p_{Δ^\ast}\|_\infty \leq \frac{1}{2^n} \frac{1}{(n+1)!} \|f^{n+1}\|_\infty. \end{align*} $$

Proof