Lecture5 DSP
Lecture5 DSP
LECTURE 5
Fall 2010
2K8-5th Semester
Tahir Muhammad
[email protected]
Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and
Buck, ©1999-2000 Prentice Hall Inc.
The Z-Transform
| Counterpart
p of the Laplace
p transform for discrete-time
signals
| Generalization of the Fourier Transform
Fourier Transform does not exist for all signals
| Definition: ∞
X (z ) = ∑ x[n] z
n = −∞
−n
Lecture 5
The z-transform and the DTFT
| The z-transform is a function of the complex z variable
| Convenient to describe on the complex z-plane
Im ( )
X e jω
Unit Circle
r=1
ω 0
R
Re
2π 0 2π
Lecture 5
Convergence of the z-Transform
( ) = ∑ x[n ] e
∞
jω − jω n
| DTFT does not always converge
X e
n = −∞
Example: x[n] = anu[n] for |a|>1 does not have a DTFT
| Complex
C l variable
i bl z can be
b written
itt as r ejω so the
th z-
transform
( ) = ∑x[n] (re ) = ∑(x[n] r ) e
∞ ∞
jω − jω −n −n − jωn
X re
n=−∞ n=−∞
Lecture 5
Region of Convergence (ROC)
| ROC: The set of values of z for which the z-transform converges
| The region of convergence is made of circles
Lecture 5
Region of Convergence (ROC)
• Example:
Doesn't converge for any r.
DTFT exists.
i t
xn[ ] = cos(ω o n )
It has finite energy.
DTFT converges in a mean square sense.
• Example:
sin ωc n
Doesn't converge
g for anyy r. x [n ] =
It doesn’t have even finite πn
energy.
But we define a useful DTFT
with impulse function.
Lecture 5
Example 1: Right-Sided Exponential
Sequence
Im
∑ (az )
∞ ∞
x[n] = a u[n]
n
⇒ X(z ) = ∑ a u[n]z
n −n
= −1 n
n = −∞ n=0
Lecture 5
Example 2: Left-Sided Exponential
Sequence
x[n] = − a u[− n − 1] n
∞
(
= −∑n =1 a −1 z )
n
(
= 1 − ∑n =0 a −1 z
∞
)
n
ROC :
∑n =0
∞ −1 n −1
a z < ∞ ⇒ a z <1⇒ z < a
X (z ) = 1 −
1 1 z
−1
= −1
=
1 − a z 1 − az z−a
Lecture 5
Example 3: Two-Sided Exponential
Sequence
1 −1
ROC : − z <1
n n 3
⎛ 1⎞ ⎛1⎞
x[n] = ⎜ − ⎟ u[n] - ⎜ ⎟ u[- n - 1] 1
⎝ 3⎠ ⎝2⎠ < z
3
0 ∞
⎛ 1 −1 ⎞ ⎛ 1 −1 ⎞
⎜− z − ⎜− z 1 −1
∞
⎛ 1 −1 ⎞
n
⎝ 3 ⎠ ⎝ 3 ⎠ 1 ROC : z >1
∑ ⎜
n =0 ⎝
− z
3 ⎠
⎟ =
1
=
1
2
1 + z −1 1 + z −1 1
3 3 > z
2
−∞ 0 Im
⎛ 1 −1 ⎞ ⎛ 1 −1 ⎞
n ⎜ z ⎟ − ⎜ z ⎟
−1
⎛ 1 −1 ⎞ ⎝ 2 ⎠ ⎝2 ⎠ = −1
∑ ⎜
n = −∞⎝ 2
z ⎟
⎠
=
1 1
1 − z −1 1 − z −1
2 2 1 1
−
3x 2
⎛ 1 ⎞ oo x
2z⎜ z − ⎟ 1
1 1 ⎝ 12 ⎠
X(z ) = + = 12
1 1 ⎛ 1 ⎞⎛ 1⎞
1 + z −1 1 − z −1 ⎜ z + ⎟⎜ z − ⎟
3 2 ⎝ 3 ⎠⎝ 2⎠
Lecture 5
Example 4: Finite Length Sequence
x [n ] = a (u [n ] − u [n − N ])
n ⎧a n
x[n] = ⎨
0 ≤ n ≤ N −1
⎩0 otherwise
N −1 N −1
X ( z ) = ∑ a n z − n =∑ az ( )
−1 n
=
(
1 − az −1 ) N
n =0 n =0 1 − az −1
1 zN − aN
= ⋅
z N −1 z−a
ROC :
N −1
∑ az
n =0
−1 n
< ∞ ⇒ az −1 < ∞ ⇒ z ≠ 0
Lecture 5
Some common Z-transform pairs
δ [n ] 1 ALL z
u [n ] 1 z >1
1 − z −1
1
− u [− n − 1] z <1
1 − z −1
−m All z except 0 (if m > 0 )
δ [n − m ] z or ∞ (if m < 0 )
Lecture 5
Some common Z-transform pairs
a u[n]
1
n
←⎯→
Z
ROC : z > a
1 − az −1
a n u[− n − 1]
1
←⎯→
Z
ROC : z < a
1 − az −1
az −1
na n u[n] ←⎯→
Z
ROC : z > a
(1 − az ) −1 2
az −1
− na u[− n − 1] ←⎯→
n Z
ROC : z < a
(1 − az ) −1 2
Lecture 5
Some common Z-transform pairs
[sin
i ω 0 n]u[n] ←⎯→
Z [sin ω 0 ]z −1 ROC : z >1
1 − [2 cos ω 0 ]z −1 + z − 2
[r n
]
cos ω 0 n u[n] ←⎯→
Z 1 − [r cos ω 0 ]z −1
ROC : z >r
1 − [2r cos ω 0 ]z −1 + r 2 z − 2
[r n
]
sin ω 0 n u[n] ←⎯→
Z [r sin ω 0 ]z −1 ROC : z >r
1 − [2r cos ω 0 ]z −1 + r 2 z − 2
⎧a n 0 ≤ n ≤ N −1 1 − a N z −N
⎨ ←⎯→
Z
ROC : z >0
⎩0 otherwise 1 − az −1
Lecture 5
Properties of The ROC of Z-Transform
| The ROC is a ring or disk centered at the origin
| DTFT exists if and only if the ROC includes the unit circle
| The ROC cannot contain any poles
| The ROC for finite-length
g sequence
q is the entire z-plane
p
except possibly z=0 and z=∞
| The ROC for a right-handed sequence extends outward
from the outermost ppole p
possibly
y including g z= ∞
| The ROC for a left-handed sequence extends inward from
the innermost pole possibly including z=0
| The ROC of a two-sided sequence
q is a ringg bounded by y
poles
| The ROC must be a connected region
| A z-transform does not uniquely
q y determine a sequence
q
without specifying the ROC
Lecture 5
Stability, Causality, and the ROC
| Consider a system
y with impulse
p response
p h[n]
[ ]
| The z-transform H(z) and the pole-zero plot shown below
| Without any other information h[n] is not uniquely
d t
determined
i d
|z|>2 or |z|<½ or ½<|z|<2
| If system
y stable ROC must include unit-circle: ½<|z|<2
| |
| If system is causal must be right sided: |z|>2
Lecture 5
Z-Transform Properties: Linearity
| Notation
x[n] ←⎯
⎯Z
→ X(z ) ROC = R x
| Linearity
Lecture 5
Z-Transform Properties: Time Shifting
x[n − no ] ←⎯
⎯Z
→ z −no X(z ) ROC = R x
| Here no is an integer
y If positive the sequence is shifted right
y If negative the sequence is shifted left
n-1
⎛1⎞
x[n] = ⎜ u[n - 1]
⎝ 4⎠
Lecture 5
Z-Transform Properties: Multiplication
by Exponential
zno x[n] ←⎯
⎯Z
→ X(z / zo ) ROC = zo R x
2
n
an
x[n] = (− 1) u[n − 1]
n −1
Lecture 5
Z-Transform Properties: Conjugation
x* [n] ←⎯
⎯Z
→ X * z* ( ) ROC = R x
∞
X (z ) = ∑ x [n ] z −n
n =−∞
∗
⎛ ∞ −n ⎞
∞
X ( z ) = ⎜ ∑ x [n ] z ⎟ = ∑ x ∗ [n ] z n
∗
⎝ n =−∞ ⎠ n =−∞
∞ ∞
( z ) = ∑ x [n ] ( z ) = ∑ x [n ] z { }
∗
X ∗ ∗ ∗ n ∗ −n
= Z x ∗ [n ]
n =−∞ n =−∞
Lecture 5
Z-Transform Properties: Time Reversal
1
x[− n] ←⎯
⎯Z
→ X(1 / z ) ROC =
Rx
| ROC is inverted
| Example: x[n] = a−nu[− n]
1 - a-1z −1
X(z ) = = z < a−1
1 − az 1 - a-1z −1
Lecture 5
Z-Transform Properties: Convolution
x1 [n] ∗ x2 [n] ←⎯
⎯Z
→ X1 (z )X2 (z ) ROC : R x1 ∩ R x2
| Multiplications of z-transforms is
1
Y (z ) = X1 (z )X2 (z ) =
(1 − az )(1 − z )
−1 −1
1− a ⎝1− z 1 − az ⎠
Lecture 5