EXERCISES 6.3

\(\def\ds{\displaystyle} \) 1 (a) Euler's Method generates \(w_{i1}\) and \(w_{i2}, i=1, 2, 3, 4\), to approximate \(y_1\) and \(y_2\), respectively. For step size \(h=1/4\), the formulas are \[w_{i+1,1} = w_{i1}+h(w_{i1}+w_{i2})\ \ \ \ \text{and}\ \ \ \ w_{i+1,2} = w_{i2}+h(-w_{i1}+w_{i2}).\] Starting with the initial conditions \(w_{01}=y_1(0)=1\) and \(w_{02}=y_2(0)=0\), the approximate solutions are \[\begin{array}{ll} w_{01}=1&w_{02}=0\\ \\ w_{11}=1+\frac{1}{4}(1+0) = \frac{5}{4}&w_{12}=0+\frac{1}{4}(-1+0) = -\frac{1}{4}\\ \\ w_{21}=\frac{5}{4}+\frac{1}{4}(\frac{5}{4}-\frac{1}{4}) = \frac{3}{2}& w_{22}=-\frac{1}{4}+\frac{1}{4}(-\frac{5}{4}-\frac{1}{4})= -\frac{5}{8}\\ \\ w_{31}=\frac{3}{2}+\frac{1}{4}(\frac{3}{2}-\frac{5}{8}) = \frac{55}{32}& w_{32}=-\frac{5}{8}+\frac{1}{4}(-\frac{3}{2}-\frac{5}{8})= -\frac{37}{32}\\ \\ w_{41}=\frac{55}{32}+\frac{1}{4}(\frac{55}{32}-\frac{37}{32}) = \frac{119}{64}\ \ \ \ \ & w_{42}=-\frac{37}{32}+\frac{1}{4}(-\frac{55}{32}-\frac{37}{32})= -\frac{15}{8} \\ \end{array}\] The correct solutions can be used to find the global truncation errors of the approximations. The global error of \(w_{41}\) is \(|y_1(1)-w_{41}| \approx 0.3907\). The global error of \(w_{42}\) is \(|y_2(1)-w_{42}| \approx 0.4124\).

1 (b) The Euler's Method formulas are \[w_{i+1,1} = w_{i1}+h(-w_{i1}-w_{i2})\ \ \ \ \text{and}\ \ \ \ w_{i+1,2} = w_{i2}+h(w_{i1}-w_{i2}).\] The approximate solutions are \[\begin{array}{ll} w_{01}=1.0000&w_{02}=0.0000\\ w_{11}=0.7500&w_{12}=0.2500\\ w_{21}=0.5000&w_{22}=0.3750\\ w_{31}=0.2813&w_{32}=0.4063\\ w_{41}=0.1094&w_{42}=0.3750\\ \end{array}\] The global error of \(w_{41}\) is \(|y_1(1)-w_{41}| \approx 0.0894\). The global error of \(w_{42}\) is \(|y_2(1)-w_{42}| \approx 0.0654\).

1 (c) The Euler's Method formulas are \[w_{i+1,1} = w_{i1}+h(-w_{i2})\ \ \ \ \ \ \ \ \ \text{and}\ \ \ \ \ \ \ \ \ w_{i+1,2} = w_{i2}+h(w_{i1}).\] The approximate solutions are \[\begin{array}{ll} w_{01}=1.0000&w_{02}=0.0000\\ w_{11}=1.0000&w_{12}=0.2500\\ w_{21}=0.9375&w_{22}=0.5000\\ w_{31}=0.8125&w_{32}=0.7344\\ w_{41}=0.6289&w_{42}=0.9375\\ \end{array}\] The global error of \(w_{41}\) is \(|y_1(1)-w_{41}| \approx 0.0886\). The global error of \(w_{42}\) is \(|y_2(1)-w_{42}| \approx 0.0960\).

1 (d) The Euler's Method formulas are \[w_{i+1,1} = w_{i1}+h(w_{i1}+3w_{i2})\ \ \ \ \ \ \ \ \ \text{and}\ \ \ \ \ \ \ \ \ w_{i+1,2} = w_{i2}+h(2w_{i1}+2w_{i2}).\] The approximate solutions are \[\begin{array}{rr} w_{01}=5.0000&w_{02}=0.0000\\ w_{11}=6.2500&w_{12}=2.5000\\ w_{21}=9.6875&w_{22}=6.8750\\ w_{31}=17.2656&w_{32}=15.1563\\ w_{41}=32.9492&w_{42}=31.3672\\ \end{array}\] The global error of \(w_{41}\) is \(|y_1(1)-w_{41}| \approx 77.3507\). The global error of \(w_{42}\) is \(|y_2(1)-w_{42}| \approx 77.0934\).


