Math 129 Section 005H Lecture 39: Taylor series solutions to differential equations (Ch. 11 supplement)11 1 This document is licensed under a Creative Commons Attribution 3.0 United States License

Alternative method

(Monday, November 22, 2021)

An alternate (but mathematically equivalent) method is by repeated differentiation. This is illustrated by the following example.

Suppose we want to solve

y′′(x)+y(x)+y(x)=0,y(0)=1,y(0)=2.

As usual, we write

y(x)=C0+C1x+C2x2+.

Now: if we just plug x=0 into the differential equation, we get

y′′(0)+y(0)+y(0)=0.

With the initial conditions, this means we have

y(0)=1,y(0)=2,y′′(0)=-y(0)-y(0)=-3.

From this, we already know

y(x)=1+2x-32!x2+.

To get the next term in the Taylor series, we can differentiate the differential equation:

ddx(y′′(x)+y(x)+y(x))=y′′′(x)+y′′(x)+y(x)=0.

Plugging in x=0, we get

y′′′(0)+y′′(0)+y(0)=0

so that y′′′(0)=-y′′(0)-y(0)=-3-2=-5 and

y(x)=1+2x-32x2-53!x3+,

and so on. Which method to use is a matter of preference, and also depends a bit on the form of the differential equation – this method is simpler when repeated differentiation is easy to perform.