Power Series Solutions I - From polynomials to power series

George Pólya

In order to solve this differential equation you look at it until a solution occurs to you.

A simple strategy: Guess-and-check a single function


Pólya may have been joking when he made the comment above, but he was not far off from describing one of the basic strategies for solving differential equations. For example, suppose we wanted to find a solution to the differential equation

x2y+xyy=0.

The exponential function has treated us well in the past and has derivatives that are easy to compute, so let's start with that. Is the function y(x)=ex a solution to the differential equation? Substituting into the left-hand side of the differential equation, we obtain

x2ex+xexex=(x2+x1)ex0.

So, y(x)=ex is not a solution to the differential equation[1]. Alas.

We shouldn't really be too surprised, though. With the infinite list of possible functions to guess, the odds of randomly guessing a solution to a differential equation are worse than the odds of winning the lottery. However, just as you can increase your odds at winning the lottery by buying a bunch of tickets[2], you can increase your odds at finding a solution by making a whole bunch of guesses all at once.

A slightly better strategy: Guess-and-check a family of functions


Continuing our example, let's check an entire family of exponential functions. Is there any solution of the form y(x)=erx, where r is a real number? Once again substituting into the left-hand side of the differential equation, we obtain

x2r2erx+xrerxerx=(r2x2+rx1)erx.

Sadly, there is no value of r which makes everything cancel, so there is no value of r for which y(x)=erx is a solution. Even though we made an infinite number of guesses, they were all wrong. Once again, though, we shouldn't be too surprised. "Most" functions are not simple exponential functions, so it was always unlikely that any of the solutions to our differential equation would happen to be simple exponential functions.

Let's make one last attempt. This time let us switch from exponential functions to another family of simple functions, say powers of x. Is there a solution of the form y(x)=xr for some number r? Substituting into the left side of the differential equation, we obtain

x2r(r1)xr2+xrxr1xr=(r21)xr.

Notice that when r=±1 we do indeed obtain zero. In other words, the functions y1(x)=x and y2(x)=x1 are both solutions to the differential equation. In fact, our work shows that these are exactly the two values of r for which y=xr is a solution to our differential equation. In any case, we have successfully found not just one but two solutions to our differential equation. Even better, these two functions are linearly independent[3] and so the general solution to our differential equation is the generic linear combination of these two solutions, i.e.,

y(x)=c1x+c2x1.

A more realistic example

The previous example is a bit misleading. Just as "most" functions are not simple exponential functions, it's also true that "most" functions are not monomial functions, i.e., simple powers of x. For example, let's now consider the differential equation below, which is only slightly different than previous:

(x21)y6xy+12y=0.

It's hard to detect any definitive qualitative difference between this differential equation and the last. Both are second-order, linear homogeneous differential equations. In both, the coefficient of y is a quadratic polynomial in x, the coefficient of y is a linear polynomial in x, and the coefficient of y is a constant.

So, is there a solution to this new differential equation of the form y(x)=xr for some number r? Plugging into the left side of the differential equation, we find

(x21)r(r1)xr26xrxr1+12xr=(r27r+12)xr(r2r)xr2.

It's a fact that for every value of r, the set of functions {xr,xr2} is linearly independent. It follows that y=xr is a solution to our differential equation exactly when r27r+12=0 and r2r=0. The solutions to the second equation are r=0,1, neither of which is also a solution to the first equation. Thus, there is no value of r for which y(x)=xr is a solution to the differential equation.

Pushing our strategy further: Looking for polynomial solutions


It is clear that restricting ourselves to monomial functions is too limiting. We need a larger family of functions to test. A natural candidate is a family of sums of polynomials. Suppose we knew (or had reason to believe) there was a solution to our differential equation that was a cubic polynomial, i.e., of the form y(x)=a0+a1x+a2x2+a3x3. We can find that solution just as before, by substituting into the left side of the differential equation and looking to see what---if any---choices of the coefficients result in a solution. In our case, after plugging in our candidate cubic polynomial and simplifying, we find

(x21)y6xy+12y=(12a02a2)(6a16a3)x+2a2x2.

In particular, we see that the cubic polynomial is a solution exactly when the coefficients satisfy the following three equations:

12a02a2=06a16a3=02a2=0

Solving this system, we find that a0=a2=0 and a1=a3. In other words, we have found that our cubic polynomial is a solution to our differential equation exactly when it is of the form

y(x)=a1x+a1x3=a1(x+x3).

Put another way, the function y1(x)=x+x3 is a solution to our differential equation, and every solution to our differential equation given by a cubic polynomial is just a scalar multiple of y1(x).

Compared with our earlier example, we can only call this a partial success. We have found a nontrivial solution to our differential equation, but we found only one solution (up to scaling). For a second-order, linear, homogeneous differential equation we expect a two-dimensional space of solutions. We expect to find two linearly independent solutions.

What is the second solution? It is a not a cubic polynomial, since we found all of those. In fact, we actually already found all polynomial solutions of degrees less than or equal to three, since we never required a30. Our next step could be to look for polynomial solutions of degree four, then degree five, and so on, until we finally found another. This sounds incredibly tedious, and even more ominously, there would be no guarantee of success.

Can we do this more efficiently? That is, is there a way for us to test polynomials of every degree all at once? We can certainly try. All possible polynomial solutions are of the form

y(x)=a0+a1x+a2x2+,

where eventually all remaining ai are zero. So we can just substitute this into our differential equation, collect terms according to powers of x, and then set the coefficients of each power of x equal to zero.

Whoops. We've wandered into the land of power series


At this point we are effectively working with power series. After all, the only difference between a power series and a polynomial is that a polynomial ends; i.e., at some point all coefficients are zero. So why not look for solutions given by power series? They include all polynomials, plus much more. This, then, will be our first strategy for solving differential equations. We are immediately faced with answering two important questions:

Two important questions

  1. When is it a good idea to look for power series solutions? In other words, is there a way to know if a differential equation has a solution that can be represented by a power series?
  2. Assuming there exists a power series solution, how do we find it?

Suggested next notes


Power Series Solutions II - First steps with power series


  1. Remember that we're not interested in equations that are true for some values of x, but true for all values of x. In other words, the differential equation represents an equality of functions. ↩︎

  2. Not that I recommend playing the lottery. ↩︎

  3. We'll return to the property of linear independence later. ↩︎