Power Series Solutions II - First steps with power series

The general strategy


Let's begin with a test example, for which our proposed method is complete overkill:

y+y=0.

Using the methods of Linear Analysis I (or simply by guessing) we can show that the general solution to this differential equation is

y(x)=c1sin(x)+c2cos(x).

Let's see how our proposed power series method plays out. For this first example let's avoid using summation notation and write everything in expanded form. The general power series centered at 0 is of the form

y=a0+a1x+a2x2+a3x3+a4x4+a5x5

Computing derivatives term by term, we then have

y=a1+2a2x+3a3x2+4a4x3+5a5x4

and

y=2a2+6a3x+12a4x2+20a5x3
Note

You can see one disadvantage of not using summation notation: each time we take a derivative we have one fewer written term. In this current example, by the time we hit the sixth derivative we would have y(6)=, which is not very much information at all! We can always go back and add more terms, but using summation notation at the outset is probably the ideal solution.

Plugging into the left side of our differential equation, we then have

y+y=(2a2+6a3x+12a4x2+20a5x3)+(a0+a1x+a2x2+a3x3+a4x4+)=(2a2+a0)+(6a3+a1)x+(12a4+a2)x2+(20a5+a3)x3
Warning

Note that we can't write down the terms for x4 and beyond, since we haven't explicitly listed those terms in y.

Our power series y is a solution to the differential equation exactly when y+y=0, and a power series equals zero (as a function) exactly when the coefficients of each power of x vanish. Based on our work above, this means y is a solution exactly when the following equations are satisfied:

2a2+a0=06a3+a1=012a4+a2=020a5+a3=0

So, our infinite collection of coefficients must satisfy an infinite collection of relations in order for the corresponding power series y to be a solution to the differential equation. What is not entirely obvious from the limited list of equations above is that what were are dealing with is a recursion relation. Although there are general methods for solving such relations, those methods are beyond the scope of our current notes. Instead, we will result to a crude but generally effective method of "bootstrapping" our way to a solution, in which we use each equation to write the unknown coefficients in terms of the coefficients with the lowest possible subscripts. In our current situation, we find that

a2=12a0a3=16a1a4=112a2=112(12a0)=124a0a5=120a3=120(16a1)=1120a1

From the limited information we have obtained, it appears that every coefficient an can be expressed in terms of a0 and a1, and that the coefficients a0 and a1 are "free." Assuming the trends continues---and we'll revisit this example shortly using summation notation---we have found that the power series solutions are those of the form

y(x)=a0+a1x12a0x216a1x3+124a0x4+1120x5+

Continuing with the assumption that all an can be written in terms of a0 and a1, we can express this more cleanly as

y(x)=a0(112x2+124x4+)+a1(x16x3+1120x5+)

This presentation exhibits y as the linear combination of two specific power series solutions, namely

y1(x)=112x2+124x4+y2(x)=x16x3+1120x5+

Now recall that the Maclaurin series for sine and cosine are

cos(x)=k=0(1)k(2k)!x2k=112!x2+14!x4sin(x)=k=0(1)k(2k+1)!x2k+1=x13!x3+15!x5

It looks like our function y1(x) is the Maclaurin series for cos(x) and our solution for y2(x) is the Maclaurin series for sin(x), but our work is not sufficient to justify that claim. We haven't explicitly determined the general pattern for the coefficients in each of our solutions, so we don't know sure sure that they forever match the terms in the two Maclaurin series.

This first example illustrates both the strengths and the weaknesses of writing power series in expanded form. Its greatest strength is in how it makes combining power series completely straightforward: we simply combine terms with like powers of x. As we will see shortly, combining power series requires a few additional steps when working with summation notation.

On the other hand, using expanded notation has several drawbacks. The most serious is the lack of explicit formulas we find in our process. We did not find a general recursion formula, just the first few instances; we did not find a general formula for the an, just the first few values. Our final answer only contained a few explicit terms, a fact which could cause us serious headaches in the real world if we need to use our solution to model the behavior of a physical system, where accuracy would likely be a concern. Using summation notation can help us mitigate some of these issues.

Using summation notation


Let's revisit the previous example, only now using summation notation. If at any point you lose track of what we are doing, you can always expand back out the sums and compare with our work above. The general power series centered at 0 is of the form

y=n=0anxn.

Taking derivatives term by term, we then have

y=n=1nanxn1

and

y=n=2n(n1)anxn2.
Question

Why does the summation for y begin at n=1? The term in y when was the constant a0, the derivative of which is 0, so that term has "disappeared" from the sum for y. You may see some authors insist that the sum for y starts at n=0. Why is that also correct? Notice that if you substitute n=0 into our formula for the sum for y, the result is 0a0x1, which just so happens to equal 0. So the result is technically correct, although it amounts to declaring that the derivative of 1 is 0x. Is that something you really want to do? It's also a risky decision, since there are examples of manipulating series in which tricks like that do not work.

