Example 1.
Use the trapezoidal rule to approximate the integral of f(x) = x3 on the interval [1, 2].
½(f(1) + f(2))(2 − 1) = 4.5
The actual value of the integral is 3.75 .
Example 2.
Use the trapezoidal rule to approximate the integral of f(x) = e-0.1 x on the interval [2, 5].
½(f(2) + f(5))(5 − 2) = 2.137892120
The actual value of the integral is 2.122000934 .
Copyright ©2005 by Douglas Wilhelm Harder. All rights reserved.