The trapezoidal rule, also called the trapezoid rule or trapezium rule, is the 2-point Newton-Cotes formula
where ,
is the separation between the points, and
is a point satisfying
. If
throughout the interval,
then the magnitude of the error is at most
.
Applying the rule on equal subintervals gives the composite trapezoidal rule. Over a full period of an analytically extendible periodic function, this composite rule can converge exponentially, despite its ordinary second-order error bound for nonperiodic functions (Trefethen and Weideman 2014).