The idea
Key formulas
Composite midpoint rule
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Calculus
Approximate a definite integral with rectangles whose heights are sampled at subinterval midpoints.
For each short interval, use the function value at its centre as the height of a rectangle. The midpoint balances the two sides of the interval, which often reduces the leading error compared with sampling at an endpoint.