Simpson's Rule is Exact for Quintics (Preliminary Report)

Louis A. Talman

Department of Mathematical & Computer Sciences
Metropolitan State College of Denver

Presented at the annual meeting of the Rocky Mountain Section of the Mathematical Association of America, in Colorado Springs, CO; April 16, 2004.

Background

It is well known that if M is a bound for f''[x] on the interval [a, b], then the error E_T in replacing ∫_a^bf[t] t by its Trapezoidal Rule approximation satisfies the inequality

| E_T | ≤M (b - a)^3/(12 n^2),
(1)

where n is the number of subdivisions used in applying the Trapezoidal Rule. It is also well known that the error E_S in replacing ∫_a^bf[t] t by its Simpson's Rule approximation with 2n subdivisions satisfies the inequality

| E_S | ≤ M (b - a)^5/(180 (2n)^4), (2)

the number M now being a bound for f^(4)[x] on [a, b].  (Here and elsewhere in this talk, the error in a numerical approximation means the true value of the integral minus the value given by the approximation.)  The result appears in most elementary calculus books, but the proof does not.  Instead, the reader is referred to a text on numerical analysis, where the proof is usually accomplished by means of Lagrange interpolation in the context of general Newton-Cotes quadratures--and so is inaccessible to freshmen.

Results

In "An Elementary Proof of Error Estimates for the Trapezoidal Rule," D. Cruz-Uribe and C. J. Neugebauer [Mathematics Magazine, 76(2003), pp 303-306] gave an elementary argument establishing inequality (1).  They also discussed error estimates for functions that do not have bounded second derivatives.  However, they were unable to extend their methods to Simpson's Rule.  Here we show how use elementary techniques to prove the following:

Theorem 1:

If f is a C^1 function on [a, b] for which f^(2)[u] exists throughout (a, b), then there is a number ξ∈ (a, b) such that the error E_n^T that arises in replacing ∫_a^bf[u] u with its n-subdivision Trapezoidal Rule approximation is given by

  E_n^T = -f^(2)[ξ] (b - a)^3/(12 n^2). (3)

Theorem 2:

If f is a C^3 function on [a, b] for which f^(4)[u] exists throughout (a, b), then there is a number ξ∈ (a, b) such that the error E_ (2n)^S that arises in replacing ∫_a^bf[u] u with its 2n-subdivision Simpson's Rule approximation is given by

  E_ (2n)^S = -f^(4)[ξ] (b - a)^5/(180 (2n)^4). (4)

Remark:

Our techniques can be used to establish error estimates for the other numerical integration schemes of elementary calculus (the Right-Hand Rule, the Left-Hand Rule, and the Mid-Point Rule); they can also be used to establish error estimates for Simpson's Rule when the fourth derivative of the integrand isn't bounded--and even when the integrand doesn't have higher order derivatives.

Preliminary Facts

It is known, though one hesitates to say "well" known, that derivatives have the Intermediate Value Property:

Proposition

Suppose that f is a function differentiable on (a, b), and that f '[x_1] = α<λ<β = f '[x_2] for certain x_1, x_2∈ (a, b).  There is a number ξ between x_1 and x_2 such that f '[ξ] = λ.

Proof:  

Proof:  Assume, WLOG, that x_1<x_2.  Consider the function g defined on [x_1, x_2] by g[x] = f[x] - λ x.  Then g '[x] = f '[x] - λ.  Thus g '[x_1] <0<g '[x_2] .  Thus, neither x_1 nor x_2 can yield a minimum value for g on [x_1, x_2].  However, g must have a minimum in that interval, which must therefore occur at some interior point ξ ∈ (x_1, x_2).  But then g '[ξ] = 0, whence f '[ξ] = λ.■

This fact has an important corollary that is not as well known as it should be:

Corollary

Suppose that f is a function differentiable on (a, b).  Let n be a positive integer, x_k∈ (a, b), for each k = 1, 2, …, n.  If for each k = 1, 2, …, n, α_k is a positive real number, then there is ξ ∈ (a, b) such that

Underoverscript[∑, k = 1, arg3] α_kf '[x_k] = f '[ξ] Underoverscript[∑, k = 1, arg3] α_k. (5)


The standard Mean Value Theorem takes on a special form for quadratic functions:

Theorem (MVT for Quadratics)

Let q be a quadratic function.  Then q[b] - q[a] = q '[1/2 (a + b)] (b - a) .

Proof:

Let q[x] = α x^2 + β x + γ.  Then

q '[1/2 (a + b)] (b - a) = (2 α · 1/2 (a + b) + β) (b - a) (6)
                                      = α (b^2 - a^2)    + β (b - a) (7)
                                      = (α b^2 + β b + γ) - (α a^2 + β a + γ) (8)
                                      = q[b] - q[a] . ■ (9)


We will also make use of the well-known Taylor Expansion with Integral Remainder:

Theorem

Let f be a C^(n + 1) function on an interval centered at x = 0, and let h be in that interval.  Then

f[h] = Underoverscript[∑, k = 1, arg3] 1/k ! f^(k)[0] h^k + 1/n ! ∫_0^hf^(n + 1)[t] (h - t)^nt . (10)

Proof:

By the Fundamental Theorem of Calculus, f[h] = f[0] + ∫_0^hf '[t] t.  Expand the integral using integration by parts, taking u = f '[t]; u = f''[t] t; v = t; v = -(h - t).  Repeat inductively as many times as necessary.■

Error In Simpson's Rule

We restate Theorem 2:

Theorem 2:

If f is a C^3 function on an interval [a, b], if f^(4) is defined throughout (a, b), and if n is a positive integer, then there is a ξ∈ (a, b) such that

∫_a^bf[t] t - (b - a)/(6n) Underoverscript[∑, k = 1, arg3] (f[x_ (2k - 2)] + 4 f[x_ (2k - 1)] + f[x_ (2k)]) = -f^(4)[ξ] (b - a)^5/(180 (2n)^4), (11)

where x_m = a + m/(2n) (b - a).     

Proof:

We first consider the error in a single one of the n summands, and we simplify matters by assuming that the interval corresponding to that summand is centered at the origin.  We define an error function Er by

Er[h] = ∫_ (-h)^hf[t] t - h/3 (f[-h] + 4 f[0] + f[h]). (12)

Let us consider also the first three derivatives of Er.                     

In[1]:=

Er[h_] = ∫_ (-h)^hf[t] t - h/3 (f[-h] + 4f[0] + f[h])

Out[1]=

-1/3 h (4 f[0] + f[-h] + f[h]) + ∫_ (-h)^hf[t] t

In[2]:=

Er '[h]//Together

Out[2]=

1/3 (-4 f[0] + 2 f[-h] + 2 f[h] + h f^′[-h] - h f^′[h])

In[3]:=

Er''[h]//Together

Out[3]=

1/3 (-f^′[-h] + f^′[h] - h f^′′[-h] - h f^′′[h])

In[4]:=

Er'''[h]//Together

Out[4]=

1/3 h (f^(3)[-h] - f^(3)[h])

Note that Er[0] = Er '[0] = Er''[0] = 0:

In[5]:=

Er[0]

Out[5]=

0

In[6]:=

Er '[0]

Out[6]=

0

In[7]:=

Er''[0]

Out[7]=

0

Consequently, applying Taylor with Integral Remainder, we may write:

Er[h] = 1/6 ∫_0^h (f^(3)[-t] - f^(3)[t])   t (h - t)^2 t. (13)

Let us now define a function F on [0, h] by

F[t]    =    { (3)        (3)                                   f   [-t] - ...                                       (4)                                   -2 f   [0] ; if t = 0. (14)

Note that (f^(3)[-t] - f^(3)[t])/t = -(f^(3)[-t] - f^(3)[0])/-t - (f^(3)[t] - f^(3)[0])/t⟶ -2 f^(4)[0] as t  0.  Because f is a C^3 function, F is continuous on [0, h], and we may write:

1/6∫_0^h (f^(3)[-t] - f^(3)[t]) t (h - t)^2t   =   1/6∫_0^h F[t]   t^2(h - t)^2t .
     
(15)

By the First Mean Value Theorem for Integrals, we now can find η∈ (0, h) such that

Er[h]    =   1/6F[η] ∫_0^h t^2(h - t)^2t, (16)

or,

Er[h] = (f^(3)[-η] - f^(3)[η])/(180 η) h^5 (17)

because  

In[8]:=

1/6∫_0^ht^2 (h - t)^2t

Out[8]=

h^5/180

Applying the Mean Value Theorem to this latter expression for Er[h], we find ξ_h∈ (-h, h) such that

Er[h]     =    (f^(4)[ξ_h] · (-2 η))/(180 η) h^5   =    - f^(4)[ξ_h]   h^5/90. (18)

This expression gives the error in a single summand, corresponding to an interval of width 2h, in Simpson's Rule.      

Returning now to the interval [a, b], we find ξ_k∈ (x_ (2k - 2), x_ (2k)), k = 1, …, n, so that the error contributed by the k-th term in the sum is E_k = -f^(4)[ξ_k] (b - a)^5/(90 · (2n)^5).  Then we find ξ∈ (a, b) so that Underoverscript[∑, k = 1, arg3] f^(4)[ξ_k] = n f^(4)[ξ].  We now have

E_ (2n)^S = -Underoverscript[∑, k = 1, arg3] f^(4)[ξ_k] (b - a)^5/(90 · (2n)^5) = - ... #8721;_ (k = 1)^nf^(4)[ξ_k]    =    -f^(4)[ξ] (b - a)^5/(180 (2n)^4).■ (19)

Corollary:

We can obtain the exact value of ∫_a^bf[t] t from Simpson's Rule when f is a polynomial of degree not exceeding 5.

Proof:

This is well known when f is a polynomial of degree not exceeding 3, so we need only prove it for polynomials of degree 4 and of degree 5.

Let f be a polynomial of degree 4.  Denoting the Simpson's Rule approximation to ∫_a^bf[t] t by S_ (2n), where 2n is the number of subdivisions, we now need only note that for a certain ξ∈ (a, b) we have to have

∫_a^bf[t] t = S_ (2n) - f^(4)[ξ] (b - a)^5/(180 (2n)^4).  
(20)

Because f is a polynomial of degree 4, f^(4) is constant, and so the right side of the equation gives the exact value of the integral on the left when we replace f^(4)[ξ] with 24 times the leading coefficient of the polynomial f.

Now let f be a polynomial of degree 5.  Recall equation (17):

Er[h] = (f^(3)[-η] - f^(3)[η])/(180 η) h^5 (21)

Now f^(3) is quadratic, so Er[h] = -1/90f^(4)[0]   h^5.  Translating this from the symmetric interval [-h, h] to [a, b], we find that for an arbitrary polynomial of degree 5, f[t] = Underoverscript[∑, k = 0, arg3] a_kt^k, we therefore have

∫_a^b f[t] t = 1/6 (f[a] + 4 f[1/2 (a + b)] + f[b]) (b - a) - 1/240 (5a_5 (a + b) + 2 a_4) (b - a)^5 . ■ (22)

Created by Mathematica  (April 10, 2004)