Professional Documents
Culture Documents
* Cartesian representation : z x jy
M agnitude of z r | z | x 2 y 2
It is the distance of a point z from the origin
y
Phase (argument) of z z tan 1
x
is the angle to the real positive axis
can change by any multiple of 2 and still give the same angle
(radians not degrees are being used)
* Polar representation : z z e j z cos j z sin
Complex Conjugate :
z * x jy ; ( z z * ) and ( zz* ) are real
2
Introduction: Complex exponential
x[n] n e j ( no )
j j o
x[n] C , where C | C | e , | | e
n
j jno j ( no )
x[n] | C || | e e n
| C || | e n
| C || |n cos(o n ) j | C || |n sin(o n )
| | 1, real & imaginary parts are sinusoidal
| | 1, sinusoidal decaying exponentially
| | 1, sinusoidal growing exponentially
3
Periodicit y at 2 In general, phase is ambiguous
Introduction A cos(o n )
Both waves are periodic, i.e., after a certain time, called the period, they look
the same again
Both waves look alike, but the cosine wave appears to start at its maximum,
while the sine wave starts at zero.
The cosine wave starts out 1/4th later than the sine
wave in its period It has an offset
Common to measure this offset in degree or radians
One complete period equals 360° or 2π radian
The cosine wave thus has an offset of 90° or π/2
This offset is called the phase of a sinusoid
7
Introduction: Importance of Phase
8 Source: A. Oppenheim, A.S. Willsky and S.H. Nawab, Signals and Systems, 2nd Edition, Prentice-Hall, 1997
Introduction: Importance of Phase
The value of each point determines the phase of the corresponding frequency
The inverse FT to the above magnitude image while ignoring the phase, gives
10
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis:
oSystem function
oGroup Delay of LTI Systems
oIIR and FIR Systems
oFrequency Response of Rational Systems
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
oAppendix: Log-Magnitude and Bode plots
11
Magnitude and Phase Representation of signals
Three domains
Time domain: impulse response, convolution sum
y[n] x[n] * h[n] x[k ]h[n k ]
k
DT-FT
Two signals may have the same magnitudes function but the phase
differs
13
Magnitude and Phase Representation of systems
j j j
Relationship between FT of input and output Y (e ) X (e ) H (e )
In polar form
| Y (e j ) || X (e j ) | | H (e j ) |
Magnitude
magnitude response, gain, attenuation, distortion
Phase Y (e j ) X (e j ) H (e j )
phase response, phase shift, attenuation , distortion
14
Magnitude and phase of systems from H(z)
15
Magnitude and phase of systems from H(z)
We will use this result to find the frequency response of any discrete-
time LTI system with rational transfer function given by
16
Magnitude and phase of systems from H(z)
17
Magnitude and phase of systems from H(z)
•In magnitude and phase plots when H(z) has a zero on the unit
j
circle, z e :
• as ω goes through that zero on the unit circle
• the magnitude will go to zero and
• the phase will flip by π (phase reversal)
19
Example 1:
h[n] [n] n
| H (e j ) | 1, H (e j )
j j
H (e ) 1 e
In the magnitude-phase representation, a real-valued
frequency response does not necessarily mean that the
system is zero-phase
20
Example 2:
ideal lowpass filter
Frequency response H (e j ) 1, | | c ,
0, c | |
Impulse response
sin c n ?
hlp [n] , n h[n] 0, n 0
n
21
Example 3:
ideal delay system
Ideal delay system hid [n] [n nd ]
H id (e j ) e jnd
| H id (e j ) | 1 Delay distortion
a y[n-1]
y[n] ay[n 1] x[n]
1) Taking the DTFT : Y(e j ) - ae -jY (e j ) X (e j )
Y(e j ) j 1
j
H(e )
X (e ) 1 ae - j
2) Eigenfunct ion property: x[n] e j n , then y[n] H(e j )e j n
Substituti ng in the diff. eq. : H(e j )e j n aH(e j )e j ( n -1) e j n
j 1
H(e ) - j
23
1 ae
Example 4: first order recursive DT filter
F .T
j
h[n] H(e )
F .T 1
a u[n]
n
- j
1 ae
h[n] a u[n], 0 a 1
n
0 n
24
Example 4: First order recursive filter
j 1
H (e ) j
1 ae
1
(1 a)
1
(1 a)
- 0
tan 1 (a / 1 a 2 )
2
jumps by π
- 2
tan 1 (a / 1 a 2 )
26
Amplitude-Phase Representation of signals
Consider h(n)
j j ( N 1) / 2
H (e ) Ae sin(N / 2) / sin( / 2)
oSystem analysis:
o System function
o Group Delay of LTI Systems
o IIR and FIR Systems
o Frequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
oAppendix: Log-Magnitude and Bode plots
30
System function
a
k 0
k y[n k ] bm x[n m]
m 0
z-transform format N M
k Y ( z)
a z k
m X ( z)
b z m
M k 0 m0
Y ( z)
bm z m
m 0
H ( z) N
X ( z)
k
a z k
(1 cm z 1 ) in the numerator
k 0
M a zero at z cm ; a pole at z 0
b0 m 1
m )
(1 c z 1
(1 d k z 1 ) in the denominato r
( ) N
a0
(1 d k z 1 ) a zero at z 0 ; a pole at z d k
31
k 1
System function: Frequency
Response
DT-FT of a LTI rational system function
1 c e
M M
b e k
jk
b0 k
j
He j k 0
k 1
1 d e
N N
a0
a e
k 0
k
jk
k 1
k
j
Magnitude Response M
1c e k
j
H e j
b0
a0
k 1
N
1
k 1
dk e j
32
System function: Log-Magnitude Response
M N
b0
20 log10 H e j
20 log10 20 log10 1 ck e j
20 log10 1 d k e j
a0 k 1 k 1
Frequency response is a sum of the contributions from each pole and
zero
System gain in dB Gain in dB 20 log10 H e j
System attenuation in dB
- 20 log10 H e j Gain in dB
Example:
|H(ej)|=0.001 translates into –60dB gain or 60dB attenuation
|H(ej)|=0.5 translates into -6dB gain
|H(ej)|=1 translates into 0dB gain
|H(ej)| > 1 translates into positive gain
33
System function
Stable
h[n] absolutely summable
H(z) has a ROC including the unit circle
Causal
h[n] right side sequence
H(z) has a ROC being outside the outermost
pole
Stable & causal:
ROC must be outside the outermost pole and
include the unit circle
34
System function: Inverse systems
G( z) H ( z) H i ( z) 1 (1 cm z 1 )
b0 m 1
H ( z) ( ) N
1 a0
H i ( z) k )
(1 d z 1
H ( z) k 1
N
g[n] h[n] * hi [n] [n] (1 d k z 1 )
a0 k 1
H i ( z) ( ) M
b0
(1 c m z 1
)
m 1
o System analysis:
oSystem function
o Group Delay of LTI Systems
o IIR and FIR Systems
oFrequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
o Appendix: Log-Magnitude and Bode plots
38
Group Delay of LTI Systems
Group delay d
grd[ H (e )] {arg[ H (e j )]}
j
d
41
Example: consider the following freq. response and group delay of
a system (Fig. 5.4)
42
Example: Fig 5.5 shows an input signal + its FT to the system in Fig. 5.4
0.8π 0.2π 0.4π x[n] consist of 3 narrowband
pulses at w= 0.2π ,0.4π ,0.8π
43
j
Example to Fig 5.4 | Y (e j ) || X (e j ) || H (e ) |
44
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis:
o System function
o Group Delay of LTI Systems
45
Infinite Impulse Response (IIR) Systems
Rational system function
1c z
M
b k
1
Hz 0 k 1
1 d z
N
a0 1
k
k 1
If at least one nonzero pole does not cancel with a zero, in h[n] there will at
least one term of the form
a nun OR - a nu n 1
Therefore, h[n], the impulse response, will be infinite length IIR system
Y z k
b z k
k
a
k 0
z k
From 1 - a M 1 z M 1
H z
1 az 1
yn ayn 1 xn aM1xn M 1 Need memory
The more the zero cancels the pole at a ,the more equal the two equations become.
48
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis:
o System function
oGroup Delay of LTI Systems
o IIR and FIR Systems
b e k
jk
b0 k
j
He j k 0
k 1
1 d e
N N
a0
a e
k 0
k
jk
k 1
k
j
M
Magnitude Response 1c e k
j
H e j
b0
a0
k 1
N
1 dk
k 1
e j
Magnitude Squared
1 c e 1 c e
M
j * j
2
b0 k
He
2 k
j
He j
He j
k 1
1 d e 1 d e
N
a0 j * j
k k
50 k 1
Log-Magnitude Response of
Rational System Functions
M N
b0
20 log10 H e j
20 log10 20 log10 1 ck e j
20 log10 1 d k e j
a0 k 1 k 1
Frequency response is a sum of the contributions from each pole and zero
20 log10 Y e j 20 log10 H e j 20 log10 X e j
51
Phase Response of Rational System Functions
M N
d d
grd H e j
arg 1 ck e j
arg 1 d k e j
k 1 d k 1 d
Equivalently,we get
grdH e j
M dk
2
Re dk e j M
ck
2
Re ck e j
1 d k 1 k
2
2 Re dk e j
k 1 1 ck
2
2 Re ck e j
52
Instantaneous, wrapped,
Unwrapped Phase
Phase shift is in general ambiguous:
j ( 2 k ) j
e e , any integer k
The instantaneous (or local) phase of a complex-
valued function is the real-valued function
( ) H (e j )
When the phase is constrained to an interval, for
example, [- π,π], it is called the wrapped phase
it does not distinguish between multiples of 2π
An unwrapped phase is a continuous function of ω
The unwrapped phase is not restricted to the wrapped
range, and has no jumps
53
Unwrapped (Continuous) Phase
ARG H e j
H e j ARG H e j 2r
Here r() is an integer for any given
value of
Group delay is the derivative of the
unwrapped phase
grd H e j
d
d
argH e j
54
Examples: Frequency and phase response, and group delay
M N
b0
20 log10 H e j
20 log10 20 log10 1 ck e j
20 log10 1 d k e j
a0 k 1 k 1
Frequency/phase/delay responses:
55 a sum of the contributions from each pole and zero
Frequency Response of a Single Zero or Pole
zero at re j
Let’s analyze the effect of a single term
1 ck e j 2
1 re ej j 2
1 r 2 2r cos
If we represent it in dB
ARG 1 re je j arctan
1 r cos
Phase(w=θ) =0
57
Pole at θ dominates H
Pole at –θ dominates H
58
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis
o System function
o Group Delay of LTI Systems
o IIR and FIR Systems
o Frequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
oAppendix: Log-Magnitude and Bode plots
59
Relation between Magnitude and Phase
For general LTI system
Knowledge about magnitude/phase doesn’t provide any information
about phase/magnitude
61
Magnitude-Squared System Function
He j
2
H e j H e j H* 1 / z* Hz
z e j
1 c z
M
b k
1
b0
*
k
Hz 0 k 1 *
H 1/z *
k 1
1 d z
N
a0
1 d z
N
k
1
a0 *
k
k 1 k 1
1 c z 1 c z
The square system function M
1 *
2
b0
k
d k 1/ d k C z H z H 1 / z
k
* * * k 1
1 d z 1 d z
N
a0 1 *
k
Given He
k
2
j
we can get C(z) k 1
62
What information on H(z) can we get from C(z)? Original pole Newly added
Poles and Zeros of Magnitude Square System
Function d *k 1 / d k ;
1 c z 1 c z
M
1
z 1 / d *k or z d k
*
2
b
k
C z H z H * 1 / z * 0
k
k 1
1 d z 1 d z
N
a0 1 *
k k
k 1
If one of the pole/zero is inside the unit circle the reciprocal will be outside
Unless there are both on the unit circle
If H(z) is stable all poles have to be inside the unit circle
We can infer which poles of C(z) belong to H(z)
However, zeros cannot be uniquely determined
Example to follow
63
Example5.9: Systems with same C(z)
H1 z
2 1 z 1 1 0.5 z 1
1 0.8e j / 4 z 1 1 0.8e j / 4 z 1
H z
1 z 1 2 z
1 1 Both share the same
magnitude square
2
1 0.8e z 1 0.8e
j / 4 1 j / 4 1
z system function
Differ in zeros
H1 z H 2 z
Y ( z) b m z m
b0 (1 c m z 1 )
H ( z) m 0
N
( ) m 1
N
a z (1 d
X ( z) k a0
k k z 1 )
k 0 k 1
Given is C(z)
1. Find P & Z of H(z)
- For every pole dk in H(z) there is a pole of C(z) at dk and (1/dk)*
- For every zero ck in H(z) there is a zero of C(z) at ck and (1/ck)*
2. How many stable & causal systems exist?
2. If we assume ak and bk are real, the zeros and ploes either are real or
occur in complex conjugate pairs
There are 4 different stable and causal systems with 3 poles and 3 zeros,
and for which the frequency-response magnitude is the same
3. If we assume ak and bk are NOT real, the number of choices of stable and
causal systems would be greater
65
66
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis
o System function
o Group Delay of LTI Systems
o IIR and FIR Systems
oFrequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
oAppendix: Log-Magnitude and Bode plots
67
All-Pass System
Hap z A
z 1 dk Mc z 1 ck* z 1 ck
Mr
1
k 1 1 d k z k 1 1
ck z 1
1 c
* 1
kz
M=N Poles & Zeros
For Causal & Stable all-pass:
68
All-Pass System z 1 a*
Hap z
1 az1
71
Example 5.13: Second-order all-pass system
Pole at θ dominates H
72
All-Pass System: Summary
73
All-Pass System: Summary
74
Applications of all-pass systems
75
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis
o IIR and FIR Systems
oGroup Delay of LTI Systems
o Frequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
oAppendix: Log-Magnitude and Bode plots
76
Minimum-phase systems
H ( z ) H 1 ( z )( z 1 c * )
z 1 c *
1
H 1 ( z )(1 cz )
1 cz 1
minimum-phase all-pass
78
Properties of minimum-phase systems:
The Minimum-Phase-Lag Property
From minimum-phase and all-pass decomposition
H ( z) H min ( z) H ap ( z)
Minimum-Energy-Delay Property n n
|
m 0
h[ n ] 2
| | h
m 0
min[ n ] | 2
1
Gz Hc zHd z Hd,min zHd,ap z Hd,ap z
Hd,min z
83
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis
oIIRand FIR Systems
oGroup Delay of LTI Systems
o Frequency Response of Rational Systems
o Relation between Magnitude/Phase & poles/zeros
o All-pass systems
o Minimum-phase systems
o Linear Phase & Generalized linear-phase systems
o Appendix: Log-Magnitude and Bode plots
84
Linear Phase & Generalized linear-
phase systems
85
Linear phase systems
Non-linear phase
will change the shape of the input signal even if
the magnitude response is constant
Non-linear phase shift delays some frequency
components more than others
o A filter with non-linear phase has a group
delay that varies with frequency, resulting
in considerable phase distortion
Most real system functions have a non-linear
phase shift as a function of frequency
87
Linear phase systems: Examples
j j
Ideal delay system H id (e )e , | | ; real
j
j
H id (e ) linear phase
| H id (e ) | 1
grd[ H id (e j )] Constant group delay
sin (n )
hid [n]
(n )
Time-shift: when nd with nd integer hid [n] [n nd ]
89
Linear phase systems
90
Group delay / Phase delay
j j
grd[ H (e )] H (e )
The group delay and phase delay (phase
shift) are functions of ω
91
Group delay / Phase delay:
Examples
92
Group delay / Phase delay :
Example 5.14
sin (n )
hid [n]
(n )
93
Group delay / Phase delay
Examples: Sound reproduction
Components of an audio system introduce
group delay in the input audio signal
Components: loudspeakers, filters, ..
Important to know: the threshold of audibility of
group delay with respect to frequency
o For example:
o 1 kHz 2 ms
o 4 kHz 1.5 ms
94
Linear Phase Systems: non-integer delay
Ideal Delay System
Hid e j e j
Magnitude, phase, and group delay
Hid e j 1
H e
id
j
grdH e
id
j
Impulse response
sinn
hid n
n
If =nd is integer
hid n n nd
yn xnT T
Samples of a time-shifted, band-limited interpolation of the input
sequence x[n]
A linear phase system can be thought as
H e j H e j e j
96
Symmetry of Linear Phase Impulse
Responses
Linear-phase =5
systems
H e j H e j e j
=4.5
If 2 is integer
Impulse response
symmetric
h2 n hn
=4.3
97
Symmetry of Linear Phase Impulse Responses
98
Generalized Linear Phase System
Generalized Linear Phase
Ae e
He j j j j
A e j : Real function of
and constants
grd H e j
d
d
argH e j
argH e j 0
99
Condition for Generalized Linear Phase
A generalized linear phase system response
H e j A e j e j j A e j cos jA e j sin
We know
hne
o
H e j
n
jn
hncosn j hnsinn
n n
The tangent of the phase angle of this system is
hnsin n
sin
tan( ) n
cos
hncosn
n
Cross multiply to get necessary condition for generalized
linear
phase
100
hn sin n hnsin n 0
n n
Symmetry of Generalized Linear
Phase
Necessary condition for generalized linear phase
For =0 or
hnsinn 0
n
h2 n hn
hncosn 0
n
h2 n hn
101
Causal Generalized Linear-Phase
System
If the system is causal and generalized linear-phase
hn 0 n 0 and n M
102
Types of Generalized Linear-Phase FIR Filters
103
Type I FIR G. Linear-Phase
System
M / 2
e jM / 2
an cosn
n0
Where
a0 hM / 2
104 ak 2hM / 2 k for k 1,2,..., M/2
Type II FIR G. Linear-Phase System
M is an odd integer
n0
M1 / 2 1
e jM / 2
b n cos
n
n1 2
Where
bk 2hM 1 / 2 k
for k 1,2,..., M 1/2
105
Type III FIR G. Linear-Phase System
M is an even integer
hne
as M
H e j jn
n0
M / 2
je jM / 2
cn sinn
n 1
Where
ck 2hM / 2 k
for k 1,2,..., M/2
106
Type IV FIR G. Linear-Phase
System
M is an odd integer
M1 / 2 1
je jM / 2
d n sin
n
n1 2
Where
dk 2hM 1 / 2 k
107 for k 1,2,..., M 1/2
Location of Zeros for Symmetric Cases
hn hM n
z
Hz zMH z1
All properties of symmetric systems holds
Particular importance of both z=+1 and z=-1
If z=1
H1 H1 H1 0
• Independent from M: odd or even
If z=-1
H 1 1 H 1
M1
H 1 0
109
Typical Zero Locations
110
Outline
o Introduction
o Magnitude and Phase Representation of signals
o Amplitude-Phase Representation of signals
o System analysis
oGroup Delay of LTI Systems
o IIR and FIR systems
oFrequency Response of Rational Systems
oAll-pass systems
o Minimum-phase systems
o Linear systems with generalized linear phase
111
Log-Magnitude and Bode plots
Plots of 20 log10 | H ( j ) |
and H ( j ) versus log10 ( )
are known as Bode plots
112
Bode Diagram
Although linear plots, e.g., H(jw) versus w, of frequency responses are
accurate, however, they do not always reveal important system behavior
The plots of the two quite different-looking frequency responses look
identical
1 30
H1 ( f ) H2 ( f )
j 2 f 1 30 4 2 f 2 j 62 f
113
Bode diagram
o If we plot the logarithm of magnitude instead of
the magnitude, the difference can be seen more easily
115
Bode diagram
The decibel is defined as the common logarithm (base 10) of a power ratio
Since the signal power is proportional to the square of the signal itself,
Py X2 X 2 X
10 log10 10 log10 2 =10 log10 = 20 log10
Px Y Y Y
The plot of the previous two quite different system functions on the same
scale for better comparison:
116
Bode diagram
o LTI system are described by linear differential equations with
constant coefficients
D
dk N
dk
k 0
ak
dt k
y (t ) bk
k 0 dt k
x(t )
Y ( j ) k
b ( j ) k
H ( j ) = k 0
X ( j ) D
k
a
k 0
( j ) k
117
Bode diagram
o A factored form of H(jw)
j j j
1 1 ...... 1
z1 z2 zN
H ( j ) A
j j j
1 1 ...... 1
p1 p1 pD
118
Bode diagram
From the factored form, H(jw) can be considered as the cascade of
multiple subsystems, each having a frequency response with one pole
or one zero
Each simple system will have a Bode diagram
119
Bode diagram
120
Bode diagram
Frequency Independent Gain A:
o A is called a frequency-independent gain
o The gain constant A is assumed to be positive the phase is
zero
o If A is negative, the phase is ±π rad.
121
Bode diagram: Component
Diagrams
1
H ( j )
j
One-Real-PoIe System: 1
pk
122
Bode diagram: Component
Diagrams
j
One-Real-Zero System: H ( j ) 1
zk
123
Bode diagram
1
Integrator: a system component with a single pole at zero H ( j )
j
124
Bode diagram
Differentiator (zero at zero): H ( j ) j
125