In these notes on error bounds for numerical integration, it shows proofs for the error bound formula for the midpoint rule and the trapezoidal rule.
I don't understand the last part (page 5-6) for the trapezoidal rule.
What's the point of using Rolle's theorem?
Why does he suddenly use a $G(x)$ function with that "$q(...)$" ?
More specifically, what's the goal of using $G''(x) = 0\,$?