The Midpoint Rule
Approximate area with midpoint rectangles
Build the estimate. Divide [a, b] into n equal subintervals of width Δx = (b − a)/n. The i-th midpoint is a + (i − 1/2)Δx. The midpoint rule is Mn = Δx Σ f(midpoint). Each rectangle has the same width but a height sampled at its center.
What to compute. List the midpoints before evaluating the function; endpoint values are not midpoint values. Add the sampled heights and multiply the sum once by Δx. Units provide a check: function units times x-units give integral units.
Error direction and refinement. Curvature can predict whether midpoint rectangles tend to over- or underestimate in common smooth cases, but the reliable general statement is convergence: For a continuous function, midpoint sums converge to the definite integral as the maximum subinterval width tends to zero, although an individual refinement need not reduce the absolute error monotonically.
Do not import trapezoid or Simpson formulas into a midpoint calculation.
Use the midpoint rule with n = 4 to approximate ∫04 x dx. What value is obtained?
For a continuous function on a fixed interval, what is guaranteed as the number of equal midpoint subintervals increases without bound?