A Riemann sum is a method for approximating the area under a graph using rectangles and trapezoids.
A general Riemann sum with
Where
A left bounded Riemann sum is a Riemann sum where the
A general left bounded Riemann sum with
Where
The LRAM will overestimate if the derivative of the function is less than 0 (the function is decreasing), and will underestimate if the derivative of the function is greater than 0 (the function is increasing).
A right bounded Riemann sum is a Riemann sum where the
A general right bounded Riemann sum with
Where
The RRAM will underestimate if the derivative of the function is less than 0 (the function is decreasing), and will overestimate if the derivative of the function is greater than 0 (the function is increasing).
A middle bounded Riemann sum is a Riemann sum where the
A general middle bounded Riemann sum with
Where
The trapezoidal approximation is a Riemann sum that uses trapezoids instead of rectangles to approximate the area under a curve. In trapezoidal Riemann sums, the partitions are typically of equal length. The trapezoidal approximation can be viewed as the average of the LRAM and RRAM.
A general trapezoidal approximation with nn trapezoids over the interval [a,b][a, b] is given by:
where:
The trapezoidal approximation will overestimate if the second derivative of the function is greater than 0 (the function is concave up), and will underestimate if the second derivative of the function is less than 0 (the function is concave down).
The error induced by trapezoidal Riemann sum can be bounded by the following equation
Where