The Trig Hiding Inside the Factorials (And the Harmonic Numbers)

Поделиться
HTML-код
  • Опубликовано: 10 июл 2024
  • In this video, we build on my last two videos by exploring connections between the gamma function (the extended factorials), the digamma function (the extended harmonic numbers), and trigonometry. We derive Euler's Sine Product Formula, which we then use to prove the gamma and digamma functions' reflection formulas. Finally, we derive a related formula for calculating cotangent.
    Watch my previous two videos here:
    Extending the Harmonic Numbers to the Reals: • Extending the Harmonic...
    How to Take the Factorial of Any Number: • How to Take the Factor...
    An Elementary Proof of the Sine Product Formula:
    www.researchgate.net/publicat...
    The animations in this video were made with Manim: www.manim.community/
    Music credits:
    Fluidscape by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
    Night Music by Kevin Macleod
    Space Chillout by penguinmusic
    river - Calm and Relaxing Piano Music by HarumachiMusic
    Surrealism (Ambient Mix) by Andrewkn
    ... And a couple of my own songs:
    / the-fog
    / thanks-for-watching
    Chapters:
    00:00 Intro
    0:43 Background and Notation
    3:24 The Digamma-Cotangent Connection
    5:09 The Gamma-Sine Connection
    6:04 The Sine Product Formula
    9:59 Proving the Gamma-Sine Connection
    12:22 The value of (1/2)!
    13:07 Proving the Digamma-Cotangent Connection
    14:21 The True Logarithmic Derivative
    15:52 An Infinite Sum for Cotangent
    17:46 Final Thoughts

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

  • @LinesThatConnect
    @LinesThatConnect  Год назад +147

    Some notes/clarifications that didn't make the cut:
    2:29 It was a toss up between the Gamma function and the Pi function. (Pi(x) = Gamma(x + 1), so Pi(n) = n!) I much prefer the Pi function, but I've only seen it used a handful of times, while the Gamma function gets all the attention. I eventually decided it would be better to introduce people to the version they were more likely to see in the wild rather than using a notation they might never see again, so I went with the Gamma function.
    5:21 You can get Greek letters and other LaTeX symbols in Desmos by typing them in a regular text editor (e.g. "\Gamma") and copy/pasting them in. That's how I got the Gamma there.
    7:33 I put the pi's before the x's, even though the other order might at first be more natural -- (x - pi) instead of (pi - x). However, with (x - pi), the graph would be flipped upside down, which would be easily fixed by dividing by -pi instead of just pi. But I jumped straight to (pi - x) to save a bit of time.
    15:00 I went back and forth between a few interpretations of the logarithmic derivative.
    If we had used the complex logarithm, everything would have just worked. But the background is a bit too complicated in my opinion.
    Another way would have been to use ln(|f(x)|), which still has all the nice logarithm properties, but it's less interesting and it doesn't extend to complex numbers very well.
    16:57 Technically, we also need to show that the result converges uniformly to prove that this step is valid. But I'll leave that as an exercise for the viewer :)

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

      Nice commutative diagram at the end.

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

      5:26 i actually found this while messing around with this on desmos as well, i was looking into approximations of the factorial function and ended up trying 1/x! which i found to have a derivative everywhere (other than negative integers) so i messed around and got the sinc function (sin(x)/x) then shifted one of them over to get the sin function, i was so shocked by this discovery and was really confused but never really looked into it for some reason, really happy i finally got an explanation to it

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

      I have a question for you. Do you have an email I can contact? Thanks!

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

      With the Pi function, the reflection formula becomes 1/Π(x)Π(-x) = sin(πx)/πx. While the left-hand side is _way_ nicer than the Gamma version, the right hand side looks like it might not be... _at first glance._
      Let's look back at the sine product formula: sin(x) = x ∏k=1→∞ (1 - (x/kπ)²)... wait. What's that x doing out front? Let's move it to the other side and see what happens: sin(x)/x = ∏k=1→∞ (1 - (x/kπ)²). The product now looks nicer, but the left-hand side... _That looks just like the reflection formula!_ sin(πx)/πx. Just to see what it's like, lets sub in πx to the product formula, since it looks like it should be able to cancel some thing: sin(πx)/πx = ∏k=1→∞ (1 - (πx/kπ)²) = ∏k=1→∞ (1 - (x/k)²). Beautiful. This function, sin(πx)/πx has its own name: the normalized sinc function. Often just written as sinc(x), or sometimes sinc(πx), where sinc(x) is instead the unnormalized version sin(x)/x, so you could call the normalized form "nsinc(x)" instead, but that's just something I made up.
      If you want a separate example of the sinc function (normalized or not) being useful on its own, _I dare you to take its Fourier Transform!_ If you haven't seen it before, you probably won't predict it.

    • @user-ne6km2oj8z
      @user-ne6km2oj8z 10 месяцев назад +1

      Hi, can you pls find any connections between amount of isomers of alcanes for instance, i only found out that ratio between two adjacent numbers in line that does not include stereoisomers is suspiciously approaching exponent, and if including stereoisomers it is approaching π

  • @TonyboyDK
    @TonyboyDK Год назад +406

    This channel is one of the best things SoMe has spawned! As a mathematician myself, I really do appreciate the way you explain things, intuitive and visually beautiful but still with healthy respect for (and remarks about) the mathematical rigour! Love it!

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

      What is SoMe?
      Edit: nvm! Summer of math exposition!

    • @unnikrishnanvr186
      @unnikrishnanvr186 Год назад +7

      ​@@therobertguy2436 Its SoMething amazing

    • @Fire_Axus
      @Fire_Axus 2 месяца назад

      your feelings are irrational

    • @Fire_Axus
      @Fire_Axus 2 месяца назад

      some?

    • @ChristofApolinario
      @ChristofApolinario 21 день назад +1

      I like how the window of Wikipedia was dragged into the screen

  • @krozjr5009
    @krozjr5009 Год назад +138

    I’d never FORMALLY heard of Euler’s product formula for sine before… but I’d actually wound up discovering it for myself. It’s always nice to know that I would’ve been a trailblazer if not for that meddling Euler.

    • @bakrom3734
      @bakrom3734 Год назад +18

      Haha, I did the same thing but for the product representation of sin(x)/x. Feels good huh

    • @identicalgd2446
      @identicalgd2446 7 месяцев назад +3

      Same

    • @wyboo2019
      @wyboo2019 2 месяца назад +9

      i have probably a dozen, completely-full 5-subject notebooks of math ive done, and i'm kinda hoping someone digs it up after im dead and theres something nontrivial in there lmao

    • @person8064
      @person8064 Месяц назад +3

      ​@@wyboo2019 the equivalent of Fourier not giving a shit about the fast Fourier transform and never publishing it

  • @mokhtarmougai5088
    @mokhtarmougai5088 Год назад +144

    The legend is back ❤

  • @gumball6804
    @gumball6804 Год назад +58

    Math should always be presented like this; it's thoughtful, intruiguing and simply aweinspiring. The derivations lined up so nicely that it doesn't even feel abstract anymore.

  • @amy53241
    @amy53241 Год назад +10

    I love that you pivot from frustrated that the digamma function is defined with x-1 to thankful when things canceled out xD

  • @user-kw2xs5rs2f
    @user-kw2xs5rs2f 9 месяцев назад +7

    EVERY YEAR, HE UPLOADS A BANGER

  • @kikivoorburg
    @kikivoorburg Год назад +112

    Awesome! It's incredible how seemingly unrated mathematical ideas come together in unexpected ways!!

  • @josh11735
    @josh11735 Год назад +70

    I love how this builds on your first two videos without being too overwhelming. Great job with the explanations (and I can’t wait to see what you cover next)! :)

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

    "And a couple of my own songs" Naturally. Amazing video; textbook quality. It is work like this that's going to turn Manim into the new LaTeX.

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

    Bro your content in on an other level .Please don't stop uploading

  • @eterty8335
    @eterty8335 Год назад +44

    I love these connections between weird mathematical functions that seem to come out of nowhere, so I can only imagine my excitement if I somehow managed to discover that reciprocal product being a sine wave after watching your previous video. This is amazing, thank you for these videos man.

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

    Awesome! You've managed to connect so many dots in my head that I'm finally able to grasp how all these concepts fit together. Thank you!
    Would love to see something on how to calculate the incomplete gamma function (integral formula for gamma from 0 to x rather than 0 to infinity). Key applications: Gamma probability distribution, machine learning, and many more.

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

    I really appreciate the subtitling, the sound design, and the visuals. I never had to adjust the volume, the music never overpowered your voice, the animations were very easy to follow, and the subtitles were spot on. Oh and the maths was kinda mindblowing!

  • @marcoponzio1644
    @marcoponzio1644 6 дней назад

    Euler is my hero. His accomplishments have always amazed me

  • @edmundwoolliams1240
    @edmundwoolliams1240 Год назад +29

    This is incredible! Better than 3b1b, because it’s straight to the point. I’ve been waiting for you to post a video for ages. Keep up the good content!

    • @LordBrainz
      @LordBrainz 15 дней назад +1

      Am I the only one who got bored of 3b1b? I dunno, something in his way of teaching just makes his videos so... 😴

  • @AlbertTheGamer-gk7sn
    @AlbertTheGamer-gk7sn Год назад +15

    These functions are important when dealing with fractional calculus, such as finding the half integral of 1, which is 2sqrt(x/pi). The half integral of 0 is surprisingly 1/sqrt(pi*x).

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

      Note that this is only really important because we have defined it to be that way. Cauchy's integral formula is true for analytic functions, and asserts that we can infinitely differtiate (and integrate) any analytic function. It happens to use factorials because of its iterative nature, which lends to using the gamma function.
      Fractional derivatives and integrals aren't some innate thing (though they have their uses), but are a product of some fancy magic.

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

    so true, i can never remember if Γ(x) = (x-1)! or Γ(x-1) = x!

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

      but Γ(x+1) = xΓ(x) 😅

  • @jimschneider799
    @jimschneider799 Год назад +12

    I've always heard that Euler's identity is "the most beautiful formula in mathematics", but after watching this video, I have to say I think the digamma reflection formula is a serious contender. It's one of those surprising connections that's obvious in retrospect that make me love math. Thank you for such a great video.

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

      Since the gamma and digamma functions were both offset from their discrete counterparts, I decided to check the reflection formula for the extended harmonics and got H(x) - H(-x) = 1/x - πcot(πx).
      The left-hand side is quite a bit nicer than the digamma version, but the right hand side not so much given that extra 1/x.

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

    Dude I was literally JUST thinking about your channel LMAO
    Glad to see a new video, keep up the good work :)

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

    I need these videos more than once a year-ish. I also think it would be cool to explore the gamma constant more in a future video, but you do you. I'm just enjoying the ride.

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

    Very excited for more content! I loved the last two

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

    This is an absolute gem of a channel, I can't wait to have my mind blown even more in the next videos.

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

    I love your channel! Not only do you present interesting connection, but the way you present those connections is really unique and ”simple”. What a great find :)

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

    I love your channel, I like that you derive the formulae. I also like that you use white text on black background, it doesn’t hurt my eyes like the inverse does. Also I like that you center the equation you’re working on, it makes it easy to see even on a small screen. Your voice is nice and I like that you say what the names of the symbols are as you’re showing them

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

    I love Fourier analysis. It connects music and number theory, trig, analytic continuation, and differential equations. I’m working on a Fourier transform that can take a musical phrase and output a mathematical equation.

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

      If you can, will you create an open source software for such transformation ?

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

      @@PMA_ReginaldBoscoG of course. I plan on creating the transform in both directions so you can translate between math and music. If you assign a value theta and phi for every pitch and rhythm of a given phrase, then the magnitude of the dot product of the theta and phi vectors equals the resultant amplitudes. Thus, integrating across these dot products should output the phrase structure of that measure. Thus, you can take in a musical phrase and output an integral across an inner product space or take an inner product space and output a musical phrase. I use angles for pitches and rhythms because music is cyclical and repetitive.

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

    Finally a new video after months! I really like your videos, please be consistent on your channel.

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

    It's nice to see elegant connections between different math concepts. I like your videos, hope they continue.

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

    I watched 3 videos of yours back to back and I am still not bored. Great work. Thank you for making these videos.

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

    I cannot express the happiness that I felt seeing you posted a new video! I'm so excited to watch this

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

    I genuinely hope this channel can grow as big as possible as quick as possible. Wonderful content❤️❤️

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

    I absolutely love these videos! It's crazy how fantastically intuitive the explanation and presentation are

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

    One of the fastest clicks of my life. I'm glad to see you upload again!

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

    Keep up the great videos! Mark my words... You are going to be one of the greats! I'm calling it now.

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

    Omg I absolutely love to see new uploads from you!

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

    love your videos glad you’ve kept making more

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

    This is simply beautiful. An awesome series of videos, great job!!

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

    Your videos really are great. You explain things very well, and at a very good pace. You always conclude the video reaching very satisfying and unexpected results. I love it.

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

    HOLY ANOTHER VIDEO, THIS MUST BE GREAT!

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

    Dude, i'm RE watching this two weeks later, after having watched it multiple times in a row as soon as it came out (subscribed with notifications hehe) -- it made perfect sense on the first watch because your explanation was so smooth and intuitive, but because there are SO MANY HIDDEN LAYERS TO IT! I've been doing this stuff for at least a decade.... and I *still* learned things from this video, and then learned more every time I re-watch to unearth more. Please please please, keep it up!!

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

    I’ve been waiting for this video for so long!

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

    I was putting off watching this video, until I saw your channel name under the title! I’m glad you’re still posting!

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

    Terrific!! Great videos man, please post more often then three videos in one year...please!!

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

    as usual, very interesting and beautiful video, can't wait to see the nexts !

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

    With simple small steps.... climbing the mountain, is only possible with an excellent guide, The view is breathtaking! Thank you so much!

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

    Fascinating math and great animations too.

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

    Hi Lines!
    I love the captions! That's very good even for people who aren't hard of hearing.

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

    first time seing this channel, but i must sub. Great job with explanations. I loved how you stoped at some points, and explained the things that weren't so obvious.

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

    Incredible, may you have a long and prosperous career!

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

    it has been one freaking year for this channel to make its 3rd video but the quality is gold

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

    I was waiting for this, very nice !!!!

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

    Great stuff, Welcome back

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

    Incredible work, as always :).

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

    these videos are amazing! keep them coming :)

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

    Your videos are always a joy

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

    I love these videos!!

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

    your videos are so well made and entertaining!! ❤❤

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

    Your video is extremely enjoyable ! Thanks!!

  • @DrPhipster
    @DrPhipster 4 месяца назад

    This channel is simply fantastic! ❤

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

    Thank you for this amazing video! Your channel is amazing!

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

    Bro, you did it again. Amazing video 🙏

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

    Well put together, you earned a sub ❤

  • @Ipad-yg1tl
    @Ipad-yg1tl Год назад

    Let’s goooo he’s back, had me worried there for a minute

  • @ErdemtugsC
    @ErdemtugsC Месяц назад

    Best things in math:
    1-“Let’s put a box around it”
    2- cleaning up and simplifying a mess

  • @AB-gf4ue
    @AB-gf4ue Год назад

    Yes, king! We love lines that connect!

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

    Subscribed after the factorial video, I can say that Im not dissapointed! Well done

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

    This was great! Thanks for posting

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

    Underrated channel

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

    great stuff, man!!!

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

    I have watched all the tree videos and though I was aware of almost every point, I was deeply impressed by the constructive approach of the author. The interconnection between various functions looks very pronounced here. Moreover, the formulae may be used not only for some analysis but also for computational reasons (at least to estimate rate of convergence).

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

    A note regarding 7:35
    Consider a polynomial with zeroes at A and B. The product form would then be (x-A)(x-B). So naively, I would expect the first "guess" for a third-order polynomial for sine to be (x-(-pi))x(x-pi), and not (pi-x)x(pi+x) as presented in the video. This not only scales the slope at x=0 by pi^2 but also flips its sign, which is why we want to divide the whole thing by -(pi^2).
    Since we only need to divide one of our new terms by -1, it's convenient to do so with the x-pi term, and rewrite (x-pi)/(-1) as (pi-x).
    This felt like a missing step and bugged me, so I figured I'd share how I explained this to myself.

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

    This is helping me on my sick day

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

    This was actually like a cool video and it was about math!? Nice job dude

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

    Amazing. It was one of the most amazing video I've ever seen

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

    YES HE"S BACK I LOVE YOU

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

    Awesome video! Keep up the good work

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

    Keep up the great work!

  • @Nazario-Tech
    @Nazario-Tech Год назад

    Your videos are amazing!

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

    You are a genius of explanation! ❤

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

    This is really good!

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

    Amazing video once again!

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

    Thankyou so much for making these videos

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

    Bravo and applause! Thank you so much 👍🏽

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

    This is great! Awesome!

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

    great video, as always

  • @TheJoyLoveShow
    @TheJoyLoveShow 2 месяца назад

    Omg this is the Best!! Thank you!!😊

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

    This is an excellent video, it really utilizes the strengths and abilities of the medium (video) in order to more clearly explain things. The (literal) video, editing, and narration all reinforce each other in a way that is almost Kubrick-like :) Just add a Wendy Carlos soundtrack and you're basically there.
    Did I understand the video? Nope. Did I learn things? Yup. Did I learn a lot more than I expected? F Yeah!
    There are certain fields where I find it extremely useful to dip my toe in the deep end or "get comfortable with being uncomfortable." I learn a lot in the present, I'll sometimes have a drive to "catch up" on certain subtopics, and my brain has already started figuring out the "hard" stuff, or it's laying a foundation, whatever metaphor you want to use.
    Thanks!

  • @qbish_
    @qbish_ 6 месяцев назад +4

    Make more vids bro😢

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

    Youe videos are absolutely great man 👌🏻
    But just don't make me wait another 8 months for the new one 😊🤝🏻

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

    Wow!!So much intuitive.. ❤❤❤

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

    Maybe it's because of me being in high school - you said it in your first video thats your vides are targeting ones like me - but I find your videos incredibly interesting, finally telling me very desired answers for my "mathy" questions. I would be grateful if you'd make more of them😀❤. I am sure that you are going to make a big and happy community of viewers🤩

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

    RETURN OF THE KING

  • @frtzkng
    @frtzkng 6 месяцев назад

    For an even neater representation of those sine terms in the denominator, one can use *secant* (sec) and *cosecant* (csc). They're defined as sec(x) = 1/cos(x) and csc(x) = 1/sin(x), which turns those fractions in the reflection formula into products.

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

    this is amost as good as 3blue1brown, really nice work man

  • @leonard-he6hd
    @leonard-he6hd Год назад

    BEST THANK ZOU FOR DOING MY DAY

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

    HES BACK!

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

    this is the true definition of "it's all coming together..."

  • @richardfredlund8846
    @richardfredlund8846 2 месяца назад

    on the subject of trig functions from other functions. if you define h(y,x) =x^y + 1/x^y then 0.5 h (i,x) is a cosine function with period 4. (so angle measure counting quarter circles). Do x*pi/4 for radians.

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

    Absolutely wonderful!!! I said this many times before and I will have to say it again. You belong to the BEST graduate school. You should be doing your PhD at MIT, or Harvard, or Cambridge, or anywhere you want. 🎉🎉🎉

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

    love your videos