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 โซ02โx2dx 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 โซ13โx1โdx 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=1nโf(xiโโ)ฮx=โซabโf(x)dx