It is necessary to approximate
$$I(f) = \int\limits_a^bf(x)\,\mathrm{d}x$$ where f is a function that has $2$ continuous derivatives. If $M(f)$ and $T(f)$ are the approximations obtained through the Midpoint Rule and the Trapezoid Rule, respectively, and $f''$ is constant, what is the relationship between $M(f),T(f)$ and $I(f)$?
I did this
$$|E_T|= \frac{k(b-a)^3}{12h^2} \\ |E_M| = \frac{k(b-a)^3}{24h^2} \\ \frac{|E_T|}{|E_M|} = 2 \\ |E_I| = 0$$
The relationship is $|E_I| < |E_M| < |E_T|$.
Is this correct?