Derivation of Local Error Terms for Integration Formulae

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:

\[\begin{split}\begin{aligned} f_{j+s} =~ f_j + s\Delta f_j & + \frac{s(s-1)}{2!}\Delta^2 f_j + \frac{s(s-1)(s-2)}{3!}\Delta^3 f_j \\ ~ & + \frac{s(s-1)(s-2)(s-3)}{4!}\Delta^4 f_j + \cdots \\ \end{aligned}\end{split}\]

to derive Simpson’s rule and its error term \(T\) (local truncation error):

\[\begin{aligned} \int_{x_0}^{x_2} f(x)\,\dx ~=~ \frac{h}{3}(f_2 + 4f_1 + f_0) + T \end{aligned}\]

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

\[ f'(z)=\frac{f(b)-f(a)}{b-a} \]

Note

Let \(a=x\) and \(b=x+h\), we can obtain

\[ f'(z)=\frac{f(x+h)-f(x)}{h} = \frac{\Delta f(x)}{h} \quad \text{for} \quad z \in (x, x+h) , \]

re-arranging the equation gives

\[ \Delta f(x) = h f'(z). \]

For high-order differences, we have

\[\begin{split}\begin{aligned} \Delta^2 f(x) & = h^2 f''(z), \\ \Delta^3 f(x) & = h^3 f'''(z), \\ ~ & \vdots \\ \Delta^n f(x) & = h^n f^{(n)}(z) \quad \text{for} \quad z \in (x, x+nh). \\ \end{aligned}\end{split}\]
Proof for second-order difference (click to show)

We can define a function \(g(x)\) as

\[ g(x) = f(x+h) - f(x) = \Delta f(x), \]

and the first-order difference of \(g(x)\) can be expressed as

\[ \Delta g(x) = h g'(z) \quad \text{for} \quad z \in (x, x+h). \]

Therefore, the second-order difference of \(f(x)\) is

\[\begin{split} \begin{aligned} \Delta^2 f(x) & = \Delta (\Delta f(x)) \\ & = \Delta g(x) \\ & = h g'(z) \\ & = h \biggl( f'(z+h) - f'(z) \biggr) \\ & = h \frac{f'(z+h) - f'(z)}{h} h \\ & = h f''(\xi) h \\ & = h^2 f''(\xi) \end{aligned} \end{split}\]

Example 5.2

Use the Gregory-Newton forward-interpolation formula:

\[\begin{split}\begin{aligned} f_{j+s} =~ f_j + s\Delta f_j & + \frac{s(s-1)}{2!}\Delta^2 f_j + \frac{s(s-1)(s-2)}{3!}\Delta^3 f_j \\ ~ & + \frac{s(s-1)(s-2)(s-3)}{4!}\Delta^4 f_j + \cdots \\ \end{aligned}\end{split}\]

to show that for Milne’s formula:

\[\begin{aligned} \int_{x_{-1}}^{x_3} f(x)\,\dx ~=~ \frac{4h}{3} (2f_0 - f_1 + 2f_2) + T \end{aligned}\]

its error term (local truncation error)

\[\begin{aligned} T ~=~ \frac{14}{45}h^5 f^{(iv)}(z) \quad for \quad x_{-1} \leq z \leq x_3 \end{aligned}\]

can be obtained by integrating the terms involving third and fourth differences.