5.1. Derivation of Local Error Terms for Integration Formulae#
Local truncation error terms associated with various integration formulae can be derived by using the interpolating formulae or by the method of undetermined coefficients. For this module we focus on the former through the following examples.
Example 5.1
Given a general sequence \(\{f_j=f(x_j)\}_0^{\infty}\) with \(x_j=jh\), use the Gregory-Newton forward-interpolation formula:
to derive Simpson’s rule and its error term \(T\) (local truncation error):
Solution
For the derivation of the error term we integrate the terms involving third and fourth differences (i.e. \(\Delta^3\) and \(\Delta^4\)), thus
Use the Mean Value Theorem and LET \(\Delta^{4} f_0 = h^4f^{(iv)}(z)\) where \(x_0 \leq z \leq x_2\)
Theorem 5.1 (Mean Value Theorem)
Let \(f=f(x)\), \(x \in \R\) be continuous over the closed interval \([a, b]\) and differentiable over the open interval \((a, b)\). Then, there exists at least one point \(z\in (a,b)\) such that
Note
Let \(a=x\) and \(b=x+h\), we can obtain
re-arranging the equation gives
For high-order differences, we have
Proof for second-order difference (click to show)
We can define a function \(g(x)\) as
and the first-order difference of \(g(x)\) can be expressed as
Therefore, the second-order difference of \(f(x)\) is
Example 5.2
Use the Gregory-Newton forward-interpolation formula:
to show that for Milne’s formula:
its error term (local truncation error)
can be obtained by integrating the terms involving third and fourth differences.
Solution
For the derivation of the error term we integrate the terms involving third and fourth differences (i.e. \(\Delta^3\) and \(\Delta^4\)), thus
Let \(\Delta^4 f_0 ~=~ h^4 f^{(iv)}(z)\) where \(x_{-1} \leq z \leq x_3\)