What is a Fourier Series? (Explained by drawing circles) – Smarter Every Day 205

– What up? Today we’re gonna talk about waves. This is a circle, you probably knew that. If we were to turn this circle on and watch it go up and
down and up and down and trace that motion out, you get what’s called a
sine wave, which you know to be important in things
like pendulum motion, particle physics, things of that nature. Sine waves are important but for my money, the coolest thing about ’em
is you can add them together to do other things, which
sounds simple until you realize this is how the 2018 Nobel
Prize in physics was won. My buddy, Brady Haron,
has a really good video about that overall on Sixty Symbols. There’s some fancy math I learned at the university called
the Fourier Series. These are my old notebooks
and check this out. The teacher challenged
us to create this graph by doing nothing but
adding together curves. And I found where I did
it, it’s right here. And it took me, it looks like
four or five pages, yeah. It took a lot of pages
and I ended up with this. I was able to make the graph by adding together a bunch of waves and to demonstrate that, I created this. I had to get a tripod,
here’s my flip book. So it starts with one sine wave and then we add another
one and you can see, the more waves you add together, the closer the function gets to what you’re supposed to make, because you can see that
and that look very similar. That’s 50 waves added together. So it’s cool and it’s one thing to know how to do the Fourier Series by hand, it’s quite another to
understand how it works. And I didn’t really have that moment of it clicking in my brain until I saw this awesome blog by a guy named Doga from Turkey, he’s a
student at Georgia Tech. I want to show you this, this made it click in
my mind unlike anything, this transcends language. So let’s go check out Doga and let him teach you how
a Fourier Series works. I’m in Georgia Tech, this is Doga. – Hello. – You have visualized, via
animation, a Fourier Series in the most beautiful way I
have ever seen in my life. – Thank you. – Sine waves are probably the
simplest kind of wave, right? The second most simple kind
of wave is a square wave. But the difference is you have
sharp edges in a square wave. The first thing Doga did to impress me is he used curvy waves to
make sharp-edged square waves. We have to add up different
oscillations or simple harmonic motion here.
– Harmonic, harmonics, yes. – [Destin] Yeah, and so,
the first harmonic, n=1, gives you this.
– Yes. – [Destin] Which looks nothing like it. – Not to me interesting,
just boring sine wave and I add one more, it’s actually like it. I’m adding one harmonic and another one, well one third of that harmonic. – So you’re adding a basic well what are we going
to call these, wipers? – Yeah let’s call them wipers. – Okay so we’re going to
add a wiper on a wiper and by doing that and
we graft the function. – [Doga] And then follow
the tip of these wipers. – [Destin] Yeah? – [Doga] And then draw
that with respect to time. – That’s awesome man! Like this is really really beautiful and really really simple. – [Doga] So, I can add more wipers. Making us more harmonics. And I add. Fifteen harmonics is
something really cool. – [Destin] Oh wow that looks like a whip. – [Doga] Yes. – So you’re saying so basically, here’s the up-shot a Fourier series you
can create any function as a function, or an addition of multiple simple harmonic
motion components, right? – Yes. – All Doga is doing is he’s
taking these sine waves that we explained earlier and he’s stacking one on another sine wave. He’s stacking the circles,
to add together these waves to create a Fourier series. These visualization
techniques that Doga developed worked on any version of any function. For example on a sawtooth wave, you can see at n=8, how the Fourier series starts to play out. It looks really cool. How did you do this? Like what program did you
use to visualize this? – [Doga] I used Mathematica. – [Destin] Mathematica?
– [Doga] Mathematica, yes. – [Destin] Really?
– [Doga] Yes. – [Destin] So if I give you any
function can you create this but you had to flip it
into video format somehow, how did you do that? – I exported in like, gif. I created a table of the different times of this animation. And then I just exported
those tables into gif. That’s all that I did. – Okay, here’s an interesting
question, are people It’s actually “jif” I don’t
know if you know that. (laughing) So if I were to give you a function, like if I were to give you a super, super complicated function. Like a really weird curve, you could make a graphic like this? – I can, yes. – [Destin] So I can challenge you? – Yep – Let me explain what’s happening here, amongst academics there’s this thing that I just now made up, called “mathswagger” and basically, it’s when a person is good at math they like think they
can do anything with it. It’s not like a prideful thing, I mean Doga is a very humble person. But you could tell he was very confident in what his abilities with math were. So I can challenge you?
– Yep. – Which is why I’m challenging him to draw this with the Fourier series. It is that Smarter Every Day thing that you see all over the internet. I totally am geeking out
right now, I love this. It’s a hard image to draw using math, it’s got like curves right. It’s got little sharp
points and switch backs. It’s self-serving for me, so this is an appropriate challenge for somebody that’s
demonstrating “mathswagger”. The problem is, he actually can do it. He can model this using nothing but circles and the Fourier series. Which is completely impressive. Check this out. The first thing that he has to do in order to draw this image is to extract the x and y
positions that he would need to make functions for in
order to make this thing work. He then needs to create a Fourier series for each one of those functions so that he can add them together. And as you can see, these
first few were not winners. I mean like no stretch of the imagination could make your brain
think this looks like the side profile of a human head. Everything’s a bit derpy. But as he starts to refine it, and he adds more and more
waves to the functions, things start to hone-in and
it starts to look really good. At about 40 circles in
this whole function, things start to look really good, and your brain would totally think that you’re looking at a drawn image instead of a mathematically
drawn function. If you look closer at
just one of these arms, you would think that it’s chaos. But it’s not, it’s complete order backed up by a mathematical function. In fact, this is why I love math, it’s the language that describes
the entire physical world. We can approximate anything, as long as you have enough terms. This is the beauty of the Fourier series, you take simple things you understand like oscillators, sine waves, circles, and you can add them together to do something much more complex. And if you think about it, that’s all of science and technology. You take these simple things,
and you build upon them, and you can make a complex system, that can do incredible things. A simple thing can lead to
something incredibly powerful. Speaking of the power of simple things, I want to say thanks to
the sponsor, Kiwi Co. I reached out to Kiwi Co and asked them to sponsor Smarter Every Day a long time ago because this can change the world. They send a box to your
house for a kid to open and build a project with their hands. They’re not on a phone,
they’re not on a tablet, they’re building something
with their hands, and that’s going to change
how they look at things. You might like to work on
the kit with your child, or it might be important to
have a hands-off approach and let them build something on their own and see it through to completion. The kit comes to your house, there’s really good instructions in there. The kid gets to work on
a project themselves, and at the end of the project they have something they
built with their own hands. Ultimately, I just want you
to do this for your children. Or a child you love. And I want more of this in the world. Go to kiwico.com/smarter and select whatever kit makes the most
you just pay shipping, you can cancel the
subscription at any time. It makes a great gift, I
really believe in Kiwi Co. Kiwico.com/smarter, thank you very much for supporting Smarter Every Day. – I appreciate your work and I just wanted to say that.
– Thank you, thank you. – That’s why I came to Georgia Tech. Thank you very much. That’s it, I’m Destin, you’re
getting smarter every day. I’ll leave links to his website below. Have a good one
– Thank you have a nice day.
– That cool? If you want to subscribe
to Smarter Every Day felt like this video earned it you can click that, that’s pretty cool. Whatever. You’re cool you can figure
out what you want to do. I’m Destin, have a good one, bye.

