Power Series Solutions of ODEs
Problem
Solve y' = y using a power series y = sum of a_n x^n, n = 0 to infinity. Show the recursion for a_n and recover the exponential y = e^x term by term.
Explanation
When power series solutions are the right tool
Many ODEs — Legendre, Bessel, Hermite, Airy — have no closed form in elementary functions, but they do have power-series solutions around a regular point. The strategy is always the same:
- Guess .
- Compute derivatives term by term.
- Plug into the ODE and collect coefficients of like powers of .
- Set each coefficient to zero → get a recursion relating to earlier .
- Solve the recursion given enough initial data (usually from and from ).
- Recognise the resulting series if you can.
This problem applies the method to the simplest nontrivial ODE in existence — — so every step is visible and the final series is something you already know ().
The given ODE
Step-by-step
Step 1 — Ansatz.
Step 2 — Differentiate term by term.
To match the index with 's, reindex by (so ):
Rename — still the same series:
Step 3 — Substitute into the ODE.
Step 4 — Match coefficients of .
Step 5 — Solve the recursion.
Start from and roll forward:
Step 6 — Assemble the series.
With :
The series is the Taylor series of , converging for all (radius of convergence ).
Verification
Differentiate the series term by term:
This is the classic reason is its own derivative — the factorial in each term exactly cancels the power that falls out when you differentiate.
Radius of convergence
The recursion gives . Ratio test for the series:
So the series converges everywhere — the solution is entire (analytic on the whole real line). This is a general feature of linear ODEs with analytic coefficients: the series always converges at least as far as the nearest singularity of the coefficient functions.
When the ODE has non-constant coefficients — regular vs singular points
For the ODE :
- is an ordinary point if and are analytic at . Power series centred at converge in a disk around at least up to the nearest singularity — Frobenius isn't needed, the usual ansatz works.
- is a regular singular point if or fails to be analytic but and are analytic. Use the Frobenius method — ansatz with an unknown exponent .
- Otherwise, it's an irregular singular point — power series may diverge; asymptotic methods are needed instead.
Bessel's equation has a regular singular point at ; Hermite and Legendre have ordinary points. Each generates its characteristic family via this machinery.
A second worked example — Airy's equation
Ansatz . Then (reindexed). Substituting: with (from the matching, since has no constant term). The recursion steps by , producing two independent series: one from (even powers shifted by ) and one from (powers shifted by ). Both converge on all of . These are the famous Airy functions.
Common mistakes
- Reindexing errors. When substituting, line up powers of carefully by shifting indices. Off-by-one slips are the most common failure mode.
- Forgetting that coefficients vanish independently. If two series agree, their coefficients must match for every . One recursion per power; that's how you extract all the info.
- Not supplying enough initial data. For a first-order ODE you need . For second-order you need and . The rest is determined by the recursion.
- Assuming the series converges everywhere without checking. It usually does for the textbook examples, but singular points of limit the radius.
Try it in the visualization
Watch the partial-sum series grow toward as increases. Slide and see each new term "fix" the approximation over a wider interval — classic Taylor-series visualisation of how more terms buy more accuracy.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.