All of last lecture we spent building up intuition on what Fourier expansions and series do for us. The takeaway was that Fourier series represents a continuous periodic function in terms of a new basis of sines and cosines, and that the Fourier transform was the extension of this to aperiodic signals which allowed us to move between the time domain and frequency domain representations.
In this lecture we will work out a few examples and then present a version of the Fourier transforms that don't involve complex numbers[1].
Recall that k∈Z and note that for every evenk the quantity in the parenthesis is zero and so F[k]=0 (for k=0 need to take a limit). For k that is odd, a small calculation shows that the quantity reduces to iπk2. Thus,
Let us compute the Fourier coefficients of the waveform shown below:
By observation the period of the triangular waveform above is T=8 and it traverses its peak-to-peak amplitude of 4 units in 4 seconds. Thus over one period [0,8] we can represent it as:
f(t)={t−2,6−t,0<t≤44<t≤8
Then ω0=π/4 and we seek to find the coefficients in the representation
The second and third integrals not requiring integration by parts evaluate to
I2:=πki(1−e−iπk)andI3:=πk3ie−2iπk(eiπk−1)
respectively. Note that these are zero for k even. Some coefficients being zero for odd/even k is due to certain symmetries of the function as we will discuss next. The ones that require integration by parts are a bit more involved and quite hairy to do by hand. One can calculate them, using some CAS or MATLAB if necessary (below shown in Mathematica):
In the above, we see that the calculations are only off by a normalizing factor, which will be often the case since different software/systems use differing conventions.
It is common to write down the Fourier series in terms of the sine and cosine functions separately rather than via the complex exponential[2]. This is easy to do via Euler's identity. Suppose we can write the Fourier Series expansion for a periodic f(t) as:
f(t)=c0+k=1∑∞akcos(kω0t)+bksin(kω0t)
then it is not unreasonable to expect that the above formulation must be related to (1) via Euler's formula. Indeed we can write:
The above relationship while illuminating, still requires us to compute the complex coefficients first to get to the trigonometric ones. However, we can get the c0,ak and bk directly as:
As noted above often some coefficients in the Fourier expansion will turn out to be zero. This can be predicted by looking for specific types of symmetries in a function. Thus we have the following definitions:
A function f(t) is an odd function if f(−t)=−f(t).
A function f(t) is an even function if f(−t)=f(t).
Based on the above we have that:
The sum of two even functions is even, and of two odd ones odd.
The product of two even or two odd functions is even.
The product of an even and an odd function is odd.
The top plots in the figure below show two classic polynomial examples of odd and even functions.
It is easy to see that symmetries simplify some integrals. For example based on the figures above and considering "area cancellations" or "area additions":
Since the sine function is odd and the cosine function is even the integrands in (6) themselves can be odd or even depending on the type of function f(t). These can be understood in terms of area cancellations or additions as alluded to above. Table 3.1 from CSSB summarizes the effect of symmetries on the Fourier sine and cosine coefficients.
Consider again the square wave from (2). We can verify by plotting the function that it is indeed an odd one.
Thus the coefficients an=c0=0 and we are left with a Fourier Sine series for this function consisting of only the bn coefficients. These can be computed as:
It is easy to verify that the final coefficients are zero for k even which dovetails with the fact that the above function also has half-wave symmetry.
Answer: Left as an exercise. One just needs to do i(Fk−F−k) for k that is odd.
The triangle wave depicted above is even. Thus all the bk=0. For c0, the average value is also zero by inspection. Thus we are left to compute ak. We have
It is easy to verify that the above coefficients vanish for even k. The first few terms are shown below (compare with earlier derivation using CAS):
{π24A,0,9π24A,0,25π24A,0,49π24A,0,81π24A,0}
Answer: Because the functions are negatives of each other for A=2 and because of the half-wave symmetry.
While this lecture was mostly analytical, in the next one we will get started with learning more about different software implementations of and related to Fourier Analysis.
I hesitate to call it the real transform because neither is more real than the other, except maybe that the complex formulation has several advantages (compactness of notation being the least) over the real one - which we will discuss later.
Fourier himself passed away in 1830 and it seems it wasn't until 1831 that the great mathematician Gauss delineated the formalism we use today for complex numbers. Therefore it seems likely that for a very long time (and maybe even today) people preferred this second "real" approach that doesn't involve i or ei.