Processing math: 100%

EXAMPLE 2Using Power Series to Solve a Linear Differential Equation

Use power series to solve the differential equation y2y=ex.

Solution Assume that a solution y=y(x) of the differential equation can be expressed as the power series y(x)=k=0akxk. Then y(x)=k=1kakxk1. Since ex=k=0(1)kk!xk, the differential equation can be written as k=1kakxk1y2k=0akxky=k=0(1)kk!xkex

To obtain relationships among the coefficients, we write out the terms of the power series. (a1+2a2x+3a3x2+4a4x3+5a5x4+)2(a0+a1x+a2x2+a3x3+a4x4+)=1x+12!x213!x3+14!x4+

Now we combine the coefficients of corresponding powers of x to get (a12a0)+(2a22a1)x+(3a32a2)x2+(4a42a3)x3+=1x+12!x213!x3+14!x4

Since the coefficients of corresponding powers of x are equal, we have a12a0=1or equivalently,a1=2a0+12a22a1=1or equivalently,a2=2a112=2(2a0+1)12=2a0+123a32a2=12!or equivalently,a3=2a2+12!3=23(2a0+12)+132!=43a0+33!4a42a3=13!or equivalently,a4=2a313!4=12a314!=12(43a0+33!)14!=23a0+54!5a52a4=14!or equivalently,a5=2a4+14!5=25a4+15!=25(23a0+54!)+15!=415a0+115!

1091

This recursive formula (n+1)an+1=2an+(1)n1(n)! can be used to find an in terms of a0, as we did for a1, a2, a3, a4, and a5. The power series representation of the general solution of the equation is y(x)=k=0akxk=a0+(2a0+1)x+(2a0+12!)x2+(43a0+33!)x3+(23a0+54!)x4+(415a0+115!)x5+=a0(1+2x+2x2+43x3+23x4+415x5+)+x+12!x2+33!x3+54!x4+115!x5+

where a0 is arbitrary.