Consider $\int_{1}^{2m} \frac{1}{y} d y$. Show that the integral can be calculated using Trapezoid Rule with maximum error $$\frac{\left(2^{m}-1\right) h^{2}}{12}$$ for a given step length $h$.
Answer The error is given by $E = -f^{\prime \prime}(\xi) \frac{h^{3}}{6},\xi\in(1,2^m)$.
It must be the case that $\xi = 1$, but this is problematic because $\xi\in(1,2^m)$ and not $\xi\in[1,2^m)$. This means that the maximum error is actually not $\frac{\left(2^{m}-1\right) h^{2}}{12}$, but the maximum error is less than $\frac{\left(2^{m}-1\right) h^{2}}{12}$!
Also, I'm not sure what "for a given step length $h$" means?