DSP 2 Fourier Analysis
DSP 2 Fourier Analysis
Fourier Analysis
PERIODICITY
PERIODIC NON-PERIODIC
Continuous-Time Continuous-Time
CONTINUOUS-
Fourier Series Fourier Transform
TIME
(CTFS) (CTFT)
FORM
Discrete-Time
Fourier Series or Discrete-Time
DISCRETE-
Discrete Fourier Fourier Transform
TIME
Transform (DTFT)
(DFT)
Introduction
Fourier representation of signals plays an extremely
important role in both continuous-time and discrete-
time signal processing
It provides a method for mapping signals into another
“domain” in which to manipulate them.
It provides a different way to interpret signals and
systems
Frequency Response
Eigenfunctions of linear shift-invariant
systems are sequences that, when input to the
system, pass through with only a change in
(complex) amplitude.
Frequency Response
Signals of the form
x ( n ) = e jnω −∞ < n<∞
where ω is a constant, are eigenfunctions of LTI
systems. This may be shown from the convolution
∞
sum: y (n ) = h (n )* x (n ) = ∑ h (k ) x (n − k )
k = −∞
∞
= ∑ h ( k ) e jω ( n − k )
k = −∞
∞
=e jnω
∑ h (k )e
k = −∞
− jk ω
. = H ( e jω ) e jnω
Frequency Response
Thus, the eigenvalue, which we denote by H(e jω), is
∞
H ( e jnω ) = ∑ h ( k ) e − jk ω
k = −∞
Note that H(ejω)is, in general, complex-valued and
depends on the frequency ω of the complex
exponential. Thus, it may be written in terms of
its real and imaginary parts
H ( e jω ) = H R ( e jω ) + jH I ( e jω )
or in terms of its magnitude and phase
. H ( ) ( )
e jω
= H e jω
e jφ (ω ) n
Frequency Response
H (e ) = H ( e jω ) H * ( e jω ) = H R2 ( e jω ) + H I2 ( e jω )
2
where jω
and H I ( e jω )
φh (ω ) = tan −1
H R ( e jω )
A graphical representation that is often used instead
of the phase is the group delay
dφh (ω )
τ h (ω ) = −
dω
where the phase is taken to be a continuous and
differentiable function of ω by adding integer
multiples of π to the principal value of the phase
(unwrapping the phase).
Frequency Response
The function H(ejω) is very useful and
important in the characterization of LTI
systems and is called the frequency response.
The frequency response defines how a
complex exponential is changed in (complex)
amplitude when it is filtered by the system.
The frequency response is particularly useful if
an input signal can be decomposed into a sum
of complex exponentials.
Example
Let x(n) = cos(nω0) be the input to a linear time-
invariant system with a real-valued unit
impulse response h(n). If x(n) is decomposed
into a sum of two complex exponentials.
x ( n ) = 12 e jnω0 + 12 e − jnω0
The response of the system may be written as
( ) ( )
y ( n ) = 12 H e jω0 e jnω0 + 12 H e − jω0 e − jnω0
Example
Because h(n) is real-valued, H(ejω) is conjugate
symmetric
H ( e − jω ) = H * ( e jω )
Therefore,
( ) ( )
y ( n ) = 12 H e jω0 e jnω0 + 12 H * e jω0 e − jnω0
and it follows that
{ ( ) } ( )
y ( n ) = Re H e jω0 e jnω0 = H e jω0 cos ( nω0 + φ (ω0 ) )
Periodicity
The frequency response is a complex-valued
function of ω and is periodic with a period of π.
The frequency response of a linear time-invariant
continuous-time system is not periodic.
A discrete-time complex exponential of frequency
ω0 is the same as a complex exponential of
frequency ω0 + 2π; that is
.
( )
x n =e jnω0
=e
jn (ω0 + 2π )
Periodicity
Therefore, if the input to a linear time-
invariant system is x ( n ) = e
jnω0
, the response
must be the same as the response to the signal
x ( n) = e
jn (ω0 + 2π )
. This, in turn, requires that
H e( jω0
) = H (e j (ω0 + 2π )
)
Symmetry
If h(n) is real-valued, the frequency response is a conjugate
symmetric function of frequency:
H (e − jω
)) implies
= H *(e ) jω
φh (ω ) = −φh ( −ω ) τ h (ω ) = −τ h ( −ω )
.
Example
Consider the LTI system with unit impulse
response h ( ) u ( n)
n = a n
0 ωc < ω ≤ π
(this system is referred to as an ideal low-pass
filter), the unit impulse response is
1 ωc 1 sin nωc
h (n) = ∫ω e
jnω
dω =
jnωc
e −e − jnωc
=
2π − c 2 jπ n πn
Note that this system is noncausal (it is also
unstable) and, therefore, unrealizable.
Filters
The term digital filter, is often used to refer to
a discrete-time system.
A digital filter is defined by J. F. Kaiser as a
“computational process or algorithm by which
a sampled signal or sequence of numbers
(acting as the input) is transformed into a
second sequence of numbers termed as the
output signal.”
Filters
The computational process maybe that of a
lowpass filtering (smoothing), bandpass
filtering, interpolation, the generation of
derivatives, etc.
Filters may be characterized in terms of their
system properties, such as linearity, time-
invariance, causality, stability, etc., and may be
classified in terms of their frequency response.
Linear Phase
A linear time-invariant system is said to have a linear phase if
its frequency response is of the form
H ( e jω ) = A ( e jω ) e − jαω
where α is a real number and A(ejω) is a real-valued function of
ω. Note that the phase of H(ejω) is
−αω
when A ( e
jω
)≥0
φh (ω ) =
−αω + π when A ( e ) < 0 jω
∑ x ( n) = S < ∞
n =−∞
Example
The DTFT of the sequence
x1 ( n ) = α nu ( n ) α <1
∞ ∞
is X1 ( e ) = ∑α e
jω
= ∑ (α e )
n − jnω − jω n
n =0 n=0
Using the geometric series, this sum is
X1 ( e ) =
jω 1
1 − α e − jω
provided |α| < 1. Similarly, for the sequence
x2 ( n ) = −α nu ( −n − 1) α >1
∞ −1
X ( e jω ) e jnω d ω
1 π
x (n) = ∫π
2π −
Some Common DTFT Pairs
Example
Suppose X(ejω) consists of an impulse at frequency ω = ω0.
( )
X e jω = δ (ω − ω0 )
( )
Using the inverse DTFT, 1 π 1 jnω0
x (n) = ∫ X e e dω =
jω jnω
e
2π − π 2π
Note that although x(n) is not absolutely summable, by
allowing the DTFT to contain impulses, consider the DTFT
of sequences that contain complex exponentials. As another
X (e ) = πδ (ω − ω ) + πδ (ω + ω )
example. If jω
0 0
computing the inverse DTFT, it is found that
. ( ) 1 jnω0
x n = e + e2
1 − jnω0
2 = cos ( nω0 )
DTFT Properties
Periodicity
The discrete-time Fourier transform is periodic in ω
with a period of 2π:
(
X ( e jω ) = X e j (ω + 2π ) )
This property follows directly from the definition of
the DTFT and the periodicity of the complex
exponentialX ( e ( ) ) = ∑ x ( n ) e ( ) = ∑ x ( n ) e− jnω e− j 2πω
∞ ∞
j ω + 2 π − jn ω + 2 π
n =−∞ n =−∞
∞
. = ∑ x ( n ) e − jnω = X ( e jω )
n =−∞
DTFT Properties
DTFT Properties
Symmetry
The DTFT often has some symmetries that may be
exploited to simplify the evaluation of the DTFT or
the inverse DTFT.
DTFT Properties
Linearity
The discrete-time Fourier transform is a linear
operator. If X1(ejω) is the DTFT of x1(n), and
X2(ejω) is the DTFT of x2(n).
ax1 ( n ) + bx2 ( n ) ⇔ aX 1 ( e jω ) + bX 2 ( e jω )
DTFT
Shifting Property
Shifting a sequence in time results in the
multiplication of the DTFT by a complex
exponential (linear phaseDTFT term):
. x ( n − n0 ) ⇔ e − jn ω X ( e jω )
0
DTFT Properties
Time-Reversal
Time-reversing a sequence results in a frequency reversal
of the DTFT:
x ( −n ) ⇔ X ( e − jω )
DTFT
Modulation
Multiplying a sequence by a complex exponential results
in a shift in frequency of the DTFT
( )
DTFT
x ( n) ⇔ X e
jnω0 j (ω −ω0 )
e
Thus, modulating a sequence by a cosine of frequency ω0:
( ) ( )
DTFT
x ( n ) cos nω0 ⇔ 12 X e ( ) + 12 X e ( )
j ω −ω j ω +ω
. 0 0
DTFT Properties
Convolution Theorem
The DTFT of sequence that is formed by convolving two
sequences, x(n) and h(n), is the product of the DTFTs of
x(n) and h(n):
h ( n ) * x ( n ) ⇔ H ( e jω ) X ( e jω )
DTFT
n =−∞ 2π ∫− π
k =1 k =0
or
Y ( e jω ) 1 + ∑ a ( k ) e− jkω = X ( e jω ) ∑ b ( k ) e − jkω
p q
k =1 k =0
APPLICATIONS – LTI Systems
and LCCDEs
Therefore, the frequency response of this system is
q
Y (e) jω ∑ b ( k ) e − jkω
H (e ) =
jω
= k =0
X (e ) jω p
1+ ∑ a (k ) e − jkω
k =1
Example
Consider the linear time-invariant system
characterized by the second-order linear constant
coefficient difference equation
y ( n) =1.3433y ( n −1) − 0.9025y ( n − 2) + x ( n) −1.4142x ( n −1) + x ( n − 2)
Solution:
The frequency response may be found by inspection
without solving the difference equation for h(n) as
follows:
− jω −2 jω
− +
H ( e jω ) =
1 1.4142 e e
. 1 − 1.3433e − jω + 0.9025e −2 jω
Example
Given a frequency response function
ω
such as
1 + e −2 j
H (e ) =jω
2 − e− jω + 0.5e−2 jω
A difference equation may easily be found that
will implement this system. First, dividing
numerator and denominator by 2 and rewriting
the frequency response as follows:
ω
0.5 + 0.5e−2 j
H (e ) =
jω
1 − 0.5e − jω + 0.25e−2 jω
Therefore, the difference equation for this system
is y ( n ) = 0.5 y ( n − 1) − 0.25 y ( n − 2 ) + 0.5 x ( n ) + 0.5 x ( n − 2 )
APPLICATIONS – Performing
Convolutions
Example:
If the unit sample response of an LTI system is
h ( n ) = α nu ( n )
Find the response of the system to the input x(n)
= βnu(n), where |α| < 1, and |β| < 1, and α ≠ β
because the output of the system is the
convolution of x(n) with h(n).
y (n) = h (n) * x (n)
Example
The DTFT of y(n) is
Y (e ) = H (e ) X (e ) =
jω jω 1
jω 1
1 − α e − jω 1 − β e − jω
Therefore, all that is required is to find the
inverse DTFT of Y(ejω). This may be done
easily by expanding Y(ejω) as follows:
Y (e ) =
jω 1 A B
= +
(1 − α e − jω
)(1 − β e − jω
) 1 − α e − jω
1 − β e − jω
1 − 0.25e − jω
The inverse DTFT of Y(ejω) may be easily found
using the linearity and shift properties
y ( n ) = ( 0.25 ) u ( n ) − ( 0.25 ) u ( n − 2)
n n−2
APPLICATIONS – Inverse Systems
The inverse of a system with unit impulse h(n) is
a system that has a unit impulse response g(n)
such that
h ( n) * g (n) = δ (n)
H (e ) = ( )
−1 jω 1 jω
is − jω
= G e
1 − 2e
which corresponds to a system that has a noncausal
unit impulse response
. g ( n ) = −2− n u ( −n − 1)
Example
If the frequency response of an LTI system is
− jω
1− e
H (e ) =
1
jω 4
− jω
1+ e 1
2
H (e ) 1− e
jω 1 − jω
4