The left side of our differential equation is then

y+y=n=2n(n1)anxn2+n=0anxn.

We want to combine those two series into a single power series. There are two issues that prevent us from immediately doing so. First, the two sums do not begin at the same index value: the first begins at n=2 and the second at n=0. Second, the two series are not "aligned," in the sense that the index in each sum does not correlate directly with the exponent of . Put another way, even if the two series did begin at the same value of n, if we merged them into one sum we would have

n(n(n1)anxn2+anxn),

which is not the standard representation of a power series. That's because we need to gather up the like powers of x. This step was simple when the series were written in expanded form, since we could visually match the terms with like powers. When using summation notation, however, we need to do one small extra step, called reindexing.

The process of reindexing a summation is analogous to a basic change of variables in an integral. We are going to shift the indices in each of our summations so that the new index exactly matches the power of x inside the sum. In the first summation, we see that our terms are multiples of xn2, so we will switch to a new index m defined by m=n2. We now replace every appearance of n in that summation with m+2:

n=2n(n1)anxn2=m=0(m+2)(m+1)am+2xm.

It is important to note that we haven't done anything to the series. Both summations above describe the series

21a2n=2,m=0+32a3xn=3,m=1+43a4x2n=4,m=2+

Notice how the index n matches with the subscript on an, while the index m matches with the power of xm. If we wanted to combine terms with the same coefficient an, we would use the index n. Since we want to combine terms with the same xm, we'll use the index m.

We do the same thing to the second sum above (the one representing y), although in that case we make the trivial reindexing m=n. Our work now looks like

y+y=n=2n(n1)anxn2+n=0anxn=m=0(m+2)(m+1)am+2xm+m=0amxm=m=0((m+2)(m+1)am+2+am)xm
A happy coincidence

It is convenient that both sums now begin at m=0, but that is only a happy coincidence in this example.

We now have a general formula for y+y, as opposed to our previous method which only provided the terms up through x2. To confirm we have reproduced our previous calculation, we can expand out the last line above:

m=0((m+2)(m+1)am+2+am)xm=(2a2+a0)+(6a3+a1)x+(12a4+a2)x2+(20a5+a3)x3+

It has taken a few more steps, but what we have gained is a precise formula for every term in the power series for y+y. Returning to the task at hand, y is a solution to our differential equation exactly when y+y=0. Based on our power series representation for y+y, this happens exactly when

(m+2)(m+1)am+2+am=0

for every integer m0. This is what we will call our master relation. It dictates the relationships the coefficients an must satisfy in order for our power series to be a solution to the differential equation.

At this point we sync up with our previous method, using the bootstrapping method to write each an in terms of a0 and a1. However, we can now crank out as many an as we desire. Just as before, we find

a2=12a0from m=0,a3=16a1from m=1,a4=124a0from m=2,a5=1120aafrom m=3

Thus, our general power series solution is of the form

y(x)=a0+a1x12a0x216a1x3+124a0x4+1120a1x5+

If we needed another term, we could proceed to m=4, and so on.

Notice that our recursion relation tells us that each an is a multiple of an2. This proves[1] that every an can be written as a multiple of either a0 or a1, and so we are justified in writing

y(x)=a0(112x2+124x4+)y1(x)+a1(x16x3+1120x5+)y2(x)

Before moving on to a second example, we should point out two features of the current example that are not representative of what we will see in general.

First, in this example each an ended up equaling a multiple of either a0 or a1. This is not something you should generally expect. It is akin to computing a Taylor series and discovering that all even coefficients vanish. We will soon see that for a second-order, linear, homogeneous differential equation, we should instead expect each an to be a linear combination of both a0 and a1.

Second, in this example (and many others) you might be able to deduce a pattern for the an. In our current example, for instance, it's not hard to show that

an={(1)n/2n!a0, for even n(1)(n1)/2n!a1, for odd n

In terms of our particular solutions y1(x) and y2(x), this means we have explicit formulas

y1(x)=n=0n even(1)n/2n!xn=112!x2+14!x416!x6

and

y2(x)=n=0n odd(1)(n1)/2n!xn=x13!x3+15!x517!x7

Against all odds these are recognizable power series: they are the Maclaurin series for cosine and sine, respectively. We have thus actually shown that the general solution to the differential equation is

y(x)=a0cos(x)+a1sin(x),

which at last aligns with our very first observations about this differential equation. This is nice but incredibly rare. You should consider the decision to work with power series akin to checking into Hotel California: you can check in, but you can never leave.

Suggested next notes


Power Series Solutions III - A more representative example


  1. For example, a6 is a multiple of a4, which in turn is a multiple of a2, which is itself a multiple of a0. So a6 is ultimately a multiple of a0. In general, if n is even then an is a multiple of a0; if n is odd, then an is a multiple of a1. ↩︎