1

Algebraic Polynomial Integration

Willi Freeden and Martin Gutting

CRC Press

1.1 Interpolatory Integration Rules Sample text

The integration formulas are obtained by replacing the integral

IF=abF(x)dx,FC(0)[a,b],(1.1)

by an expression

abPnF(x)dx,(1.2)

where PnF is the uniquely determined interpolating polynomial of degree n at the nodal system {xk}k=0,,n[a,b]. Well-known from classical textbooks (see, e.g., P.J. Davis, P. Rabinowitz [1967], V.I. Krylov [1962], J. Stoer [1989], J. Werner [1991]) is the following theorem.

Theorem 1.1.

Let xk[a,b],k=0,,n, with

ax0<x1<<xn1<xnb

be given knots. Suppose that F(xk),k=0,,n, are known from a function of class C(0)[a,b]. Then there exists a uniquely determined interpolatory quadrature formula

LnF=k=0nwkF(xk),

i.e.,

abP(x)dx=j=0nwjP(xj)

for all PPol0,,n, i.e., for all polynomials of degree n. The coefficients (weights) wj of the quadrature formula are given in the form

wj=abLj(x)dx,

where Lj are the Lagrange polynomials. Lj given by

Lj(x)=k=0kjnxxkxjxk

satisfy Lj(xk)=δj,k.

Theorem 1.1 leads to the following consequence:

LnF=j=0n(abLj(x)dx)=wjF(xj)=ab(j=0nLj(x)F(xj))=PnF(x)dx.(1.8)

In other words, LnF is obtained by integrating the interpolating polynomial PnF over [a,b].

Newton-Cotes Formulas. The Newton-Cotes formulas (cf. R. Cotes (1722)) are interpolatory quadratures to equidistant knots

xj(n)=a+jτ,τ=ban,j=0,,n.(1.9)

The associated weights are calculated by

wj(n)=abk=0kjnxxk(n)xj(n)xk(n)dx=abk=0kjnx(a+kτ)τ(jk)dx=τ0nk=0kjntkjkdt=ταj(n)(1.10)

with

αj(n)=(1)njj!(nj)!0nk=0kjn(tk)dt.(1.11)

See Examples 1.2 and 1.3 for the derivation of the cases n=1 and n=2. Further cases are summarized in Table 1.1.

Table 1.1: Newton-Cotes formulas for n = 1,…,4 n=1,,4.
n αj(n) Name
1 12 12 (Simple) Trapezoidal rule
2 16 46 16 Simpson's rule
3 18 38 38 18 Newton's 3/8-rule
4 790 3290 1290 3290 790 Milne's rule
Example 1.2.

For n=1 we obtain the (Simple) Trapezoidal rule, i.e.,

α0(1)=01(t1)dt=12,

α1(1)=01tdt=12.

The integrand is approximated by the linear function passing through the points (a,F(a)) and ( b,F(b) ). By integrating the linear function we obtain

L1F=ba2(F(a)+F(b)).

Example 1.3.

For n=2, Simpson's rule yields

α0(2)=1202(t1)(t2)dt=13,

α1(2)=02t(t2)dt=43,

α2(2)=1202t(t1)dt=13.

It is derived by approximating the integrand F by the quadratic polynomial passing through (a,F(a)),(a+b2,F(a+b2)), and (b,F(b)). J. Kepler (1615) used this method over 100 years prior. Hence, in German nomenclature, the method is sometimes called “Keplersche Fassregel”.

L2F=ba6(F(a)+4F(a+b2)+F(b)).

Remark 1.4.

For n large, the weights are large. Moreover, they are of mixed sign for n=8 and n>10 (which is usually not useful). Therefore, NewtonCotes formulas of higher orders are not often in use. They must be seen with caution.

Example 1.5.

In Table 1.2 the value of the integral

20111+x2dx=π

is calculated by a sequence of Newton-Cotes rules (following P.J. Davis, P. Rabinowitz (1967)) for n-point coefficients from n=2 up to n=21. The exact value is listed in the last line.

Table 1.2: Newton-Cotes rule applied to the integral (1.19).
n=2 3.0000000 n=12 3.1415925
n=3 3.1333333 n=13 3.1415926
n=4 3.1384615 n=14 3.1415920
n=5 3.1421176 n=15 3.1415932
n=6 3.1418781 n=16 3.1415925
n=7 3.1415708 n=17 3.1415962
n=8 3.1415789 n=18 3.1415935
n=9 3.1415925 n=19 3.1415896
n=10 3.1415926 n=20 3.1415920
n=11 3.1415925 n=21 3.1415775
Exact value 3.1415926

1.2 Peano's Theorem

In discussing the truncation error of approximate integration, it is useful to regard the error (cf. P.J. Davis, P. Rabinowitz (1967)) as a linear functional defined over a certain class of functions. In the considerations that follow, we consider integrands F of class C(m+1)[a,b] and linear functionals of integral type (1.1). Note that a generalization to linear functionals of the type

