Solution (a) We assume that the solution of the differential equation is given by the Maclaurin series y(x)=∞∑k=0y(k)(0)k!xn=y(0)+y′(0)x+y′′(0)2!x2+y′′′(0)3!x3+⋯
1093
We substitute the initial conditions, y(0)=1 and y′(0)=1, into (3). Then y′′(0)=02⋅1+e0⋅1=1x=0;y(0)=1;y′(0)=1;y′′(x)=x2y+exy′
Now we differentiate y′′=x2y+exy′ with respect to x to find y′′′(0). y′′′(x)=(x2y′+2xy)+(exy′′+exy′)y′′′(0)=(02⋅1+2⋅0⋅1)+(e0⋅1+e0⋅1)=2
We continue differentiating and evaluating the derivative at x=0. y(4)(x)=x2y′′+4xy′+2y+exy′′′+2exy′′+exy′y(4)(0)=02⋅1+4⋅0⋅1+2⋅1+e0⋅2+2⋅e0⋅1+e0⋅1=7
and so on. The Maclaurin series then becomes y(x)=1+x+12!x2+23!x3+74!x4+⋯
(b) We construct Table 1 that uses the first five terms of the series to approximate select values of y in the interval 0≤x≤1.
x | 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
y | 1.0 | 1.1054 | 1.2231 | 1.3564 | 1.5088 | 1.6849 | 1.8898 | 2.1294 | 2.4101 | 2.7394 | 3.125 |
(c) Using every thousandth term from the numeric solution, we construct Table 2.
x | 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
y | 1.0 | 1.1054 | 1.2232 | 1.3569 | 1.5114 | 1.6933 | 1.9127 | 2.1836 | 2.5271 | 2.9747 | 3.5752 |
From the results of Tables 1 and 2, we can see how the five-term approximation to the series solution of the differential equation deteriorates as we move away from the center of convergence 0.