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=1kakxk−1andy′′(x)=∞∑k=2k(k−1)akxk−2
Now we substitute these power series into the differential equation. ∞∑k=2k(k−1)akxk−2+x∞∑k=1kakxk−1+2∞∑k=0akxk=0y′′+xy′+2y=0∞∑k=2k(k−1)akxk−2+∞∑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+2xk⏟Replace 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=−a03⋅5a8=−a67=a03⋅5⋅7a3=−a12a5=−a34=a12⋅4a7=−a56=−a12⋅4⋅6
and so on. Since a0 and a1 can be chosen arbitrarily, the power series representation for the general solution is y(x)=a0(1−x2+x43−x63⋅5+x83⋅5⋅7−⋯)+a1(x−x32+x52⋅4−x72⋅4⋅6+⋯)