A derivation of the discrete Fourier transform
From Wikipedia, the free encyclopedia
The article discrete Fourier transform simply defines the transform as:
In the context of signal processing, the motivation for the DFT is usually based on its close relationship to the actual Fourier transform of a signal that has been digitized. This article explores that relationship. The derivation below is an abbreviated and modified version of discrete-time Fourier transform.
When the sequence represents a subset of the samples of a waveform
, we can model the process that created
as applying a window function to
, followed by sampling (or vice versa). It is instructive to envision what those operations do to the Fourier transform,
. The window function widens every frequency component of
in a way that depends on the type of window used. That effect is called spectral leakage. We can think of it as causing
to blur... thus a loss of resolution. The sampling operation causes the Fourier transform to become periodic. Copies of the blurred
are repeated at regular multiples of the sampling frequency,
, and summed together where they overlap. The copies are aliases of the original frequency components. In particular, due to the overlap, aliases can significantly distort the region containing the original
(if
is not sufficiently large enough to prevent it). But if the windowing and sampling are done with sufficient care, the Fourier transform still contains a reasonable semblance of
. The transform is defined as:
This continuous Fourier transform is valid for all frequencies, including the discrete subset:
One thing to note about this subset is that the width of the region it spans is , which is the periodicity of
. So there is no need for more frequencies at this spacing
.
Another thing to notice is that: . So the DFT coefficients are a subset of the actual (continuous) Fourier transform of the windowed and sampled waveform. And we note that periodicity of the time-samples has not been assumed. In fact up to this point, it is specifically in contradiction with the assumed window function.
Obviously, the original sequence can be recovered from
by doing an inverse Fourier transform. But remarkably, it can also be shown that:
which is the inverse discrete Fourier transform. Thus, the DFT coefficients preserve all of the original information, except one thing:
- The original
sequence was windowed, whereas this function is periodic (if we were to allow values of n outside the range shown). In the frequency domain it is the difference between a continuous function,
, and a discrete one,
.
These are all good reasons why we are normally content to work with instead of the more cumbersome
. We just have to be careful about the significance we attach to the apparent periodicity of the inverse transform. If the original
sequence was periodic (and of course not windowed), then
would be zero in between the DFT frequencies, and the periodicity of the inverse DFT would have significance. Otherwise it is just an artifact of substituting
for
[edit] Discrete Time Fourier Transform
For completeness, we note that with this definition:
we can also write (now a function of
) as:
-
, (because of the window function)
which is now recognizable as the discrete-time Fourier transform.
In conclusion, rather than simply presenting the DFT and the DTFT as definitions, we have shown how they can be related back to the continuous Fourier transform of the original continuous signal .