Use power series to solve the differential equation y′−2y=e−x.
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=1kakxk−1. Since e−x=∞∑k=0(−1)kk!xk, the differential equation can be written as ∞∑k=1kakxk−1⏟y′−2∞∑k=0akxk⏟y=∞∑k=0(−1)kk!xk⏟e−x
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+⋯)=1−x+12!x2−13!x3+14!x4+⋯
Now we combine the coefficients of corresponding powers of x to get (a1−2a0)+(2a2−2a1)x+(3a3−2a2)x2+(4a4−2a3)x3+⋯=1−x+12!x2−13!x3+14!x4−⋯
Since the coefficients of corresponding powers of x are equal, we have a1−2a0=1or equivalently,a1=2a0+12a2−2a1=−1or equivalently,a2=2a1−12=2(2a0+1)−12=2a0+123a3−2a2=12!or equivalently,a3=2a2+12!3=23(2a0+12)+13⋅2!=43a0+33!4a4−2a3=−13!or equivalently,a4=2a3−13!4=12a3−14!=12(43a0+33!)−14!=23a0+54!5a5−2a4=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.