Riemann sums and trapezoidal rule
Approximating Area Under a Curve
In AP Calculus BC, we often need to find the area under a curve, which is fundamentally represented by a definite integral. When an antiderivative cannot be easily found, or when we are given discrete data points rather than a continuous function, we rely on numerical methods to approximate this area. The most common methods are Riemann sums and the trapezoidal rule.
Riemann Sums: Rectangular Approximations
Riemann sums approximate the area under a curve by dividing the region into a series of rectangles and summing their areas. The choice of which part of the rectangle touches the curve defines different types of Riemann sums:
- Left Riemann Sum (LRAM): The height of each rectangle is determined by the function's value at the left endpoint of each subinterval. If the function is increasing, LRAM will underestimate the area; if decreasing, it will overestimate.
- Right Riemann Sum (RRAM): The height of each rectangle is determined by the function's value at the right endpoint of each subinterval. If the function is increasing, RRAM will overestimate the area; if decreasing, it will underestimate.
- Midpoint Riemann Sum (MRAM): The height of each rectangle is determined by the function's value at the midpoint of each subinterval. MRAM generally provides a more accurate approximation than LRAM or RRAM for a given number of subintervals because errors tend to cancel out.
The formula for a general Riemann sum over an interval [a, b] with n subintervals of equal width Δx = (b-a)/n is:
Area ≈ Σ f(xi*) Δx, where xi* is the chosen point (left, right, or midpoint) within the i-th subinterval.
The Trapezoidal Rule
Instead of using rectangles, the trapezoidal rule approximates the area under a curve by dividing the region into a series of trapezoids. Each trapezoid's parallel sides are the function values at the endpoints of a subinterval, and its height is the width of the subinterval.
The area of a single trapezoid is given by: (1/2) * (base1 + base2) * height. In the context of approximating area under a curve, base1 and base2 are the function values f(xi) and f(xi+1), and the height is the width of the subinterval, Δx.
The formula for the trapezoidal rule over an interval [a, b] with n equal subintervals of width Δx = (b-a)/n is:
Area ≈ (Δx/2) * [f(x0) + 2f(x1) + 2f(x2) + ... + 2f(xn-1) + f(xn)]
The trapezoidal rule typically provides a better approximation than LRAM or RRAM because it averages the left and right endpoint heights. For a concave up function, the trapezoidal rule will overestimate the area, while for a concave down function, it will underestimate.
Accuracy and Error
The accuracy of both Riemann sums and the trapezoidal rule generally improves as the number of subintervals (n) increases, causing Δx to decrease. The limit of Riemann sums as n approaches infinity defines the definite integral:
∫ab f(x) dx = limn→∞ Σ f(xi*) Δx
The choice of approximation method can also affect accuracy and whether the approximation is an overestimate or underestimate. This behavior depends on the function's monotonicity (increasing/decreasing) and concavity (concave up/down).
Practice questions
What type of Riemann sum would provide an underestimate for the area under a decreasing, positive function?
Given f(x) = x^2, approximate the area from x=0 to x=2 using a Left Riemann Sum with 4 equal subintervals.
When would the Trapezoidal Rule produce an overestimate of the area under a curve?
How does increasing the number of subintervals (n) generally affect the accuracy of both Riemann sums and the Trapezoidal Rule?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/calculus-bc/unit-6-integration-and-accumulation-of-change/riemann-sums-and-trapezoidal-rule