100 thoughts on “What is a Fourier Series? (Explained by drawing circles) – Smarter Every Day 205”

1. Ben Schofield says:

Holy cow, Destin how are you today?

2. lcc1958 says:

En español hubiera entendido 🤔

3. An Autistic Man says:

Wow! You are keen to pick up fascinating things! I'm a fledging phenomenologist. I love the p philosophical study of conciousness, reality, and experience. I love your channel! I'm working on some philosophical issues and wondered if you could use this application to show why light waves slow down and change direction through different mediums. I think they slow because they stack together to get a slower wave speed. How would stacking circle makers slow the speed of the wave? I'm working on areas of complexity and this geeks me out! Thanks Brother! If you really want to make me happy, see if bell's inequality can relate to how the fourier circles pass through Quantum filters. I have large questions! Thank you!

4. Brennan Edwards says:

I reeealllllyyy wish I knew how to do this

5. Thomas h says:

My brain is hurted

6. Crystal D says:

“You would think that it’s chaos, but it’s not, it’s complete order.” 💯

7. LordAxe says:

I'm no mathematician or coder (MD by trade) but managed to get a square wave going – much like the one above with all the circles whipping around – using Javascript & p5 library. It was actually easy . The series is basically sin(wt) + sin(3wt)/3 + sin(5wt)/5 ……………. t is your time step , w = freq . The more terms the squarer. Getting the graphics looking good & moving was the tricky bit.

