Unit 2: Polynomial Interpolation, Finite Differences & Approximation Theory
Lagrange interpolation basis, Cauchy remainder error theorem, Newton's divided difference tables, finite difference operators (forward, backward, central), and Runge's phenomenon with Chebyshev optimal nodes.
§2.1 Foundations of Interpolation: Existence, Uniqueness & The Lagrange Formulation
1. The Polynomial Interpolation Problem
Let $f: [a, b] \to \mathbb{R}$ be a continuous function. Suppose we are given $n + 1$ distinct nodes:
along with corresponding function values $y_i = f(x_i)$ for $i = 0, 1, \dots, n$.
The Polynomial Interpolation Problem seeks a polynomial $P_n(x) \in \mathbb{P}_n$ of degree at most $n$:
satisfying the $n + 1$ interpolation conditions:
Theorem 2.1 (Existence and Uniqueness of the Interpolating Polynomial):
Given $n + 1$ distinct points $(x_0, y_0), (x_1, y_1), \dots, (x_n, y_n)$, there exists one and only one polynomial $P_n \in \mathbb{P}_n$ of degree at most $n$ passing through all $n + 1$ points.
Rigorous Proof: Expressing the interpolation conditions in matrix form:
The coefficient matrix $V$ is the Vandermonde Matrix. Its determinant satisfies:
Because the nodes $x_i$ are pairwise distinct, $x_i - x_j \ne 0$ for all $i > j$. Consequently, $\det(V) \ne 0$. By Cramer's Rule, $V$ is non-singular and invertible, which guarantees that the coefficient vector $\vec{c} = V^{-1} \vec{y}$ exists and is strictly unique. $\blacksquare$
2. The Lagrange Basis Formulation
Direct matrix inversion of the Vandermonde matrix is computationally expensive ($\mathcal{O}(n^3)$) and notoriously ill-conditioned. The Lagrange form provides an explicit analytical representation by introducing cardinal basis polynomials.
Definition 2.1 (Cardinal Lagrange Basis Polynomials):
For $n + 1$ distinct nodes $x_0, x_1, \dots, x_n$, the $k$-th Lagrange basis polynomial $L_{n,k}(x)$ of degree $n$ is defined by:
The Lagrange polynomials satisfy the fundamental Kronecker delta property:
The interpolating polynomial is simply the linear combination:
3. Rigorous Error Analysis: The Cauchy Remainder Theorem
Theorem 2.2 (Cauchy Interpolation Remainder Formula):
Let $f \in C^{n+1}[a, b]$ and let $P_n \in \mathbb{P}_n$ interpolate $f$ at $n + 1$ distinct nodes $x_0, x_1, \dots, x_n \in [a, b]$. For any point $x \in [a, b]$:
where $\xi = \xi(x)$ is a number lying strictly in the interior of the interval spanned by $x_0, x_1, \dots, x_n$ and $x$.
Rigorous Proof: If $x = x_i$ for any node, both sides are $0$ and equality holds trivially. Assume $x \ne x_i$ for all $i$. Fix $x$ and define the node product polynomial:
Notice that $w(x) \ne 0$ since $x$ is not a node. Define the auxiliary error function $g: [a, b] \to \mathbb{R}$:
Now inspect the zeros of $g(t)$:
- For each node $t = x_i$ ($i = 0, \dots, n$):
- For $t = x$:
Thus, $g(t)$ possesses at least $n + 2$ distinct zeros in $[a, b]$.
Since $f \in C^{n+1}[a, b]$ and $P_n, w$ are polynomials, $g \in C^{n+1}[a, b]$. Applying Rolle's Theorem successively:
- $g'(t)$ has at least $n + 1$ zeros between the $n + 2$ zeros of $g(t)$.
- $g''(t)$ has at least $n$ zeros.
- Repeating this $n+1$ times, the $(n+1)$-th derivative $g^{(n+1)}(t)$ has at least one zero $\xi$ in the interior of the domain.
Now compute $g^{(n+1)}(t)$:
Therefore:
Evaluating at the zero $t = \xi$:
Rearranging terms yields:
§2.2 Newton's Divided Differences & Incremental Polynomial Representation
1. Motivation for the Divided Difference Formulation
While the Lagrange form is mathematically elegant, adding a new data point $(x_{n+1}, y_{n+1})$ requires completely recalculating all $n + 2$ basis polynomials $L_{n+1, k}(x)$. Newton's Divided Differences overcomes this limitation by expressing $P_n(x)$ in a triangular, incremental hierarchical basis:
Adding a new node requires simply computing one additional leading coefficient $a_{n+1}$.
2. Recursive Definition of Divided Differences
Definition 2.2:
The divided differences of a function $f$ with respect to distinct nodes $x_0, x_1, \dots, x_n$ are defined recursively:
- Zeroth Divided Difference:
- First Divided Difference:
- Second Divided Difference:
- General $k$-th Divided Difference:
The coefficients $a_k$ in the Newton interpolating polynomial are precisely the top-diagonal entries of the divided difference table: $a_k = f[x_0, x_1, \dots, x_k]$.
3. Mean Value Theorem for Divided Differences
Theorem 2.3:
Let $f \in C^k[a, b]$ and let $x_0, x_1, \dots, x_k$ be distinct nodes in $[a, b]$. Then there exists a point $\xi$ in the open interval $(\min x_i, \max x_i)$ such that:
Proof: Let $P_k(x)$ be the polynomial of degree $k$ interpolating $f$ at $x_0, \dots, x_k$. The leading coefficient of $P_k(x)$ is $f[x_0, \dots, x_k]$. By Cauchy's remainder theorem:
Now let $P_{k-1}(x)$ interpolate $f$ at $x_0, \dots, x_{k-1}$. Then $P_k(x) - P_{k-1}(x) = f[x_0, \dots, x_k] \prod_{j=0}^{k-1} (x - x_j)$. Evaluating the error at $x = x_k$ and applying the generalized Rolle's theorem proves $f[x_0, \dots, x_k] = \frac{f^{(k)}(\xi)}{k!}$. $\blacksquare$
§2.3 Finite Difference Calculus: Operators, Gregory-Newton Formulas & Central Differences
1. Equispaced Grid Finite Difference Operators
When nodes are uniformly spaced with constant step size $h$:
divided differences simplify into finite difference operator algebra.
Definitions of Core Operators:
1. Forward Difference Operator ($\Delta$):
Higher powers: $\Delta^n f_k = \Delta(\Delta^{n-1} f_k) = \sum_{j=0}^n (-1)^{n-j} \binom{n}{j} f_{k+j}$.
2. Backward Difference Operator ($\nabla$):
Higher powers: $\nabla^n f_k = \sum_{j=0}^n (-1)^j \binom{n}{j} f_{k-j}$.
3. Central Difference Operator ($\delta$):
4. Shift Operator ($E$):
5. Averaging Operator ($\mu$):
Fundamental Operator Identities:
From Taylor series: $E f(x) = f(x + h) = \sum \frac{h^k D^k}{k!} f(x) = e^{hD} f(x)$, where $D = \frac{d}{dx}$.
2. Newton-Gregory Forward and Backward Formulas
Let $x = x_0 + s h$, so $s = \frac{x - x_0}{h}$ is the non-dimensionalized step parameter.
The Newton-Gregory Forward Interpolation Formula:
Suitable for interpolating near the beginning of a tabulated dataset:
The Newton-Gregory Backward Interpolation Formula:
Suitable for interpolating near the end of a dataset (or for extrapolation): Let $x = x_n + s h$, so $s = \frac{x - x_n}{h}$:
3. Central Difference Formulas: Stirling & Bessel
For interpolation near the center of a table, forward and backward formulas exhibit asymmetric error propagation. Central difference formulas provide optimal symmetric precision:
- Stirling's Formula: Averages forward and backward expressions about the central node:
- Bessel's Formula: Best suited for $s$ near $0.5$ (midway between nodes):
§2.4 Runge's Phenomenon, Lebesgue Constants & Chebyshev Optimal Nodes
1. The Catastrophe of High-Degree Equispaced Interpolation
It is a common intuition that increasing the degree $n$ of an interpolating polynomial on a uniform grid should improve accuracy. In 1901, Carl Runge discovered that this intuition fails catastrophically.
Consider the Runge Function on $[-1, 1]$:
If $P_n(x)$ interpolates $f$ at $n + 1$ equispaced nodes $x_k = -1 + \frac{2k}{n}$, then as $n \to \infty$:
Near the boundaries $x = \pm 1$, the polynomial oscillations explode exponentially.
Mathematical Origin: In Cauchy's remainder formula:
On uniform grids, the node product polynomial $w_n(x)$ is highly non-uniform: it is small near the center $x = 0$, but near the boundaries $x \approx \pm 1$, it attains gigantic peaks of order $\mathcal{O}(n^{-1} e^n)$. Combined with the singularity of $f(z)$ in the complex plane at $z = \pm \frac{i}{5}$ (which lies inside the equispaced convergence ellipse), the error diverges.
2. Chebyshev Polynomials and Optimal Node Clustering
To suppress boundary oscillations, we must choose nodes $x_k$ that minimize the maximum norm of the node product polynomial:
Definition 2.3 (Chebyshev Polynomials of the First Kind):
The Chebyshev polynomials $T_n(x)$ are defined on $[-1, 1]$ by:
They satisfy the three-term recurrence relation:
The leading coefficient of $T_n(x)$ is $2^{n-1}$ for $n \ge 1$.
Theorem 2.4 (The Minimax Property of Chebyshev Polynomials):
Among all monic polynomials of degree $n$ on $[-1, 1]$, the monic Chebyshev polynomial $\tilde{T}_n(x) = \frac{T_n(x)}{2^{n-1}}$ has the strictly smallest maximum absolute value on $[-1, 1]$:
Theorem 2.5 (Chebyshev Optimal Interpolation Nodes):
The roots of $T_{n+1}(x) = 0$ provide the optimal interpolation nodes on $[-1, 1]$:
These nodes are densely clustered near the endpoints $x = \pm 1$ and spread apart near the center $x = 0$. Using Chebyshev nodes, the Lebesgue constant grows only logarithmically ($\Lambda_n \sim \frac{2}{\pi} \ln n$), completely eliminating Runge's phenomenon and guaranteeing uniform convergence for any analytic function!
Tiered Solved Practice Problems & Examination Proofs
Comprehensive analytical derivations, multi-tier solutions (Foundational, Intermediate Algorithmic, and Honors/Proof Challenge) with complete line-by-line verification.
Given the dataset: $(-1, 3), (0, -1), (1, 1), (2, 9)$:
1. Construct the cardinal Lagrange basis polynomials $L_{3, k}(x)$ for $k = 0, 1, 2, 3$ and write the complete interpolating polynomial $P_3(x)$.
2. Construct the Newton divided difference table for the dataset and verify that the resulting polynomial matches the Lagrange form identically.
3. Estimate the value of $f(0.5)$.
Step 1: Construct Cardinal Lagrange Basis Polynomials
Nodes: $x_0 = -1, x_1 = 0, x_2 = 1, x_3 = 2$. Values: $y_0 = 3, y_1 = -1, y_2 = 1, y_3 = 9$.
- $L_{3,0}(x) = \frac{(x - 0)(x - 1)(x - 2)}{(-1 - 0)(-1 - 1)(-1 - 2)} = \frac{x(x - 1)(x - 2)}{(-1)(-2)(-3)} = -\frac{x(x^2 - 3x + 2)}{6} = -\frac{x^3 - 3x^2 + 2x}{6}$.
- $L_{3,1}(x) = \frac{(x + 1)(x - 1)(x - 2)}{(0 + 1)(0 - 1)(0 - 2)} = \frac{(x^2 - 1)(x - 2)}{(1)(-1)(-2)} = \frac{x^3 - 2x^2 - x + 2}{2}$.
- $L_{3,2}(x) = \frac{(x + 1)(x - 0)(x - 2)}{(1 + 1)(1 - 0)(1 - 2)} = \frac{x(x + 1)(x - 2)}{(2)(1)(-1)} = -\frac{x^3 - x^2 - 2x}{2}$.
- $L_{3,3}(x) = \frac{(x + 1)(x - 0)(x - 1)}{(2 + 1)(2 - 0)(2 - 1)} = \frac{x(x^2 - 1)}{(3)(2)(1)} = \frac{x^3 - x}{6}$.
Combining with values:
Numerator: $(-x^3 + 3x^2 - 2x) + (-x^3 + 2x^2 + x - 2) + (-x^3 + x^2 + 2x) + (3x^3 - 3x)$
$x^3$ coefficient: $(-1 - 1 - 1 + 3) / 2 = 0 / 2 = 0$. (Notice the degree reduces to 2!)
$x^2$ coefficient: $(3 + 2 + 1 + 0) / 2 = 6 / 2 = 3$.
$x$ coefficient: $(-2 + 1 + 2 - 3) / 2 = -2 / 2 = -1$.
Constant term: $(-2) / 2 = -1$.
Thus: $P_3(x) = 2x^3 + \dots = 3x^2 - x - 1$.
Step 2: Construct Newton's Divided Difference Table
- $x_0 = -1, f[x_0] = 3$
- $x_1 = 0, f[x_1] = -1 \implies f[x_0, x_1] = \frac{-1 - 3}{0 - (-1)} = -4$
- $x_2 = 1, f[x_2] = 1 \implies f[x_1, x_2] = \frac{1 - (-1)}{1 - 0} = 2$
- $x_3 = 2, f[x_3] = 9 \implies f[x_2, x_3] = \frac{9 - 1}{2 - 1} = 8$
Second divided differences:
- $f[x_0, x_1, x_2] = \frac{2 - (-4)}{1 - (-1)} = \frac{6}{2} = 3$
- $f[x_1, x_2, x_3] = \frac{8 - 2}{2 - 0} = \frac{6}{2} = 3$
Third divided difference:
- $f[x_0, x_1, x_2, x_3] = \frac{3 - 3}{2 - (-1)} = \frac{0}{3} = 0$
Using the Newton formula:
Both methods match identically!
Step 3: Evaluate at $x = 0.5$
Interpolating polynomial: $P_3(x) = 3x^2 - x - 1$. Estimated value: $f(0.5) = -0.75$.
Given tabulated values of $f(x) = \sin(\pi x)$ at $x = 0.0, 0.2, 0.4, 0.6$ ($h = 0.2$):
1. Construct the forward difference table $\Delta^k f_0$.
2. Use the Newton-Gregory forward formula to approximate $f(0.1)$ ($s = 0.5$).
3. Compute the theoretical Cauchy error bound on $|f(0.1) - P_3(0.1)|$ and compare it with the exact absolute error.
Step 1: Forward Difference Table
Nodes and function values:
- $x_0 = 0.0, f_0 = \sin(0) = 0.000000$
- $x_1 = 0.2, f_1 = \sin(0.2\pi) = \sin(0.628319) = 0.587785$
- $x_2 = 0.4, f_2 = \sin(0.4\pi) = \sin(1.256637) = 0.951057$
- $x_3 = 0.6, f_3 = \sin(0.6\pi) = \sin(1.884956) = 0.951057$
Forward differences:
- $\Delta f_0 = 0.587785 - 0 = 0.587785$
- $\Delta f_1 = 0.951057 - 0.587785 = 0.363272$
- $\Delta f_2 = 0.951057 - 0.951057 = 0.000000$
Second differences:
- $\Delta^2 f_0 = 0.363272 - 0.587785 = -0.224513$
- $\Delta^2 f_1 = 0.000000 - 0.363272 = -0.363272$
Third difference:
- $\Delta^3 f_0 = -0.363272 - (-0.224513) = -0.138759$
Step 2: Newton-Gregory Forward Approximation for $x = 0.1$
$s = \frac{x - x_0}{h} = \frac{0.1 - 0.0}{0.2} = 0.5$.
Step 3: Error Bound Comparison
Exact value: $f(0.1) = \sin(0.1\pi) = \sin(0.314159) = 0.309017$.
Exact error: $|f(0.1) - P_3(0.1)| = |0.309017 - 0.313285| = 0.004268$.
Theoretical Cauchy bound:
Fourth derivative of $f(x) = \sin(\pi x)$: $f^{(4)}(x) = \pi^4 \sin(\pi x) \le \pi^4 \approx 97.409$.
Node product at $x = 0.1$:
Error bound:
The exact error $0.004268$ is strictly below the theoretical upper bound $0.006088$, fully confirming Cauchy's theorem!
Approximation $P_3(0.1) \approx 0.313285$. Exact error $= 0.004268 \le 0.006088$ (theoretical bound).
Let $\mathcal{P}_n$ denote the set of all monic polynomials of degree $n$ on $[-1, 1]$ (leading coefficient 1).
1. Prove that the monic Chebyshev polynomial $\tilde{T}_n(x) = \frac{1}{2^{n-1}} T_n(x)$ satisfies $\max_{x \in [-1, 1]} |\tilde{T}_n(x)| = \frac{1}{2^{n-1}}$.
2. Prove by contradiction that for any monic polynomial $q_n(x) \in \mathcal{P}_n$, $\max_{x \in [-1, 1]} |q_n(x)| \ge \frac{1}{2^{n-1}}$, establishing the Chebyshev Minimax Theorem.
3. Deduce that choosing the roots of $T_{n+1}(x)$ as interpolation nodes strictly minimizes the worst-case Cauchy remainder bound.
Step 1: Norm of the Monic Chebyshev Polynomial
Recall $T_n(x) = \cos(n \theta)$ where $x = \cos \theta$ for $\theta \in [0, \pi]$.
Since $|\cos(n \theta)| \le 1$ for all $\theta$, $\max_{x \in [-1, 1]} |T_n(x)| = 1$.
The leading coefficient of $T_n(x)$ is $2^{n-1}$ for $n \ge 1$.
Therefore, the monic polynomial is $\tilde{T}_n(x) = \frac{1}{2^{n-1}} T_n(x)$, and its maximum norm is:
Notice that $\tilde{T}_n(x)$ attains its extreme values $\pm \frac{1}{2^{n-1}}$ at the $n + 1$ Chebyshev alternation points:
with alternating signs: $\tilde{T}_n(x_k^*) = \frac{(-1)^k}{2^{n-1}}$.
Step 2: Proof of Minimax Optimality by Contradiction
Suppose there exists a monic polynomial $q_n(x) \in \mathcal{P}_n$ such that:
Consider the difference polynomial:
Since both $\tilde{T}_n(x)$ and $q_n(x)$ are monic polynomials of degree $n$, their leading terms $x^n$ cancel:
Now evaluate $r(x)$ at the $n + 1$ alternation points $x_k^*$:
- For even $k$: $\tilde{T}_n(x_k^) = \frac{1}{2^{n-1}}$. Since $|q_n(x_k^)| < \frac{1}{2^{n-1}}$, we have:
- For odd $k$: $\tilde{T}_n(x_k^) = -\frac{1}{2^{n-1}}$. Since $|q_n(x_k^)| < \frac{1}{2^{n-1}}$, we have:
Thus, $r(x)$ changes sign between every pair of consecutive points $x_k^$ and $x_{k+1}^$ for $k = 0, 1, \dots, n - 1$.
By the Intermediate Value Theorem, $r(x)$ must have at least one zero in each open interval $(x_{k+1}^, x_k^)$.
Since there are $n$ such disjoint intervals, $r(x)$ must have at least $n$ distinct real zeros in $[-1, 1]$!
However, $\deg(r) \le n - 1$. A non-zero polynomial of degree $\le n - 1$ cannot possess $n$ distinct zeros unless it is identically zero: $r(x) \equiv 0$.
This contradicts $r(x_k^*) \ne 0$. Therefore, no such polynomial $q_n$ can exist, proving:
Step 3: Consequence for the Cauchy Remainder
The node product polynomial $w_n(x) = \prod_{k=0}^n (x - x_k)$ is monic of degree $n + 1$.
By the Minimax Theorem, choosing $x_k$ as the roots of $T_{n+1}(x)$ gives $w_n(x) = \tilde{T}_{n+1}(x)$, guaranteeing that:
which minimizes the worst-case interpolation error bound globally across all possible node choices, rigorously proving why Chebyshev nodes suppress Runge's phenomenon! $\blacksquare$
$\|\tilde{T}_n\|_\infty = 2^{1-n}$. The Chebyshev nodes minimize the node product norm $\|w_n\|_\infty = 2^{-n}$, establishing the optimal error bound for polynomial interpolation.