It suffices to assume . The polynomial interpolation error for the endpoint linear interpolant gives, for every interior , some with
Let , which exists by continuity of the second derivative and the extreme value theorem. Since ,
Integrating this pointwise inequality and using the triangle inequality for an integral yields
Thus
This derivation does not require choosing as a continuous function of ; the pointwise upper bound is sufficient.
The constant is sharp. Take the quadratic polynomial and write . Its exact integral is , its trapezoidal rule value is , and . Consequently
Equality holds, so no smaller universal constant than works under these assumptions. This is the sharp one-panel trapezoidal error bound.