Professional Documents
Culture Documents
Matt Hollingsworth
Abstract
The Fourier Series, the founding principle behind the field of Fourier Analysis, is an infinite
expansion of a function in terms of sines and cosines. In physics and engineering, expanding functions
in terms of sines and cosines is useful because it allows one to more easily manipulate functions that
are, for example, discontinuous or simply difficult to represent analytically. In particular, the fields
of electronics, quantum mechanics, and electrodynamics all make heavy use of the Fourier Series.
Additionally, other methods based on the Fourier Series, such as the FFT (Fast Fourier Transform –
a form of a Discrete Fourier Transform [DFT]), are particularly useful for the fields of Digital Signal
Processing (DSP) and Spectral Analysis.
PACS numbers:
I. INTRODUCTION
FIG. 1: Fourier Series Examples
∞
X
f (t) = An einx (1)
n=−∞
Thus, the Fourier Series is an infinite superposition Here, the H(w) fulfills the role of the An ’s in equations
of imaginary exponentials with frequency terms that in- (1) and (2); it gives an indicator of “how much” a par-
crease as n increases. Since sines and cosines (and in turn, ticular frequency oscillation contributes to the function
imaginary exponentials) form an orthogonal set1 , this se- f (t).
ries converges for any moderately well-behaved function Assume that we have a equidistant, finite data set
f (x). Examples of the Fourier Series for different wave- hk = h(tk ), tk = k∆, and we are only interested in N
forms are given in figure I. equidistant, discreet frequencies in the range −ωc to ωc .
We thus wish to examine the frequencies wn = 2πn N ∆ , for
N = −N 2 , ..., N
2 , where we let ∆ be the same ∆ which
II. THE FAST FOURIER TRANSFORM
defines our tk ’s. We may provide an approximation to
the Fourier Transform in this range by a Riemann sum
The Fourier Series is only capable of analyzing the fre- as follows3 :
quency components of certain, discreet frequencies (in-
tegers) of a given function. In order to study the case Z ∞
where the frequency components of the sine and cosine H(ωn ) = h(t)eiωt dt
terms are continuous, the concept of the Fourier Trans- −∞
form must be introduced. The imaginary exponential N
X −1
form of the Fourier Transform is defined as follows: ≈ hk eiωn tk ∆
k=0
Z ∞
H(ω) = h(t)eiωt dt (3) Using our definition of tk , this expression reduces to
−∞
N −1
Z ∞
1 2πn
X
h(t) = H(ω)e −iωt
dω (4) H(ω) ≈ ∆ hk eik N (5)
2π −∞ k=0
2
This equation is called the Discreet Fourier Transform the compution time from O(N 2 ) operations to the much
(DFT) of the function h(t). If we denote Hn as more manageable O(N log2 N ) operations. There are
many different FFT algorithms; the one presented here is
N −1
simply the most common one, known as a Cooley-Tukey
X 2πn FFT algorithm. There are other algorithms which can
Hn = hk eik N (6)
decrease computation time by 20 or 30 percent (so-called
k=0
base-4 FFTs or base-8 FFTs)4 . Most importantly, both
the Fourier Transform, H(ω), may then be approxi- classes of FFT algorithms are fast enough to embed into
mated using the expression modern digital oscilloscopes and other such electronic
equipment. Thus, FFTs have many modern applications,
such as Spectrum Analyzers, Digital Signal Processors
H(ω) ≈ ∆Hn (7) (DSPs), and the numerical computation arbitrary-size
multiplication operations.
Comparing equation (6) with the Fourier Series given
in equation (1), it is clear that this is a form of the Fourier
Series with non-integer frequency components.
III. THE SPECTRUM ANALYZER
Currently, the most common and efficient method of
numerically calculating the DFT is by using a class of al-
gorithms called “Fast Fourier Transforms” (FFTs). The An important instrument to any experimentalist is the
first known discovery of the FFT was by Gauss in 1805; spectrum analyzer. This instrument reads a signal (usu-
however, the first modern “rediscovery” of the FFT was ally a voltage) and provides the operator with the Fourier
done in 1942 by Danielson and Lanczos4 . They were coefficients which correspond to each of the sine and co-
able to show one may divide any DFT into a sum of two sine terms of the Fourier expansion of the signal. Sup-
DFT’s which each correspond to N2 − 1 points. pose an instrument takes a time-domain signal, such as
The proof of Danielson and Lanczos’s assertion is the the amplitude of the output voltage of an instrument.
following4 : Let us call this signal V(t). Then the DFT of V(t) is
First, define W as the complex number
N −1
2πn
X
W =e 2πi/N
(8) Hn = vk eik N (10)
k=0
Equation (6) may then be written
We see that this equation is of the same form of
equation (6), which means that the previously described
N −1
X methods of the FFT apply to the function. Thus, any
Hn = W nk hk (9) digital oscilloscope that is sufficiently fast and equipped
k=0
with a FFT algorithm is capable of providing the user
Any DFT may then be written as follows: with the frequency components of the source signal.
Oscilloscopes which are equipped with the ability to
FFT their inputs are termed “Digital Spectral Analyz-
N −1
X ers”. Although they were once a separate piece of equip-
Hn = e2πink/N hn ment for experimentalists, improvements in digital elec-
k=0
tronics has made it practical to merge the role of oscil-
N/2−1 N/2−1
X X loscopes with that of the Spectral Analyzer; it is quite
= e2πi(2k)n/N h2k + e2πi(2k+1)n/N h2k+1 common now that FFT algorithms come built into oscil-
k=0 k=0 loscopes.
N/2−1 N/2−1 Spectrum Analyzers have many uses in the laboratory,
X X
= e2πi(2k)n/(N/2) h2k + W k e2πi(2k)n/(N/2) h2k+1
but one of the most common uses is for signal noise stud-
k=0 k=0 ies. As shown above, the FFT of the signal gives the
e
= Hn + W Hn k O amplitudes of the various oscillatory components of the
input. After normalization, this allows for the experi-
Here, Hne denotes the even terms of the sum (the ones mentalist to determine what frequencies dominate their
corresponding to the index 2k) and HnO denotes the odd signal. For example, if you have a DC signal, you would
terms (the ones corresponding to the index 2k + 1). expect the FFT to show only very low frequency oscil-
The most useful part of this formula is that it can be lations (i.e., the largest amplitudes should correspond to
used recursively, since each of these Hne and HnO terms f ≈ 0). However, if you see a sharp peak of amplitudes
may be independently expanded using the same algo- around 60 Hz, you would know that something is feed-
rithm, each time reducing the number of calculations by ing noise into your signal with a frequency of 60 Hz (for
a factor of 2. In fact, this class of FFT algorithm shrinks example, an AC leakage from your power source).
3
IV. DIGITAL SIGNAL PROCESSING In modern-day experiments, raw data is often recorded
during the experiment and corrected for noise in software
We have already seen how the Fourier Series allows during the analysis step. If one filters the signal before-
experimentalists to identify sources of noise. It may also hand (with analog signal processing), it is possible that
be used to eliminate sources of noise by introducing the later in the experiment, the experimenter could find that
idea of the Inverse Fast Fourier Transform (IFFT). they filtered out good signal. The only option in this case
In general, the goal of an Inverse Fourier Transform is to is for the experiment to be rerun. On the other hand, if
take the An (the ones that appear in eq (5) and use them the signal processing was done digitally, all that the ex-
to reconstruct the original function, f (t). perimenter has to do is edit their analysis code and rerun
Analytically, this is done by multiplying each An by the analysis; this could save both time and money.
n
e2πik N then taking the sum over all n. However, this
is an inefficient algorithm to use when the calculation
must be done numerically. Just as there is a fast numer- V. ANALYTICAL APPLICATIONS
ical algorithm for approximating the Fourier coefficients
(the FFT), there is another efficient algorithm, called the The Fourier Series also has many applications in math-
IFFT, which is capable of calculating the Inverse Fourier ematical analysis. Since it is a sum of multiple sines and
Transform much faster than the brute-force method. cosines, it is easily differentiated and integrated, which
In 1988, it was shown by Duhamel, Piron, and Etcheto7 often simplifies analysis of functions such as saw waves
that the IFFT is simply which are common signals in experimentation.
fact, the FFT method is the preferred method of cal- where cn is the normalization constant given by the
culating convolutions which prevents the need for direct orthogonality relationship defined in (13). Equating the
integration5 . first and last parts leaves us with
1 6
Weisstein, Eric W. ”Fourier Series.” From MathWorld–A Mathematical Methods for Physicists. Arfken, Weber.
7
Wolfram Web Resource Duhamel, P.; Piron, B.; Etcheto, J.M., ”On computing the
http://mathworld.wolfram.com/FourierSeries.html inverse DFT,” Acoustics, Speech and Signal Processing,
2
Weisstein, Eric W. ”Convolution Theorem.” IEEE Transactions on , vol.36, no.2, pp.285-286, Feb 1988
From MathWorld–A Wolfram Web Resource. URL: http://ieeexplore.ieee.org.proxy.
http://mathworld.wolfram.com/ConvolutionTheorem.html lib.utk.edu:90/iel1/29/98/00001519.pdf
3 8
Numerical Methods in C: The Art of Scientific Computing. Introduction to Electrodynamics. D. Griffiths. Chapter 3
2nd Edition.. W. H. Press, S. A. Teukolsky, W T. Vetter- (130)
9
ling, B. P. Flannery. Ch. 12. Boas, M., Mathematical Methods in the Physical Sciences,
4
Numerical Methods in C: The Art of Scientific Computing. 2nd edition.
10
2nd Edition.. W. H. Press, S. A. Teukolsky, W T. Vetter- Weisstein, Eric W. ”Generalized Fourier Series.” From
ling, B. P. Flannery. MathWorld–A Wolfram Web Resource.
5
Numerical Methods in C: The Art of Scientific Computing. http://mathworld.wolfram.com/GeneralizedFourierSeries.htm
2nd Edition. W. H. Press, S. A. Teukolsky, W T. Vetter-
ling, B. P. Flannery. Ch. 20, Section 6. (915-925)