I'm working on the following exercise
a) Find weights $w_0,\bar{w_0},w_1,\bar{w_1}$ such that $$\int_a^bf(x)dx=w_0f(a)+\bar{w_0}f'(a)+w_1f(b)+\bar{w_1}f'(b)$$ for any $f\in\mathcal{P}_3$.
<p>b) Show that for <span class="math-container">$f\in \mathcal{C}^4$</span>, the error in this quadrature formula, i.e., true integral minus its approximation, is of the form <span class="math-container">$C(b−a)^5f^{(4)}(\xi)$</span> for some <span class="math-container">$\xi\in[a,b]$</span>, and give the constant <span class="math-container">$C$</span>.</p>
For part (a), I used the Hermite interpolation polynomial $p_3$ with interpolation points $x_0=a$ and $x_1=b$, which is the unique polynomial of degree $3$ such that $p_3(x_i)=f(x_i)$ and $p_3'(x_i)=f'(x_i)$, for $i=0,1$. From uniqueness it follows that $f\in\mathcal{P}_3\implies f\equiv p_3$, thus $\int_a^bf(x)dx= \int_a^bp_3(x)dx$. From there I calculated $w_0=w_1=(b-a)/2$ and $\bar{w_0}=(b-a)^2/12=-\bar{w_1}$.
I'm looking for some help for part (b). I tried to follow a proof for a similar result on Simpson's quadrature rule, but my calculations didn't work. I defined the error as $E(f)=\int_a^bf(x)dx-\left(\frac{b-a}{2}f(a)+\frac{(b-a)^2}{12}f'(a)+\frac{b-a}{2}f(b)-\frac{(b-a)^2}{12}f'(b)\right)$, which yields, after the substitution $x(t)=\frac{a+b}{2}+\frac{b-a}{2}t$ for $t\in[-1,1]$: $$E(f)=\frac{b-a}{2}\left(\int_{-1}^1F(\tau)d\tau-\left(F(-1)+F(1)+\frac13(F'(-1)-F'(1))\right)\right).$$ Then I define $$G(t)=\int_{-t}^tF(\tau)d\tau-t\left(F(-t)+F(t)+\frac13(F'(-1)-F'(1))\right),$$ so $E(f)=\frac{b-a}{2}G(1)$. Then I define $H(t)=G(t)-t^5G(1)$. Then by a few applications of Rolle's theorem [EDIT: I think I also applied Rolle's theorem here while it was not even applicaple], there exists an $\xi_3\in(0,1)$ such that $H'''(\xi_3)=0$, but since $G'''(t)=-2(F''(t)+F''(-t))-t(F'''(t)-F'''(-t))$ still involves second derivates of $F$, this does not really help (in the proof I'm trying to imitate we apply the MVT on $F'''(\xi_3)-F'''(-\xi_3)$).
Perhaps I made a mistake, and perhaps another choice for the function $G(t)$ would work, but I did not manage to go further. Any help is much appreciated!