8. Wilber MelendezPacheco says:

Hey Destin, I'm not an academic but I am a science enthusiast, I've tried learning many things and look at stuff through the eyes of a philosopher…
I've followed you and others like Veritasium, PhysicsGirl, PsiShow, FermiLabs, Etc…
This Fourier series has peaked my interest in encapsulating a GUT or TOE …
What if you applied that series to string theory…
Where as matter is a simple wave function of a virtual uncertainty particle/wave, that simply builds on itself…

9. Gustavo Jorge Resende says:

Checkout the latest video of 3blue1brown on Fourier Series. Will blown your mind as well.

10. Cristian Escobar says:

Can you do a tutorial teaching how to draw anything with fourier series?

11. Brian Brain says:

2:00  You have significant overshoot on your oscilloscope square wave pattern.  You need to adjust the capacitance of your oscilloscope probe to correct this.  Do you know what Gibb's Phenomenon and the Lanczos Sigma Factor are?

12. Jeff Winterbottom says:

Please build that out of Spirograph™ pieces! What an amazing "Retro-machine" illustration that would be.

13. Matt Clay says:

Dan Shiffman loves him some Fourier series.

14. Sandeep Das says:

I am totally blown!!!!! WOWWWWWW.

15. Onur Karakurt says:

I am glad for turkish subtitles.

16. North West says:

4:20 The fool looks at a finger that points at the sky.

17. Fancy Pantsu says:

Chaos is basically ultra complex order we haven't figured out yet.

18. nettocxxx says:

I love this and Mathematica.

19. B30pt87 says:

That was so cool! I can't BELIEVE how fricken cool that was. I CAN SEE!!!!!!!!!!!!!!!!!!!!

20. DataHog says:

DESTIN use geogebra you can do this with animation in that program

21. Anshdivy says:

awesome

22. James K. says:

Only thing better than a Fourier series is a Fiveier series.

23. Dustin Rodriguez says:

You're about 90% of the way to explaining modern image and video compression, FYI.

24. Azazel says:

The way american people study. +rep. Pure understanding.

25. EPIC Tube HD says:

6:19 I really love what u said there… "u may think it's a complete chaos, but it's not, it's complete ORDER" makes me think of how the universe is like….
people say particle in this huge boiling kettle we are livining is in complete chaos… uncertainity of where the particles are and will be… uncertainty & probability, but people don't realize that this uncertainty… emerge from the idea of how we are limited in observing these "uncertain" particles with a clear eye… but deep instead of how they particle behave there might be an order. , we just don't notice it or know about it. After all they probabilities them is government by mathematical functions which determines the particles con-straits and abilities?

26. Bhoshaga Mitrran says:

why is this in my recommended even

27. PG Plays Video Games says:

You can presumably do this with any two dimensional line art, right? So with enough functions and such you could make say, the map of the continental USA (the outline)?

28. Alaknanda Salpekar says:

3blue1brown channel also has a very good graphical explanation

This is a graphic representation of how shapes evolve in animals due to evolution.

30. FC Brandt says:

At 77 years old I have experienced many times that I don't know everything. In addition though I majored in Physics and minored in math nearly 60 years ago (npn junctions were the thing along with having a bamboo slide rule) and more that I have not used for 50 years – I became a Federal Agent instead. I enjoyed so much your Fourier Series presentation I am tinkering with the myriad of apps out there that make math fun – super way to keep the brain growing while I get smarter every day. Thank you.

31. A Mascia says:

This is a fascinating mathematical presentation, eh. Thanks. 👍

32. Rajesh Koppa says:

This is great…

33. The Teen Engineer says:

34. SKM GAMER says:

7:31 Past of destin😂
He look exactly like u

35. Jack Morris says:

