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 .
Picking
to maximize
gives an upper bound for the error in the trapezoidal approximation to the integral.