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.
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.
Weisstein, Eric W. "Trapezoidal Rule." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/TrapezoidalRule.html