Processing math: 100%

EXAMPLE 3Using Power Series to Solve a Linear Differential Equation

Use power series to find the general solution of the linear differential equation y+xy+2y=0

Solution If y(x)=k=0akxk is a solution to the differential equation, then y(x)=k=1kakxk1andy(x)=k=2k(k1)akxk2

Now we substitute these power series into the differential equation. k=2k(k1)akxk2+xk=1kakxk1+2k=0akxk=0y+xy+2y=0k=2k(k1)akxk2+k=1kakxk+k=02akxk=0Move x and 2 into the summation.

Next we adjust the indexes of summation so that xk appears in each series. Here, only the first series needs modification. If we replace k with k+2 in the first series, we obtain k=0(k+2)(k+1)ak+2xkReplace k with k+2+k=1kakxk+k=02akxk=0

1092

The index in the first and third series begins at k=0, and the index in the second series begins at k=1. We write out the k=0 term of the first and third series separately. Then each summation starts at k=1. (2)(1)a2x0+2a0x0+k=1(k+2)(k+1)ak+2xk+k=1kakxk+k=12akxk=02a2+2a0+k=1[(k+2)(k+1)ak+2+(k+2)ak]xk=0

Equating the coefficients of corresponding powers of x (the coefficients on the right side are all 0), we have 2a2+2a0=0(n+2)(n+1)an+2+(n+2)an=0a2=a0an+2=an(n+1)n=1,2,3,

If n=1, we find a3=a12. Then we use the recursion formula on the left to obtain all of the coefficients in terms of a0 and a1. That is, a2=a0a4=a23=a03a6=a45=a035a8=a67=a0357a3=a12a5=a34=a124a7=a56=a1246

and so on. Since a0 and a1 can be chosen arbitrarily, the power series representation for the general solution is y(x)=a0(1x2+x43x635+x8357)+a1(xx32+x524x7246+)