Theorem (Peano kernel theorem)
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)