Lesson 19 - Taylor Polynomial, Power Series and Shifting Index

Let the function y(x) have derivatives of all orders in an interval centered at the point x0. The nth degree Taylor Polynomial centered at x0 is

Pn(x)=y(x0)+y(x0)(xx0)+y(x0)2!(xx0)2+y(x0)3!(xx0)3++y(n)(x0)n!(xx0)n=k=0ny(k)(x0)k!(xx0)k

There's a lot going on here. We are essentially beginning by using the initial conditions and finding each subsequent term in the polynomial by utilizing the derivatives of the given differential equation.

Example 1

Find the third degree polynomial approximating the solution of the differential equation.

y=siny+ex, y(0)=0

First, notice that our DE contains x and y and we are given the initial conditions. Let's solve for y(0).

y(0)=sin(0)+e(0)
y(0)=1

Next, we will find the second and third derivative of the equation, recalling chain rule from fundamental calculus.

y(x)=cos(y)y+ex

Using our initial conditions and the condition we found above, let's solve for y(0).

y(0)=cos(0)(1)+e(0)
y(0)=2

Lastly, let's do the same with the third derivative.

y(x)=sin(y)(y)2+cos(y)y+ex
y(0)=sin(0)(1)2+cos(0)(2)+e(0)
y(0)=3

Now we have the first 3 terms for the solution approximation, using the method above.

P3(x)=0+x+2x22!+3x33!

The Taylor polynomial P3(x) gives a way to approximate the solution y(x) of the differential equation near x=0. It uses the initial condition and the first three derivatives of y(x) to describe how the solution behaves close to that point. Each term in the polynomial adds more detail about how y(x) changes, but the further you move from x=0, the less accurate the approximation becomes. This method is especially helpful when finding an exact solution is too difficult, providing a simple way to estimate y(x) around the starting point.

Try for Yourself

  1. Determine the first three non-zero terms of the solution of y=x2+y2, y(0)=1.
  2. Find the first three non-zero terms approximating the solution of the differential equation: y+siny=0, y(0)=1, y(0)=0.
  3. Find the fourth degree polynomial approximating the solution of the differential equation: y+3y+x2y=0, y(0)=10, y(0)=5.

Power Series

A power series has the general form n=0an(xx0)n. In the general form, the index of the series begins at n=0. For instances in which the starting index does not start at 0, we must implement a shift of index.

Shifting the index of a power series means changing where the summation starts to make the terms easier to work with. This is done by replacing the index n with something like k+c, where c is a constant. This adjustment reorganizes the terms so that the powers of x or the coefficients match up, which is helpful when combining series or solving equations.

Example

Express the following series as a series where the generic terms is xk.

n=2n(n1)anxn2

We want xn2 to be equivalent to xk. So, we will substitute n2=k. Now, we can replace xn2 with xk. We also have a relation between n and k. Since n2=k, we can say that n=k+2. Now, let's substitute all values of n.

n=2n(n1)anxn2 k+2=2(k+2)((k+2)1)ak+2x(k) k=0(k+2)(k+1)ak+2xk

Notice the index shifted from n=2 to k=0.

Try for Yourself

  1. n=1ann+3xn+3
  2. n=1nanxn1

We can also show that two summations are the same.

Example

Show that x2n=0n(n+1)anxn=n=2(n2)(n1)an2xn

Make n=n2 n+2=n

x2(n2)=0(n2)((n2)+1)an+2x(n2) x2n=2(n2)((n1)an+2x(n2)

Now, distribute x2.

n=2(n2)((n1)an+2xn

Try for Yourself

  1. Show that n=1nanxn1+n=0anxn+1 = a1+n=0[(n+2)an+2+anxn+1].

Next Lesson: Lesson 20 - Power Series Solutions

Table of Contents: Table of Contents