The ebook Elementary Calculus is based on material originally written by H.J. Keisler. For more information please read the copyright pages.


Simpson's Rule

We now turn to Simpson's Rule, for which the number of subintervals n must be even. As before, we divide the interval [a, b] into n subintervals of equal length Δx with the n + 1 partition points

a = x0, x1, ...,xn = b.

We shall use subintervals of length 2 Δx rather than Δx. On each of the n/2 subintervals

[x0, x2], [x2, x4], ... , [xn-2, xn],

of length 2 Δx we approximate the curve y = f(x) by a parabolic arc that meets the curve at both endpoints and the midpoint of the subinterval, as shown in Figure 4.6.3. We then add up the areas under each of the parabolic arcs to obtain an approximation to the area under the curve, which is the definite integral. We begin with a lemma that gives a formula for the area of the region under one parabolic arc.

04_integration-461.gif

Figure 4.6.3

LEMMA

The area of the region under the parabola through three points

(u, r), (u + h, s), and (u + 2h, t)

(shown in Figure 4.6.4) is

h/3 (r + 4s + t)

04_integration-463.gif

Figure 4.6.4

 

The lemma is proved at the end of this section. Using the lemma, we find that the area of the region under one parabolic arc from xk to xk + 2 is

Δx/3[f(xk) + 4f(xk+1)+f(xk+2)].

It follows that the sum of the n/2 regions under the parabolic arcs is a modified Riemann sum,

04_integration-464.gif

= Δx/3 {[f(x0) + 4f(x1) +f(x2)] + [f(x2) + 4f(x3) +f (x4)] + ...}

= Δx/3 [f(x0) + 4f(x1) +2f(x2) +4f(x3) +2f(x4)+ ... +4f(xn-1) +f(xn)].

This modified Riemann sum is Simpson's approximation to the definite integral. Note the sequence of coefficients,

1, 4, 2, 4, 2,... ,2, 4, 1.

Like the trapezoidal approximation, it is easily computed on a computer or hand calculator.

THEOREM 2

For a continuous function f on [a, b], Simpson's approximation approaches the definite integral as Δx → 0 + ,

04_integration-465.gif

Simpson's approximation is almost as easy to calculate as the trapezoidal approximation, but is much more accurate. Simpson's Rule is an error estimate that involves the fourth derivative of the function and the fourth power of Δx.

SIMPSON'S RULE

Suppose the function f has a fourth derivative on the interval [a, b] that has absolute value at most M,

|f(4)(x)| ≤ M for a ≤ x ≤ b.

If [a, b] is divided into an even number of subintervals of length Δx, then Simpson's approximation to the definite integral has the error estimate

04_integration-468.gif

Example 3

PROOF OF THE LEMMA

The algebra is simpler if the y-axis is drawn through the second point, so that u + h = 0, and the three points have coordinates

(-h, r), (0, s), (h, t).

Suppose the parabola has the equation y = ax2 + bx + c. Then the area under the parabola is

04_integration-473.gif

When we substitute the coordinates of the three points (- h, r), (0, s), (h, t) into the equation for the parabola, we obtain the three equations

r = ah2 - bh + c,

s = c,

t = ah2 + bh + c.

Add the first and third equations and solve for a:

04_integration-474.gif

Finally, substitute the above expression for a and s for c in the equation for the area:

04_integration-475.gif


Last Update: 2010-11-26