Chapter 9: Fourier Transform

NOTE: Math will not display properly in Safari - please use another browser

The material covered in this chapter is also presented in Boas Chapter 7, Sections 12.

9.1 Fourier Transform

Can Fourier series be applied to functions f(x) that are not periodic? Strictly speaking the answer is no. But we can generalize the approach to provide a positive answer. The trick is to take the periodicity length 2L to infinity, so that the function becomes periodic with an infinite period --- which is the same thing as not being periodic at all. A consequence of this limiting procedure is that the set of wave numbers implicated in the Fourier expansion will no longer be discrete, but will form a continuum. Discrete sums will therefore be replaced by integrals, and the standard Fourier series will become a Fourier transform. This is the topic of this chapter.

Recall from Chapter 7 --- refer back to Sec.7.7 --- that the Fourier series of a function f(x), periodic with period 2L, is given by

f(x)=n=cneinπx/L,

with coefficients

cn=12LLLf(x)einπx/Ldx.

Writing einπx/L=eiknx, we see that the set of wave numbers involved in the expansion is given by kn=nπ/L, so that the set of wavelengths is λn=2π/kn=2L/n. With n an integer ranging from n= to n=, these are infinite but discrete sets.

We wish to take the limit L, and for this purpose it is useful to rewrite Eqs.(9.1) and (9.2) in terms of kn. We have

f(x)=n=cneiknxΔn,cn=12LLLf(x)eiknxdx,

where we inserted a trivial factor Δn=1 in the Fourier series, to make it outrageously obvious that the sum is taken in unit steps of n. The reason for doing this is that we now wish to replace the summation variable with kn, which increases in steps of Δkn=(π/L)Δn. This gives us

f(x)=Lπkn=ckneiknxΔkn,ckn=12LLLf(x)eiknxdx,

and these equations indicate that the limit L is problematic: the sum for f(x) comes with an overall factor of L that goes to infinity, and the integral for ckn comes with a factor of 1/L that goes to zero.

These problems go away if we define gkn:=Lckn/π and assume that as L, ckn0 so that the product Lckn stays finite. With this notation the equations become

\begin{align} f(x) &= \sum_{k_n=-\infty}^\infty g_{k_n} e^{i k_n x} \Delta k_n, \tag{9.5a} \\ g_{k_n} &= \frac{1}{2\pi} \int_{-L}^L f(x) e^{-i k_n x}\, dx, \tag{9.5b}

and taking the limit no longer seems problematic. With L we have that Δkn=(π/L)Δn becomes extremely small, and should therefore be interpreted as the infinitesimal dk. In the limit the discrete variable kn becomes the continuous variable k, the coefficients gkn become the function g(k), and the discrete sum over kn becomes an integral.

Taking the limit therefore takes us to the pair of equations

f(x)=g(k)eikxdk,g(k)=12πf(x)eikxdx.

The function g(k) is called the Fourier transform of f(x). Equation (9.6a) is the generalization of the Fourier series to nonperiodic functions, and Eq.(9.6b) allows us to calculate g(k) from f(x); this complex function of k is the generalization of the Fourier coefficients cn.

The Fourier transform is often used to represent functions of time. In this context the variable x is replaced by t, and the wave number k is replaced by the angular frequency ω. It is conventional to let kω when making this replacement. It is also conventional to change the notation of the Fourier transform, so that g(k) is replaced by g(ω) instead of g(ω). So the Fourier pair becomes

begin{align} f(t) &= \int_{-\infty}^\infty g(\omega) e^{-i \omega t}\, d\omega, \tag{9.7a} \\ g(\omega) &= \frac{1}{2\pi} \int_{-\infty}^\infty f(t) e^{i \omega t}\, dt \tag{9.7b} \end{align}

when dealing with functions of time. In this new context the Fourier transform g(ω) is sometimes called the frequency spectrum of the function f(t). It is important to understand that Eqs.(9.6) and (9.7) have precisely the same mathematical content; they differ in notation only.

9.2 Two-Step Function

As a first example we consider the two-step function defined by

