Wize University Calculus 1 Textbook > Integration Techniques
The Trapezoid Rule

The Trapezoidal Rule
We can begin to get more creative with our Reimann Sums to get better approximations for area under curves. Instead of using a rectangle approximation, we can place trapezoids on the graph to approximate area.

Trapezoid Rule
∫abf(x)dx ≈i=1∑n2f(xi−1)+f(xi)=2Δx(f(x0)+2f(x1)+2f(x2)+...+2f(xn−1)+f(xn))
where Δx=nb−a, xi=a+iΔx , and n is the number of subintervals.

Example: The Trapezoid Rule
Use a trapezoid approximation for
∫04ex2dx
using 4 sub intervals.
∫abf(x)dx ≈i=1∑n2f(xi−1)+f(xi)=2Δx(f(x0)+2f(x1)+2f(x2)+...+2f(xn−1)+f(xn))
Δx=nb−a=44−0=1
∫04ex2dx≈21(f(0)+2f(1)+2f(2)+2f(3)+f(4)) =21(e02+2e12+2e22+2e32+e42)
=21(1+2e+2e4+2e9+e16)