cos(1) + ... + cos(n)

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • In this video, I calculate the sum of cos(1) + ... + cos(n) as well as sin(1) + ... + sin(n) by doing a quick excursion into the complex world. This is one of those instances in math where, in order to solve your problem, you turn it into a hard problem! Enjoy!

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

  • @AndDiracisHisProphet
    @AndDiracisHisProphet 6 лет назад +218

    and some people say complex numbers aren't useful

    • @ziquaftynny9285
      @ziquaftynny9285 6 лет назад +22

      literally no one important has ever said that.

    • @AndDiracisHisProphet
      @AndDiracisHisProphet 6 лет назад +6

      Well if you define as "unimportant" people who would say that you are certainly right.

    • @umbraemilitos
      @umbraemilitos 6 лет назад +6

      AndDiracisHisProphet
      What would make someone say that complex numbers aren't useful?

    • @griffisme4833
      @griffisme4833 5 лет назад +3

      Who says that? Obviously excluding certain high schoolers who think math past algebra II isn't important.

    • @Jaojao_puzzlesolver
      @Jaojao_puzzlesolver 4 года назад +6

      It depends on how you define "useful".

  • @easymathematik
    @easymathematik 5 лет назад +38

    Nice fact: This is used in trigonometric interpolation. A rollercoaster in spain is construct by using this series.
    The advantage of trig interpolation is the curve is "infinity-smooth".
    I had a lecture of "interpolation" and I got a paper about trig. interpolation to work on.^^

  • @taubone9257
    @taubone9257 6 лет назад +57

    This is great.
    Would you consider doing videos on past Putnam questions? That would be awesome.

  • @redsplits
    @redsplits 6 лет назад +26

    The Zelda pun was great, i love your videos, they have the perfect balance for fun and learning

  • @tylerwu601
    @tylerwu601 6 лет назад +12

    I was able to figure out this by using vectors. I imagined each term as the projection of a vector of length one onto the x axis, where the value inside the cosine is the angle between the vector and the x axis. To sum up these vectors, I figured out the magnitude of the resultant vector and projected that onto the x axis. It's also easy to find the sum of sines using this method because all you need to do is project the magnitude into the y axis.

  • @wompastompa3692
    @wompastompa3692 5 лет назад +3

    I like this because if you sum up 1+...+n, you get n(n+1)/2, and if you only look at what's inside the trig functions, you get 1+...+n = ((n+1)/2)×((n/2)/(1/2)) which simplifies to n(n+1)/2.

    • @drpeyam
      @drpeyam  5 лет назад +1

      Beautiful!!!

  • @gustavosedano294
    @gustavosedano294 6 лет назад +20

    Amazing!!! I love complex tricks!!

  • @wduandy
    @wduandy 6 лет назад +12

    Amazing!!! I love it xD
    Love how complex makes things easier!

  • @rayanzelms9453
    @rayanzelms9453 3 года назад +2

    I just want you to know you are a savior. tons of love from Iran.

  • @tylershepard4269
    @tylershepard4269 4 года назад +2

    This series is actually very useful for phased array antennae.

  • @Kurtlane
    @Kurtlane 6 лет назад +13

    No birds were harmed in the making of this video. :--)

  • @haziqthebiohazard3661
    @haziqthebiohazard3661 6 лет назад +18

    And when you solve for tan(1) + ... + tan(n), everything cancels nicely ^-^

    • @drpeyam
      @drpeyam  6 лет назад +13

      Oh, I should try that out, great idea!

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

      Why?

  • @wkingston1248
    @wkingston1248 6 лет назад +6

    Wow that solution was very imaginative!

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

    Awesome as usual! I immediately wanted to know the generalization cos(x)+...+cos(N*x) and of course you exceeded my expectations by answering it at the end!

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

    he teaches with light smile.it makes my mind consolation

  • @jacoboribilik3253
    @jacoboribilik3253 5 лет назад +2

    It is usually a tedious task to prove sine and cosine addition laws through geometric constructions, if you accept the existence of complex numbers things get a lot easier, you just need euler identity and the proof unfolds by itself.

  • @tonyhaddad1394
    @tonyhaddad1394 3 года назад +1

    Woww amazing how complexe world can solve a real problem !!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @TIENTI0000
    @TIENTI0000 6 лет назад +2

    Very useful beautiful and understandable for everyone.

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

    Not only that, if u divide those sums u precisely get tan((n+1)/2) . How cool is that!!

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

    Ah, the Dirichlet kernel. Fun fact: If you sum all the odd or even up to n of Chebyshev polynomials of the first kind T_n(x), you get the nth Chebyshev polynomials of the second kind U_n(x), which happens to be the polynomial expression of the Dirichlet kernel when composed with cos(x).
    Conversely you, work backwards and get T_n (x) from U_n(x) by taking the difference of two U polynomials since all the cumulative sums cancel except for the last term. But another interesting thing is that U_n-1(x)*n is the derivative of T_n(x),
    So taking a finite sum in one domain gives you a derivative in the other domain, and taking a finite difference gives you an antiderivative in the other domain. I always thought that inverse relationship was interesting, Sort of like fourier duality but with polynomials.

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

    OMG, that was awesome!
    I really love your videos, especially this one :O ❤

  • @anandhemmady
    @anandhemmady 6 лет назад +3

    Awesome video + awesome channel!

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

      OMG, hi Anand!!! 😄 Hahaha, I hope you’re the same Anand I’m thinking of 😂 Thanks for watching!!!

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

    A very nice solution. Thanks a lot👍

  • @nickstenerson6310
    @nickstenerson6310 6 лет назад +2

    It's been too long since I've watched... Thank you!

  • @pythagorasaurusrex9853
    @pythagorasaurusrex9853 4 года назад +1

    Nice! If you don't love complex numbers, you don't love math :)

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

    This could be hard to made for tan(n×x) if some cases the tan(j×x) (0

  • @eleazaralmazan4089
    @eleazaralmazan4089 6 лет назад +3

    This is amazing!

  • @dadeiou4662
    @dadeiou4662 4 года назад +1

    Why didn't you use the cos and sin sum of angles formulas?( in this case sum of n/2 and 1/2) They may could be much easier to use in terms of tan and cot. I actually don't know, this is a question.

  • @chasemarangu
    @chasemarangu 5 лет назад +1

    i graphed the sum and it seemed to align suspiciosly well with sin(x)+1/2

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

    Love this video!

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

    Euler formular is.... just fantastic.

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

    I love your energy. Great video!

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

    Incredible!

  • @technicalgamers7324
    @technicalgamers7324 3 года назад +1

    I studied this in GSEB textbook of this formula but the proof was given by PMI but I needed real proof.

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

    can you put an example up of how to apply chebyshev's inequality ?

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

    Thanks

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

    Hi Dr Peyam and thank you for taking the time out to illustrate, from the simple to the hard on some math areas we all have struggled with in our studies. I think it would true that a lot of UG's in math, physical sciences and engineering struggled with Green's function. It would be good if you could give them your imitable treatment from easy through to grad ?

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

      There’s a video on that!

  • @Mr.D.C.
    @Mr.D.C. 2 года назад

    This is so cool!!!

  • @naucifacio
    @naucifacio 4 года назад +1

    By using brut force i got to:
    [-1+cos(1)-cos(n+1)+cos(n)]/(2-2cos(1))
    But your answer is much more beauty.

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

    I got (-1 - cos(n+1)+cot(1/2)sin(n+1))/2 , which is the same, by just subtracting one from 1-e^i(n+1) / 1-e^i instead of factoring out one e^i

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

    Less complex in complex....
    Nice video!

  • @Mathelite-ii4hd
    @Mathelite-ii4hd 4 года назад

    that was totally enjoyable,thank you very much DR Peyam :)

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

    Wowww....

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

    great video thank you soo much ^^

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

    I love your videos, they are really helpful, could you please do a video on complex numbers factorial, for example i!
    I searched everywhere there is no content on that topic, please do a video on that.

    • @drpeyam
      @drpeyam  6 лет назад +3

      So the analog of the factorial function is the Gamma function, but unfortunately there isn’t much to say about Gamma(i) (you can’t simplify it more), but stick around, there’ll be something about it in a couple of weeks!

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

      Dr. Peyam's Show thank you so much, i sure will

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

    Good stuff. Needs more lighting on the whiteboard. Always following your lecture.

  • @raiedahmednishat8883
    @raiedahmednishat8883 6 лет назад +5

    Wow

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

    Can we make more of it? Like other strange series which can be solved in an unusual way (not necessarily with complex numbers)

    • @drpeyam
      @drpeyam  6 лет назад +3

      I’ll try to think of some!

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

    Depends on n being degree or radian

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

    What happens if we use the definition of dirichilet kernel directly?...maybe the answer will come in a different form and we won't get the bonus formula for sin

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

    Nice approach and works fine. An example starting from zero, i.e. Sum=cos(0)+cos(x)...+cos(Nx) = 1 + cos((N+1)/2.x).sin(Nx/2)/sin(x/2). This series is particular interesting since it gives for x=pi, the alternating series +1-1+1-1+1... with result 1 for N is even and 0 for N is uneven. This is the Grandi's series truncated to N.

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

      This is super cool! Thanks so much!!!

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

      Your welcome.

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

    'complex'ification - absolutely worth it!

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

    Nice proof
    I used trigonometric identities to proof this when i was at highschool but that was messy. This proof much more elegant

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

    What this made me think of: Assuming we're mathematicians of assumed liberty (or, in short, assume n!=gamma function of equal output for integer N) what is generally cos(n!)? And cos(sin(cos(...)))?

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

    As soon as I saw that, I knew the right way was Euler :)

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

      Euler is always the right way 😉

  • @artbymou361
    @artbymou361 6 лет назад +2

    its,Dr peyam.

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

    I couldnt wrap my brain around this. If you pick some arbitrarily large number the left side of the equation cos(1)+..+cos(n) can approach infinity and the right side, i thought, had a maximum value of 1 and a minimum of -1 because the functions have a range of [-1,1].
    After thinking about it for a moment the division by sin(1/2) makes the range of the right side [-1/2,1/2] and the left seems unbounded. Something seems off about this. and I'm not sure how to reconcile it.

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

      Oh, the point is that the left isn’t necessarily unbounded! There are lots of positive and negative values which seem to cancel out

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

    How come its reasonable to use the geometric series on e^i? I'm not sure how it works with phasers, but doesn't r have to be less than 1? I feel like yhe naturl extension to phasers would be |z|

    • @drpeyam
      @drpeyam  6 лет назад +3

      What you’re saying is true for a geometric *series*, an infinite sum. Here we’ve evaluating a finite sum, so the formula is valid for every r (except for 1)

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

      The modulus of your number only needs to satisfy that condition if you want the infinite series to converge, as has been pointed out. Here he simply used the formula for the finite sum.

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

    I tried this before watching the video and got some nasty sums. Didn't realize you can factor out half the angle so just sin remains

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

    if you multiply the arguments you get 1/2(N+1)*(N/2)/(1/2)=N(N+1)/2, which is the sum og integers up to N. Coincidence? I hope not.

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

    Hey Dr. Peyam, can you solve the integral from -infinity to +infinity of (sqrt(x^4+1)-x^2)?

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

      Just do a u sub?
      (X⁴+1)^½-x²?
      Better yet break them into separate integrals and solve
      The first one is done with simple u sub

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

    Now thats cool

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

    I'm not good at infinite series but
    Can someone explain why it isn't just cos (1)
    I mean
    If we have infinitely terms that go from one to infinity
    We could stipulate that we basically have an infinite amount of circles with an extra cos(1) thrown in...?

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

    Waaaooowww..very beautiful derivation.!! Is that method Dr.Peyam's Idea?

  • @user-gh3ss8mo9v
    @user-gh3ss8mo9v 3 года назад

    Nice.

  • @kaIawin
    @kaIawin 6 лет назад +5

    For Real!

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

    sir you are my inspiration

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

    Wow im so impressed

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

    Sooooooooooo coooooooooooollllllllllllllll !!!!!!!!!!!!!!!!!!!!

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

    Great! Is it possible to get that formula by induction?

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

      I think so! Although it’s harder to guess what the formula is, but once you have it you can prove it by induction!

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

      There is no such thing. Induction is used to PROVE a formula, not to get it.

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

      @@znhait
      Why?
      To proof a formula by induction u have to "guess" a formula. So first "get" your assumption and then u can proof it.

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

    Cool 👌🏻👍🏻

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

    むぅーーーん なるほど
    これがスっとできちゃうには、sinやeに相当馴染まないといけないねえ!

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

    Does this mean, that sum from 0 to infinity of cos(n) will converge since cos(infinity) is not convergent, but it won't diverge aswell?

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

    Beautifully solved.Is there any other way of solving without using complex numbers?

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

      Indeed there is! One commenter below gave a non-complex proof

  • @AnuragKumar-io2sb
    @AnuragKumar-io2sb 5 лет назад +1

    So good:-D

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

    thank you so much!

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

    Hi
    I have a great problem -- I love maths but I don't know if I'm good enough at it to study it. Would you have you any advices for me?

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

    Can give other solution without complex number?

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

    Can you do a video, showing that the series diverges when it goes to infinity and why

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

    Nice video D beyam

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

    Can u make a video doing the Laplace transform of ln(x)

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

      Flammable Maths Sounds like a job for you :)

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

    Incroyable!!!!! Merci!

  • @victor-cd3ww
    @victor-cd3ww 5 лет назад

    I don't understand how it diverges, since it seems you can bound the sum thanks to the relationship you show ?

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

      First of all, the denominator might very small, so the right hand side might not be uniformly bounded. Also divergent here means not convergent, so strictly speaking (-1)^n diverges.

    • @victor-cd3ww
      @victor-cd3ww 5 лет назад

      I see, thank you very much ! I'm looking forward your next video :)

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

    So amejing

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

    Let me solve this in my mockery way 😜 we know that cos(nx)=(-1)^n then cos(1)=-1
    cos(2)=1
    cos(3)=-1
    cos(4)=1 and so on
    Since so consider the series as
    -1+1-1+1.....upto n
    So when the value n is even then the sum of the series is zero
    And when the value of n is odd then the sum of the series is -1

  • @MiguelGonzalez-hy4sd
    @MiguelGonzalez-hy4sd 6 лет назад

    This is just for natural numbers right?

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

      Yeah, but I think you can adapt it to alpha, 2 alpha..., n alpha, where alpha is any nonzero real number

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

    Love the thumbnail!

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

    Since the defined domain for the geometric series is |z| < 1, is it really fine to use the geometric series for e^ix, which has a modulus of precisely 1?

  • @yuvalpaz3752
    @yuvalpaz3752 6 лет назад +3

    HAHA! This is amazing! I never thought about this way!
    I also thought about using power series but seeing the result i guess it will be nightmare to do it that way.
    by the way, I once thought about a similar
    let's define the sequence (a_n) such that:
    a_0=c for arbitrary c,
    a_n=sin(a_(n-1))
    what is the sum from k=0 to n of a_k.
    if you know how to solve it i would love to hear
    (this series does not converges when n goes to infinity, the proof: math.stackexchange.com/questions/2482637/is-c-sin-c-sin-sin-c-sin-sin-sin-c-cdots-convergent )

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

      That’s a great idea! I doubt that there’s a nice formula for the sum, but I like the divergent series idea! :D

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

    They are complex and complicated numbers

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

    I'm from bihar and also knew these trick

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

    Are you when putting x multiplying N you don't have cos((Nx + 1)/2) instead of cos ((N + 1) x /2) ?

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

      I think you’ll still have cos((n+1)/2 x), because it’ll be a geometric sum with e^(ix), try it out :)

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

      Yeah, I'll take a look at it when I get some time. Good channel!

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

    Omg, could you use this thing to calculate the integral of cos(x)? Or sin(x). Off course this wouldn't be usefull as a proof for the derivatives of sinx because it would be circular. Because Eulers identity uses the derivatives and integral of sinx and cosx already.

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

    Can you proof that the geometric series formula works when r = e^i? Like when r = 2, it doesn't work.

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

      It also works with r = 2. It’s not a geometric series here, just a finite sum

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

      Oops... Good work!

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

    Where did the isin(x) terms go from e^i

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

      We’re just comparing real parts, so the imaginary parts get ignored. It would give you an identity with sin maybe

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

      @@drpeyam ohh so because there’s no imaginary part of cos(n) when n is R, then the isin(n) terms would just evaluate to 0 anyways?

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

    Uau !

  • @sansamman4619
    @sansamman4619 6 лет назад +2

    is it just me who thinks Dr payam uploads a video on a topic that's like the advanced one of what BPRP does?

    • @drpeyam
      @drpeyam  6 лет назад +2

      Haha, it’s actually a pure coincidence! I’ve made this video based on a comment on my video from a couple of weeks ago!

    • @Gold161803
      @Gold161803 6 лет назад +3

      It's BPRP but four times longer and with more terrible but endearing jokes

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

    Jobb kéz érted? Csak próbáld ki ok! Tudom nem fog menni! Tanuld meg! Csak egy kérdés! Mit csinálsz ha medvével találkozol? Nos:? :

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

    Did you kill two birds with one stone?

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

    Something wrong here...
    Cos[(n+1)/2]Sin[n/2] < 1
    Cos[(n+1)/2]Sin[n/2]/Sin[1/2] < 1/Sin[1/2] < 2
    So the RHS cannot ever exceed 2, but I see no reason why Cos(1) + Cos(2) + ... + Cos(n) would be bounded. Since Cos is periodic, wouldn't it in fact be divergent?
    Infinity < 2 ?!?!

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

      We’re not taking a series here, just a finite sum!

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

      +Dr. Peyam's Show
      Yes, but my point was the RHS is bounded, while the LHS doesn't seem to be. For example, if you choose some very large but finite 'n', then surely Cos(1) + Cos(2) + ... + Cos(n) will surpass 2 right? How can something less than 2 equal something more than 2?

    • @drpeyam
      @drpeyam  6 лет назад +2

      Not necessarily, since cos(n) can become negative, so there might be a cancellation which makes the whole sum < 2

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

      Ah yes, thank you you're awesome btw!