Trapezoidal endpoint correction for a right Riemann sum

ID: trapezoidal-endpoint-correction-for-a-right-riemann-sum

On a uniform partition of with width , the right Riemann sum and the composite trapezoidal rule have equal weights at every interior mesh point. They differ only by adding half a final-endpoint weight and removing half an initial-endpoint weight. This proves the displayed identity. For continuous , both converge to its definite integral; their finite endpoint correction need not be confused with the smaller trapezoidal discretization error for a smooth integrand.

New to topics? Read the docs here!