The factorial of any number -- from 1729.

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

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

  • @n8cantor
    @n8cantor Год назад +56

    We can actually get to value of (1/2)! directly without the gamma function by using the Wallis product:
    The Wallis product is pi/2 = (2/1)(2/3)(4/3)(4/5)(6/5)(6/7)... which is equivalent to lim m-> ∞ [(2m)!!]^2/[(2m-1)!!][(2m+1)!!]
    Multiply top and bottom by (2m +1) to get pi/2 = lim m->∞ [(2m)!!/(2m+1)!!]^2 * (2m+1)
    Take the equation shown at 11:45, (1/2)! = lim m->∞ 2^m * sqrt(m+1) * m! / (2m + 1)!!
    Note that (2m)!! = 2^m * m! because you can factor a 2 out of each of the even terms in the double factorial.
    Thus, (1/2)! = lim m->∞ sqrt(m+1) * (2m)!! / (2m + 1)!!
    Note that we have that (2m)!! / (2m + 1)!! in the formula for the Wallis Product, so let's make our equation look more like that. Square both sides and multiply top and bottom of the RHS by (2m+1) to get:
    [(1/2)!]^2 = lim m->∞ (m+1)/(2m + 1) * [(2m)!! / (2m + 1)!!]^2 * (2m + 1)
    The rightmost portion is the Wallis product! We can now substitute:
    [(1/2)!]^2 = lim m->∞ (m+1)/(2m + 1) * pi/2
    This limit is very easy to evaluate and so [(1/2)!]^2 = pi/4 or equivalently, (1/2)! = sqrt(pi)/2

    • @petersievert6830
      @petersievert6830 Год назад +4

      Was on the right track, but didn't know of the Wallis Product, thanks for pointing that out

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

      Wallis product was my first thought.

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

      @@journeymantraveller3338 but i don't think that makes sense

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

      Exactly what I came here to say! I approached the problem differently by using factorial and double factorial relations and then used the Wallis product as a convergence and equivalency argument. 😊

  • @Mystery_Biscuits
    @Mystery_Biscuits Год назад +53

    I like this extension as it highlights clearly that the factorial of negative integers is undefined.

    • @aweebthatlovesmath4220
      @aweebthatlovesmath4220 Год назад +4

      I don't like the term "undefined" i think saying it has pole at negative integers has more meaning but whatever i get what you are saying...

    • @Mystery_Biscuits
      @Mystery_Biscuits Год назад +2

      @@aweebthatlovesmath4220 yeah that's a more descriptive description (ha) for sure

    • @jamiepianist
      @jamiepianist Год назад +1

      @@Mystery_BiscuitsI couldn’t describe a better description

    • @jagatiello6900
      @jagatiello6900 Год назад +1

      @@Mystery_Biscuits The Mittag-Leffler expansion of gamma explicitly shows the poles (there's an explanation on stackexchange, btw).

  • @59de44955ebd
    @59de44955ebd Год назад +7

    Fun fact: sqrt(pi)/2 is the side length of a square with the same area as a quarter unit circle, so to solve (1/2)! geometrically, we only have to square the circle ;-)

  • @GreenMeansGOF
    @GreenMeansGOF Год назад +6

    12:38 Using Stirling’s Formula(my favorite math result🤩), and a lot of algebraic manipulation, this limit is the limit of
    e*sqrt(2π)/2*(1+1/(2m))^(-2m)(1+1/(2m))^(-1)sqrt((m+1)/(2m+1))
    which equals
    e*sqrt(2π)/2*e^(-1)*1*1/sqrt(2)
    = sqrt(π)/2

  • @expl0s10n
    @expl0s10n Год назад +9

    This formula can be obtained as a corollary of the Bohr-Mollerup theorem, which states that gamma function is the only log convex extension of the factorials. For more info, see Baby Rudin, the section on Gamma function

  • @xizar0rg
    @xizar0rg Год назад +16

    As someone who is not Euler (or anywhere close), it's frustrating to look at some of these alternate representations and wonder how the hell they came up with them.

    • @mitri4939
      @mitri4939 Год назад +5

      A lot of brilliant people walked this earth

    • @iabervon
      @iabervon Год назад +2

      I think the proof makes sense as a way to find this one. You want something missing an n! from the denominator, and you want something that approximates a simple number as m gets much larger than n. If you can arrange for the error to come from adding n instead of some constant to m in each term in a product, that's going to work, and you just have to work backwards to a formula that is tidy enough to give as a definition. Of course, you'd have to be Euler to think of a complete set of actual steps, but if you're really good at all the math of 1729, I don't think it would have been too hard to come up with a plan to find this identity.

    • @kju-uu8me
      @kju-uu8me Год назад +1

      I actually derived this one myself and it is not that difficult. I used a kind of standard strategy for extending things like the factorial or the Harmonic numbers and used the fact that if you take the logarithm of the factorial it locally approaches a straight line for big inputs. Assuming that the extendet factorial is "nice" and locally approaches this straight line on non-integers you can go far out (represented by the m!), go a step on the interpolated line that turned into an exponential after removing the logarithm ((m+1)^n) and then go back using the recursion (x+1)! = (x+1) x! which is achieved by everything in the denominator. Hope this helps.

    • @Alan-zf2tt
      @Alan-zf2tt Год назад

      True my friend - very true and! While we have the internet and all its wonders who could Euler turn to in order to discuss?
      Letters and replies would probably take days or weeks
      I suppose Euler just hunkered down, reflected on being paid to do what he loved doing, picked up a quill, container of ink then a piece of parchment scratched his head and sorta worked it all out?

    • @ronald3836
      @ronald3836 Год назад +3

      I haven't even watched the video, let alone Euler's written account of this formula, but I know that Euler did tend to give some explanation and what he had tried, what did not work and what worked. So I would not be surprised if you could find some hints to how the hell he came up with this in his papers.
      Gauss worked very differently and compared himself to an architect who does not leave the scaffolding in place once the building is finished.

  • @sunritpal1037
    @sunritpal1037 Год назад +35

    From 1729, huh? Isn't that the Hardy Ramanujan number? Weird coincidence.

    • @tomaszadamowski
      @tomaszadamowski Год назад +3

      This was my first thought as well

    • @ronald3836
      @ronald3836 Год назад +11

      I remember visiting a friend in hospital. I had ridden in taxi cab number 1729 and remarked that the number seemed to me rather a dull one, and that I hoped it was not an unfavourable omen. "No," he replied, "it is a very interesting number; it is the Ramanujan-Hardy number."

    • @zlodevil426
      @zlodevil426 Год назад +9

      It’s actually the year Michael Penn was born

    • @NaN_000
      @NaN_000 Год назад +1

      ​@@ronald3836😂

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

      What has the Taxi number to do with factorials? -- interesting. Dumb me!

  • @jespermikkelsen7553
    @jespermikkelsen7553 Год назад +3

    It looks like Wallis product - sort of

  • @kapsel-yg2sk
    @kapsel-yg2sk Год назад +1

    Lines that connect did a great derivation of this formula

  • @drjmc1
    @drjmc1 Год назад +1

    The short historical background of the problem at the beginning of the video is nice for putting it into context.

  • @bjornfeuerbacher5514
    @bjornfeuerbacher5514 Год назад +6

    3:10 to 9:10 Wouldn't it be much easier and shorter to first cancel the m! in the fraction, so that you have (m+1)^n in the numerator and (m+1) (m+2) ... (m+n) in the denominator, then write that as the product of (m+1)/(m+1) times (m+1)/(m+2) times ... (m+1)/(m+n) and then argue that for m to infinity, each of these n fractions obviously goes to 1 ?!?

    • @davidg6324
      @davidg6324 Год назад +2

      Yes, this seems to be much faster and intuitive than what he did

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

      @@davidg6324 YES THANK YOU--that's what i did.but its stll an approximationSINCE its only as m approaches infinty --because we don't know how big n is remember?

  • @goodplacetostop2973
    @goodplacetostop2973 Год назад +8

    12:54

  • @spaghetti1383
    @spaghetti1383 Год назад +8

    It is interesting that this is also a representation of the gamma function. It motivates the gamma function as being the most natural extension of factorials. A video exploring its uniqueness would be appreciated, as it is the only logarithmically convex extension.

    • @Mystery_Biscuits
      @Mystery_Biscuits Год назад +2

      Could you define what you mean by a "logarithmically convex extension"

    • @spaghetti1383
      @spaghetti1383 Год назад +6

      @@Mystery_Biscuits The gamma function is the only function that extends the factorial whose logarithm is convex. That is the second derivative of the logarithm of the gamma function is always greater than or equal to zero.

    • @Mystery_Biscuits
      @Mystery_Biscuits Год назад +1

      @@spaghetti1383 Interesting. Why is that a desirable property?

    • @spaghetti1383
      @spaghetti1383 Год назад +8

      @@Mystery_Biscuits You could connect the dots between points of the factorial many ways. Requiring that extension function to be convex prevents weird zig zag paths and severely limits the options. Log convex is an even more strict condition which leaves only one option. Polynomials like x^3 are convex (concave up), but not log convex because 3*logx is concave (concave down). So the gamma function must 'increase' so fast that that there is only one possible path, deviating in the slightest would make it fail the log convex condition.

    • @Mystery_Biscuits
      @Mystery_Biscuits Год назад +3

      @@spaghetti1383 I see. Thank you for the explanation!

  • @fonaimartin98
    @fonaimartin98 Год назад +1

    No need for logarithms. Performing division by n! and simplifying by m! leaves us with (m+1)^n in the numerator and (m+1)...(m+n) in the denominator, which can be viewed as a product of *finitely many* terms of form (m+1)/(m+k), each of which converges to 1, thus their product does as well.
    Btw I came here to see a proof for the identity refered to at 11:55, a followup video on that would be cool.

  • @dugong369
    @dugong369 Год назад +1

    Instead of taking a log, cancel m! from numerator and denominator. Then you have a product of x terms on top and x terms on bottom, each of the form (m+finite number). Multiply them out and divide numerator and denominator by m^x. Now the numerator and denominator are each of the form 1+[a finite number of terms with m in the denominator]. So as m->infinity all the other terms have limit zero and the fraction is 1/1.

  • @Kamyak
    @Kamyak Год назад +5

    Another method can be to first prove for n=1(which is quite simple) and then use induction

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

      yes. But need lim(n+1 form)/lim(n form)=n+1, which is not hard to prove. The value is (n+1)\dfrac{n+m+1-n}{n+m+1} which goes to n+1.

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

    I don't know where Michael Penn grew up but I really like the way he pronounces "towards" and "orange".

  • @urnoob5528
    @urnoob5528 Год назад +3

    impractical ass formula

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

      Yeap. But then again, most formulas are. We only learn the useful ones, but we forget that some of those were discovered in the same way as with the other useless ones

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

    In my book there is extension for this formula which even works for negative non integer

  • @rocky171986
    @rocky171986 Год назад +3

    If you were going to take the ln in the end and cancel out terms, why not just do it right from the start instead of dividing things over unnecessarily?

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

    Euler wrote this in 1729? A very prophetic date!

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

    Isn't gamma function also called euler's first integral function or something like that? Isn't it also his doing as well?

  • @byronwatkins2565
    @byronwatkins2565 Год назад +2

    At 12:20, this is NOT the gamma function; why should its results be equal to the gamma function? A priori, I see no reason why their results should be equal except when x is a non-negative integer. I do not say that their results are different; I only say that these might extend the factorial function differently and that we have not demonstrated that they are the same.

  • @r.maelstrom4810
    @r.maelstrom4810 Год назад

    Euler was 21 when he wrote that... WOW.

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

    Lowercase m and n as a pair of variables in an explanation is a rather unfortunate choice - m and n look similar, and they sound similar.

  • @bartekabuz855
    @bartekabuz855 Год назад +1

    The limit for 1/2! can be evaluated easily using Striling's formula

  • @gp-ht7ug
    @gp-ht7ug Год назад +4

    aesthetically pleasing ❤️
    It would be nice to know how Euler found this limit and understand the history of mathematics

    • @Alan-zf2tt
      @Alan-zf2tt Год назад

      Any Euler historians/experts or math history experts out there?

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

    1729 was a very interesting year...

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

    we can use sterling equivalence

  • @holyshit922
    @holyshit922 Год назад +1

    After expanding this double factorial i have following result
    limit(4^m*sqrt(m+1)/((2*m+1)*binomial(2*m,m)),m=infinity)
    but can it be simplified even further ?

    • @אסיףכץ-י8ג
      @אסיףכץ-י8ג Год назад

      Yes! The Central binomial coefficient (2m nCr m) has an asymptotic expantion as 4^m/sqrt(Pi*m)*(1+O(m^-1)). From there it's a short way to sqrt(Pi)/2.

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

    Euler's extension matches the Gamma function on ℝ? Do we know that?

  • @Happy_Abe
    @Happy_Abe Год назад +1

    Is this limit and the gamma representation always equal?

    • @angeldude101
      @angeldude101 Год назад +1

      Offset by one, like the Gamma function usually is. (At least from what I can tell.)

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

    Thank you, as usual, for not saying Yooler.

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

    You mean you'd have a non positive integer there in the denominator. But this is really for yt algo.

  • @AaronFresh09
    @AaronFresh09 3 месяца назад

    Wow dude you really buried the punch line

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

    Isn't that defining factorial 'through' factorial? x!=...m!?

  • @Alan-zf2tt
    @Alan-zf2tt Год назад

    Well ... my Samsung calculator gives (0.5)! as undefined !?*?!

    • @petersievert6830
      @petersievert6830 Год назад +1

      apparently it can only do it for natural numbers... windows calculator does it alright anyway

    • @Alan-zf2tt
      @Alan-zf2tt Год назад

      @@petersievert6830 I tried gnu Calculator on linux variant and it gave (all truncated here to 4 dp)
      0.5! ~ 0.8862
      1.5! ~ 1.9817
      1.99! ~ 1.9817
      1.9999! ~ 1.998
      3.999! ~ 23.9964
      Ah well - for a cell phone calculator it could be ... a bit better ?

    • @Alan-zf2tt
      @Alan-zf2tt Год назад

      @@petersievert6830 as a ps - gnu calculator also gave me results for negative values
      -0.5! ~ 0.8862 to 4 dp

  • @daboffey
    @daboffey Год назад +1

    Wow! Defining a factorial in terms of a much larger factorial!

  • @zakiabg845
    @zakiabg845 Год назад +2

    The question is:"what's the factorial of a function f(x)"?

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

    As for the exercise, maybe it helps to know en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80
    because sqrt(pi)/2 all to the square actually does equal pi/4
    So if we square that expression and can convert it to 1 - 1/3 + 1/5 - 1/7 +- ... we are good.