# solving ODE using power series

by jessawells
Tags: power, series, solving
 P: 20 1. The problem statement, all variables and given/known data 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$$. 2. Relevant 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. 3. 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?

 Related Discussions Calculus & Beyond Homework 1 Introductory Physics Homework 2 Calculus & Beyond Homework 4 Calculus & Beyond Homework 5 Introductory Physics Homework 2