Final exam
Fourier transform
Any periodic single value function with a finite number of discontinuities, and for which is finite, can be presented as
where
Note that , i.e. average of the function over the period
Since the function is even all




Since the function is odd all except
At a discontinuity, the series approaches the mid point




Notice the overshoots, undershoots, and oscillations near discontinuity


Recall that
It can be shown that
Above requires that exists and is finite.
Note that has the extra when compared to , and is gone.
In reality, we cannot have
Assuming that has a period and we took equidistant points We replace the integral in the Fourier series with the sum
Notice that calculation has factor and is not. This just one of the possible normalization. Some put up front of , and some put in front of both.
Confusion keeps increasing: where are the negative coefficients ? In DFT, they moved to the right end of the vector :
Fast numerical realization of DFT is FFT. This is just the smart way
to do DFT. Python has one built in either numpy or
scipy packages
c=np.fft.fft(y)
Fourier transformy=np.fft.ifft(c)
inverse Fourier transformBoth fft and ifft have norm
parameter which decides at which points to account for
.
Make sure you understand it. This is usually the reason when calculated
coefficients do not make “physical” sense at the first glance.
y = np.fft.ifft(np.fft.fft(y))