IF=abj=0maj(x)F(j)(x)dx+j=0mi=1njbijF(j)(xij)(1.20)

is obvious. Here, it is assumed that the functions aj are piecewise continuous over [a,b],bijR, and the points xij lie in the interval [a,b].

Remark 1.6.

Evidently included as particular cases of (1.20) are the integral over [a,b] or any subinterval, the r-th derivative of F,rm, evaluated at a point out of [a,b], and any linear combination of ordinates of F with abscissas in [a,b].

We consider an approximation of I of the form (1.20) by a (quadrature) functional L of the form

LF=k=0nwkF(xk),FC(m+1)[a,b].

We shall say that L is exact for the degree m if LF=IF for all polynomials of degree m, i.e., FPol0,,m. The error, or remainder, when L is used to approximate I is a linear functional E defined by

E=IL.

We shall say that E annihilates F if

EF=0.

Theorem 1.7. Peano's Theorem

Let EP=0 whenever PPol0,,m. Then, for all FC(m+1)[a,b],

EF=abF(m+1)(t)K(t)dt,

where

K(t)=1m!Ex(xt)+m

and

(xt)+m={(xt)m,xt,0,x<t,

The result is due to G. Peano [1913, 1914]. The function K is called the Peano kernel for the linear functional E.

Remark 1.8.

Note that the notation Ex means the linear functional E is applied to the x-variable in the expression (xt)+m.

Proof. From the one-dimensional Taylor formula with explicit representation of the remainder term we obtain

F(x)=k=0mF(k)(a)k!(xa)k+1m!axF(m+1)(t)(xt)mdt.(1.27)

By virtue of the setting (1.26), the integral remainder may be rewritten as

1m!axF(m+1)(t)(xt)mdt=1m!abF(m+1)(t)(xt)+mdt.(1.28)

We apply E to both sides of (1.27) and use the fact that E annihilates all members of the class Pol0,,m. This yields

EF(x)=1m!ExabF(m+1)(t)(xt)+mdt.(1.29)

Now, the type of functional we are working with allows the interchange of E and the integral. Thus it follows that

EF(x)=abF(m+1)(t)1m!Ex(xt)+mdt(1.30)

This is the required result.

1.3 Error Truncation

From Peano's Theorem (Theorem 1.7) we immediately obtain

Corollary 1.9.

For FC(m+1)[a,b],

|EF|maxx[a,b]|F(m+1)(x)|ab|K(t)|dt.

If the Peano kernel does not change its sign over the interval [a,b], then E may be expressed essentially as F(m+1) evaluated at an intermediate point. More explicitly, we have the following result.

Corollary 1.10.

If, in addition, K does not change its sign on [a,b], then

EF=F(m+1)(ξ)(m+1)!E(xm+1),a<ξ<b.

Proof. Under the additional hypotheses we may apply the mean-value theorem for integrals. This leads to

EF=F(m+1)(ξ)abK(t)dt.(1.33)

Now, we insert xF(x)=xm+1,x[a,b], into (1.33) and obtain

E(xm+1)=(m+1)!abK(t)dt.(1.34)

This yields the assertion (1.32).

For an arbitrary rule of approximate integration (0.1) there is no reason for the Peano kernel to have one sign. However, for integration rules of NewtonCotes type, it can be shown that the kernel does have one sign.

Example 1.11. Remainder in the (Simple) Trapezoidal Rule

If we set

EF=abF(x)dxba2(F(a)+F(b)),

then EF is the truncation error in the (simple) trapezoidal rule. We may select m=1 in Peano's Theorem and obtain

K(t)=ab(xt)+dxba2((at)++(bt)+)=tb(xt)dxba2(bt)=12(at)(bt).

Therefore,

abF(x)dxba2(F(a)+F(b))=12abF(t)(at)(bt)dt.

The kernel K, as determined by (1.36), is non-positive throughout [a,b]; hence we may apply Corollary 1.10. Now it is easy to see that

E(x2)=abx2dxba2(a2+b2)=16(ba)3.

Consequently,

abF(x)dx=ba2(F(a)+F(b))112(ba)3F(ξ),a<ξ<b.

Example 1.12. Remainder in Simpson's rule

We consider an integral on the interval [1,1]. Let

EF=11F(x)dx13F(1)43F(0)13F(1).

Now, EP=0 whenever PPol0,,3. Hence, we may take m=3 in Peano's Theorem. We find that K(t)=16Ex(xt)+3. Explicitly written out we have

K(t)={172(1t)3(3t+1),0t1,172(1+t)3(3t+1),1t0.

Obviously, K(t)0 in the interval [1,1] so that Corollary 1.10 is applicable. Since E(x4)=415, this leads to the error in Simpson's rule:

11F(x)dx=13F(1)+43F(0)+13F(1)F(4)(ξ)90,1<ξ<1.