Fourier Series and Integrals
Fourier Series and Integrals
Fourier Series and Integrals
Fourier Series
Let f (x) be a piecewise linear function on [−L, L] (This means that f (x) may possess
a finite number of finite discontinuities on the interval). Then f (x) can be expanded in a
Fourier series
∞
a0 X nπx nπx
f (x) = + an cos + bn sin , (1a)
2 n=1
L L
or, equivalently,
∞
X
f (x) = cn einπx/L (1b)
−∞
with
(an − ibn )/2 n<0
cn = (an + ibn )/2 n>0.
a0 /2 n=0
This emphasizes that the Fourier series can be viewed as an expansion of a vector f~ in
Hilbert space, in a basis that is spanned by the ĉn (cosine waves of different periodicities)
and the ŝn (sine waves).
To invert the Fourier expansion, multiply Eq. (1) by cos nπxL
or sin nπx
L
and integrate
over the interval. For this calculation, we need the basic orthogonality relation of the basis
functions: Z L
nπx mπx
cos cos dx = δmn L, (3)
−L L L
and similarly for the sin’s. Intuitively, for n 6= m, there is destructive interference of the
two factors in the integrand, while for n = m, there is constructive interference.
Thus by multiplying Eq. (1) by cos nπx
L
and integrating, we obtain
Z L Z L" ∞
#
mπx a0 X nπx nπx mπx
f (x) cos dx = + an cos + bn cos dx, (4)
−L L −L 2 1
L L L
1
The inversion of the Fourier series can be viewed as finding the projections of f~ along each
basis direction. Schematically, therefore, the inversion can be represented as
f~ · ĉm =
X X
(an ĉn + bn ŝn ) · ĉm = an δnm = am , (6a)
n
which implies
am = f~ · ĉn . (6b)
These steps parallel the calculation that led to Eq. (5). This schematic representation
emphasizes that the Fourier decomposition of a function is completely analogous to the
expansion of a vector in Hilbert space in an orthogonal basis. The components of the
vector correspond to the various Fourier amplitudes defined in Eqs. (5a) and (5b).
h
x
-2L -L 0 L 2L 3L
L
1 nπx
Z
an = f (x) cos dx = 0 ∀n
L −L L
As a result, the spectral information of the square wave is entirely contained in the bn ’s.
These coefficients are
L L
1 nπx 2h nπx 2h
Z Z
bn = f (x) sin dx = sin dx = (1 − cos nπ),
L −L L L 0 L nπ
There are a number of important general facts about this expansion that are worth em-
phasizing:
• Since f (x) is odd, only odd powers of the antisymmetric basis functions appear.
2
• At the discontinuities of f (x), the Fourier series converges to the mean of the two
values of f (x) on either side of the discontinuity.
• A picture of first few terms of the series demonstrates the nature of the convergence
to the square wave; each successive term in the series attempts to correct for the
“overshoot” present in the sum of all the previous terms
one term
two terms
three terms
ten terms
• The amplitude spectrum decays as 1/n; this indicates that a square wave can be
well-represented by the fundamental frequency plus the first few harmonics.
• By examining the series for particular values of x, useful summation formulae may
sometimes be found. For example, setting x = L/2 in the Fourier sine series gives
4h π 1 3π 1 5π
f (x = L/2) = h = sin + sin + sin +···
π 2 3 2 5 2
and this leads to a nice (but slowly converging) series representation for π/4:
π
= (1 − 1/3 + 1/5 − 1/7 + 1/9 · · ·).
4
3
f(x)
h
x
-2L -L 0 L 2L 3L
Now f (x) = +f (−x). By symmetry, then, bn = 0 ∀n, and only the an ’s are non-zero.
For these coefficients we find
1 L nπx 2 L nπx
Z Z
an = f (x) cos = f (x) cos
L −L L L 0 L
"Z #
L/2 Z L
2h nπx nπx
= cos dx − cos dx
L 0 L L/2 L
"Z #
nπ/2 Z nπ
2h
= cos t dt − cos t dt
nπ 0 nπ/2
2h h nπ/2
i
= sin t |0 − sin t |nπ
nπ/2
nπ
4h (n−1)/2
= nπ (−1) n odd .
0 n even
Thus it is always simpler to choose an origin so that f (x) has a definite symmetry, so that
it can be represented by either a sin or cosine series
2. Repeated Parabola
This is the periodic extension of the function x2 , in the range [−π, π], to the entire real line.
Given any function defined on the interval [a, b], the periodic extension may be constructed
in a similar fashion. In general, we can Fourier expand any function on a finite range; the
Fourier series will converge to the periodic extension of the function.
4
−3π −π π 3π
bn = 0 ∀n
π
1 2π 2
Z
a0 = x2 dx =
π −π 3
Z π
2 4
an = x2 cos nx dx = (−1)n 2
π 0 n
5
In summary, a Fourier series represents a spectral decomposition of a periodic waveform
into a series of harmonics of various frequencies. From the relative amplitudes of these
harmonics we can gain understanding of the physical process underlying the waveform. For
example, one perceives in an obvious way the different tonal quality of an oboe and a violin.
The origin of this difference are the very different Fourier spectra of these two instruments.
Even if the same note is being played, the different “shapes” of the two instruments
(string for the violin; air column for the oboe) imply very different contributions of higher
harmonics. This translates into very different respective Fourier spectra, and hence, very
different musical tones.
Fourier Integrals
For non-periodic functions, we generalize the Fourier series to functions defined on
[−L, L] with L → ∞. To accomplish this, we take Eq. (5),
L
1 nπx
Z
an = f (x) cos dk
L −L L
By using the exponential form of the Fourier series, we have the alternative, but more
familiar and convenient Fourier integral representation of f (x),
Z ∞
1
f (x) = √ f (k)eikx dk. (11b)
2π −∞
√
Where the (arbitrary) prefactor is chosen to be 1/ 2π for convenience, as the same pref-
actor appears in the definition of the inverse Fourier transform. In symbolic form, the
Fourier integral can be represented as
f~ =
X
fk êk .
continuous sum on k
6
To find the expansion coefficients f (k), one proceeds in precisely the same manner as in
the case of Fourier series. That is, multiply f (x) by one of the basis functions and integrate
over a suitable range. This gives
Z ∞ Z ∞Z ∞
−ik′ x 1 ′
f (x)e dx = √ f (k)ei(k−k )x dx dk (12)
−∞ 2π −∞ −∞
However, the integral over x is just the Dirac delta function. To see this, we write
∞ L
2 sin(k − k ′ )L
Z Z
i(k−k′ )x ′
e dx = lim ei(k−k )x dx = (13a)
−∞ L→∞ −L k − k′
The function on the right-hand side is peaked at k = k ′ , with the height of the peak equal
to 2L, and a width equal to π/L. As L → ∞, the peak becomes infinitely high and narrow
in such a way that the integral under the curve remains a constant. This constant equals
2π. Thus we write Z ∞
′
ei(k−k )x dx = 2πδ(k − k ′ ) (13b)
−∞
Schematically,
f~ · êk′ = f~k êk · êk′ ⇒ fk = f~ · êk .
X
f(t) f(ω)
1
t 1/T
ω
T
7
Notice that there is an inverse relationship between the width of f (t) and the width of
the corresponding Fourier transform f (ω). The Fourier spectrum is concentrated at zero
frequency; these conspire to give destructive interference except in the range |t| < T /2.
∞
1 1 1
Z
f (ω) = √ eαt+i(ω0 −ω)t = √
2π 0 2π [α − i(ω0 − ω)]
or
This latter waveform is often called a Lorentzian. The relation between the damped
harmonic wave the its Fourier transform are shown below for the case ω0 = 1 and α = 1/4
1.0 4
f(t)=sint(ω0t)e
−αt |f(ω)|
0.5
3
1/α
2
0.0
t
1 α
−0.5
0 10 20 30
0
ω−ω0
−4 −2 0 2 4
As the damping goes to zero, the width of the Lorentzian also vanishes. This em-
bodies the fact that a less weakly-damped waveform is less contaminated with frequency
components not equal to ω0 . Clearly, as the damping goes to zero, only the fundamental
frequency remains, and the Fourier transform is a delta function.
3. Gaussian
1 2
/2t20
f (t) = p e−t
2πt20
8
To calculate this Fourier transform, complete the square in the exponential:
Z ∞
1 2 2
f (ω) = p 2 e−t /2t0 −iωt dt
2πt0 −∞
Z ∞
1 2 2 2 2 2 2
=p e−t /2t0 −iωt+ω t2 /2−ω t2 /2 dt
2πt20 −∞
Z ∞
1 √ √ 2 2 2 (17)
=p 2 e−(t/ 2t0 −iωt0 / 2) −ω t2 /2 dt
2πt0 −∞
Z ∞
1 √ 2 2 2
=√ e−(u−iωt0 / 2) −ω t2 /2 dt
π −∞
2 2
t0 /2
= e−ω .
√
In the second-to-last line, we introduce u = t/ 2t0 , and for the last line we use the
R∞ 2 √
fact that −∞ e−u du = π. The crucial point is that the Fourier transform of a Gaussian
is also a Gaussian! The width of the transform function equal to the inverse width of the
original waveform.
Then
T
1 1 ei(ω0 −ω)T − 1
Z
f (ω) = √ ei(ω0 −ω)t dt = √
2π 0 2π i(ω0 − ω)
1.2 0.6
|f(ω)|
0.4
0.4
1/T
0.2
T
−0.4
0.0
T
ω−ω0
−1.2 −0.2
0 10 20 30 −40 −20 0 20 40
The behavior of the finite wavetrain is closely analogous to that of the damped harmonic
wave. The shorter the duration of the wavetrain, the more its Fourier transform is con-
taminated with other frequencies beyond the fundamental.
9
Wavevector Quantization
In certain applications, typically in solid state physics or other problems defined on
a lattice, f (x) is defined only on a discrete, periodic set points. The discreteness yields a
condition of the range of possible wavevectors as well as the number of normal modes in
the system. As a typical example, consider the transverse oscillations of a loaded string
of length L = 4a which contains 5 point masses, with both endpoints held fixed. There
are a discrete set of normal mode oscillations for this system; these modes and their
corresponding wavevectors kn = nπ 4a
are shown below. Also shown is the corresponding
continuous waveform, sin kn x (dashed).
k=0
0 a 2a 3a 4a
k = π/4a
k = 2π/4a
k = 3π/4a
k = 4π/4a
Notice that k = π/a and k = 0 give identical displacement patterns for the discrete
system. Therefore in defining the Fourier transform, it is redundant to consider values of k
such that k ≥ π/a. The range 0 < k < π/a is called the first Brillouin zone in the context of
solid-state physics. Thus when performing a Fourier analysis on a discrete system (either
Fourier series or Fourier integral), one must account for the restriction imposed by the
system discreteness in defining the appropriate range of k values.
10