Trapezoidal sum
Understanding the Trapezoidal Sum
The Trapezoidal Sum is a numerical method used to approximate the definite integral of a function. It improves upon Riemann sums (left, right, and midpoint) by approximating the area under the curve using trapezoids instead of rectangles. This method often yields a more accurate approximation, especially for functions that are not monotonic over the interval.
Formula for the Trapezoidal Sum
To approximate the integral of a function f(x) from a to b using n subintervals of equal width, denoted as Δx, the formula is:
∫ab f(x) dx ≈ Δx/2 [f(x0) + 2f(x1) + 2f(x2) + ... + 2f(xn-1) + f(xn)]
Where:
- Δx = (b - a) / n (the width of each subinterval)
- x0, x1, ..., xn are the endpoints of the subintervals.
Notice that the first and last function values are multiplied by 1, while all intermediate function values are multiplied by 2. This is because the end-segment function values only form one side of a trapezoid, while the intermediate values form sides for two adjacent trapezoids.
Geometric Interpretation
Each trapezoid is formed by connecting the function values at the endpoints of a subinterval with a straight line segment. The area of a single trapezoid is given by:
Area = 1/2 (base1 + base2) × height
In the context of the Trapezoidal Sum:
- The 'height' of the trapezoid is the width of the subinterval, Δx.
- The 'bases' are the function values at the endpoints of the subinterval, f(xi) and f(xi+1).
So, the area of one trapezoid is 1/2 [f(xi) + f(xi+1)] Δx. Summing these areas over all subintervals leads to the general formula.
Accuracy and Error
The error bound for the Trapezoidal Sum is generally smaller than that for left or right Riemann sums because trapezoids typically fit the curve more closely. The error is related to the second derivative of the function. If f(x) is concave up over an interval, the trapezoidal approximation will be an overestimate. If f(x) is concave down, it will be an underestimate. For a linear function, the trapezoidal sum yields the exact value of the integral.
Application on the AP Exam
On the AP Calculus AB exam, you might be asked to:
- Calculate a trapezoidal sum from a given table of values.
- Interpret a trapezoidal sum as an approximation of an integral representing accumulation of change (e.g., total distance traveled from a velocity function).
- Compare the accuracy of a trapezoidal sum to other Riemann sums or determine if it's an overestimate or underestimate based on concavity.
When working with a table, the subintervals may not be of equal width. In such cases, you must calculate the area of each individual trapezoid using its specific Δx and then sum them up, rather than using the general formula with a common Δx. For example, given points (0, f(0)), (2, f(2)), (5, f(5)), you would calculate areas for [0,2] and [2,5] separately.
Practice questions
Use a trapezoidal sum with two subintervals of equal length to approximate the definite integral of f(x) = x^2 from x=0 to x=4.
If a function f(x) is concave down over an interval, will a trapezoidal sum approximation for its definite integral over that interval be an overestimate or an underestimate?
A table of values for a continuous function g(t) is given: t = 0, 3, 5, 8 and g(t) = 10, 8, 12, 15. Approximate the integral of g(t) from t=0 to t=8 using a trapezoidal sum with the subintervals indicated by the table.
What happens to the accuracy of a trapezoidal sum approximation as the number of subintervals (n) increases?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/calculus-ab/unit-6-integration-and-accumulation-of-change/trapezoidal-sum