Approximation of linear functionals
Given a linear functional $λ: C^{n+1}[a,b] \to \R$, find an approximation of the form $$ \begin{align*} λ(f) = \sum_{i=0}^{N} a_i f(x_i). \end{align*} $$ $a_i$ are called weights, $x_i$ are called nodes, and this expression is called a quadrature formula.
Consider a linear functional $λ: C^{n+1}[a,b]\to\R$ and an approximation $λ(f) \approx \sum_{i=0}^{N} a_if(x_i)$.
We say the formula is exact on $\mathcal{P}_n$ if equality holds when $f\in \mathcal{P}_n$.
If $N<n$, we say it is of high accuracy.
Consider a linear functional $λ: C^{n+1}[a,b]\to\R$ and an approximation $λ(f) \approx \sum_{i=0}^{N} a_if(x_i)$.
If $N=n$, the formula is exact on $\mathcal{P}_n$ iff it is the interpolating formula $$ \begin{align*} a_i = λ(l_i) \end{align*} $$ where $l_0, \ldots, l_n$ are the fundamental Lagrange polynomials.
Given a weight function $w(x)\geq 0$, seek an approximation $$ \begin{align*} I(f) := \int_{a}^{b} f(x) \,w(x) \d x \approx \sum_{i=0}^n a_i f(x_i), \qquad f\in C[a,b]. \end{align*} $$
No quadrature rule with $(n+1)$ nodes is exact on $\mathcal{P}_{2n+2}$ for numerical integration.
Let a quadrature $\int_{a}^{b} f(x)ω(x) \d x \approx \sum_{i=0}^{n} a_i f(x_i)$ for numerical integration be exact on $\mathcal{P}_{n}$ (i.e. the interpolating formula).
Then it is exact on $\mathcal{P}_{2n+1}$ iff $x_0, \ldots, x_n$ are the $(n+1)$ distinct roots of an $n$-th orthogonal polynomial with respect to the inner product $\langle f,g\rangle = \int_{a}^{b} a(x)b(x)ω(x) \d x$.
Such a quadrature is called a Gaussian quadrature.
Suppose we want to estimate $\int_{a}^{b} f(x)ω(x) \d x \approx \sum_{i=0}^{n} a_i f(x_i)$ with accuracy $ε\ll 1$.
We could choose a Gaussian quadrature of high order, but computing roots of orthogonal polynomials is difficult.
Instead, split into many sub-intervals, and apply a simple quadrature on each sub-interval.
One can show that if a quadrature exact on $\mathcal{P}_n$ is applied with step size $h$, the total error is $O(h^{n+1})$ for $f\in C^{n+1}[a,b]$.
Seek an approximation $$ \begin{align*} I(f) := f^{(k)}(x) \approx \sum_{i=0}^{n} a_i f(x_i). \end{align*} $$
The interpolating formula is $$ \begin{align*} f^{(k)} \approx k! \,f[x_0, \ldots, x_k] \end{align*} $$ using the divided difference of a polynomial.
Consider a linear functional $λ: C^{(n+1)}[a,b]\to \R$.
If $λ$ vanishes on $\mathcal{P}_n$ and we can exchange $λ$ and $\int_{a}^{b}$, then $$ \begin{align*} λ(f) = \frac{1}{n!} \int_{a}^{b} K_{λ}(t) f^{(n+1)}(t) \d t \end{align*} $$ where $K_λ$ is the Peano kernel $$ \begin{align*} K_λ(t) = λ(x\mapsto (x-t)_+^{n}), \qquad (x-t)_+ = \max\set{x-t, 0}. \end{align*} $$
-
If an approximation formula $λ(f) \approx \sum_{i=0}^{N} a_i f(x_i)$ is exact on $\mathcal{P}_n$, then the error $e_λ := λ(f) - \sum_{i=0}^{N} a_i f(x_i)$ vanishes on $\mathcal{P}_n$, so the theorem applies.
-
We have an estimate $$ \begin{align*} |λ(f)| \leq \frac{1}{n!} \|K_{λ}\|_1 \cdot \|f^{(n+1)}\|_{\infty} \equiv \frac{1}{n!} \int_{a}^{b} |K_λ(t)| \d t \cdot \max_{t\in [a,b]}|f^{(n+1)}|. \end{align*} $$ which is sharp, i.e. for all $ε>0$, there exists $f$ such that $\mathrm{RHS} - \mathrm{LHS} < ε$. (Derivation)