Riemann Sums and Area Approximation
Riemann Sums and Area Approximation
Finding the exact area under a curve can be tricky. Riemann sums provide a practical way to approximate this area by breaking the region down into simpler geometric shapes, like rectangles or trapezoids.
What is a Riemann Sum?
A Riemann sum approximates the area under a curve y=f(x) on an interval [a,b] by dividing the interval into n smaller subintervals and building a shape (usually a rectangle) on each one.
If we divide the interval into n subintervals of equal width, the width of each subinterval is: Δx=nb−a
Types of Rectangular Approximations
Depending on where you evaluate the function to determine the height of each rectangle, you get different types of sums:
- Left Riemann Sum: Uses the left endpoint of each subinterval for the height.
- Right Riemann Sum: Uses the right endpoint of each subinterval for the height.
- Midpoint Riemann Sum: Uses the exact middle x-value of each subinterval for the height.
Example: Right Riemann Sum
Problem: Approximate ∫02x2dx using 4 rectangles with right endpoints.
- Find Δx: Δx=42−0=0.5
- Identify the subintervals: [0,0.5],[0.5,1],[1,1.5],[1.5,2]
- Find the heights: Evaluate f(x)=x2 at the right endpoints (0.5,1,1.5,2).
- Calculate the total area: Area≈Δx[f(0.5)+f(1)+f(1.5)+f(2)] Area≈0.5[0.52+12+1.52+22] Area≈0.5[0.25+1+2.25+4]=0.5[7.5]=3.75
The Trapezoidal Rule
Instead of flat-topped rectangles, you can use trapezoids to better follow the natural slant of the curve.
The general formula for the Trapezoidal Rule with n subintervals is: Tn=2Δx[f(x0)+2f(x1)+2f(x2)+⋯+2f(xn−1)+f(xn)] Notice that the first and last endpoints are evaluated once, while all the inner endpoints are multiplied by 2.
Example: Trapezoidal Rule
Problem: Estimate ∫13x1dx using n=4.
- Find Δx: Δx=43−1=0.5
- Identify the endpoints: x0=1,x1=1.5,x2=2,x3=2.5,x4=3
- Apply the formula: T4=20.5[f(1)+2f(1.5)+2f(2)+2f(2.5)+f(3)] T4=0.25[1+2(32)+2(21)+2(52)+31] T4=0.25[1+34+1+54+31] T4=0.25[2+35+54]=0.25[1530+25+12]=0.25[1567]=6067≈1.1167
Connection to Definite Integrals
Approximations are just the beginning. As you increase the number of rectangles (n→∞), the width of each rectangle (Δx) shrinks to zero. The approximation gets closer and closer to the exact area.
This limit is the very definition of the definite integral: limn→∞∑i=1nf(xi∗)Δx=∫abf(x)dx