Generating Functions from Recurrence Relations

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Here are a couple examples of how to find a generating function when you are supplied with a recursive definition for a sequence.

Комментарии • 76

  • @aliwaseem5990
    @aliwaseem5990 2 года назад

    I have exam tomorrow, my teacher explained in Russian and I didn't understand anything. Now I see the full picture, Thanks a lot.

  • @kaj-michaellang4716
    @kaj-michaellang4716 6 лет назад +1

    My lecturer didn't explain this as clearly, now I actually got it. Thanks a bunch!

  • @vismarkjuarez1190
    @vismarkjuarez1190 9 лет назад

    Kenneth Rosen's incompetence brought me here. But this is gold! Thanks for the upload.

  • @mzdixiedapixie
    @mzdixiedapixie 12 лет назад

    Very clear, very helpful. Really appreciate you taking the time to create this video!

  • @tuannguyentranle7151
    @tuannguyentranle7151 3 года назад

    Thanks you Sir, love you from Viet Nam

  • @yomnaeid9767
    @yomnaeid9767 8 лет назад +1

    It helped me on the night of the exam.. Thank you!

  • @SUPERGOOSE-LLC
    @SUPERGOOSE-LLC 6 лет назад

    A BIG thanks for this. Still helping me in 2018!

  • @darkexodus6404
    @darkexodus6404 Год назад

    Wonderfully explained! Thank you!!

  • @sylvainbolduc9392
    @sylvainbolduc9392 9 лет назад

    YOU ARE A LIFE SAVIOR, I HATE DISCRÈTE MATHS, THANKS FROM U OF MONTREAL!!!

  • @rivierasperduto7926
    @rivierasperduto7926 2 года назад

    This has helped me out so much thank you so much.

  • @mayurd23
    @mayurd23 10 лет назад +9

    In the second example, how do you get that generating function for 3x^2+3x^3 as 3x^2/(1-x) ??? and why it is necessary to calculate Generating Function for that part ??
    Hope, I'm not asking anything stupid.

    • @oscarlevin
      @oscarlevin  10 лет назад +17

      If it was just those two terms (3x^2 + 3x^3) we would leave it like that. But we have infinitely many terms (a generating series: 3x^2 + 3x^3 + 3x^4 + ...) Luckily we realize this is very similar to the generating series 1 + x + x^2 + x^3 + ..., which is equal to 1/(1-x). To get our generating series we must multiply every term by 3x^2, so we have 3x^2/(1-x). Now that we have simplified the infinite part of the series, we can solve for A.

    • @mayurd23
      @mayurd23 10 лет назад +1

      Mathematics Exemplified Okay Okay, it means while finding A, if we encounter a new generating series, we have to normalize that to get the actual A..
      Thank You so much sir.

  • @syremusic_
    @syremusic_ 4 года назад

    This is good. This is really really good.

  • @ankitmaity
    @ankitmaity 5 лет назад

    Saved me before endsems! Amazing content.

  • @danielmalo1753
    @danielmalo1753 5 лет назад

    The explanation I needed

  • @_extremily
    @_extremily 9 лет назад +1

    It helped me so much! Thank you!

  • @drhalloweenhotmail
    @drhalloweenhotmail 12 лет назад

    You're a legend! This helped so much, thanks!

  • @and1fer
    @and1fer 9 лет назад

    Thank you sir. You were of great help.

  • @acko741
    @acko741 9 лет назад

    I had to to an assignment and coudn't understand anywhere how to do it. 5 minutes in this video I was able to get the generating functiong from my recurrence!

  • @perfectsolutions9728
    @perfectsolutions9728 7 лет назад +2

    please guide how the values 1,3,10,32 are comes from?

  • @bikichaudhary659
    @bikichaudhary659 9 лет назад

    That's Greart....I understand it for the first time only.

  • @bigcatsworldadaptedpintere7277
    @bigcatsworldadaptedpintere7277 5 лет назад

    Thank you so much .that was very nice

  • @Firehazard21
    @Firehazard21 11 лет назад

    Thank you very much, this was very helpful to me.

  • @yashkant18
    @yashkant18 10 лет назад

    Thanks sir it helps me a lot.

  • @oscarlevin
    @oscarlevin  11 лет назад

    I'm not sure what you mean. The only way to get 0 on the right hand side is if your sequence is constant 0. But then the generating function is 0.

  • @daghermusic
    @daghermusic 9 лет назад

    Thanks a lot for this video!

  • @confessions92
    @confessions92 7 лет назад

    That really helped me a lot! Thanks so much!:D

  • @mastermind5856
    @mastermind5856 6 лет назад +1

    Best best best best best best best

  • @dongwoo1005
    @dongwoo1005 8 лет назад

    Great easy to understand video. But isn't sum_(i=2)^(infinity) 3x^i = -3x^2/1-x? How come you got it in positive? And do you basically ignore the constant term like 3 in the second example when calculating? And what is the resulting A actually outputting? How is it related to the recursive sequence?

    • @oscarlevin11
      @oscarlevin11 8 лет назад

      +dongwoo1005 The infinite sum is positive 3x^2/(1-x). Note that if you ask Wolfram Alpha about this, they claim it is -3x^2/(x-1), but they have switched the denominator. I'm not really sure what you mean about ignoring the constant terms. The 3 in the second example is why we have all the 3's after subtracting.
      As for what the A is actually outputitng: it is not outputting anything. A generating function is not a function of x. That is, you do NOT plug in a value for x to get a value of the function. Rather, a generating function is a nice closed formula whose power series "displays" the terms of a sequence as the coefficients.

  • @kunalarora4428
    @kunalarora4428 8 лет назад

    awesome step by step explanation....:)
    it would had been better if you went in deep with more examples and explanation

  • @kuttearisruthi
    @kuttearisruthi 12 лет назад

    Superb explanation thanks a loTT :D

  • @srinathsai1459
    @srinathsai1459 7 лет назад +1

    how did u get 3x2 divided by 1-x in second example

  • @compresswealthdivideeconom3757
    @compresswealthdivideeconom3757 2 года назад

    So what are the a(n) formulas in terms of n after finding the generating functions?

  • @shalindashora7257
    @shalindashora7257 3 года назад

    Sir I liked your video but one thing I didn't understand in genrating function video is that what if directly sequence is given to us for ex 1,6,216,.....then how to proceed?

  • @UA441
    @UA441 8 лет назад

    thanks for the video!

  • @mustafabadakhsh682
    @mustafabadakhsh682 6 лет назад

    But the formula does not work for other values of n. For example when x=1, the formula gives 2/5 which is not the same as 3. May be I am wrong but I am just confused.

    • @oscarlevin11
      @oscarlevin11 6 лет назад +1

      A is a generating function, not a closed formula for the nth term of the sequence. You do not plug in values for x. Instead, we have found a function that is equal to an infinite power series whose coefficients are the terms in the sequence.

  • @biocuts
    @biocuts 11 лет назад

    Amazing!

  • @nengiscrib
    @nengiscrib 12 лет назад

    Thank You

  • @christiediandranatalia260
    @christiediandranatalia260 9 лет назад

    i'm confused but why would you multiply it with 2x over and over again? thx

  • @redfayl
    @redfayl 12 лет назад

    Thank you

  • @christianneisler1488
    @christianneisler1488 3 года назад

    Hello, how would we use this process if the an term was not 1? thanks

  • @Leo-fw7jo
    @Leo-fw7jo 5 лет назад

    thanks for nice video. How do you start if you were not given recursive function but you were given only sequence. For example how do you do this sequence : 2,6,12,20,30,42,......?

    • @oscarlevin11
      @oscarlevin11 5 лет назад

      You need to find a recurrence relation for the sequence. In that case, if you look at the difference between terms, you should notice a pattern. Better yet, if you know where the sequence comes from (i.e., what it models) then you can usually find the recurrence relation from that.

    • @Leo-fw7jo
      @Leo-fw7jo 5 лет назад

      Oscar Levin thanks for reply. Given recurrence relation I can find the closed formula easily but the point is how do you create the recurrence relation given only sequence (without any initial value, no clue at all). Can you explain on those two specific sequences I gave
      A) 2,6,12,20,30,42,....
      B) 1,0,-2,2,6,12,20,30,42,...

  • @scoutwilkins6714
    @scoutwilkins6714 4 года назад

    What if you have a_{n+1} instead of a_{n-1}?

  • @jigishapurohit4375
    @jigishapurohit4375 10 лет назад +1

    how did u get d sequence 1,3,10,32, and in second example 2,2,9,16,37

    • @oscarlevin11
      @oscarlevin11 10 лет назад +1

      Using the recurrence relation. For the first example, you are given that a_0 = 1 and a_1 = 3, so there are your first two terms. Then you know that each term a_n = 2 a_{n-1} + 4 a_{n-2}. So to get the next term, you take 2*3 + 4*1 = 10. The term after that is 2*10 + 4*3 = 32. And so on.

    • @likithareddy4627
      @likithareddy4627 6 лет назад

      a0 = 1 and a1 = 3 so a2 = 10 and so on..

  • @DJTrancenergy
    @DJTrancenergy 11 лет назад

    what if the constants are complex and their addition is different than 1?

  • @karthickpavan3388
    @karthickpavan3388 9 лет назад

    in sequence order that u took 1,3,10,32... i have dout on hw should take sequence order from 10 will u plz explain tht

  • @akrocksful
    @akrocksful 10 лет назад

    in second example why you multiply both sides by 'x'...as in first example you multiply both sides of equation with 2.........Please explain this and tell me the general defination of generating function

    • @oscarlevin11
      @oscarlevin11 10 лет назад

      In the first example you multiply both sides by 2x. You need to multiply by x or x^2 to "shift" the terms of the series over. A generating function for some sequence is just a function which has an infinite power series whose coefficients are the terms in the sequence. That is, in the infinite power series, the coefficient of x^n is the nth term of the sequence. Multiplying by 2x doubles each term, but also puts the coefficients onto the next power of x.

  • @aliffikri6341
    @aliffikri6341 8 лет назад

    hello sir, can you explain for more detail. how you get 3x^2/(1-x) in second example through generating function for 3x^2+3x^3?

    • @oscarlevin11
      @oscarlevin11 8 лет назад

      +Alif fikri You need to know the generating function for 1 + x + x^2 + ..., which is 1/(1-x). Now notice we are just multiplying through by 3x^2.

  • @rafaelpuff
    @rafaelpuff 10 лет назад

    I'm sorry, could anyone help? I really don't get this. In first example, we have A=((1+x)/(1-2x-4x²)). If x=0, then A=1, that's correct, because a0=1. However, if x=1 then A=-2/5. Shouldn't it be 3?

    • @oscarlevin
      @oscarlevin  10 лет назад +3

      Hi Puff R. Sorry for the tardy reply. It appears you are trying to get the terms of the sequence by plugging in values for x. That is not what a generating function does. I am not claiming that A is a closed formula for the x-th term of the sequence. A generating function is some function whose power series has the terms of the sequence as coefficients. The powers of x are mearly placeholders (which tell you where in the sequence you are. So if the power series has quadratic term 5x^2, that tells you that the a_2 term of the sequence is 5).

  • @techguyver1337
    @techguyver1337 10 лет назад

    do you have examples of solving more complicated recurrence relations using this method? - I can't seem to find any other workbook solving RR's quite like you.

    • @oscarlevin
      @oscarlevin  10 лет назад

      I don't right now. How much more complicated are you looking for? This method should be able to work whenever you have a "linear" recurrence relation. Do you have an example in mind?

    • @techguyver1337
      @techguyver1337 10 лет назад

      Mathematics Exemplified Thanks for the quick response - i'm about to take a mid-term and only understand the methods you use so you'll be of great help. a(subscript)k = 3a(subscript)(k−1) + 4^k−1 with initial condition a0 = 1. Although I was even having trouble with a simpler one such as a(subscript)k = 3a(subscript)(k−1)+2 with initial condition a0=1

    • @techguyver1337
      @techguyver1337 10 лет назад

      Mathematics Exemplified I guess my other question is also, in the first example you solved, how to you turn (1+x)/(1-2x-4x^2) into a closed form recurrence relation such as an = 3 *2^n or something like that?

    • @oscarlevin
      @oscarlevin  10 лет назад

      royherma
      If you have terms in the recurrence relation like the 4^k or 2, then you should basically just leave those alone. That is, do the same thing you would do without those: subtract over all the a_[something] terms to one side. Now instead of having 0 on the right hand side, you will have 4^k-1 or 2. So when you do the differencing with the generating series, you will be left with the generating series for 4^k-1 or 2 on the bottom (after the subtraction). You should know generating functions for these which you can use the replace all of the infinitely many non-zero terms.
      As for going from a generating function to a closed formula for a_n, I know of one usefuly trick: partial fraction decomposition. Break up the generating function into parts that you can recognize as generating functions for 3*2^n or the like. Alternatively, if you just want a closed formula, you can often skip the generating function entirely. See: ruclips.net/video/pErXD1Q_HYI/видео.html and ruclips.net/video/lPCS2FFyqNA/видео.html for example.
      I don't have time to work out videos for these right now, so I'm afraid you are on your own. Best of luck with your mid-term.

    • @techguyver1337
      @techguyver1337 10 лет назад

      alright so i guess just for the first part I would replace the constants or them 4^k-1 term with a generating function. I'm asking specifically about generating functions bc there will be a question that will ask to solve the RR using them and no other anyways, i hope it isn't a hard one - thanks.

  • @Lovedrug96
    @Lovedrug96 2 года назад

    how did u get 1,3,10,32

  • @t000111000
    @t000111000 9 лет назад

    I am confused about third position "10" if an=3 then an=2(3-1)+4(3-2)=8, is anyone know how term 3 is equal 10? Please.

    • @oscarlevin11
      @oscarlevin11 9 лет назад

      I think your confusion is in the difference between a_(n-1) and n-1. The third term is a_2 which can be found by taking 2(3) + 4(1). The 3 is a_1 and the 1 is a_0.

    • @t000111000
      @t000111000 9 лет назад

      Oscar Levin OK got it, thank you.

    • @jessecruz6241
      @jessecruz6241 9 лет назад

      Oscar Levin AT 8:58, why is it shifted to two places giving 3x^2? How did u get 1-x? Please explain further.

    • @oscarlevin11
      @oscarlevin11 9 лет назад

      hyun seul You shift over two places so that when you subtract you have like terms lined up. The 1/(1-x) is the generating function for 1 + x + x^2 + x^3 + ..., which in this case is multiplied by 3x^2.

  • @ananaybist44
    @ananaybist44 6 лет назад

    There is a black screen in your video, can't you see!

  • @tarunsinghal8840
    @tarunsinghal8840 6 лет назад

    Your video is good but is scrambling in middle

    • @oscarlevin11
      @oscarlevin11 6 лет назад

      I'm not seeing this. Can you give me a time code?

  • @oscarlevin11
    @oscarlevin11 9 лет назад

    Christie: You multiply by 2x once! But to multiply an (infinite) polynomial by 2x, you must distribute to each term.