Wize University Calculus 1 Textbook > Integration Techniques
The Midpoint Rule

The Midpoint Rule
We can begin to get more creative with our Reimann Sums to get better approximations for area under curves. Instead of using a left or right hand approximation, we can place our rectangles so the function touches the midpoint of the rectangle.

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

Example: The Midpoint Rule
Use the midpoint approximation for
∫04ex2dx
using 4 sub intervals.
∫abf(x)dx ≈i=1∑nf(xi)Δx=Δx(f(x1)+f(x2)+f(x3)+...+f(xn−1)+f(xn))
Δx=nb−a=44−0=1
∫04ex2dx≈1(f(.5)+f(1.5)+f(2.5)+f(3.5)) =(e.52+e1.52+e2.52+e3.52)
=(e.25+e2.25+e6.25+e12.25)