Apply Simpson’s method with \(n=2\) to the integral \(\int_1^{9} x^{3/2}\,dx\text{.}\) Find the actual error of the method and compare it to the estimate (17.1.1).
Answer.
\begin{equation*}
\int_1^9 x^{3/2}\,dx \approx \frac{h}{3} (f(1) + 4f(5) + f(9)) \approx 96.9618
\end{equation*}
The exact value of this integral is \(\frac{2}{5}(9^{5/2} - 1) = 484/5 = 96.8\text{.}\) So, the error is \(0.1618\text{,}\) relatively small.
To use the estimate (17.1.1) we need the fourth derivative of \(f\text{,}\) which is \((9/16)x^{-5/2}\text{.}\) The absolute value of this function is maximal at \(x=1\text{,}\) so \(\max|f^{(4)}| = 9/16\text{.}\) Also, \(h = (b-a)/2 = 4\text{.}\) So (17.1.1) says
\begin{equation*}
|\text{error}|\le \frac{1}{180} \frac{9}{16} (9-1) 4^4 = 6.4
\end{equation*}
Indeed, \(0.1618 \le 6.4\) but we see that the error estimate does not give the right idea of how large the error actually is.