Don’t lie to him it’s pronounced gif and you know it

36. Midhun Balakrishna pillai says:

Wow😮👌

37. Allen Smith says:

it's like a fractal in the way of stacking simplicity to build complexity. ?

38. Santosh B says:

I'm trying to correlate this when this can applied..

39. Lo7q7le7guste7mrtf says:

To be fair oldschool oscilloscopes allow you to manually change the status of signals, if you use a function generator, you need to do some math. And if you want more sine waves, well you can use programs on newer oscilloscopes or additional generators and that way get similar outcomes.

Guess what I want to say by this. is that yes there are many ways to do things with math, but honestly to me this isn't at all that impressive, since most of the electronics class students were just messing with sine waves and none of us ever got famous or anything for doing that. 😛

Oh well, guess it's good that the world know what is being done.

40. Whitpusmc says:

Destin, whatever you have to do keep that man in this country! He is brilliant and we need brilliant people. Point him at cancer or AI or ??? I noticed in the comments that he’s Dr Doga, not surprised.

I've used fourier series in numerical methods but this video made my mind blow away…brilliant.

42. Delta Echo says:

New word of the day… Derpy.

43. mr.mirror says:

I did that with c++ just by using function since+sin2x+sin3x+sin4x with graphic header file

44. Nikhil VJ says:

You earned it. SUBSCRIBED.

45. Varun Tripathi says:

Is he Indian…..? Great .. explanation sir.

46. Yerli Cervantes says:

3Blue1Brown recently made a video of this. Its just as awesome 🙂

47. eUsahawan Shah Alam says:

LIKE, if you pronounce GIF as Jif
comment if you pronounce GIF as GIF

48. Chris Rivas says:

I challenge Doga to draw la mona lisa using circles!

49. sting aling says:

I say 'gif' too. Jif is some sort of bathroom cleaner liquid.

I remember how brutal that math was back in engineering school. This video somewhat takes the pain away from my memories of battles with the Fourier series.

51. NM says:

That was awesome

52. SlashinLA says:

2:32 I've already seen that in Eugene Khutoryansky videos a long time ago so nothing new there

53. Uday Desai says:

Awesome!!!

54. El Taller de Nioo says:

sos un genio, me encantan tus videos

55. Manuel Jenkin says:

Hey. There's a problem with doing that. Please look into "Gibbs phenomenon". You'll always have an error.. and it'll be higher in the edges (at points of more impulsive jumps or jump discontinuities). A square wave has jump discontinuities and sines are continuous functions. There's no way you can simulate square wave exactly using linear combinations of sine functions. You can only get an approximation.

56. Daniel Rojas says:

what program did you use to plot the fourier series I would like to try

57. Michael Pieters says:

Cool. But I already knew this insight during my bachelor physics at Ghent University. All the amplitudes of your fourier series are all the diameters of your circles that are chained on eachother and the frequencies are linked to the different rotation speeds of the circles. It is pretty simple actually.

58. Narcilio Costa says:

Really really nice!!! Awesome!!!

59. snoopy9292 says:

He is proud of the GIF, but remains annoyed that there is still any debate over the pronunciation of the format.

“The Oxford English Dictionary accepts both pronunciations,” Mr. Wilhite said. “They are wrong. It is a soft ‘G,’ pronounced ‘jif.’ End of story.”

60. 阿竑 says:

Kiwico

61. Joseph thibeault says:

One problem with is the ringing at the edges of the square wave is caused by the lack of band with gain of the device amplifying the signal. As a square wave has an infinite band width. This was demonstrated by Tektronix in the late 1960 when they came out with a super duper Sync Generator For Broadcasters. Thus came the rise time standard in broadcasting. The signal was too perfect. Check it out

62. satyam dixit says:

I couldn't understood perfectly. 😭

63. LB Metei says:

Big fan of Mr. Fourier. He made my life very difficult.

64. Kushagra Mishra says:

This is AAAWWWESSSSOOMMMEEE

65. Amnesia Robot says:

Well : now we know that between Leonardo Da Vinci ‘s flying machine sketches and the actual method of drawing them is nothing but pure fractal

66. Denizhan Tekoğul says:

🇹🇷

67. Cevair Zufer says:

