SP Slides 4
SP Slides 4
Y (z) = H(z)X(z)
Since the system function, H(z), is the z-transform of the impulse response, it also
completely characterizes an LTI system. The frequency response is H(z) evaluated
on the unit circle (assuming ROC includes z = ej! ):
H(ej! )
Linear Di↵erence Equations and System Function
N
X M
X
y[n] = ak y[n k] + bk x[n k]
k=1
| {z } |k=0 {z }
past outputs current and past inputs
N
X M
X
=) ak y[n k] = bk x[n k] (a0 = 1)
k=0 k=0
N
X M
X
k k
=) ak z Y (z) = bk z X(z)
k=0 k=0
M
X
k
bk z
Y (z)
=) H(z) = = k=0
X(z) XN
k
ak z
k=0
Poles and Zeros of the System
Relationship between the Fourier transform of the system input and output:
Note that the phase angle is not uniquely defined, since any integer of 2⇡ can be
added to the phase without a↵ecting the complex number.
Phase Angle: Wrapped and Unwrapped
⇡ < \H(ej! ) ⇡
If linear phase, then each frequency component will have identical delay.
Ideal Frequency Characteristics: Constant-Gain and Linear Phase
Ideal response for frequency selective filters,
constant-gain and linear phase:
(
j! Ce j!n0 , !1 < ! < !2
H(e ) =
0, otherwise
y[n] = Cx[n n0 ]
Group Delay
The group delay of a filter is the derivative of the phase with respect to frequency
and has the units of delay:
d
⌧ (!) = \(H(ej! )
d!
If the phase response is linear:
\H(ej! ) = !n0
Then the the group delay is constant and all frequencies have same time delay:
⌧ (!) = n0
Filter input:
with M = 60
Example: Attenuation and Group Delay of Frequency Selective Filter
Input Spectrum:
Filter Output:
More Insight into LTI Systems:
Rational System Functions, Inverse Systems
System Function: Algebraic and Factored Forms
P
M
k
bk z
Y (z)
H(z) = = k=0
X(z) PN
k
ak z
k=0
Q
M
1)
✓ ◆ (1 ck z
b0 k=1
H(z) =
a0 QN
1)
(1 dk z
k=1
Y (z) 1 1
H(z) = = 5 1 2
= 1 1 1)
X(z) 1 2z +z (1 2 z )(1 2z
I Three possible choices for region of convergence, but if the system is causal,
then ROC is outside of outermost pole (|z| > 2).
I However, for system to be stable, the ROC must include the unit circle
( 12 < |z| < 2).
Inverse Systems
For a given system function, H(z), the corresponding inverse system, Hi (z), has an
overall e↵ective system of unity when the two systems are cascaded:
Which implies:
1 1
Hi (z) = Hi (ej! ) = g[n] = h[n] ⇤ hi [n] = [n]
H(z) H(ej! )
I Not all systems have inverses, for those that do the poles of Hi (z) are the
zeros of H(z) and vice versa
I The regions of convergence of H(z) and Hi (z) must overlap
I If H(z) is causal, its ROC is |z| > max |dk | and ROC for Hi (z) must overlap
Example: Inverse System
1 0.5z 1
H(z) = 1
ROC: |z| > 0.9
1 0.9z
Then, the inverse system is
1 0.9z 1
Hi (z) = 1
1 0.5z
Hi (z) as one pole at 0.5 so it has two possibilities of ROC. The only one that
overlaps with the |z| > 0.9 is |z| > 0.5 and the inverse z-transform gives the
impulse response of the inverse system:
z 1 0.5
H(z) = ROC: |z| > 0.9
1 0.9z 1
Then, the inverse system is
1 0.9z 1 2 + 1.8z 1
Hi (z) = 1
=
z 0.5 1 2z 1
Since both possible ROC of the inverse system, |z| < 2 and |z| > 2, overlap the
ROC of the original system, both lead to valid inverse systems:
If an LTI system is causal and stable, when will its corresponding inverse system
be causal and stable?
I If H(z) is causal with zeros at ck then its inverse will be causal if:
I If the inverse system is stable, then ROC for Hi (z) must include unit circle:
I Therefore, a LTI causal and stable system has causal and stable inverse if
both the poles and the zeros of H(z) are inside the unit circle. These systems
are called minimum-phase systems.
More Insight into LTI Systems:
Finite Impulse Response (FIR)
Finite Impulse Response (FIR) Systems
H(z) has no poles except at z = 0 and is a polynomial in z 1 (since N = 0)
P
M
k
bk z M
X
Y (z)
H(z) = = k=0 =) bk z k
X(z) PN
k
ak z k=0
k=0
z M +1 aM +1
H(z) =
z M (z a)
Finding zeros: z M +1 = aM +1
Pole at z = a cancelled by z0 = a
P
M
j!k
Q
M
j!)
bk e ✓ ◆ (1 ck e
k=0 b0 k=1
H(ej! ) = H(ej! ) =
PN
j!k
a0 QN
j! )
ak e (1 dk e
k=0 k=1
Q
M Q
M
|1 ck e j! |
✓ ◆2 (1 ck e j! )(1 c⇤k ej! )
b0 k=1 b0 k=1
|H(ej! )| = |H(ej! )|2 =
a0 QN a0 QN
|1 dk e j! | (1 dk e j! )(1 d⇤k ej! )
k=1 k=1
Gain in dB and Phase Response
Gain in dB:
XM M
X
b0 j! j!
20 log10 + 20 log10 |1 ck e | 20 log10 |1 dk e |
a0
k=1 k=1
Phase response:
X ⇥ M N
X
b0 ⇤ ⇥ ⇤
\H(e ) = \
j!
+ \ 1 ck e j!
\ 1 dk e j!
a0
k=1 k=1
I Magnitude in dB and phase are a sum of the contributions from each of the
poles and zeros of the system function
I Understanding the impact of a single pole/zero location on frequency response
provides insight into higher-order systems
Frequency Response: 1st-Order Systems
Single factor of H(ej! ): (1 rej✓ e j! ) the pole or zero has radius r and angle ✓
Magnitude-squared of factor:
|1 rej✓ e j! 2
| = (1 rej✓ e j!
)(1 re j✓ j!
e ) = 1 + r2 2r cos(! ✓)
Contribution to phase:
h i
j✓ j! r sin(! ✓)
±\ 1 re e = ± arctan
1 r cos(! ✓)
Magnitude of H(z):
z 1 a⇤
H(z) = H1 (z) 1
1 az
Factors in this form are all-pass factors (unity magnitude) and they cancel in C(z):
Given C(z), choices for H(z) can be cascaded with an arbitrary number of all-pass
factors if the total number of poles/zeros of H(z) were unknown.
All-Pass Systems: Constant Gain or Attenuation
z 1 a⇤
Hap (z) = 1
|a| < 1
1 az
e j! a⇤ 1 a⇤ ej!
Hap (ej! ) = j!
=e j!
1 ae 1 ae j!
Constant Magnitude (independent of frequency):
General form of system function (dk are real poles and ek are complex poles)
Mr
Y M
z 1 dk Yc (z 1 e⇤k )(z 1 ek )
Hap (z) = A ⇤
1 dk z 1 (1 ek z 1 )(1 ek z 1 )
k=1 k=1
For stable/causal systems: |dk | < 1 and |ek | < 1; M = N = 2Mc + Mr poles/zeros.
Typical Pole-Zero Plot for All-Pass System
Mr
Y M
z 1 dk Yc (z 1 e⇤k )(z 1 ek )
Hap (z) = A ⇤
1 dk z 1 (1 ek z 1 )(1 ek z 1 )
k=1 k=1
For stable/causal systems: |dk | < 1 and |ek | < 1; M = N = 2Mc + Mr poles/zeros.
Mr = 2 and Mc = 1
Example 1st and 2nd Order All-Pass Systems
then, H(z) is uniquely determined by choosing all poles/zeros inside unit circle.
Minimum-Phase and All-Pass Decomposition
Assume H(z) has one zero at z = 1/a⇤ outside the unit circle (|a| < 1), and all
other poles/zeros are inside the unit circle:
H(z) = H1 (z) z 1
a⇤
Repeat this for every zero outside the unit circle for any arbitrary rational system
function.
Minimum-Phase and All-Pass Decomposition (Continued)
Any rational system can be factored into a minimum-phase system and an all-pass
system:
H(z) = Hmin (z)Hap (z)
I Hmin (z) contains all poles/zeros of H(z) that are inside unit circle
I Hmin (z) also contains conjugate reciprocals of zeros of H(z) outside unit circle
I Hap (z) contains all zeros of H(z) that are outside unit circle
I Hap (z) contains poles to cancel conjugate reciprocals zeros in Hmin (z)
Example: Minimum-Phase/All-Pass Decomposition
Find the minimum-phase all-pass decomposition of this stable and causal system:
1 + 3z 1
1
H(z) = pole at z = 2 and zero at z = 3
1 + 12 z 1
I Hmin (z) contains all poles/zeros of H(z) that are inside unit circle
I Hmin (z) also contains conjugate reciprocals of zeros of H(z) outside unit circle
I Hap (z) contains all zeros of H(z) that are outside unit circle
I Hap (z) contains all poles to cancel conjugate reciprocals zeros in Hmin (z)
! ! !
1
1 + 3z 1 z 1+ 3 1 + 13 z 1 z 1+ 1
3
H(z) = =3 =3
1 + 12 z 1 1 + 12 z 1 1 + 12 z 1 1 + 13 z 1
| {z }| {z }
Hmin (z) Hap (z)
Application: Frequency Response Compensation (Inverse Filters)
For a nonminimum phase system, we can form minimum phase system, Hd,min (z):
Hd (z) = Hd,min Hap (z)
Then the compensating filter is stable and causal:
1 Hd (z)
Hc (z) = where Hd,min (z) =
Hd,min (z) Hap (z)
Overall system function:
G(z) = Hd (z)Hc (z) = Hap (z)
Property of Minimum-Phase Systems
Using minimum-phase and all-pass decomposition:
For all systems that have the same magnitude response, the system with all poles
and zeros inside the unit circle has:
j⌦↵T
hc (t) = (t ↵T ) and Hc (j⌦) = e
where A(ej! ) is purely real and is called the zero phase response.
I With real-valued h[n], then |H(ej! )| = |A(ej! )| are even
I Since A is real, A is even and the inverse Fourier transform is real and even
I The impulse response h[n] is real and even and time shifted by ↵
I If ↵ is an integer: h[n] is symmetric about n = ↵
I If ↵ is an integer + 12 : h[n] is symmetric about n = ↵ + 12
I Both cases: if 2↵ is an integer then h[n] has symmetry: h[2↵ n] = h[n]
sin (!c (n nd ))
h[n] =
⇡(n nd )
Broader class to include more linear phase systems (including odd symmetry):
This doesn’t tell us how to find a linear phase system but we are interested in
particular cases:
1
X
h[n] sin [!(n ↵) + ] = 0, for all !
n=0
Type I II III IV
M even odd even odd
h symmetry even even odd odd
A symmetry even even odd odd
A e±j⇡ 6= 0 0 0 6= 0
↵ integer half-integer integer half-integer
⇡ 3⇡ ⇡ 3⇡
0 or ⇡ 0 or ⇡ 2 or 2 2 or 2