EXERCISES 5.3
\(\def\ds{\displaystyle} \)
1 (a) Let \(f(x)=x^2, a=0, b=1\). Following the definition
of Romberg Integration,
\[R_{11} = (b-a)\frac{f(a)+f(b)}{2} = \frac{0^2+1^2}{2}=\frac{1}{2}.\]
The remainder of the first column is computed from the Composite
Trapezoid Rule with \(h_2=(b-a)/2=1/2\),
\[R_{21}=\frac{1}{2}R_{11}+h_2f(a+h_2)=\frac{1}{2}\cdot\frac{1}{2}+
\frac{1}{2}\cdot\frac{1}{4}=\frac{3}{8}\]
and \(h_3=(b-a)/4=1/4\),
\[ R_{31}=\frac{1}{2}R_{21}+h_3[f(a+h_3)+f(a+3h_3)]=\frac{1}{2}\cdot\frac{3}{8}
+\frac{1}{4}\left(\frac{1}{4}\right)^2+\frac{1}{4}\left(\frac{3}{4}\right)^2
=\frac{11}{32}.\]
The second column consists of extrapolations of the first column
\begin{eqnarray*}
R_{22} &=& \frac{4R_{21}-R_{11}}{4-1}=\frac{4(\frac{3}{8})-\frac{1}{2}}{3}
=\frac{1}{3}\\
R_{32} &=& \frac{4R_{31}-R_{21}}{4-1}=\frac{4(\frac{11}{32})-\frac{3}{8}}{3}
=\frac{1}{3},
\end{eqnarray*}
and the third column extrapolates the second column
\begin{eqnarray*}
R_{33} &=& \frac{4^2R_{32}-R_{22}}{4^2-1}=\frac{16(\frac{1}{3})-\frac{1}{3}}{15}
=\frac{1}{3}
\end{eqnarray*}
The Romberg triangle is
\[\begin{array}{ccc}
R_{11}=\frac{1}{2}\\ \\
R_{21}=\frac{3}{8}&R_{22}=\frac{1}{3}\\ \\
R_{31}=\frac{11}{32}&R_{32}=\frac{1}{3}&R_{33}=\frac{1}{3}
\end{array}\]
1 (b) Let \(f(x)=\cos x, a=0, b=\pi/2\). Set \(h_2=\pi/4,
h_3=\pi/8\). Then the first column of the Romberg triangle is
\begin{eqnarray*}
R_{11}&=&\textstyle (b-a)\frac{f(a)+f(b)}{2} = \frac{\pi}{2}\frac{1}{2} =
\frac{\pi}{4}\approx 0.785398\\
R_{21}&=&\textstyle \frac{1}{2}R_{11}+h_2f(a+h_2)=\frac{\pi}{8}+
\frac{\pi}{4}\frac{\sqrt{2}}{2}=\frac{\pi}{8}(1+\sqrt{2})=0.948059\\
R_{31}&=&\textstyle \frac{1}{2}R_{21}+h_3[f(a+h_3)+f(a+3h_3)]=
\frac{\pi}{16}(1+\sqrt{2})+\frac{\pi}{8}[\cos \frac{\pi}{8}+
\cos \frac{3\pi}{8}]\approx 0.987116
\end{eqnarray*}
The second column is
\begin{eqnarray*}
R_{22} &=& \frac{4R_{21}-R_{11}}{4-1}\approx 1.002280\\
R_{32} &=& \frac{4R_{31}-R_{21}}{4-1}\approx 1.000135
\end{eqnarray*}
and the third column extrapolates the second column
\begin{eqnarray*}
R_{33} &=& \frac{4^2R_{32}-R_{22}}{4^2-1}= 0.999992
\end{eqnarray*}
The Romberg triangle is
\[\begin{array}{ccc}
R_{11}=0.785398\\ \\
R_{21}=0.948059&R_{22}=1.002280\\ \\
R_{31}=0.987116&R_{32}=1.000135&R_{33}=0.999992
\end{array}\]
1 (c) Similar to (a) and (b). Set \(f(x)=e^x, a=0, b=1\). The
Romberg triangle is
\[\begin{array}{ccc}
R_{11}=1.859141\\ \\
R_{21}=1.753931&R_{22}=1.718861\\ \\
R_{31}=1.727222&R_{32}=1.718319&R_{33}=1.718283
\end{array}\]
3 Notice that \(R_{11}=(b-a)(f(a)+f(b))/2 = h_2(f(a)+f(b))\).
Then
\begin{eqnarray*}
R_{22}&=&\frac{4R_{21}-R_{11}}{4-1}\\
&=&\frac{4(\frac{1}{2}R_{11}+h_2f(a+h_2))-R_{11}}{3}\\
&=&\frac{R_{11}+4h_2f(a+h_2)}{3}\\
&=&\frac{h_2(f(a)+f(b))+4h_2f(a+h_2)}{3}\\
&=&\frac{h_2}{3}[f(a)+4f(a+h_2)+f(b)]
\end{eqnarray*}
is Simpson's Rule on \([a,b]\).
5 From Section 5.2, the Composite Trapezoid Rule with step size \(h_j = (b-a)/2^{j-1}\) is
\[
R_{j1}=\frac{h_j}{2}\left[f(a)+f(b)+2\sum_{i=1}^{m-1}y_{i}\right],\]
where we set \(m=2^{j-1}\). For \(j\ge 2\) we rewrite
\begin{eqnarray*}
R_{j,1}&=&\frac{1}{2}\frac{h_{j-1}}{2}[f(a)+f(b)+2(y_2+y_4+\ldots+y_{m-2})+2(y_1+y_3+\ldots+y_{m-1})]\\
&=&\frac{1}{2}R_{j-1,1}+\frac{h_j}{2}2\sum_{i=1}^{m/2} f(a+(2i-1)h_{j})\\
&=&\frac{1}{2}R_{j-1,1}+h_j\sum_{i=1}^{2^{j-2}} f(a+(2i-1)h_{j})
\end{eqnarray*}