f(t)={1τ<t<τ0otherwise.

Its Fourier transform is calculated with the help of Eq.(9.7b). We have

g(ω)=12πf(t)eiωtdt=12πττeiωtdt=eiωt2πiω|ττ=12πiω(eiωτeiωτ),

or

g(ω)=sin(ωτ)πω.

The function and its Fourier transform are shown in Fig.9.1.

 Two step function
Figure 9.1: Two-step function and its Fourier transform. The plots were produced with τ=1.

This example (and the other ones below) reveals an interesting connection between the functions f(t) and g(ω). Both functions can be characterized by a certain spread. In the case of f(t), the function is nonzero for a finite interval of time only, and the half-width Δt=τ can be taken as a measure of its spread. In the case of g(ω), the function is nonzero over the entire interval <ω<, but it is sharply peaked around ω=0. A rough measure of its spread can be given by the half-width Δω=π/(2τ), at which point g has decreased by an approximate factor of 0.6. The product of the time and frequency spreads,

ΔωΔt=π21.6,

is a number of order unity, independent of τ. This is a universal feature of functions and their Fourier transforms: the product ΔωΔt is always of order unity. This means that a function f(t) that has a wide spread in time will have a Fourier transform g(ω) that has a narrow spread in frequency; conversely, a function f(t) that has a narrow spread in time will have a Fourier transform g(ω) that has a wide spread in frequency. This observation has far-reaching consequences in quantum mechanics, where frequency is related to energy by Planck's formula E=ω. The relation ΔEΔt is one of the famous Heisenberg uncertainty relations.

9.3 Damped Wave

For a second example we consider the damped cosine wave described by

f(t)=eκ|t|cos(Ωt),

where κ is the damping constant, and Ω is the wave's angular frequency. To calculate the Fourier transform it is helpful to convert the cosine into complex exponentials. For t>0 we write

f(t)=eκtcos(Ωt)=12eκt(eiΩt+eiΩt)=12[ei(Ω+iκ)t+ei(Ω+iκ)t],

while for t<0,

f(t)=eκtcos(Ωt)=12eκt(eiΩt+eiΩt)=12[ei(Ωiκ)t+ei(Ωiκ)t].

Inserting this in Eq.(9.7b) gives

 g(ω)=14π0[ei(Ωiκ)t+ei(Ωiκ)t]eiωtdt+14π0[ei(Ω+iκ)t+ei(Ω+iκ)t]eiωtdt=14πi{ei(ω+Ωiκ)tω+Ωiκ|0+ei(ωΩiκ)tωΩiκ|0+ei(ω+Ω+iκ)tω+Ω+iκ|0+ei(ωΩ+iκ)tωΩ+iκ|0}=14πi{1ω+Ωiκ+1ωΩiκ1ω+Ω+iκ1ωΩ+iκ};

the contributions from t=± vanish because of the factors eκt in the exponentials. Combining the first and third terms within the curly brackets gives

2iκ(ω+Ω)2+κ2

after simplification, while the second of fourth terms combine to give

2iκ(ωΩ)2+κ2.

Our final expression for the Fourier transform is therefore

g(ω)=κ2π[1(ω+Ω)2+κ2+1(ωΩ)2+κ2].

The function and its Fourier transform are displayed in Fig.9.2.

damped cosine wave
Figure 9.2: Damped cosine wave and its Fourier transform. The plots were produced with Ω=1 and κ=0.2.

Exercise 9.1: Reproduce the calculations that lead to Eq.(9.16). This is a good exercise in complex algebra.


The damped cosine wave has a spread in time that is measured by the half-width Δt=1/κ, which marks the point at which the wave's envelope has decreased by a factor of 1/e0.4. Its Fourier transform features two peaks at ω=±Ω, and the spread in frequency is measured by the half-width of each peak, given by Δω=κ, the point at which the peak has decreased by a factor of 1/2. With these measures of spread we have that

ΔωΔt=1,

and again we find that the right-hand side is a number of order unity, independent of κ and Ω.

9.4 Truncated Cosine Function

Our third example is concerned with a truncated cosine function described by

f(t)={costπ2<t<π20otherwise./tag9.18

With cost=12(eit+eit) the Fourier transform is calculated as

g(ω)=12ππ/2π/2costeiωtdt=14ππ/2π/2[ei(ω+1)t+ei(ω1)t]dt=14πi[ei(ω+1)π/2ei(ω+1)π/2ω+1+ei(ω1)π/2ei(ω1)π/2ω1]=14πi[iω+1(eiωπ/2+eiωπ/2)iω1(eiωπ/2+eiωπ/2)],

where we used the identity e±iπ/2=±i in the last step. The complex exponentials can be converted to a cosine function, and we arrive at

g(ω)=cos(ωπ/2)π(1ω2)

after further simplification. The function and its Fourier transform are displayed in Fig.9.3.

Truncated cosine function and its Fourier transform.
Figure 9.3: Truncated cosine function and its Fourier transform.

Exercise 9.2: Reproduce the calculations that lead to Eq.(9.20).



Exercise 9.3: What is the value of g(ω) at ω=±1?


The time spread of the truncated cosine function can again be measured by the half-width Δt=π/3, at which point the function has decreased by a factor of 1/2. The frequency spread of its Fourier transform is measured by the half-width Δω=π/2, the point by which it has decreased by a factor of approximately 0.53. This gives us

ΔωΔt=π261.6,

9.5 Delta Function

Even the delta function can be given a Fourier transform. If we set

f(t)=δ(tt)

in Eq.(9.7b) we quickly arrive at

g(ω)=eiωt2π

for its Fourier transform. In this case the spread of f(t) is Δt=0, while the spread of g(ω) is Δω=, because the function just keeps on oscillating. With a generous attitude we might interpret the product ΔωΔt=0 as a number of order unity.

If we insert g(ω) back into Eq.(9.7a) we obtain an interesting representation of the delta function,

δ(tt)=12πeiω(tt)dω.

Because the delta function is real, taking the complex conjugate of both sides of this equation yields

δ(tt)=12πe+iω(tt)dω.

These equations make intuitive sense. When tt, the integrand is an oscillating function of ω, the integral adds up the positive and negative contributions, and we end up with a zero value; this is what we expect of δ(tt) when tt. When t=t, however, the complex exponential becomes equal to one, and the integral gives infinity, precisely what we expect of the delta function.

We can produce alternative representations of the delta function by adapting the notation. If, in Eqs.(9.24) or (9.25), we let tω, tω, ωt, and dωdt, we obtain

δ(ωω)=12πe±i(ωω)tdt.

In this case the original function is δ(ωω), a function of ω, and its Fourier transform is eiωt/(2π), a function of t. The spread in frequency is Δω=0, while the spread in time is Δt=.

These considerations allow us to define the Fourier transform of a undamped, and untruncated, cosine function. Let us therefore insert

f(t)=cos(Ωt)

within Eq.(9.7b) to calculate its Fourier transform. We have

g(ω)=12πcos(Ωt)eiωtdt=14πei(ω+Ω)tdt+14πei(ωΩ)tdt,

and Eq.(9.26) converts this to

g(ω)=12[δ(ω+Ω)+δ(ωΩ)].

The Fourier transform of a pure cosine function is therefore the sum of two delta functions peaked at ω=±Ω. This result can be thought of as the limit of Eq.(9.16) when κ0. In this case we are dealing with a function f(t) with Δt= and a Fourier transform g(ω) with Δω=0.

9.6 Practice Problems

  1. (Boas Chapter 7, Section 12, Problem 6) Find the Fourier transform of the function defined by f(t)=t for |t|<1 and f(t)=0 otherwise.

  2. (Boas Chapter 7, Section 12, Problem 7) Find the Fourier transform of the function defined by f(t)=|t| for |t|<1 and f(t)=0 otherwise.

  3. (Boas Chapter 7, Section 12, Problem 12) Find the Fourier transform of the truncated sine function defined by f(t)=sint for |t|<π/2 and f(t)=0 otherwise.

  4. (Boas Chapter 7, Section 12, Problem 21) Find the Fourier transform of the Gaussian function f(t)=exp[t2/(2σ2)]. Hint: consider the change of variables y=tiσ2ω to evaluate the integral.

  5. (Boas Chapter 7, Section 12, Problem 24a) Find the Fourier transform of f(t)=exp(|x|).

  6. (Boas Chapter 7, Section 12, Problem 24c) Find the Fourier transform of f(t)=1/(1+t2). Hint: make sure to work through the previous problem first.

9.7 Challenge Problems

  1. If g(ω) is the Fourier transform of f(t), what is the Fourier

     of df/dt?

  2. Calculate the Fourier transform of the function f(t)=J0(t). Hint: Start with the integral representation for the Bessel function, and do the t-integral first.