Lecture-5-Z Transform-DG - 1
Lecture-5-Z Transform-DG - 1
Z-Transforms
Overview
• Z Transform
• Properties of z-transform
• Transfer Function
• Transfer Function & Difference Equation
• Transfer Function & Impulse Response
• Inverse Z Transform
• Transfer Function & System Stability
• Difference Equation & System Stability
• Impulse & Step Responses
Z Transform
• The z transform is an important digital signal processing tool
for describing and analyzing digital systems.
3
Z Transform
• The z transform for a digital signal x[n] is defined as
𝑋 𝑧 = 𝒁 𝑥[𝑛]
𝑋 𝑧 = 𝑥 𝑛 𝑧 −𝑛
𝑛=−∞
4
Z Transform
• The z transform for causal signals is
𝑋 𝑧 = 𝑥 𝑛 𝑧 −𝑛
𝑛=0
5
Z Transform Table
6
Z Transform Table
7
Region of Convergence (ROC)
• The z transform for every signal has an associated Region of
Convergence (ROC), the region of the z domain for which the
transform exists.
• While all other values of z outside the ROC will cause the
summation to diverge.
8
Z Transform
Example-1: Determine the z-transform of the following signals.
a) x[n] = δ[n]
solution
∞
𝑋 𝑧 = 𝛿 𝑛 𝑧 −𝑛 = 𝛿 0 = 1
𝑛=0
9
Z Transform
Example-1: Determine the z-transform of the following signals.
b) x[n] = δ[n-1]
solution
∞
𝑋 𝑧 = 𝛿 𝑛 − 1 𝑧 −𝑛 = 𝛿 0 𝑧 −1 = 𝑧 −1
𝑛=0
10
Z Transform
Example-1: Determine the z-transform of the following signals.
c) x[n] = u[n]
Solution 𝑋 𝑧 = σ∞
𝑛=0 𝑢 𝑛 𝑧 −𝑛
= σ ∞
𝑛=0 𝑧 −𝑛
𝑋 𝑧 = 1 + 𝑧 −1 + 𝑧 −2 + 𝑧 −3 +……
ROC: 𝑧 > 1 11
Z Transform
Example-1: Determine the z-transform of the following signals.
d) x[n] = u[n-1]
Solution
1 𝑧 1
X z = 𝑧 −1 = 𝑧 −1 =
1−𝑧 −1 𝑧−1 𝑧−1
ROC: 𝑧 > 1
12
Z Transform
Example-1: Determine the z-transform of the following signals.
e)
Solution
13
Z Transform
Example-1: Determine the z-transform of the following signals.
f)
Solution
14
Z Transform
Example-1: Determine the z-transform of the following signals.
g) x[n] = anu[n]
Solution
15
Z Transform
Example-1: Determine the z-transform of the following signals.
h) x[n] = (-0.5)nu[n]
Solution
16
Z Transform
Example-2: Find the z transform of the signal x[n] depicted in
the figure.
Solution
The signal x[n] is described as:
x[n] = 2δ[n] + δ[n-1] + 0.5δ[n-2]
• 𝑋 𝑧 = 𝑥 0 + 𝑥 1 𝑧 −1 + 𝑥[2]𝑧 −2
• 𝑋 𝑧 = 2 + 𝑧 −1 + 0.5𝑧 −2
17
Properties of z-transform
Linearity
18
Properties of z-transform
Linearity
Example-3: Find the z-transform of the sequence defined by
Solution
Applying the linearity of the z-transform, we have
19
Properties of z-transform
Linearity
Example-4: Find the z-transform of the sequence defined by
Solution
Applying the linearity of the z-transform, we have
20
Properties of z-transform
Linearity
Example-5: Find the z-transform of the signal x[n] defined by
Solution
21
Properties of z-transform
Z{x[n-1]} = z-1X(z)
More generally,
Z{x[n-k]} = z-kX(z)
22
Properties of z-transform
23
Properties of z-transform
24
Properties of z-transform
Time Shifting/Shift Theorem
Example-6: Find the z-transform of the signal x[n] defined by
Solution
25
Properties of z-transform
Time Reversal
26
Properties of z-transform
Time Reversal
Solution
27
Properties of z-transform
Convolution
28
Properties of z-transform
Convolution
Proof:
29
Properties of z-transform
Convolution
Example-8: Consider the two sequences
30
Properties of z-transform
Convolution
Example-9: Compute the convolution of the following signals
using z transform
Solution
31
Properties of z-transform
32
Difference Equation Diagram using z–1 Notation
33
Difference Equation Diagram using z–1 Notation
34
Transfer Function
35
Transfer Function
• In the z domain, the transfer function of a filter can be
defined.
• The transfer function is the ratio of the output to the input in
the z domain:
𝑌(𝑧)
𝐻 𝑧 =
𝑋(𝑧)
In this equation
Y(z) is the z transform of the output y[n]
X(z) is the z transform of the input x[n]
H(z) is the transfer function of the filter
36
Transfer Function & Difference Equation
Taking Y(Z) and X(Z) common and then cross multiply to get TF.
37
Transfer Function & Difference Equation
Factoring out Y(z) on the left side and X(z) on the right side:
(2 + z-1 + 0.9z-2)Y(z) = (z-1 + z-4)X(z)
𝑌(𝑧) 𝑧 −1 +𝑧 −4
H 𝑧 = =
𝑋(𝑧) 2+𝑧 −1 +0.9𝑧 −2 38
Transfer Function & Difference Equation
Factoring out Y(z) on the left side and X(z) on the right side:
(1 – 0.2z-1)Y(z) = (1 + 0.8z-1)X(z)
𝑌(𝑧) 1 + 0.8𝑧 −1
H 𝑧 = =
𝑋(𝑧) 1 − 0.2𝑧 −1 39
Transfer Function & Difference Equation
Factoring out Y(z) on the left side and X(z) on the right side:
Y(z) = (0.75 - 0.3z-2 - 0.01z-3)X(z)
𝑌(𝑧)
H 𝑧 = = 0.75 − 0.3𝑍 −2 − 0.01𝑍 −3
𝑋(𝑧) 40
Transfer Function & Difference Equation
(1 – 0.5z-1)Y(z) = (1 + 0.5z-1)X(z)
then
Y(z) – 0.5z-1Y(z) = X(z) + 0.5z-1X(z)
𝑧
Solution: H 𝑧 =
8𝑧 2 −6𝑧+1
Since H(z) = Y(z)/X(z), do the cross multiply to get
(8𝑧 2 − 6𝑧 + 1 )Y(z) = (z)X(z)
Then 8z2Y(z) – 6zY(z) + y(z) = zX(z)
Finally taking the inverse z transform term by term to get
8y[n] – 6y[n-1] + y[n-2] = x[n-1]
43
Transfer Function & Impulse Response
𝐻 𝑧 = ℎ[𝑛]𝑧 −1
𝑛=0
Solution
The transfer function H(z) of the system is the z transform of the
impulse response h[n]. Taking z transform term by term we get
Note that we can also get the difference equation from the TF.
y[n] = x[n] + 0.4x[n-1] + 0.2x[n-2]+ 0.05x[n-3]
45
System Outputs in Time & Z Domains
46
System Output using TF
• The definition of the transfer function (TF) provides a means
of calculating filter outputs. That is,
Y(z) = H(z)X(z)
47