Mathematics 1502             Honors Calculus II             Fall, 2000


Here is a really, really simple derivation of Simpson's rule for numerical integration.

The problem is to integrate f(x), which has been "sampled" at the values xk and also at the midpoints (xk + xk+1)/2.

Simpson's idea was to fit a curve by the parabola which passes through each set of three consecutive data, i.e.,

x1y1 := f(x1)
(x1+x2)/2y1.5 := f ((x1+x2)/2)
x2y2 := f(x2)
,

x2y2 := f(x2)
(x2+x3)/2y2.5 := f ((x2+x3)/2)
x3y3 := f(x3)
,

etc. The point being that it is easy to integrate a quadratic, and it gives a better fit than the straight-line trapezoid rule. As we have seen in class, Simpson's rule is equivalent to taking (1/3) of the trapezoid rule and adding (2/3) of the midpoint rule.


If you try to derive Simpson's rule directly, there is a considerable amount of algebra. Instead, let us consider the simplest situation, but rewrite everything so that we express the integral directly in terms of three sets of (x,y) data.

The simplest situation would be where the values of x are -1, 0, and +1, and the quadratic is

Let's call the y-values y-1, y0, and y1. The value y0 corresponds to the value of the function at the midpoint of (-1,1), which is x=0.

Now, the integral of y from -1 to +1 is easily calculated:

Let's write a and c directly in terms of the values of y - notice that we don't even need b. We find Since we don't need b, we eliminate it by As for a and c, we now find: Hence the integral is: This has to be the general rule for the integral of a quadratic, since we have written it in a way that does not use specific values of a,b,c, or the fact that x runs from -1 to 1.

If you have Excel or a compatible spreadsheet, you can test out the different methods with the spreadsheet shown in class.
(Here are some alternative formats, in case you have trouble with the one above: 1, 2, 3, 4,



Link to:
    THIS PAGE IS NOT A PUBLICATION OF THE GEORGIA
    INSTITUTE OF TECHNOLOGY AND THE GEORGIA INSTITUTE
    OF TECHNOLOGY HAS NOT EDITED OR EXAMINED
    THE CONTENT. THE AUTHOR(S) OF THE PAGE ARE SOLELY
    RESPONSIBLE FOR THE CONTENT.
Write to the Prof