We assume that $I = [a,b]$ with $a < b$, $\forall x \in I, w(x) = 1$ (general weight $w$ in the formula for $e(f)$), and that $f$ is of class $\mathcal{C}^{m+1}$ on $I$, where $m$ is the order of the quadrature formula $I_n(f) = \sum_{j=0}^n \lambda_j f(x_j)$. For every natural number $m$, consider the function $\varphi_m : \mathbb{R}^2 \rightarrow \mathbb{R}$ defined by $$\forall (x,t) \in \mathbb{R}^2, \quad \varphi_m(x,t) = \begin{cases} (x-t)^m & \text{if } x \geqslant t, \\ 0 & \text{if } x < t. \end{cases}$$ Using the Taylor formula with integral remainder, show that $e(f) = e(R_m)$, where $R_m$ is defined by $$\forall x \in [a,b], \quad R_m(x) = \frac{1}{m!} \int_a^b \varphi_m(x,t) f^{(m+1)}(t)\,\mathrm{d}t.$$
We assume that $I = [a,b]$ with $a < b$, $\forall x \in I, w(x) = 1$ (general weight $w$ in the formula for $e(f)$), and that $f$ is of class $\mathcal{C}^{m+1}$ on $I$, where $m$ is the order of the quadrature formula $I_n(f) = \sum_{j=0}^n \lambda_j f(x_j)$.
For every natural number $m$, consider the function $\varphi_m : \mathbb{R}^2 \rightarrow \mathbb{R}$ defined by
$$\forall (x,t) \in \mathbb{R}^2, \quad \varphi_m(x,t) = \begin{cases} (x-t)^m & \text{if } x \geqslant t, \\ 0 & \text{if } x < t. \end{cases}$$
Using the Taylor formula with integral remainder, show that $e(f) = e(R_m)$, where $R_m$ is defined by
$$\forall x \in [a,b], \quad R_m(x) = \frac{1}{m!} \int_a^b \varphi_m(x,t) f^{(m+1)}(t)\,\mathrm{d}t.$$