In mathematics, the power series method is used to seek a power series solution to certain differential equations. In general, such a solution assumes a power series with unknown coefficients, then substitutes that solution into the differential equation to find a recurrence relation for the coefficients.
Method
Consider the second-order linear differential equation

Suppose a2 is nonzero for all z. Then we can divide throughout to obtain

Suppose further that a1/a2 and a0/a2 are analytic functions.
The power series method calls for the construction of a power series solution

If a2 is zero for some z, then the Frobenius method, a variation on this method, is suited to deal with so called singular points.
Example usage
Let us look at the Hermite differential equation,

We can try to construct a series solution



Substituting these in the differential equation

Making a shift on the first sum

If this series is a solution, then all these coefficients must be zero, so:

We can rearrange this to get a recurrence relation for Ak+2.


Now, we have

We can determine A0 and A1 if there are initial conditions, i.e. if we have an initial value problem.
So we have
![{\displaystyle {\begin{aligned}A_{4}&={1 \over 4}A_{2}=\left({1 \over 4}\right)\left({-1 \over 2}\right)A_{0}={-1 \over 8}A_{0}\\[8pt]A_{5}&={1 \over 4}A_{3}=\left({1 \over 4}\right)\left({1 \over 6}\right)A_{1}={1 \over 24}A_{1}\\[8pt]A_{6}&={7 \over 30}A_{4}=\left({7 \over 30}\right)\left({-1 \over 8}\right)A_{0}={-7 \over 240}A_{0}\\[8pt]A_{7}&={3 \over 14}A_{5}=\left({3 \over 14}\right)\left({1 \over 24}\right)A_{1}={1 \over 112}A_{1}\end{aligned}}}](/media/api/rest_v1/media/math/render/svg/99e9e4d0385cb69bb0b3738ab539ec825d6911c7)
and the series solution is
![{\displaystyle {\begin{aligned}f&=A_{0}x^{0}+A_{1}x^{1}+A_{2}x^{2}+A_{3}x^{3}+A_{4}x^{4}+A_{5}x^{5}+A_{6}x^{6}+A_{7}x^{7}+\cdots \\[8pt]&=A_{0}x^{0}+A_{1}x^{1}+{-1 \over 2}A_{0}x^{2}+{1 \over 6}A_{1}x^{3}+{-1 \over 8}A_{0}x^{4}+{1 \over 24}A_{1}x^{5}+{-7 \over 240}A_{0}x^{6}+{1 \over 112}A_{1}x^{7}+\cdots \\[8pt]&=A_{0}x^{0}+{-1 \over 2}A_{0}x^{2}+{-1 \over 8}A_{0}x^{4}+{-7 \over 240}A_{0}x^{6}+A_{1}x+{1 \over 6}A_{1}x^{3}+{1 \over 24}A_{1}x^{5}+{1 \over 112}A_{1}x^{7}+\cdots \end{aligned}}}](/media/api/rest_v1/media/math/render/svg/b2aad974d5c5623dad8a1608acdee3ad4bb19d84)
which we can break up into the sum of two linearly independent series solutions:

which can be further simplified by the use of hypergeometric series.
Nonlinear equations
The power series method can be applied to certain nonlinear differential equations, though with much less flexibility. Generally, the power series method will give solutions only to initial value problems (opposed to boundary value problems), this is not an issue when dealing with linear equations since the solution may turn up multiple linearly independent solutions which may be combined (by superposition) to solve boundary value problems as well. A further restriction is that the series coefficients will be specified by a nonlinear recurrence (the nonlinearities are inherited from the differential equation).
In order for the solution method to work, as in linear equations, it is necessary to express every term in the nonlinear equation as a power series so that all of the terms may be combined into one power series.
As an example, consider the initial value problem

which describes a solution to capillary-driven flow in a groove. Note the two nonlinearities: the first and second terms involve products. Note also that the initial values are given at
, which hints that the power series must be set up as:

since in this way

which makes the initial values very easy to evaluate. It is necessary to rewrite the equation slightly in light of the definition of the power series,

so that the third term contains the same form
that shows in the power series.
The last consideration is what to do with the products; substituting the power series in would result in products of power series when it's necessary that each term be its own power series. This is where the identity

is useful; substituting the power series into the differential equation and applying this identity leads to an equation where every term is a power series. After much rearrangement, the recurrence

is obtained, specifying exact values of the series coefficients. From the initial values,
and
, thereafter the above recurrence is used. For example, the next few coefficients:

A limitation of the power series solution shows itself in this example. A numeric solution of the problem shows that the function is smooth and always decreasing to the left of
, and zero to the right. At
, a slope discontinuity exists, a feature which the power series is incapable of rendering, for this reason the series solution continues decreasing to the right of
instead of suddenly becoming zero.
External links