EXERCISES 6.6
\(\def\ds{\displaystyle} \)
1 (a) The Backward Euler method applied to \(y'=t+y\) is
\[w_{i+1}=w_i+hf(t_{i+1},w_{i+1}) = w_i+h(t_{i+1}+w_{i+1}),\]
which can be simplified to
\[w_{i+1}=\frac{w_i+ht_{i+1}}{1-h} = \frac{4w_i+t_{i+1}}{3}\]
for step size \(h=1/4\). In this explicit formulation, we compute
\begin{eqnarray*}
w_0&=&y_0=0\\
w_1&=&\frac{4w_0+t_1}{3}=\frac{1}{12} \approx 0.0833\\
w_2&=&\frac{4w_1+t_2}{3}=\frac{\frac{1}{3}+\frac{1}{2}}{3} = \frac{5}{18}\approx 0.2778\\
w_3&=&\frac{4w_2+t_3}{3}=\frac{\frac{10}{9}+\frac{3}{4}}{3} = \frac{67}{108}\approx 0.6204\\
w_4&=&\frac{4w_3+t_4}{3}=\frac{\frac{67}{27}+1}{3} = \frac{94}{81}\approx 1.1605\\
\end{eqnarray*}
The correct solution at \(t=1\) is \(e-2\). The global error is \(0.4422\).
1 (b) The Backward Euler method applied to \(y'=t-y\) is
\[w_{i+1}=w_i+hf(t_{i+1},w_{i+1}) = w_i+h(t_{i+1}-w_{i+1}),\]
which can be simplified to
\[w_{i+1} = \frac{4w_i+t_{i+1}}{5}\]
for step size \(h=1/4\). We compute
\begin{eqnarray*}
w_0&=&y_0=0\\
w_1&=&\frac{4w_0+t_1}{5}=0.05\\
w_2&=&\frac{4w_1+t_2}{5}=0.14\\
w_3&=&\frac{4w_2+t_3}{5}=0.262\\
w_4&=&\frac{4w_3+t_4}{5}=0.4096\\
\end{eqnarray*}
The global error is \(0.0417\).
1 (c) The Backward Euler method applied to \(y'=4t-2y\) is
\[w_{i+1}=w_i+hf(t_{i+1},w_{i+1}) = w_i+h(4t_{i+1}-2w_{i+1}),\]
which can be simplified to
\[w_{i+1} = \frac{2w_i+2t_{i+1}}{3}\]
for step size \(h=1/4\). We compute
\begin{eqnarray*}
w_0&=&y_0=0\\
w_1&=&\frac{2w_0+2t_1}{3}=\frac{1}{6}\\
w_2&=&\frac{2w_1+2t_2}{3}=\frac{4}{9}\\
w_3&=&\frac{2w_2+2t_3}{3}=\frac{43}{54}\\
w_4&=&\frac{2w_3+2t_4}{3}=\frac{97}{81}\\
\end{eqnarray*}
The global error is \(0.0622\).
3 The Backward Euler method for \(y'=10(1-y)\) gives
\(w_{i+1}=(w_i+10h)/(1+10h)\). This is the
Fixed Point Iteration for the equation \(w=g(w)=(w+10h)/(1+10h)\) for
a fixed \(h\). Check that \(w=1\) is a fixed point, and \(|g'(1)|=
1/(1+10h)<1\) for any step size \(h>0\), implying that \(w_i\) tends
to \(1\) as \(i\to\infty\) as required.