Composite midpoint quadrature rule 2026-10-14
Apply the midpoint quadrature rule on each of equal panels of a partition of an interval, with :Each quadrature node is a panel midpoint and each quadrature weight is . For , put . Summing the panel quadrature errors givesfor some . Each panel contributes at most ; there are panels, explaining the composite midpoint rule error of order in big O notation. On a nonuniform partition of an interval with panel widths and largest width , the corresponding bound is .
For on , summing the sampled polynomial exactly yieldsDoubling divides the absolute error by exactly four. For a general function, halving divides the displayed error bound by four, but the actual absolute error need not follow that ratio: cancellation can make it smaller or zero. Continuous functions still give convergence as the largest panel width tends to zero, by uniform continuity; without the bounded second derivative, the second-order rate is not guaranteed. Noise sensitivity of a quadrature rule explains a separate limitation when samples are inexact.
Past exam of the mathematics course of the University of Cambridge 2024 ib Paper 4 6D Solution Created 2026-09-23 Updated 2026-09-25
On each interval of width , Taylor expansion about its midpoint shows that the local midpoint-rule error is . Summing over intervals gives the composite midpoint rule error
To remove the endpoint singularity, set . Thenwhose transformed integrand is analytic. Applying the composite midpoint rule in with givesThis has the required form whenThe quadratic substitution for a square-root endpoint singularity therefore restores second-order convergence.