next up previous contents index
Next: Eigenvalues and Eigenvectors Up: Numerical Methods Previous: Newton-Raphson

Numerical Integration

The basic problem is to obtain an approximation to the value of a definite integral of the form

I = $\displaystyle \int_{a}^{b}$f (x) dx    

where a and b are finite.

Most methods use the approach of dividing the interval [a, b] into a large number N of subdivisions. We will denote the ith subdivision point by xi (x0 = a and xN = b). We write yi = f (xi). If all subdivisions are of equal width h then xi = a + ih, and h = (b - a)/N.

Trapezium Rule:  This method uses an arbitrary number of equal subdivisions.

I $\displaystyle \approx$ IN = $\displaystyle {\frac{h}{2}}$(y0 + 2y1 + 2y2 + ... + 2yN - 1 + yN)    

The error I - IN is roughly proportional to h2 so that doubling the number of strips should roughly quarter the error.

Simpson's Rule:  This method uses any even number 2N of equal subdivisions. Note that in this formula h = (b - a)/2N.

I $\displaystyle \approx$ I2N = $\displaystyle {\frac{h}{3}}$(y0 + 4y1 + 2y2 + 4y3 + 2y4 + ... + 4y2N - 1 + y2N)    

The error I - I2N is roughly proportional to h4.

Simpson's Rule is far more accurate that the Trapezium Rule, in general, for essentially the same amount of calculation.


next up previous contents index
Next: Eigenvalues and Eigenvectors Up: Numerical Methods Previous: Newton-Raphson
Ian Craw
1999-02-24