Based on the strategy of replacing a complicated
function or tabulated data with an approximating function that is easy to integrate.
Numerical quadrature
The basic method involved in approximating:
∫abf(x)dx
Degree of Accuracy
Aka. precision. The largest positive integer n such that the quadrature formula is exact for xk for all k∈Z∩[0,n].
Trapezoidal Rule
Equivalent to approximating the trapezoidal area under the straight line connecting f(a) and f(b). Degree of accuracy is 1.
∫x0x1f(x)dx=2h(f(x0)+f(x1))−12h3f(2)(ξ)
Here h=x1−x0.
Simpson’s Rules
A more accurate method of approximating the integral of a function, is to use higher-order polynomials to connect the points.
Degree of accuracy is 3.
Simpson’s 1/3 Rule
Resulted when a second-order interpolating polynomial with 3 equally-spaced points is used to approximate the integral.
∫x0x2f(x)dx=3h(f(x0)+4f(x1)+f(x2))−90h5f(4)(ξ)
Here ξ is between x0 and x2 and h=(x2−x0)/2. Preferred method because, third-order accuracy is attained with 3 points.
Simpson’s 3/8 Rule
Resulted when a third-order interpolating polynomial with 4 equally-spaced points is used to approximate the integral.
∫x0x3f(x)dx=83h(f(x0)+3f(x1)+3f(x2)+f(x3))−803h5f(4)(ξ)
Here ξ is between x0 and x3 and h=(x3−x0)/3.
Composite Rules
Composite Trapezoidal Rule
An improved version of the trapezoidal rule. Uses multiple intervals (say n) to approximate the integral.
∫x0xnf(x)dx=2h(f(x0)+f(xn)+2i=1∑n−1f(xi))−12b−ah2f(2)(ξi)
Here h=(b−a)/n and ξi is between xi−1 and xi for i=1,2,3,…,n.
Composite Simpson’s Rule
An improved version of Simpson’s 1/3 rule. Uses even number (n=2k) of multiple intervals to approximate the integral.
∫abf(x)dx=3h[f(x0)+f(xn)+2j=1∑k−1f(x2j)+4j=1∑kf(x2j−1)]−180b−ah4f(4)(μ)
Here h=(b−a)/n and μ is between x0 and xn.