Power Series Solutions
From substitution to a determined series
A power series turns a differential equation into equations for its coefficients. Write y=∑n=0∞anxn, substitute into the equation, and compare terms with the same power of x. The initial data then select the free coefficients needed to determine the series.
Align the powers
The derivatives are y′=∑n=0∞(n+1)an+1xn and y′′=∑n=0∞(n+2)(n+1)an+2xn. Multiplying by x2 changes the power attached to each term, so reindexing is necessary before coefficients can be compared. Write any exceptional constant or linear terms separately; a formula valid only from n=2 does not determine what happens at n=0 or n=1.
Setting each aligned coefficient to zero yields a recurrence, which connects one coefficient to earlier ones. Keep its starting index visible and divide by the derivative multiplier only after writing the coefficient equation. This makes it easier to check both the shift introduced by a factor of x and the factorial factors introduced by differentiation.
Use the free coefficients
For a second-order equation, initial values y(0) and y′(0) set a0 and a1 separately. These seed coefficients may start different even and odd chains; a zero in one chain does not force every coefficient to vanish. Work through both chains until the given data and the recurrence show which terms remain.
Worked example
Take y′=3x2y with y(0)=1. The constant and linear coefficient equations give a1=a2=0, while for n≥2, matching xn gives (n+1)an+1=3an−2. Thus a3=a0=1 and 6a6=3a3, so a6=1/2. The resulting beginning, 1+x3+x6/2+⋯, can be differentiated and substituted back to check the computed orders.
For y″ + 4y = 0 with y(0)=1 and y′(0)=0, what is the coefficient a₄ in y=Σaₙxⁿ?
For y′=(1+x)y and y(0)=1, what is a₃?