Fourier Transform and its Applications
This is my short note on EE 261 Fourier transform and its applications for a brief review.
Fourier series
Basic sum
We can build complex periodic functions by take sums of sinusoids. Let us consider functions with period 1, then the fourier type sum is:
where \(A_n\) is amplitude and \(\phi_n\) is phase. This form explicitly display the amplitude and phase of each harmonics. But it is more common to use:
By including a constant term (n=0):
The constant term \(\frac{a_0}{2}\) is called direct current (DC) component while the other terms, being periodic, 'alternate', as in AC. By using Euler's formula:
we can rewrite the original sum:
Here the coefficients \(c_n\) are complext numbers and has conjugate symmetry property:
i.e., they are complex conjugate, and, of course, have the same magnitude:
We can observe that \(c_0 = \overline{c_0}\) means that it is a real number. To derive conjugate symmetry property, let us consider if the signal is real, then \(f(t) = \overline{f(t)}\), and we then have:
It is clear \(c_{-n} = \overline{c_n}\). Now, if we group \(c_n e^{2\pi i n t}\) with \(c_{-n} e^{-2\pi i n t}\), we have
Therefore, we know the sum is real (of course):
Recover coefficients
Let us assume the signal \(f(t)\) has a period of 1 (Easily to scale time for this bit), to express \(f(t)\) as a sum:
We have \(c_n\) as unknowns. To solve it, let us firstly multiply both side by \(e^{-2\pi i k t}\):
Thus,
To solve this equation, we can take integration from 0-1 (period 1). We know that:
Since \(\int_0^1 c_k dt = c_k\), we have
To summarize:
The \(c_n\) is called fourier coefficients of \(f(t)\) (sometimes people also use \(\hat{f}(n)\) to represent it), and the sum \(\sum_{n=-N}^N c_n e^{2\pi i n t}\) is called a (finite) Fourier series. Here we know \(c_0\) is simply average value of the function:
Period, Frequency and spectrum
Let us consider a fourier series representation of \(f(t)\)
Spectrum: The set of frequencies present in a given periodic signal is the spectrum of the signal
Bandwidth: If the coefficients are all zero for some point on: \(\hat{f}(n) = 0\) for \(|n|>N\), then we say the spectrum is limited to the points between \(-N\) and \(N\), i.e., bandwidth is \(N\).
Power (energy) spectrum: The sequence of squared magnitudes \(|\hat{f}(n)|^2\).
ALL coefficients are real when the signal is real and even.
What if period isn't 1? We can scale it with period \(T\):
where the coefficients are given by:
As in the case of period 1, we can integrate over any interval of length \(T\), e.g.
Here we can see in the time domain the signal repeats after \(T\) seconds while the points in spectrum is \(\boldsymbol{1/T}\) apart (\(e^{2\pi i n t/T}\))
The math, the majesty the end
I will leave the conclusion here. Let \(f(t)\) be in \(L^2([0, 1])\) and let:
be its Fourier coefficients. Then:
The energy of \(f(t)\) can be calculated from its Fourier coefficients:
Fourier transform
Basic definition
Now we pass from periodic to non-periodic functions in that \(T\rightarrow\infty\). We could define the Fourier transform of a function \(f(t)\):
Spectrum: The spectrum of a periodic function is a discrete set of frequencies while the Fourier transform of a non-periodic signal produces a continuous spectrum.
We can define inverse Fourier transform:
The domain of the Fourier transform is the set of real numbers \(s\). We can say \(\hat{f}(s)\) is defined on the frequency domain. Note that NOT ALL frequencies need occur, i.e., we might have \(\hat{f}(s) = 0\) for \(|s|\) large, then we call the signal bandlimited.
Notations: It is common to use \(\mathcal{F}f(s)\) for \(\hat{f}(s)\) and \(\mathcal{F}^{-1}\) as inverse Fourier transform.
General properties and formulas
According to the definition of Fourier transform, we can observe the duality of the Fourier transform pair:
Discrete Fourier transform
From Continouous to Discrete
Consider a signal \(f(t)\), we suppose it is zero outside \(0\le t \le L\), and its Fourier transform \(\mathcal{F}f(s)\) is zero or effectively zero outsider of \(0\le s \le 2B\) (Note here we assume \(\mathcal{F}f\) lies in intervale from \(0\) to \(2B\) instead of \(-B\) to \(B\)). Thus, here the assumption is \(f(t)\) is both time-limited and band-limited.
According to the sampling theorem, we can reconstruct f(t) at the rate of \(2B\) samples per second i.e., samples are \(1/2B\) apart, which means we want a total of
evenly spaced samples, at the points
Now we can represent the discrete version of \(f(t)\) continuoosly with the aid of a finite impulse train at the sample points:
$$ \sum_{n=0}^{N-1}\delta(t-t_n) $$ that is,
The Fourier transform of \(f_{\mathrm{discrete}}\) is thus:
This the continous Fourier transform of the smapled form of \(f(t)\). Now if we look from the Frequency domain, the function \(f(t)\) is limited to \(0\le t\le L\), and this deterimines a sampling rate for reconstrucing \(\mathcal{F}f(s)\) from its samples in the frequency domain, i.e. the sampling rate would be \(1/L\) (Look into "what if period is not 1" section if you don't understand this bit). Thus, we sample the \(\mathcal{F}f(s)\) over the interval from \(0\) to \(2B\) in the frequency domain at points spaced \(1/L\) apart. The number of sample points is
the same number of sample points \(s_m\) as for \(f(t)\), they are
Now we come up with the discrete verison of \(\mathcal{F}f(s)\):
And by using the definition of the points:
We have
Discrete Fourier Transform (DFT)
Now let us define DFT formally. Given a discrete function \(\mathbf{f}\) and write as N-tuple as:
The DFT of \(\mathbf{f}\) is the N-tuple \(\mathbf{F} = (\mathbf{F}[0], \mathbf{F}[1], \dots, \mathbf{F}[N-1])\) defined by:
We can rewrite it in a vector form:
where
The components of \(\underline{\mathcal{F}}\mathbf{f}\) would be the values of \(\underline{\mathcal{F}}\mathbf{f}\) at the points \(m=0, 1, \dots, N-1\):
Positive and negative frequencies
Let us recall that \(\mathcal{F}f(-s) = \overline{\mathcal{F}f(s)}\). In DFT, we have a same property (need re-index a bit). Suppose that \(N\) is even, we can find that at the midpoint:
That is to say \(\underline{\mathcal{F}}\mathbf{f}[N/2]\) is real, and the spectrum "splits" at \(N/2\). Let us consider \(\underline{\mathcal{F}}\mathbf{f}[N/2+1]\) and \(\underline{\mathcal{F}}\mathbf{f}[N/2-1]\):
Thus, we can see
This extends to
Inverting the DFT
The iDFT can be written as: