Midpoint Rule
Summary
The composite midpoint rule approximates
Prerequisites
- Definite integrals and partitions of
- Boundedness of
for the error formula
Problem Type
Approximate
Method Definition
Partition
Composite rule:[1]
Assumptions / Requirements
-
continuous on (integrable) - For the standard error bound,
Algorithm
- Choose
, set . - Sum
for .
Error / Accuracy
If
Order
Worked Example
Approximate
Midpoints:
Error
sharp on this example.
Common Failure Modes
- Using endpoint samples instead of midpoints
- Applying the
bound when is unbounded near an endpoint
Connections
References
Burden & Faires, Numerical Analysis, midpoint / rectangle rules; NIST DLMF Ch. 3, https://dlmf.nist.gov/3 ↩︎