Академический Документы
Профессиональный Документы
Культура Документы
In this chapter we consider methods for solving differential equations using power series.
Sequences and infinite series are also involved in this treatment. Sequences, infinite series,
and power series are topics which are typically studied in Calculus II. See the Appendices
for a brief review of that material.
Recall that if a function g has derivatives of all orders on some open interval I and a I,
then the Taylor series expansion of g in powers of (x a) is:
X g (n) (a)
g 00 (a) g 000 (a)
g(x) = g(a) + g 0 (a)(x a) + (x a)2 + (x a)3 + = (x a)n .
2! 3! n!
n=0
We assume that the solution y = y(x) has the Taylor series expansion
X y (n)(a)
y 00 (a) y 000 (a)
y(x) = y(a) + y 0 (a)(x a) + (x a)2 + (x a)3 + = (x a)n .
2! 3! n!
n=0
on some interval I = (a R, a + R). The initial condition, y(a) = , determines the first
term in the series expansion. From the differential equation, we have
217
and this determines the second term of the expansion. Differentiating the differential equa-
tion (assuming that p and f are differentiable functions on I), we get
y 00 (x) = f 0 (x) p(x)y 0 (x) p0 (x)y(x) and so y 00 (a) = f 0 (a) p(a)y 0 (a) p0 (a)y(a).
y 0 y = 2ex , y(1) = 0.
Assuming that the solution y = y(x) has the Taylor series expansion
and so on.
In general, we get
0, n even
y (n) (x) = (1)n+1 2ex + y (n1) (x) and y (n) (1) =
2e1 , n odd
Therefore,
2e1 3 2e1 5
X 2e1
y(x) = 2e 1
(x 1) + (x 1) + (x 1) + = (x 1)2n+1 .
3! 5! (2n + 1)!
n=0
Of course, we could have solved this initial-value problem using the method of Section
2.1. Using that method, the solution is y(x) = ex2 ex . You can verify that the Taylor
series expansion in powers of x 1 of this function is the series given above.
218
This method can be applied equally well to higher order equations. For example, suppose
we are given the second order linear initial-value problem
As above, we assume that the solution y = y(x) has the Taylor series expansion
X y (n)(a)
y 00 (a) y 000 (a)
y(x) = y(a) + y 0 (a)(x a) + (x a)2 + (x a)3 + = (x a)n .
2! 3! n!
n=0
on some interval I = (aR, a+R). The initial conditions, y(a) = , y 0 (a) = , determine
the first two terms in the series expansion, and from the differential equation, we have
y 00 (x) = f (x) p(x)y 0 (x) q(x)y(x) and so y 00 (a) = f (a) p(a)y 0 (a) q(a)y(a)
This determines the third term of the expansion. Differentiating the differential equation
(again, assuming that p, q and f are differentiable functions on I), we get
and so
y 000 (a) = f 0 (a) p(a)y 00(a) p0 (a)y 0 (a) q(a)y 0 (a) q 0 (a)y(a).
y 00 + x2 y 0 2y = 0, y(0) = 1, y 0 (0) = 1.
and so on.
219
Therefore, we find that
2 2 2 6 16
y(x) = 1 x + x x3 + x4 x5 +
2! 3! 4! 5!
1 1 2
= 1 x + x2 x3 + x4 x5 +
3 4 15
The Taylor Series method can also be applied to nonlinear initial-value problems.
y0 = 1 + y2, y(0) = 0.
Assume that the solution y has a Taylor series expansion in powers of x which converges
for x (R, R) for some R > 0. Then
y (5) = 2yy (4) + 2y 0 y 000 + 6y 0 y 000 + 6(y 00)2 = 2yy (4) + 8y 0 y 000 + 6(y 00 )2 , y (5)(0) = 16
Exercises 6.1.
Use the Taylor series method to find a power series expansion of the solution of the initial-
value problem. Find at least three non-zero terms beyond those given by the initial condi-
tions.
1. (1 x2 )y 0 xy = 1, y(0) = 0
2. y 0 + xy = ln x y(1) = 1
3. y 00 + xy 0 2y = 0, y(0) = 1, y 0(0) = 0
4. y 00 + xy 0 2y = 0, y(0) = 0, y 0(0) = 1
220
5. y 00 + ex y 0 xy = 0, y(0) = 1, y 0 (0) = 0
The equations in Exercises 9 14 are nonlinear. Use the Taylor series method to find
a power series expansion of the solution of the initial-value problem. Find at least three
non-zero terms beyond those given by the initial conditions.
9. y 0 = x2 + y 2 , y(1) = 1
10. y 0 = 1 x2 y 2 , y(0) = 0
yy 0 = 1, y(1) = 1.
The differential equation is separable. Solve this initial-value problem using the
method of Section 2.2. Compare the two results.
In this section we discuss a method for finding power series solutions of linear differential
equations. In Section 3.7 we stated that an nth -order linear differential equation is an
equation that can be written in the form
y (n) + pn1 (x)y (n1) + pn2 (x)y (n2) + + p1 (x)y 0 + p0 (x)y = f (x) (L)
where the functions p0 , p1 , . . . , pn1 (called the coefficients) and f (called the forcing
function or nonhomogeneous term) are continuous on some interval I. We will be seeking
solutions of (L) having the form
X
y(x) = cn (x a)n (T)
n=0
221
In the preceding section we saw that we could find a series solution provided the functions
involved in the equation were infinitely differentiable on the interval I. We will need to
elaborate on this restriction in this section. Recall that a function g defined on an interval
I containing a point x = a is analytic at x = a if g has a Taylor series expansion in
powers of (x a) with radius of convergence R > 0.
For the purposes of this section, we assume that the coefficients p0 , p1 , . . . , pn1 and
f are analytic functions. That is, if we are seeking a power series solution in the form (T),
then we assume that the coefficient functions P, Q, R and G each have a Taylor series
expansion in powers of (x a) with a positive radius of convergence. Before we present
the power series methods, we need to introduce some concepts which relate the coefficients
of a linear equation with the existence, uniqueness and behavior of solutions.
Singular Points, Ordinary Points In Section 2.1 we studied first order linear differential
equations written in the standard form
Our first step, then, was to divide the equation (L) by P (x) to obtain an equation in
the form (S). We then considered (S) on intervals which did not contain points at which
P (x) = 0. A point c is a singular point of (L) if P (c) = 0.
(a) (1 + x2 )y 0 + xy = 2x
Here P (x) = 1 + x2 , Q(x) = x, G(x) = 2x are continuous functions on the interval
J = (, ). Since 1 + x2 = 6 0 for all x J, this equation has no singular points.
Using the solution method presented in Section 2.1, the general solution of this equa-
tion is
C
y(x) = 2 + .
1 + x2
(b) (x 1)y 0 2y = 2
Here P (x) = x 1, Q(x) = 2, G(x) 0 are continuous functions on the interval
J = (, ). Since x 1 = 0 when x = 1, 1 is a singular point.
222
(c) (4 x2 )y 0 4xy = 4x
Here q(x) = 4 x2 , r(x) = x, g(x) = 2x are continuous functions on the interval
J = (, ). Since 4 x2 = 0 when x = 2, 2 and 2 are singular points.
Remarks. Equations (b) and (c) in this example illustrate possible effects on the solutions
of an equation with singular points. In (b), the one-parameter family of solutions is defined
for all x, but every member of the family has the value 1 at x = 1. Therefore, every
member of the family is a solution of the initial-value problem
(x 1)y 0 2y = 2, y(1) = 1
(x 1)y 0 2y = 2, y(1) = , 6= 1
has a solution.
On the other hand, in (c), the only member of the one-parameter family of solutions
which is defined at either of the singular points is y 4 when C = 0. All other members
of the family are undefined at the singular points.
The ideas presented above for first order linear equations also apply to second order
linear equations. The general second order linear differential equation is an equation of the
form
q0 (x)y 00 + q1 (x)y 0 + q2 (x)y = f (x)
The points at which q0 (x) = 0, if any, are called singular points of the equation
y0 y = 0
As we saw in Chapter 1 and in Section 2.1, the one-parameter family of solutions is y = Cex .
Assume that the differential equation has a power series solution of the form
X
2 3
y = a0 + a1 x + a2 x + a3 x + = an xn (1)
n=0
which converges on some interval I = (R, R), 0 < R . Since a power series can be
differentiated term-by-term to produce a new series with the same radius of convergence,
we have
X
y 0 = a1 + 2a2 x + 3a3 x2 + = nan xn1 (2)
n=1
223
Substituting (1) and (2) into the differential equation, we get
X
X
n1
nan x an xn = 0 (3)
n=1 n=0
or
(a1 + 2a2 x + 3a3 x2 + ) (a0 + a1 x + a2 x2 + a3 x3 + ) = 0
which can be written
a1 a0 = 0, 2a2 a1 = 0, 3a3 a2 = 0,
and, in general, nan an1 , n = 1, 2, 3, . . .. We can use this formula to express each
coefficient an , n 1 in terms of a0 .
a1 a0 a2 a0 an1 a0
a1 = a0 , a2 = = , a3 = = , . . . an = = , ...
2 2 3 23 n n!
Setting a0 = C, an arbitrary constant, and substituting these equations into (1), we have
X C n X xn
y(x) = x =C . (4)
n! n!
n=0 n=0
Of course, we recognize the power series in (4) as the Maclaurin series expansion of ex so
we get, as expected, the solution y = Cex .
The calculations involved in substituting the power series for y and y 0 into the differ-
ential equation can be organized using summation notation. In the example we obtained
equation (3)
X X
n1
nan x an xn = 0
n=1 n=0
The index of summation, n, is a dummy variable, comparable to the variable of integration
in a definite integral, and so changes of indices are possible. In particular, if we let m = n1,
(which means n = m + 1), then the first summation in (4) can be written
X
X
nan xn1 = (m + 1)am+1 xm .
n=1 m=0
224
or
X
[(m + 1)am+1 am ] xm = 0
m=0
from which it follows that
(m + 1)am+1 am = 0, m = 0, 1, 2, . . . . (5)
Thus, the coefficients in the power series expansion of the solution can be obtained by
a0
solving (5), a so-called first order recursion formula whose solution is am = .
m!
The form of the power series in Example 1, that is, powers of x, was chosen for
convenience. In general, the form of the assumed power series is usually dictated by the
particular equation or by an initial-value problem whose solution is sought.
y 0 y = 2ex , y(1) = 0.
Assume that the solution has a power series expansion of the form
X
y= an (x 1)n . (1)
n=0
Note that we chose an expansion about x = 1 since the initial value is specified at 1. The
derivative of y is:
X
0
y = nan (x 1)n1 . (2)
n=1
x
The Taylor series expansion of e in powers of (x 1) is:
X (1)n e1
ex = (x 1)n. (3)
n!
n=0
Substituting (1), (2), and (3) into the differential equation, we get
X X X (1)n e1
nan (x 1)n1 an (x 1)n = (x 1)n . (4)
n!
n=1 n=0 n=0
225
which can be written as
X X (1)n e1
[(n + 1)an+1 an ] (x 1)n = (x 1)n.
n!
n=0 n=0
2e1 2 1 2e1
a0 a1 = 2e1 , 2a2 a1 = , 3a3 a2 = 2!, 4a4 a3 = , ...
1! e 3!
Therefore,
a0 a0 2e1 a0
a1 = a0 + 2e1 , a2 = , a3 = + , a4 = , ...
2! 3! 3! 4!
Assuming that the pattern continues, we find that
a0
, n even
n!
an = 1
a0 + 2e
n odd
n! n!
Applying the initial condition y(1) = 0 in (1), we get
X
0 = y(1) = an (1 1)n = a0
n=0
In the next example we find a powers series solution of a second order equation.
y 00 + y = 0.
As you know from Chapter 3, the general solution of this equation is y = C1 cos x+C2 sin x.
226
Assume that the differential equation has a power series solution of the form
X
y = a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + = an xn (1)
n=0
which converges on some interval I = (R, R), 0 < R . Differentiating twice, we have
X
y 0 = a1 + 2a2 x + 3a3 x2 + 4a4 x3 + = an xn1 ,
n=1
X
y 00 = 2a2 + 2 3a3 x + 3 4a4 x2 + = n(n 1)an2 xn2 , (2)
n=2
Substituting (1) and (2) into the differential equation, we get
X
X
n(n 1)an2 xn2 + an xn = 0 (3)
n=2 n=0
To add these two series we change the index of summation in the first series by setting
m = n 2, and we set and m = n in the second series. The result is
X
X
m
(m + 2)(m + 1)am+2 x + am xm = 0
m=0 m=0
or
X
[(m + 2)(m + 1)am+2 + am ] xm = 0.
m=0
From this equation we get the second order recursion formula
Therefore,
a0 2 a1 3 a0 4 a1 5
y = a0 + a1 x
x x + x + x . . ..
2! 3! 4! 5!
Rearranging the terms and factoring out a0 and a1 , we get
x2 x4 x3 x5
y = a0 1 + . . . + a1 x + ...
2! 4! 3! 5!
which is
X (1)n 2n
X 1)n
y = a0 x + a1 x2n+1 = a0 cos x + a1 sin x.
(2n)! (2n + 1)!
n=0 n=0
227
In the preceding examples, the differential equation had constant coefficients. The power
series method can also be applied to equations with nonconstant coefficients.
y 00 xy = 0
in powers of (x 1).
Set
X
y(x) = an (x 1)n . (1)
n=0
We differentiate twice and substitute into the differential equation to get
X
X
n2
n(n 1)an (x 1) x an (x 1)n = 0.
n=2 n=0
Before we can manipulate the series and combine the coefficients of the powers of (x 1),
we must write the coefficient x in terms of x 1; x = (x 1) + 1. We now have
X
X
n2
n(n 1)an (x 1) [(x 1) + 1] an (x 1)n =
n=2 n=0
X
X
X
n(n 1)an (x 1)n2 (x 1) an (x 1)n an (x 1)n =
n=2 n=0 n=0
X
X
X
n2 n+1
n(n 1)an (x 1) an (x 1) an (x 1)n = 0
n=2 n=0 n=0
228
and
1 1 1
y2 (x) = (x 1) + (x 1)3 + (x 1)5 + (x 1)5 +
6 12 120
are linearly independent. Therefore (2), with a0 and a1 being two independent arbitrary
constants, is the general solution of the given differential equation.
Exercises 6.2
Find power series representations of the general solution of each of the following
differential equations. Express your powers series solutions in terms of elemen-
tary functions whenever possible.
1. y 00 + 4y = 0 in powers of x.
2. y 00 + xy = 0 in powers of x.
3. y 00 x2 y 0 y = 0 in powers of x.
6. (1 + x2 )y 00 + 2xy 0 = 0 in powers of x.
8. x2 y 00 xy 0 + 2y = 0 in powers of (x 1).
9. (1 + x2 )y 00 4xy 0 + 6y = 0 in powers of x.
15. y 00 y = ex in powers of x.
229
1
17. y 00 2xy 0 + 2y = in powers of x.
1x
18. y 00 xy 0 = ln(1 + x) in powers of x.
(a) Give a necessary and sufficient condition for the equation to have a polynomial
solution.
(b) Give a necessary and sufficient condition for the equation to have exactly one
polynomial solution and one power series solution.
(c) Give a necessary and sufficient condition for the equation to have only polynomial
solutions.
230