Processing math: 100%
  • Use a Maclaurin series to find the solution of y=x2y+exy

    given the initial conditions y(0)=1 and y(0)=1.

  • Use the first five terms of the series to approximate values of y=y(x) for 0x1.
  • Use a numeric differential equation solver with 10,000 equally spaced numbers in the interval [0,1] to solve the differential equation in (a). Then construct a table showing the values of y for x=0,0.1,0.2,,0.9,1.
  • 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)=021+e01=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)=(021+201)+(e01+e01)=2

    We continue differentiating and evaluating the derivative at x=0. y(4)(x)=x2y+4xy+2y+exy+2exy+exyy(4)(0)=021+401+21+e02+2e01+e01=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 0x1.

    Maclaurin Series Approximation of y Using Five Terms of the Series
    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.

    Select Values of y Using a Numeric Equation Solver
    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.

    Problem 15.