It is Gif g like in graphics.

68. Cevair Zufer says:

Fourier is frequincy domain of the time domain.

Then you also have Laplace.

69. Yousef Albasir says:

I was smiling in amazement the whole time: I can watch this video for eternity!

70. yogendra singh says:

Beautiful

71. Roderic MEGE says:

This was soooo great ! Thanks ! 😉

72. Nikhil Jagtap says:

Fast Fourier transform

73. liveinterface.com says:

5:04 – FYI… nobody's seen your logo unless they're looking for it. The internet is unfathomably huge.

74. pankaj dhar says:

Great presentation

75. Abhijeet Veeranki says:

Woah I wish I had this channel during my IIT JEE , today's generation is lucky to take leverage of technology , this could compensate for bad teachers we had.

76. Batfan1939 says:

Anyone else want a Kiwi box for their own grown selves?

77. EBUBEKİR BAKIR says:

sen süpersin dostum. ben elektrik mühendisiyim severek izledim seni. çok beğendim.

78. Kazimierz Markiel says:

I am interested to obtain the mathematical formula for the closed curve on the flat surface of the cross section of the coil -perpendicularly to the long axis, the coil is bent from the pipe of the diameter d on the coil radius D and wirh the pitch d. I think it is possible to do it by the method showed in this film. It will be the some kind of the ellipse, bent on both ends in one direction.
Stary

79. Jef Rotten says:

Your logo, is not a mathematical function.

80. diogenes999 says:

How can one get the Mathematica code?

81. Mohamed Hamzah Mohamed Osman says:

Simple explanation for fourier series is that they consist of orthogonal functional series.

82. robert waugh says:

First 30 sec of video is just adorable. I couldn't take my eyes off

83. iLL says:

Sonic weapons are real and being used by evil people

84. Andreas Pfisterer says:

WOW

85. mangesh dhore says:

Today (on 5th Sep) we celebrate Teachers day in India. I thank you for teaching me Fourier series 🙏

86. te0nani says:

Audio compression is also Fourier Transformation!

87. C C says:

THANKS J ROC!!!

88. grindupBaker says:

I wrote a Fortran IV-E and DOS Assembler IBM 360/44 computer program in 1969 for Fast Fourier Transform for oil/gas exploration for fast digital filtering and fast deconvolution. I don't remember any of it. I just relax now I'm old. I think I'll switch over to the New Housewives Of Real Jersey after this.

89. Paul Swanson says:

You just BLEW my mind dude!!   The simplest building blocks, like circles, can create ANYTHING!

90. Thatguy withtheface says:

91. Hocine Bouzina says:

Really impressive, thanks

How did he figure out what functions were needed to get the shape of the head? I don't get that part

93. Patrick Butler says:

My interest is forecasting stock market prices. Could this be done by turning say the last 5 or so candlesticks on a chart into fourier waves ?

94. 738polarbear says:

I love watching smart people explain stuff . the smarter they are the humbler they seem to me.

95. klaus The vampire says:

Dr. Doha looks like hrithik roshan….an indian actor….

96. Dimmidice says:

It's Gif ya muppet

97. Krishna4real says:

u earned more than just my subscription bro

98. White Wakandan says:

I love the flip book! 🤓 It's deferent & epicycles after all!

99. Salnsd says:

why is that Moslim dueing in murica enyways , I sapert Tromp

100. Thomas Hughes says:

6:53 – My three girls had only dolls and blocks and paper for Origami, and other non-electronic toys growing up, and now my first is 5th year "Civil Engineering", by second was a child prodigy on the guitar, now second year in music, and my third was 3rd out of 154 aspirants for "Industrial Design". The kicker is that they were all Valedictorians in their prep schools.

You're a GREAT DAD! to have her play with cool toys that challenge all the senses. I can vouch for it! I just sub'd!

I noticed LOTS of cycloids as he added circles. Cycloids rock, and because of them, my hero, John Harrison, was able to invent THE most accurate clock without pisoelectrics or any other electronic means – pure mechanics with no power tools – the world has yet to see. I think he finally got into the World Record Book for having a clock after 100 days that lost about a second. My Japanese quarts movt. cannae do that!

Great stuff! Looking forward to more!