3 (a) Set \(y_1(t)=y(t)\) and \(y_2(t)=y'(t)\). Then by differentiating the latter, \(y_2'(t) = y''(t) = ty_1\) from the differential equation, and \(y_1'(t)=y_2\) by definition. Therefore the first-order system equivalent to Airy's equation is \[\left\{ \begin{array}{l} y_1'=y_2\\ y_2'=ty_1\\ \end{array} \right. \] 3 (b) Set \(y_1(t)=y(t)\) and \(y_2(t)=y'(t)\). Then by differentiating the latter, \(y_2'(t) = y''(t) = 2ty_1'(t)-2y_1(t)\) from the differential equation. The equivalent first order system is \[\left\{ \begin{array}{l} y_1'=y_2\\ y_2'=2ty_2-2y_1\\ \end{array} \right. \] 3 (c) Set \(y_1(t)=y(t)\) and \(y_2(t)=y'(t)\). Then by differentiating the latter, \(y_2'(t) = y''(t) = ty_1'(t)+y_1(t)\) from the differential equation. The equivalent first order system is \[\left\{ \begin{array}{l} y_1'=y_2\\ y_2'=ty_2+y_1\\ \end{array} \right. \]
5 (a) Since \(y'(t) = (e^t-e^{-t}-2t)/2\) and \(y'''(t)=(e^t-e^{-t})/2\), it follows that \(y'''-y' = t\). The initial conditions \(y(0)=y'(0)=y''(0)=0\) are easily checked.

5 (b) Set \(y_1=y, y_2=y', y_3=y''\). Then \(y_3' = y''' = y'+t = y_2+t\), so the equivalent first-order system is \[\left\{ \begin{array}{l} y_1'=y_2\\ y_2'=y_3\\ y_3'=t+y_2\\ \end{array} \right. \] 5 (c) Euler's Method generates \(w_{i1}, w_{i2}\) and \(w_{i3}, i=1, 2, 3, 4\), to approximate \(y_1, y_2\) and \(y_3\), respectively. The formulas are \[w_{i+1,1} = w_{i1}+hw_{i2}\ \ \ \ w_{i+1,2} = w_{i2}+hw_{i3}\ \ \ \ w_{i+1,3} = w_{i3}+h(t_i+w_{i2}).\] Starting with the initial conditions \(w_{01}=w_{02}=w_{03}=0\), the approximate solutions are \[\begin{array}{lll} w_{01}=0&w_{02}=0&w_{03}=0\\ \\ w_{11}=0+\frac{1}{4}(0) = 0&w_{12}=0+\frac{1}{4}(0) = 0&w_{13}=0+\frac{1}{4}(0+0) = 0\\ \\ w_{21}=0+\frac{1}{4}(0) = 0&w_{22}=0+\frac{1}{4}(0) = 0&w_{23}=0+\frac{1}{4}(\frac{1}{4}+0) = \frac{1}{16}\\ \\ w_{31}=0+\frac{1}{4}(0) = 0&w_{32}=0+\frac{1}{4}(\frac{1}{16}) = \frac{1}{64}& w_{33}=\frac{1}{16}+\frac{1}{4}(\frac{1}{2}+0) = \frac{3}{16}\\ \\ w_{41}=0+\frac{1}{4}(\frac{1}{64}) = \frac{1}{256}& w_{42}=\frac{1}{64}+\frac{1}{4}\frac{3}{16} = \frac{1}{16}& w_{43}=\frac{3}{16}+\frac{1}{4}(\frac{3}{4}+\frac{1}{64}) = \frac{97}{256}\\ \\ \end{array}\] The solution \(y(t)\) is approximated by \(w_{i1}\), so \(y(1)\approx w_{41}=1/256\approx 0.0039\).

5 (d) The global truncation error is \(|y(1)-w_{41}| = |(e+e^{-1}-1)/2 -1- 1/256|\approx 0.0392\).