A Fourier series of my favorite function!
Vložit
- čas přidán 9. 09. 2024
- 🌟Support the channel🌟
Patreon: / michaelpennmath
Merch: teespring.com/...
My amazon shop: www.amazon.com...
🟢 Discord: / discord
🌟my other channels🌟
Course videos: / @mathmajor
non-math podcast: / @thepennpavpodcast7878
🌟My Links🌟
Personal Website: www.michael-pen...
Instagram: / melp2718
Randolph College Math: www.randolphcol...
Research Gate profile: www.researchga...
Google Scholar profile: scholar.google...
🌟How I make Thumbnails🌟
Canva: partner.canva....
Color Pallet: coolors.co/?re...
🌟Suggest a problem🌟
forms.gle/ea7P...
A cool result that follows from this is if you substitute in x=1/2*pi then you get the result that the sum of sin(n)/n from 1 to infinity equals (pi-1)/2. It's always fun when doing a Fourier series yields a very non-trivial result. It happens more often than you would think.
You can also plug in x=0.25 to get the Leibniz formula for pi, namely:
pi/4 = sum{n=0 -> infinity}(-1)^n/n
@@bamdadtorabi2924 You mean n=1-> infinity
@@megauser8512 Nah I made a mistake, its (2n+1) in the denominator. That should make it right
it would be nice to have LateX here, wouldn't it ?
I've actually done a fourier analysis of the floor function before. It's an approximation, of course, and it was meant to allow backpropagation in a neural net that included floor as an activation function. So basically, I did this because I need a differentiable floor function.
Fun applications fact: sawtooth waves are popular in electronic synthesizers because the harmonics have relatively high amplitudes compared to most other easy-to-generate periodic functions, allowing one to vary the timbre a lot with various filters. (Also filters are fun to analyze with Laplace transforms.)
Until you get to discrete synthesizers, and then it becomes the game of band limited approximations of the piecewise discontinuity a straight fractional function would have when constrained to a specific sample rate =) (Otherwise all those high harmonics image back from nyquist, and lose their harmonic relationship)
(Filters are still fun to analyze, but you end up in Z transforms)
We can simply find An=0 by seeing that {x}-1/2 is an odd fonction. Therfore the part with cos is null.
I find the formulas forthcoming in this forceful tour-de-fource of fractional fragments of floor-functional fourier series to be formidably informative and unfathomably, fantastically fun!!
Fhanks, Dr. Fenn 🤙🏻🤙🏻
Nice lmao
This made me nauseous
Another formula for the floor function that I don't see mentioned very often is: x-1/2+arctan(cot(pi*x))/pi for x not an integer.
I think we need a video where Dr. Penn shows the sum in the answer, converging to your expression!
That's extremely silly and wonderful.
Is that true? Why would that work?
Nevermind, I solved for it. You have to use the identity cot y=tan(pi/2-y)
PS: It works because of the restricted codomain of arctan. The fractional part of x naturally pops out.
Wow! I didn't know.
a very nice floorier series!
nice pun xD
5:42
"next fix men"
A difficult task indeed
This Fourier series is just one step away from solving the Basel problem. (The series for the {x} function.) Take the integral of the magnitude squared of the function, and of the Fourier series. The result yields the sum of 1/n^2.
The author should explain to the audience that it is not always possible to associate a function and its Fourier series with an equal sign (which he does at the end of the video) for all x. In this example, this can be done only for the points of continuity of the decomposed function.
If we take x = m∈Z, then the resulting Fourier series will always give the value 1/2,
although {m}=0.
If f(x) has a discontinuity of the 1st kind at point x0, then the value of the Fourier series at this point is
(1/2)*[lim(x→x0-)f(x)+lim(x→x0+)f(x)].
P.S. Anyone who has the ability to plot a partial sum of the Fourier series of a function, even when taking into account a large number of terms, can observe the Gibbs phenomenon on the graph.)
Indeed, a very interesting remark !
It's easy to find Foirier series for {x}. But there is another addend, x. For the whole video I waited how Michael is going to write that x as a Fourier series. It is disappointing that this most interesting part was ommited :(
Is this even possible ? I think it's not because f(x) = x can get infinitely high, and you can't write this as a sum of periodic functons.
@@scathiebaby that’s the point
14:59
Man he posted this 8 min ago
The function { x } is known to synth-heads as the sawtooth waveform, beloved of many classic dance tracks.
You mean a... floorier series.
It might be easier to simply state that the fourier transform of a unit square(rect) is a sinc function and so the floor is sum(k*rect(x - k)) and then use linearity of the fourier transform to get the fourier transform of of the floor which can then be used to reconstruct the sign. This avoids having to re-derive all the transforms.
You should show some of these Fourier transforms using the complex Fourier series too, gives the same results and in my opinion is really convenient and elegant
Brilliant. Useful too.
From a physical standpoint it's helpful to think of the a_0 as the DC bias on the signal.
It's interesting to drive the input of a spectrum analyser with the output of a signal generator set to produce sawtooth, square, triangular etc. waveforms and see exactly the Fourier coefficients you obtain from doing the analysis (it would be worrying were it otherwise, but the confirmation is nice). You quite often do this in lab work for a physics or elec eng undergraduate degree.
For those of you who have Mathematica:
floor[x_] := x - 1/2 + 1/Pi Sum[1/n Sin[2 Pi n x], {n, 1, 10}]
floor[2.3]
1.98852
And plot a staircase:
Plot[floor[x], {x, 1, 10}]
4:01 I think the reason why we are allowed to exchange the summation and integration is that we just assume that the series converges.
I computed this literally yesterday, just out of curiosity. What a coincident!
Oh also, I believe that series doesn't converge very quickly. Maybe it would help to use an Euler-Maclaurin estimation?
Once again, a very interesting video delivered in an appetizing format 😎. A future elaboration could encompass the meaning of the "=" sign when stating that something has a Fourier series. For instance, what happens close to the end points? And, what does the Fourier series diverging (can this happen? 😏) at a certain x value tell us about the function in the vicinity of that particular x value?
Anyhow... Once a great video. Thanks, prof P!
If you take the first derivative of this form, you get a non-converging series:
d/dx(floor(x)) = 1 + 2 sum{n=1 to infinity}(cos(2*pi*n*x))
If x is an integer the terms in the series are all 1, and the result is infinite (which makes sense for the jump discontinuity of the floor function at integer values). In all other cases, the terms of the series vary between -1 and 1 but never reach a limit of 0 (or any other limit for that matter) and the sum is undefined.
On the other hand the derivative should clearly be zero for all non-integer values, so the sum should be -1/2.
The derivative is simply a DC constant added to an impulse train. The FS coefficients of impulse train is constant (non decreasing), and very easy. Then, simply apply the inverse derivative (1/jw) property, and, voila, you get the same expression (in fact, easier than these integrals).
As usual cool video. Thank you.
what about calculating the laplace transform of the floor function? Don't think I've ever seen that done.
Great! Could you give an analysis of moving median function, please? It would be supercool. Thank you
Its a bit tricky for the discontinuity part. This is very thematic
That was really nice!
Does that definition of the floor function work for negative numbers ? e.g. floor( -3.6) = -4 , but -3.6 - { -3.6} = -3. Does it not?
Recall that {-3.6} = 0.4
Something about the final result seems off... if you plug in an integer for x, you should get x back, but don't you get x - 1/2 instead?
Ah, there you have it
en.wikipedia.org/wiki/Floor_and_ceiling_functions#Continuity_and_series_expansions
Yeah, it's not _exactly_ the floor function, but it's the closest you can get using a Fourier series.
At 8:16 shouldn't it be the (sum of b_m) = integral(fsin....) Instead of just b_m
Thanks cool
Is the multiplication of sin(2*pi*m*x) where m is a new integer after that neat result we got for an integer n to find the Fourier series of the fractional part and a subsequent period? Otherwise I'm wondering where the idea for the step comes from at 5:29? ERROR/UPDATE - stand corrected Dr. Penn does not apply it to the test function until 8:40 ish. Is what he did prior hand standard Fourier Analysis stuff?
Its not of sin series cuz u have the x factor on the right side. U should expand that too. What gives then?
Being naturally lazy, I probably would have set m \in \mathbb{Z} rather than \in \mathbb{N}. Then m=0 gives the result for a_0.
Also, based on your earlier video, this gives a Fourier series for arctan(cot(2 \pi x)) as the (unsigned) last term.
I wonder why you love the floor function so much. I hate it. I find it useful, but I hate it. It fried my brain more than I like to admit.
e^(-x) is not periodic, but you can still found its Fourier transform (1/(1-w) if I remember correctly)
Fourier *transform* yes, but Fourier *series* are only defined for periodic functions.
@@gcewing they are calculated in the same way tho
They are computed "the same", sure, but that doesn't make the same. A Fourier transform swaps the domain of a function with the Dual Domain. The dual of the real line is the real line.
A periodic function is "really" not a function with domain R, it's a function on a circle domain instead. And the dual of the circle is Z, the integers, which is why periodic functions get "series" instead of "transforms".
I have never seen the proof of the Fourier series, thank you
where is the floor?
I’m not sure if you’ve mentioned before but why is the floor function your favourite?
Love the t-shirt. 😆
Is that a good place to stop? I'd expect to also have to find the transform of x. Didn't mention Kronecker Delta either. Is that just a thing among physicists?
Kronecker delta is discrete, unfortunately. Dirac delta is continuous, and its fourier image is well known, as well as the derivative (Heaviside step function) and other properties.
Floor (0) = -1/2. Got it.
I just wrote an answer on this topic in the stream.
What happens if you plug 0 or 1 into the final form?
I saw that it’s your favorite function;
3:16 The integral of a constant is that constant times x, right?
So in this case int(a_0) = (a_0)x, right?
Yes, however integral *from 0 to 1* of a_0 is a_0
@@kuzu2104 ahh I'm dumb lol. Thank you
What was all this insistence for? The final result is no a Fourier series! It's an amalgam!
This very nice video just lost me for the integration of a nought with respect to x giving the very same a nought, not anything with respect to x... a nought times x??
It is a0 times x, but then it is evaluated from x=0 to 1.
I previously tought that a Fourier series can only contain constant and sin cos term and cannot contain an x
He explains that it’s not really a Fourier series near the beginning because it isn’t a periodic function.
@@briemann4124 oh my bad, I hear it now. Thank you for pointing it out again.
asnwer=1 isit