Section 6.4: Other Integration Methods

Trapezoidal Rule

Let f be a function defined on an interval [a, b]. Partition [a, b] into n subintervals of equal length Δx = (b - a)/n with endpoints:

a = x0 < x1 < x2 < ··· < xn = b

Then:

Tn = [f(x0) + 2f(x1) + 2f(x2) + ··· + 2f(xn - 1) + f(xn)]Δx/2

is an approximation of ab f(x) dx.

Simpson's Rule

Let f be a function defined on an interval [a, b]. Partition [a, b] into 2n subintervals of equal length Δx = (b - a)/2n with endpoints:

a = x0 < x1 < x2 < ··· < x2n = b

Then:

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

is an approximation of ab f(x) dx.

f(x) = x4 - 9x3 + 26x2 - 24x + 10

n = 5