Estimate the error of the rightpoint rule.
Solution.
The rightpoint rule is exact for \(x^0\text{.}\) But for \(\int_0^h x^1\,dx\) it predicts \(\int_0^h x^1\,dx = h^2\text{,}\) while the true value is \(h^2/2\text{.}\) So we stop at \(d=1\) with the error of \(h^2/2\text{,}\) which cam be written as \(\dfrac{1}{2} \ 1! \ h^2\text{.}\) Therefore, the constant factor in the error formula: is \(C=1/2\text{.}\) In conclusion, the error of the rightpoint rule is at most
\begin{equation*}
|\text{error}| \le \frac{1}{2}\max_{[a,b]} |f'| (b-a) h
\end{equation*}
