Let $I(f)=\int_a^b f(x)\, dx$. The midpoint rule (open Newton-Cotes for $n=0$) is $I_0(f)=(b-a)f(\frac{a+b}{2})$
Show: For $f\in C^2([a,b])$ holds $|I(f)-I_0(f)|\leq \frac{(b-a)^3}{24}\|f''\|_\infty$
This question is related to: Midpoint rule, error estimation, $|I(f)-I_0(f)|\leq\frac{(b-a)^2}{4}\|f'\|_\infty$
I tried to adapt the given proof by RRL, but I did not succed and appreciate any hints.
As in the answer by RRL let $h=(a-b)$ and $c=\frac{a+b}{2}$
I used the Taylor formula, to write:
$T_2 f(x,c)=f(c)+f'(c)(x-c)+f''(c)(x-c)^2$
With this, I get to:
$\int_a^b f(x)\, dx - hf(c)=\int_a^b f'(c)(x-c)+\frac12 f''(c)(x-c)^2\, dx$
The problem is, that I can not stipulate by $\|f''\|_\infty$ like in the other question.
Is there a way to avoid the first derivative?
Thanks in advance.