A8 · Lesson 49 · Power series solutions
When no formula exists, let the equation write the solution's Taylor series
Most linear equations with variable coefficients have no solution in familiar functions. Airy's equation, , describes an electron's wave near a tunneling barrier and light near the bright edge of a rainbow; Bessel's equation describes drumheads, waveguides and the current inside a thick wire. Their solutions are smooth, though, so each has a Taylor series. Put an unknown series into the equation, and matching powers of gives a rule that produces the coefficients one after another. The series is then the solution, to as many digits as you care to add terms for.
- The curves are the partial sums of the series solution of with , , using the terms up to , against the exact solution computed numerically.
- Each extra term extends the range where the sum is right: the series converges for every , but far out it needs many terms.
Predict
Put into with . What rule do the coefficients follow?
. Differentiating the series gives , and matching the coefficient of on both sides gives . Starting from , : the series for , which the equation built without being told.
Name it
The method
- Write , , .
- Substitute, and shift the indices so every sum is written in powers .
- Set the total coefficient of each power to zero. That gives a recurrence: each in terms of earlier ones.
- The initial conditions fix the first ones: and .
For Airy's equation : the left side is and the right is , so and
Each coefficient comes from the one three places back: feeds and feeds , giving two independent solutions.
Where it works, and how far
At an ordinary point, where the equation has and with Taylor series, the method gives two independent series solutions. Each converges at least out to the distance from the center to the nearest point where or blows up, including complex points. For , nothing goes wrong on the real line, yet the series about 0 only converges for , because at .
At a singular point, like for Bessel's equation, plain power series can fail; a modified series, , takes over (course A12).
Worked example
Solve by series, with and .
Show the solution
- Substitute the series.
- Recurrence.
- First coefficients.
- Recognize the series. The even terms are and the odd ones .
- Why it matters. The series method recovers the familiar solution, which is the test that the method and the algebra are right before using them where no familiar solution exists.
Answer .
Worked example
Find for Airy's equation with and .
Show the solution
- The surviving chain. With only the chain from survives:
- Sum at .
- Check. An RK4 integration of the equation from 0 to 1 gives 1.172 300 too.
- Why it converges fast. The terms shrink so fast because each is divided by roughly ; at it takes nine terms to reach ten digits.
Answer .
Worked example
How far from 0 can you trust the series solution of ?
Show the solution
- Standard form. Divide by :
- Singular points. These blow up where , at .
- Radius of convergence. Those are 2 away from the origin, so the series about 0 converges for at least.
- Why the limit is there. On the real line the equation is perfectly calm at ; the limit comes from points you'd never plot.
- Going farther. For values farther out, expand about another center, or integrate numerically.
Answer you can trust it for at least.
Check
For with and , what is the coefficient of in the series solution?
Check
Using the series through , what is the solution of with , at = 1.5?
Check
About , what is the guaranteed radius of convergence of the series solutions of ?
Check
Find the recurrence for with .
Step 1
Writing in powers , the coefficient multiplies what?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Writing in powers , the coefficient multiplies what?
Step 3
So .
Check
Solve by series with and .
(a)
Substituting gives . Write in terms of and .
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
(b)
What is ?
Check
Write airy_series(x, tol) that sums the series solution of with , from its recurrence, adding terms until the next one is smaller than tol. Return (value, terms), the sum and the number of nonzero terms used. Set ys, n = airy_series(X, tol) for X = 2 and tol = 1 × 10⁻⁸, and y_rk to the RK4 solution at X with 20 000 steps.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
The equation is smooth for every real . Why does its series solution about 0 stop converging at ?
Explain why
A series solution and an RK4 integration both give for Airy's equation. What does each offer that the other doesn't?
The series gives the solution as a formula: its coefficients can be found exactly, its error at any can be bounded from the first neglected term, and it shows the solution's behavior near the center, such as which powers of start it off. But it only converges within its radius, and far out it needs many terms. RK4 works for any equation, linear or not, out to any distance, but it gives numbers at chosen points rather than a formula, and its accuracy depends on the step size. Getting the same number both ways is strong evidence that both are right.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.