You are on page 1of 4

Relationship of Fourier Transform and the FFT for Sampled

Signals

James McNames
Biomedical Signal Processing Laboratory (http://bsp.pdx.edu)
February 7, 2002
Technical Report 02-1

Abstract
Over the years I have encountered many occasions where I need to know how the fast fourier
transform (FFT) of a sampled signal (discrete-time) precisely relates to the Fourier transform of
a continuous-time signal. This short technical article is intended to serve as a common reference
to answering this question so that I can stop deriving the answer each time I encounter it.

1 Derivation
Let the Fourier transform of a continuous-time signal x(t) be defined as follows:
 ∞
F{x(t)} ≡ x(t)e−jωt dt. (1)
−∞

For this definition, the frequency ω has units of radians/second.


Let us sample the signal with the following impulse train
+∞

p(t) ≡ T δ(t − nT ), (2)
n=−∞

where T is the sampling period. The sum is multiplied by T to ensure that the sampled signal,
p(t)x(t), has approximately the same area over any given interval,
 t1  t1
x(t) · p(t) dt ≈ x(t) dt, (3)
t0 t0

for any t. An alternate justification for this impulse train could be derived by taking the limit as
the duty cycle approaches zero of a pulse train with fundamental period T . If the height of each
pulse is scaled so that the area under each pulse is equal to one, then the sampled signal, x(t)p(t),
will only retain the same power as the original signal if the height is increased by a factor of T 1
The sampled, discrete-time signal, x[n] is defined as

x[n] ≡ x(t)|t=nT (4)


 nT +
= lim x(t) · p(t) dt (5)
→0 nT −
∗ Electrical & Computer Engineering, Portland State University, P.O. Box 751, Portland State University, Portland,

OR 97207-0751. Email: mcnames@pdx.edu. Phone: 503.725.5390. Fax: 503.725.3807.


1 This isn’t explained very well here. I believe the justification of multiplying the sum by T is much better explained

in [1].

1
The Fourier transform of xs (t) = x(t)p(t) is therefore

Xs (ω) ≡ F{xs (t)}, (6)


 ∞
= xs (t)e−jωt dt, (7)
−∞
 ∞ +∞


= x(t) · T δ(t − nT ) e−jωt dt, (8)
−∞ n=−∞
+∞ 
 ∞
= T x(t)δ(t − nT )e−jωt dt, (9)
n=−∞ −∞
+∞ 
 ∞
= T x(nT )δ(t − nT )e−jωnT dt, (10)
n=−∞ −∞
+∞
  ∞
= T x(nT )e−jωnT δ(t − nT ) dt, (11)
n=−∞ −∞
+∞

= T x(nT )e−jωnT , (12)
n=−∞
+∞

= T x[n]e−jωnT . (13)
n=−∞

This proof used the following properties of the unit impulse (Dirac delta) function:

x(t) · δ(t − t0 ) = x(t0 ) · δ(t − t0 ), (14)

and
 ∞  ∞
x(t) · δ(t − t0 ) dt = x(t0 ) · δ(t − t0 ) dt, (15)
−∞ −∞
 ∞
= x(t0 ) δ(t − t0 ) dt, (16)
−∞
= x(t0 ). (17)

Now suppose that our signal is either finite duration or has been multiplied by a window function
to make it finite duration. Further, suppose that the window lasts exactly N samples. Then
Equation 13 reduces to
N
 −1
Xs (ω) = T x[n]e−jωnT . (18)
n=0

For this report, the discrete Fourier transform is defined as


N
 −1
n
X[k] ≡ x[n]e−j2πk N , (19)
n=0

which can be equated to Xs (ω) by a simple change of variables


N
 −1 
1 
= Xs (ω)
n
−j2πk N
X[k] = x[n]e , (20)
n=0
T ω= k 2π
N T

2
1
Signal x(t)

0.5

0
0 0.1 0.2 0.3 0.4 0.5 0.6
Time (seconds)
0.2
Real X(ω)

0.15
0.1
0.05
0
0 5 10 15 20 25 30 35 40 45 50
Frequency (rad/sec)
Imaginary X(ω)

−0.05

−0.1

0 5 10 15 20 25 30 35 40 45 50
Frequency (rad/sec)

or, conversely,
Xs (ω)|ω= k 2π = T X[k]. (21)
N T

Notice that X[k] is evaluated at fractions of the sampling rate,



. ω0 ≡ (22)
T
From the sampling theorem, we know that the sampled spectrum, Xs (ω), is a periodic function of ω
with a fundamental period of 2π
T rad/s (see Equation 18). We also know that we can only estimate
the spectrum of signals that have been sampled at least twice as fast as the highest frequency in
the signal. Thus, we only need to examine (N/2 + 1) points in X[k], k = [0 . . . N2 ], to see the entire
estimated spectrum of x(t).

2 Example
Figure 2 shows the signal
x(t) = e−5t u(t) (23)
which has a well known Fourier transform,
1
X(ω) = . (24)
a + jω
The signal and its Fourier transform are shown in blue. The sampled signal is shown in red and the
FFT approximation of the Fourier transform is also shown in red. For this example the sampling rate
was chosen to be 100 Hz and the number of samples was 26 = 64. Note that the frequency resolution
can be increased by zero-padding, but this does not affect the precision of the FFT estimate of the
continuous-time Fourier transform.

3
References
[1] Alan V. Oppenheim and Alan S. Willsky. Signals & Systems. Prentice Hall, second edition,
1997.

You might also like