Monday 2 May 2011

Approximate Integration

Sometimes it is necessary to obtain a numerical estimate of the definite integral of a function f(x) between x=a and x=b (where b>a). This integral is represented by the area bounded by the curve y=f(x), the x-axis and the ordinates at x=a and x=b. One reasonably accurate method of estimating this area, and hence this integral, is to use Simpson's Rule. Here the area is approximated by

(h/3)(y0 + 4y1 + y2) + (h/3)(y2 + 4y3 + y4) + ... + (h/3)(y2n-2 + 4y2n-1 + y2n)

The area is divided into 2n strips of width h=(b-a)/2n and the ordinates are given by y0=f(a), y1=f(a+h), y2=f(a+2h) etc. The method uses a quadratic of the form AX2+BX+C to approximate the function between three adjacent points on the curve (i.e. between two adjacent strips).

No comments:

Post a Comment