Solving an ODE using a power series

jessawells
Messages
18
Reaction score
0

Homework Statement



solve the initial value problem:

x(2-x)y'' - 6(x-1)y' - 4y = 0
y(1)=1
y'(1) = 0

hint: since the initial condition is given at x_0 = 1, it is best to write the solution as a series centered at x_0 = 1.

Homework Equations


I have attempted the question, but I got stuck in one of the steps. Here's what I have so far:

assume the solution can be written as a power series centered about x = 1. Then the solution and its derivatives are:


y(t) = \displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n}

y'(t) = \displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}

y''(t) = \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}

where the a_n are constant coefficients.



The Attempt at a Solution



Substitute y, y', and y'' into the ODE in order to determine the a_n:

x(2-x)\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}-6(x-1)\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

(1-(x-1)^2)\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}-6(x-1)\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n ((x-1)^{n-2}- (x-1)^n)}-6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}- \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^n} -6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

now I need to shift indices to make all the exponents of (x-1) equal to n, and also to try to make all the summations start at n=0:

\displaystyle\sum_{n=0}^{\infty}{(n+2)(n+1) a_{n+2} (x-1)^n}- \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^n} -6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0


I don't know how to proceed from here. I have 4 summations. Two of them start at n=0 and has the (x-1)^n factor. The other two summations start at n=2 or n=1. I can't get them to start at n=0 because if I try to do that, then I get:

\displaystyle\sum_{n=0}^{\infty}{(n+2) (n+1) a_{n+2} (x-1)^{n+2}}

and

6\displaystyle\sum_{n=0}^{\infty}{(n+1) a_{n+1} (x-1)^{n+1}}

As you can see, these have the factors (x-1)^{n+2} and (x-1)^{n+1} instead of (x-1)^n. So I don't know how to combine all this, since the summations do not start at the same number.

--------------------------------------------------------------
I'm told that in the end, the answer to the coefficients should be:

a_{2n} = (n+1)a_0 and a_{2n+1} = \frac{2n+3}{3}a_1

So I just don't know how to get from the point I'm stuck to this answer. I'm also quite confused as to how to solve the initial value problem, after obtaining the expected answer. The initial conditions are: y(1)=1, y'(1) = 0. Using the initial condition y(1) = 1, I get:

y(1)= \displaystyle\sum_{n=0}^{\infty}{a_n ((1)-1)^n}
1 = \displaystyle\sum_{n=0}^{\infty}{a_n (0)
1 = 0

This does not make sense...what am I doing wrong?
 
Physics news on Phys.org
jessawells said:

Homework Statement



solve the initial value problem:

x(2-x)y'' - 6(x-1)y' - 4y = 0
y(1)=1
y'(1) = 0

hint: since the initial condition is given at x_0 = 1, it is best to write the solution as a series centered at x_0 = 1.

Homework Equations


I have attempted the question, but I got stuck in one of the steps. Here's what I have so far:

assume the solution can be written as a power series centered about x = 1. Then the solution and its derivatives are:


y(t) = \displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n}

y'(t) = \displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}

y''(t) = \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}

where the a_n are constant coefficients.



The Attempt at a Solution



Substitute y, y', and y'' into the ODE in order to determine the a_n:

x(2-x)\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}-6(x-1)\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

(1-(x-1)^2)\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}-6(x-1)\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^{n-1}}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n ((x-1)^{n-2}- (x-1)^n)}-6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

\displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^{n-2}}- \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^n} -6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0

now I need to shift indices to make all the exponents of (x-1) equal to n, and also to try to make all the summations start at n=0:

\displaystyle\sum_{n=0}^{\infty}{(n+2)(n+1) a_{n+2} (x-1)^n}- \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^n} -6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0


I don't know how to proceed from here. I have 4 summations. Two of them start at n=0 and has the (x-1)^n factor. The other two summations start at n=2 or n=1. I can't get them to start at n=0 because if I try to do that, then I get:

\displaystyle\sum_{n=0}^{\infty}{(n+2) (n+1) a_{n+2} (x-1)^{n+2}}

and

6\displaystyle\sum_{n=0}^{\infty}{(n+1) a_{n+1} (x-1)^{n+1}}

As you can see, these have the factors (x-1)^{n+2} and (x-1)^{n+1} instead of (x-1)^n. So I don't know how to combine all this, since the summations do not start at the same number.

--------------------------------------------------------------
I'm told that in the end, the answer to the coefficients should be:

a_{2n} = (n+1)a_0 and a_{2n+1} = \frac{2n+3}{3}a_1

So I just don't know how to get from the point I'm stuck to this answer. I'm also quite confused as to how to solve the initial value problem, after obtaining the expected answer. The initial conditions are: y(1)=1, y'(1) = 0. Using the initial condition y(1) = 1, I get:

y(1)= \displaystyle\sum_{n=0}^{\infty}{a_n ((1)-1)^n}
1 = \displaystyle\sum_{n=0}^{\infty}{a_n (0)
1 = 0

This does not make sense...what am I doing wrong?
After you have
\displaystyle\sum_{n=0}^{\infty}{(n+2)(n+1) a_{n+2} (x-1)^n}- \displaystyle\sum_{n=2}^{\infty}{n (n-1) a_n (x-1)^n} -6\displaystyle\sum_{n=1}^{\infty}{n a_n (x-1)^n}-4\displaystyle\sum_{n=0}^{\infty}{a_n (x-1)^n} = 0
Do the n= 0 and n= 1 separately.

When n= 0, the terms that start at n=0 give you (0+2)(0+1)a0+2- 4a0= 2a2- 4a0= 0 so a2= 2a0

When n= 1, the terms that start at n= 1 give you (1+2)(1+1)a1+2- 6(1)a1- 4a1= 0 so 2a3= 10a1 and a3= 5a1.

After that, you can use all the terms for n> 1.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top