1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Series Solution to ODEs

  1. Jun 11, 2006 #1
    [tex] y''-6xy'+(6x^2-2)y=0 [/tex]

    [tex] y_{1} = _____________ [/tex]

    I have to solve the above equation using power series.. but I am stuck. What I have so far is:

    [tex] y=\sum_{m=0}^\infty a_{m}x^{m} [/tex]

    [tex] y'=\sum_{m=1}^\infty ma_{m}x^{m-1} [/tex]

    [tex] y''=\sum_{m=2}^\infty m(m-1)a_{m}x^{m-2} = \sum_{m=0}^\infty (m+2)(m+1)a_{m+2}x^{m} [/tex]


    [tex] \sum_{m=0}^\infty (m+2)(m+1)a_{m+2}x^{m} - 6\sum_{m=1}^\infty ma_{m}x^{m} + 6\sum_{m=2}^\infty a_{m-2}x^{m} - 2\sum_{m=0}^\infty a_{m}x^{m} = 0 [/tex]

    (and this is where i'm really not sure about)

    and because [tex] \inline x^{0} [/tex] occurs in the first and last series..

    [tex] 2a_{2} - 2a_{0} = 0 [/tex]

    [tex] 2(a_{2} - a_{0}) = 0 [/tex]

    and [tex] \inline x^{1} [/tex] occurs in the first, second and last series so..

    [tex] 6a_{3} - 8a_{1} = 0 [/tex]

    but.. how am i supposed to find the a's from here? Am I supposed to do something like the following?

    [tex] y = 2(a_{2} - a_{0}) + (6a_{3} - 8a_{1}) ... [/tex]

    I've looked at the textbook and sample problems but I just don't understand..

    Can anyone help me??
    Last edited: Jun 11, 2006
  2. jcsd
  3. Jun 11, 2006 #2


    User Avatar
    Science Advisor

    so, changing index as you correctly do in y" below
    [tex]y'= \sum_{m=0}^\infy (m+1)a_{m+1}x^m[/tex]

    [tex] \sum_{m=0}^\infty (m+2)(m+1)a_{m+2}x^{m} - 6\sum_{m=0}^\infty (m+1_a_{m+1}x^{m} + 6\sum_{m=2}^\infty a_{m-2}x^{m} - 2\sum_{m=0}^\infty a_{m}x^{m} = 0 [/tex]
    where I've just made the change in y'

    Not quite. Since m= 0 occurs in the second sum as well,
    [tex] 2a_2- 6a_1- 2a_0= 0[/tex]
    or just
    [tex]a_2= 3a_1+ a_0[/tex]
    so that [itex]a_2[/itex] is written in terms of [itex]a_0[/itex] and [itex]a_1[/itex].

    Again, not quite. Taking m= 1 gives
    [tex]6a_3- 12a_2- 2a_1= 0[/tex]
    which you can also write as
    [tex]6a_3- 12(3a_1+a_0)- 2a_1= 0[/tex]
    and then
    [tex]a_3= (17/3)a_1+ 2a_0[/tex]
    which doesn't look so pretty but is again in terms of [itex]a_1[/itex] and [itex]a_0[/itex].

    What you do with the general formula:
    [tex](m+2)(m+1)a_{m+2}- 6(m+1)a_{m+1}+ 6a_{m-2}- 2a_m= 0[/tex]
    depends largely on what you can do!
    It's not that difficult to set m= 2, 3, 4, ,5,... and do the calculations:
    with m= 2
    [tex]12a_4- 18a_3+ 6a_0- 2a_2= 0[/tex]
    [tex]a_4= (3/2)a_3- (1/2)a_0- (1/6)a_2[/tex]
    Now, substitute for [itex]a_3[/itex] and [itex]a_2[/itex] from above to get
    [itex]a_4[/itex] also in terms of [itex]a_0[/itex] and [itex]a_1[/itex].

    Doing that you can get formulas for the first 5 or 6 terms depending upon [itex]a_0[/itex] and [itex]a_1[/itex]. Often, that is all you can do but sometimes you can "guess" the general formula and then prove it with induction.

    Of course, [itex]a_0[/itex] and [itex]a_1[/itex] are the "undetermined constants" you expect to get from a second order differential equation. They can be determined from the initial conditions: [itex]a_0= y(0)[/itex] and [itex]a_1= y'(0)[/itex].
  4. Jun 12, 2006 #3
    Thank you for you detailed answer!

    But I am still a little confused about the part where you change the index for y'.. why did you change the index for y'?

    Since it is 6xy' wouldn't I have to do add another x to the the series? So that it becomes:

    [tex] y' = \sum_{m=0}^\infty(m+1)a_{m+1}x^{m+1} [/tex]

    In which case, the power of the x's don't match because this one is m+1 so wouldn't I have to change the index back to the original?

    [tex] y' = \sum_{m=1}^{\infty} ma_{m}x^{m} [/tex]

    I'm afraid I don't have a grasp of the fundamentals, and I find the textbook quite hard to understand. During the process of trying to figure out what is going on by looking at the textbook and sample problems, I think I make incorrect assumptions.. All I understand is that you change the series so that the power of x is all the same, and then try to figure out the undetermined constants.

    I also don't quite understand this part. The answer is supposed to be given in the form:

    [tex] y_{1} = a_{0}( \_\_\_ + \_\_\_x^2 + \_\_\_x^4 ) + a_{1}( \_\_\_x + \_\_\_x^3 ) ... [/tex]

    What is [tex] \inline y_{1} [/tex] ? Is that the same as y'? Is this the "expansion" (terminology?) for the series:

    [tex] y' = \sum_{m=1}^{\infty} ma_{m}x^{m} [/tex] ?

    I am hopelessly lost and I have so much to do! I hope you reply soon!

    Thanks again for all the help.

    (Related Topic)

    This is related so I thought you could help me out on this too. The textbook says that:

    [tex] y' = 2xy [/tex]


    [tex] 1 \cdot a_{1}x^{0} + \sum_{m=2}^{\infty}ma_{m}x^{m-1} = \sum_{m=0}^{\infty}2a_{m}x^{m+1} [/tex]

    I understand the right side (the 2xy side) but the left side I don't quite get. First of all, why is it m=2 and not m=1? The rest of that series is for y' but for y' shouldn't it be m=1 and not 2? m=2 is for y'', is it not? And the most puzzling of all is this:

    [tex] 1 \cdot a_{1}x^{0} [/tex]

    Where did this come from?!?!

    (Incidentally, the dot between 1 and a means multiplication, am I correct? I've seen this in other problems and I don't understand why they explicitly leave it in instead of just multiplying it and showing the results. Why is this? Why, for example, in this case did they not simply show it as [tex] \inline a_{1}x^{0} [/tex]? Is there a purpose to this?)
    Last edited: Jun 12, 2006
  5. Jun 12, 2006 #4


    User Avatar
    Science Advisor

    Oh blast! I misread the equation- I didn't see the "x" in "6xy' ". You are right- that x corrects the exponent so you don't need to change the index.

    I'm not sure why they are calling it y1 but that is just the general solution to the equation. Let's go back to your original (correct) equation:
    [tex] \sum_{m=0}^\infty (m+2)(m+1)a_{m+2}x^{m} - 6\sum_{m=1}^\infty ma_{m}x^{m} + 6\sum_{m=2}^\infty a_{m-2}x^{m} - 2\sum_{m=0}^\infty a_{m}x^{m} = 0 [/tex]

    As you say, when m= 0, the two "surviving" terms give you [itex]2a_2- 2a_0= 2(a_{2} - a_{0}) = 0 [/itex] so [itex]a_2= a_0[/itex].

    When m= 1, the three terms give you [itex]6a_3- 6a_1- 2a_1= 6a_3- 8a_1= 0[/itex] so [itex]a_3= (4/3)a_1[/itex].

    For m>1, we have all four terms:
    [tex](m+2)(m+1)a_{m+2} - 6ma_{m} + 6a_{m-2} - 2a_{m} = 0 [/tex]
    which you can solve for [itex]a_{m+2}[/itex]:
    [tex]a_{m+2}= \frac{(6m+2)a_m- 6a_{m-2}}{(m+2)(m+1)}[/tex]
    What I would now do is make a chart of [itex]a_m[/itex] for as many values of m as I can stand!
    [itex]a_2= a_0[/itex], [itex]a_3= (4/3)a_1[/itex], [itex]a_4= \frac{14}{12}a_2- \frac{6}{12}a_0= \frac{2}{3}a_0[/itex], [itex]a_5= \frac{20}{20}a_3- \frac{6}{20}a_1= \frac{4}{3}a_1- \frac{3}{10}a_1= \frac{31}{30}a_1[/itex], etc.
    One thing you can clearly see is that, for even n, [itex]a_n[/itex] will be a multiple of [itex]a_0[/itex] and, for odd n, [itex]a_n[/itex] will be a multiple of [itex]a_1[/itex] so the sum breaks easily into even and odd parts:
    [tex]y(x)= a_0(1+ x^2+ \frac{2}{3}x^2+\cdot\cdot\cdot)+ a_1(x+ \frac{4}{3}x^3+ \frac{31}{30}x^5+\cdot\cot\cot[/tex]

    In fact, once you see that the sum splits into even and odd parts like that, you can simplify the calculation by first taking [itex]x_0= 1[/itex] and [itex]x_1= 0[/itex] and then taking [itex]x_0= 0[/itex] and [itex]x_1= 1[/itex]. (Although, calculating through [itex]a_8= \frac{157}{180}[/itex] and [itex]a_9= \frac{109}{1134}[/itex], I don't see any obvious pattern!)

    They have just separated
    [tex]y'= \sum_{m=1}^\infty m a_m x^{m-1}[/tex]
    [tex]y'= 1\cdot a_1 x^0+ \sum{m=2}^\infty ma_m x^{m-1}[/tex]
    since [itex]a_1 x^0[/itex] is just the m= 1 term in the first sum.
    The reason they did that (I think) was that then you can change the index in the sum to get
    [tex]a_1+ \sum_{m=1}^\infty(m+1)a_{m+1}x^m[/tex]
    while the right hand side is
    [tex]xy= \sum_{m=0}^\infty a_mx^{m+1}[/itex]
    and changing the index there gives
    [tex]\sum_{m=1}^\infty a_{m-1}x^m[/itex]
    so that both sums start at m=1 and have xm. What has happened is the m=0 term has already been separated for you.

    They just wanted to make it clear (which it wasn't!) that that term was just [itex]ma_mx^{m-1}[/itex] with m= 1- that's also why they left x0 which is, of course, 1 for all x.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook