Professional Documents
Culture Documents
CO2035 - Lecture 3 - Z Transform
CO2035 - Lecture 3 - Z Transform
CO2035 - Lecture 3 - Z Transform
3. Z - Transform
CO2035 – Z-Transform 2
Contents
§ The z–Transform
▫ The Direct z–Transform
▫ The Inverse z–Transform
§ Rational z–Transform
▫ Poles and Zeros
▫ The System Function of a LTI System
The z–Transform
§ The z–transform of a discrete-time signal x(n) is defined as the power series
%$
𝐗(𝐳) = , 𝐱(𝐧)𝐳 #𝐧
𝐧"#$
𝐳
▫ The relationship between x(n) and X(z) is indicated by 𝐱(𝐧) 𝐗(𝐳)
▫ 𝐱 𝟐 𝐧 = {𝟏 𝟐 𝟓↑ 𝟕 𝟎 𝟏}
▫ 𝐱 𝟑 𝐧 = {𝟎↑ 𝟎 𝟏 𝟐 𝟓 𝟕 𝟎 𝟏}
▫ 𝐱 𝟒 𝐧 = {𝟐 𝟒 𝟓↑ 𝟕 𝟎 𝟏}
▫ 𝐱𝟓 𝐧 = 𝛅 𝐧
▫ 𝐱𝟔 𝐧 = 𝛅 𝐧 − 𝐤 𝐤>𝟎
▫ 𝐱𝟕 𝐧 = 𝛅 𝐧 + 𝐤 𝐤>𝟎
CO2035 – Z-Transform 5
𝐚#𝟏 𝐳 𝟏
⇒𝐗 𝐳 =− = if a#0 z < 1 i. e. 𝐳 < 𝐚 ≡ ROC
𝟏 − 𝐚#𝟏 𝐳 𝟏 − 𝐚𝐳 #𝟏
CO2035 – Z-Transform 7
▫ Then
𝐳
𝐱 𝐧 = 𝐚𝐱𝟏 𝐧 + 𝐛𝐱𝟐 𝐧 𝐗 𝐳 = 𝐚𝐗 𝟏(𝐳) + 𝐛𝐗 𝟐(𝐳)
ROC!(#) = ROC!! (#) ∩ ROC!" (#)
§ Example:
▫ Determine the z-transform and the ROC of the following signal
x(n) = anu(n) + bnu(–n–1)
CO2035 – Z-Transform 8
Example 𝐱 𝐧 = 𝐚𝐧 𝐮 𝐧 + 𝐛𝐧 𝐮(−𝐧 − 𝟏)
§ We have
𝐙 𝟏
𝐱𝟏 𝐧 = 𝐚𝐧 𝐮 𝐧 𝐗𝟏 𝐳 = 𝐑𝐎𝐂: 𝐳 > 𝐚
𝟏 − 𝐚𝐳 (𝟏
𝐙 𝟏
𝐱𝟐 𝐧 = −𝐛𝐧 𝐮 −𝐧 − 𝟏 𝐗𝟐 𝐳 = 𝐑𝐎𝐂: 𝐳 < 𝐛
𝟏 − 𝐛𝐳 (𝟏
§ Then,
𝐙 𝟏 𝟏
𝐱 𝐧 = 𝐱𝟏 𝐧 − 𝐱𝟐 𝐧 𝐗 𝐳 = 𝐗𝟏 𝐳 − 𝐗𝟐 𝐳 = −
𝟏 − 𝐚𝐳 (𝟏 𝟏 − 𝐛𝐳 (𝟏
▫ Then
𝐳 𝟎 𝐤>𝟎
𝐱 𝐧 − 𝐤 𝐳 $𝐤𝐗(𝐳) 𝐑𝐎𝐂 = 𝐑𝐎𝐂𝐗(𝐳) − P
∞ 𝐤<𝟎
§ Example 𝐧$𝟐
𝟏
▫ Determine the z-transform and the ROC of the following signal 𝐱 𝐧 = 𝐮(𝐧 − 𝟐)
𝟐
CO2035 – Z-Transform 10
Example
§ Determine the Z-transform of the following discrete-time signal
RST
1
x n = u(n − 2)
2
CO2035 – Z-Transform 11
▫ Then
𝐳
𝐚𝐧𝐱 𝐧 𝐗(𝐚$𝟏𝐳) 𝐑𝐎𝐂: 𝐚 𝐫𝟏 < 𝐳 < 𝐚 𝐫𝟐
§ Example
𝐧
▫ Determine the z-transform of the signals 𝟏
𝐱 𝐧 = 𝐚𝐧 𝐮(𝐧)
𝟐
CO2035 – Z-Transform 12
Example
§ Determine the Z-transform of the following discrete-time signal
𝐧
𝟏
𝐱 𝐧 = 𝐚𝐧 𝐮(𝐧)
𝟐
CO2035 – Z-Transform 13
▫ Then
𝐳 𝟏 𝟏
𝐱 −𝐧 𝐗(𝐳 $𝟏) 𝐑𝐎𝐂:
𝐫𝟐
< 𝐳 <
𝐫𝟏
§ Example
▫ Determine the z-transform of the signals 𝐱 𝐧 = 𝟐 𝐧 𝐮(−𝐧)
CO2035 – Z-Transform 14
Example
§ Determine the Z-transform of the following discrete-time signal
x n = 2 'u(−n)
CO2035 – Z-Transform 15
▫ Then
𝐳 𝐝𝐗(𝐳)
𝐧𝐱 𝐧 −𝐳 𝐑𝐎𝐂: 𝐫𝟏 < 𝐳 < 𝐫𝟐
𝐝𝐳
§ Example
▫ Determine the z-transform of the signals 𝐱 𝐧 = 𝐧𝐚𝐧 𝐮(𝐧)
CO2035 – Z-Transform 16
Example
§ Determine the Z-transform of the following discrete-time signal
x n = naR u(n)
CO2035 – Z-Transform 17
▫ Then
𝐳
𝐱 𝐧 = 𝐱𝟏 𝐧 ∗ 𝐱𝟐 𝐧 𝐗 𝐳 = 𝐗 𝟏(𝐳)𝐗 𝟐(𝐳)
Example
§ Compute the convolution x(n) of two signals
1, 0≤n≤5
x, n = {1 − 2 ↑ 1} x- n = P
0, elsewhere
X, z = z − 2 + z (, X - z = 1 + z (, + z (- + z (. + z (/ + z (0
X z = X, (z)X - z = (z − 2 + z (, )(1 + z (, + z (- + z (. + z (/ + z (0 )
X z = z − 1 − 𝑧 (0 + 𝑧 (1
𝐱 𝐧 = 𝐱𝟏 𝐧 ∗ 𝐱𝟐 𝐧 = 𝐙$𝟏 𝐗 𝐳 = {𝟏 − 𝟏↑ 𝟎 𝟎 𝟎 𝟎 − 𝟏 𝟏}
CO2035 – Z-Transform 21
In-Class Hackathon
§ Determine the z-transform of the following signals
𝟏 𝐧 𝟏 𝟏 𝐧&𝟏
𝐧≥𝟎 § 𝐱𝟔 𝐧 = 𝐧𝟐 +𝐧 𝐮 𝐧−𝟏
𝟑 𝟐 𝟑
§ 𝐱𝟐 𝐧 = ,
𝟏 &𝐧
𝐧<𝟎 𝟏 𝐧
𝟐
§ 𝐱𝟕 𝐧 = 𝐮 𝐧 − 𝐮(𝐧 − 𝟏𝟎)
𝟐
§ 𝐱𝟑 𝐧 = 𝟏 + 𝐧 𝐮 𝐧
§ 𝐱 𝟖 𝐧 = 𝐧𝟐 𝐮(𝐧)
§ 𝐱 𝟒 𝐧 = 𝐚𝐧 + 𝐚&𝐧 𝐮 𝐧 𝐚: 𝐫𝐞𝐚𝐥
CO2035 – Z-Transform 22
Rational z–Transform
§ The zeros of X(z) are the values of z for which X(z)=0.
§ The poles of X(z) are the values of z for which X(z)=¥.
▫ ROC does not contain any poles.
§ Example
▫ Determine the pole-zero plot for the signal
𝟏 𝟏 − 𝐳 (𝟏
𝐗 𝐳 = 𝐗 𝐳 =
𝟏 − 𝟎. 𝟗𝐳 (𝟏 𝟏 − 𝐳 (𝟏 − 𝟐𝐳 (𝟐
CO2035 – Z-Transform 23
𝟏 𝐧 𝟏 𝐧
§ Example: 𝐡 𝐧 = 𝟐
𝐮(𝐧) and 𝐱 𝐧 = 𝟑
𝐮(𝐧)
𝟏 𝟏 𝟏 𝟏
𝐇 𝐳 = 𝐗 𝐳 = 𝐘 𝐳 =𝐗 𝐳 𝐇 𝐳 = .
𝟏 𝟏 𝟏 𝟏
𝟏 − 𝐳 !𝟏 𝟏 − 𝐳 !𝟏 𝟏 − 𝐳 !𝟏 𝟏 − 𝐳 !𝟏
𝟐 𝟑 𝟑 𝟐
CO2035 – Z-Transform 24
§ There are three methods that are often used for evaluation of the z-transform
in practice.
▫ Direct evaluation by contour integration.
▫ Expansion into a series of terms, in the variables z and z-1
▫ Partial-fraction expansion and table lookup
CO2035 – Z-Transform 25
Inverse z - Transform
§ Partial-fraction expansion and table lookup
▫ Principle
If X(z) is represented as X(z) = a 1X 1(z) + a 2X 2(z) + … + a kX k(z)
Then x(n) = a 1x 1(n) + a 2x 2(n) + … + a kx k(n)
N ( z ) b0 + b1 z -1 + ! + bM z - M
X ( z) = =
▫ Rational z-transform D( z ) 1 + a1 z -1 + ! + a N z - N
X(z) is proper if aN≠0 and M<N
if M ³ N N ( z) N ( z)
X ( z) = = c0 + c1 z -1 + ! + cM - N z -( M - N ) + 1
It can always be written as D( z ) D( z )
N ( z ) b0 + b1 z -1 + ! + bM z - M
X ( z) = =
D( z ) 1 + a1 z -1 + ! + a N z - N
▫ Approach
Partial-fraction expansion b0 z N + b1 z N -1 + ! + bM z N - M
=
Table lookup for inverse z-transform z N + a1 z N -1 + ! + a N
X ( z ) b0 z N -1 + b1 z N - 2 + ! + bM z N - M -1
=
z z N + a1 z N -1 + ! + a N
CO2035 – Z-Transform 26
Inverse z - Transform
§ Partial-fraction expansion
▫ Determine poles (p1, p2, …, pN) by solving the equation: zN + a1zN-1+…+aN = 0
𝐗(𝐳) 𝐀𝟏 𝐀𝟐 𝐀𝐍
▫ If these poles are all different (distinct) = + + ⋯+
𝐳 𝐳 − 𝐩𝟏 𝐳 − 𝐩𝟐 𝐳 − 𝐩𝐍
(𝐳 − 𝐩𝐤 )𝐗(𝐳)
Determine Ak by 𝐀𝐤 = :
𝐳
𝐳 = 𝐩𝐤
▫ Multi-order poles
If pole pk is a pole of multiplicity L X ( z) A1 A2 A A2 k Alk AN
= + + ! 1k + + ! + + ! +
z z - p1 z - p2 z - pk ( z - pk ) 2 ( z - pk ) l z - pN
1 d l -i é ( z - pk ) l X ( z ) ù
Determine Aik by Aik = ê ú i = 1,2,..., l
(l - i )! dz ë z û z = pk
CO2035 – Z-Transform 27
Inverse z - Transform
§ Table lookup to detemine inverse z-transform for each partial fraction
𝟏 𝟏 𝟏
▫ If the poles are all different 𝐗(𝐳) = 𝐀 𝟏 + 𝐀 𝟐 + ⋯ + 𝐀 𝐍
𝟏 − 𝐩𝟏 𝐳 $𝟏 𝟏 − 𝐩𝟐 𝐳 𝟏 𝐳 − 𝐩𝐍 𝐳 $𝟏
We have
𝟏 𝐩𝐧𝐤 𝐮 𝐧 𝐑𝐎𝐂: 𝐳 > 𝐩𝐤 (𝐜𝐚𝐮𝐬𝐚𝐥)
𝐙$𝟏 =5 𝐧
𝟏 − 𝐩𝐤 𝐳 $𝟏 −𝐩𝐤 𝐮 −𝐧 − 𝟏 𝐑𝐎𝐂: 𝐳 < 𝐩𝐤 (𝐧𝐨𝐧 − 𝐜𝐚𝐮𝐬𝐚𝐥)
Then
𝐱 𝐧 = 𝐀𝟏 𝐩𝐧𝟏 + 𝐀𝟐 𝐩𝐧𝟐 + ⋯ + 𝐀𝐍 𝐩𝐧𝐍 𝐮(𝐧)
▫ In case of complex-conjugate poles
𝐀 𝐤 = 𝐀 𝐤 𝐞𝐣𝛂𝐤 𝐧
If ; then 𝐱𝐤 𝐧 = 𝐀𝐤 𝐩𝐤 + 𝐀∗𝐤 𝐩∗𝐤 𝐧
𝐮(𝐧)
𝐩𝐤 = 𝐫𝐤 𝐞𝐣𝛃𝐤
𝟏 ∗ 𝟏 𝐧
𝐙$𝟏 𝐀𝐤 + 𝐀 𝐤 ∗ = 𝟐 𝐀 𝐤 𝐫𝐤 𝐜𝐨𝐬 𝛃𝐤 𝐧 + 𝐚𝐤 𝐮 𝐧 𝐑𝐎𝐂: 𝐳 > 𝐩𝐤 = 𝐫𝐤
𝟏 − 𝐩𝐤 𝐳 $𝟏 𝟏 − 𝐩𝐤 𝐳 $𝟏
▫ In case of double poles
$𝟏
𝐩𝐳 $𝟏
𝐙 $𝟏 𝟐
= 𝐧𝐩𝐧 𝐮 𝐧 𝐑𝐎𝐂: 𝐳 > 𝐩
(𝟏 − 𝐩𝐳 )
CO2035 – Z-Transform 28
Exercise
CO2035 – Z-Transform 29
Inverse Z-Transform
1
X z =
(1 + z (, ) (1 − 𝑧 (, )-
CO2035 – Z-Transform 30
Inverse Z-Transform
Determine the causal signal x(n) if its z-transform is given
1 − 3𝑧 $*
X z =
1 + 3𝑧 $* + 2𝑧 $+
CO2035 – Z-Transform 31
Inverse Z-Transform
1 + z (,
X z =
1 − z (, + 0.5z (-
CO2035 – Z-Transform 32
Inverse Z-Transform
1 1
p, = +j
1 + z (, 2 2
X z = 1 1
1 − z (, + 0.5z (- p- = − j
2 2
X z A, A- A, A-
= + ⟹X 𝑧 = +
z z − p, z − p- 1 − p, 𝑧 (, 1 − p- 𝑧 (,
1 3
A, = − j
2 2
1 3
A- = + j
2 2
CO2035 – Z-Transform 33
Inverse Z-Transform
1
X z =
(1 + z (, ) (1 − 𝑧 (, )-
CO2035 – Z-Transform 34
Inverse Z-Transform
1 p, = −1
X z =
(1 + z (, ) (1 − 𝑧 (, )- p- = p. = 1
X z A, A- A. A, A- A . z (,
= + + ⟹X z = + +
z z + 1 z − 1 (z − 1)- 1 + z (, 1 − z (, (1 − z (, )-
1 3 1
A, = A- = A. =
4 4 2
CO2035 – Z-Transform 35
One-sided z-Transform
§ The one-sided or unilateral z-transform of a signal x(n) is defined by
,/
𝐗 , 𝐳 = R 𝐱(𝐧)𝐳 $𝐧
𝐧-𝟎
§ We aslo use the notation Z > {x(n)} and
𝐳(
𝐱(𝐧) 𝐗 ,(𝐳)
§ Charateristics
▫ Z+{x(n)} does not contain information about the signal x(n) for negative value of time (i.e. n < 0).
▫ Z+{x(n)} is unique only for causal signals because only these signals are zero for n < 0.
▫ Z+{x(n)} = Z{x(n)u(n)}
It is not necessary to refer to their ROC when we deal with one-sided z-transforms.
CO2035 – Z-Transform 36
One-sided z-Transform
§ Properties
▫ The properties of the z-transform are correct for the one-sided z-trasnform except the time shifting
property.
▫ Time shifting in one-sided z-Transform
if 𝐳.
𝐱(𝐧) 𝐗 > (𝐳)
Delay
𝐤
𝐳!
𝐱 𝐧 −𝐤 𝐳 $𝐤 𝐗 * 𝐳 + / 𝐱 −𝐧 𝐳 𝐧 𝐰𝐡𝐞𝐫𝐞 𝐤 > 𝟎
𝐧(𝟏
If x(n) is causal signal, we have x(n)
𝐳!
𝐱 𝐧 −𝐤 𝐳 $𝐤 𝐗 * 𝐳 𝐰𝐡𝐞𝐫𝐞 𝐤 > 𝟎
Advance
𝐤$𝟏
𝐳!
𝐱 𝐧+𝐤 𝐳 𝐤 𝐗 * 𝐳 − / 𝐱 𝐧 𝐳 $𝐧 𝐰𝐡𝐞𝐫𝐞 𝐤 > 𝟎
𝐧(𝟎
CO2035 – Z-Transform 37
One-sided z-Transform
§ Solution of difference equation
▫ Use one-sided z-transform to solve the difference equation with non-zero initial condition.
▫ Procedure
Determine difference equation described the system.
Adopt the one-sided z-transform on both sides of the difference equation.
Solve the equation in z-domain
Adopt inverse z-transform to convert the response in z domain to time domain.
§ Example: determine the unit step response [x(n)=u(n)] of the following system
𝟏
§ y(n) = ay(n–1) + x(n) (|a|< 1) with the initial condition y(–1) = 1 𝐗* 𝐳 =
𝟏 − 𝐳 $𝟏
𝐘 > 𝐳 = 𝐚 𝐳 (𝟏 𝐘 > 𝐳 + 𝐲(−𝟏) + 𝐗 > 𝐳 ⟹ 𝟏 − 𝐚𝐳 (𝟏 𝐘 > 𝐳 = 𝐚𝐲 −𝟏 + 𝐗 > 𝐳
ay(−1) 1 a 1 1
⟹ Y> z = + >
X z = +
1 − az (, 1 − az (, 1 − az (, 1 − az (, 1 − z (,
𝟏 − 𝐚 𝐧>𝟏
⇒ 𝐲 𝐧 = 𝐚𝐧>𝟏 𝐮 𝐧 + 𝐮(𝐧)
𝟏−𝐚
CO2035 – Z-Transform 38
One-sided z-Transform
§ Determine the response of a LTI System for an input signal x(n) and given system
function h(n).
x(n) y(n)
LTI System
1 Input-Output Description
𝐍 𝐌
Difference Equation 𝐲 𝐧 = − @ 𝐚𝐤 𝐲 𝐧 − 𝐤 + @ 𝐛𝐤 𝐱 𝐧 − 𝐤
𝐤'𝟏 𝐤'𝟎
2 Adopt z-Transform
Y(z) = H(z)X(z)
x(n) y(n)
LTI System
1 Input-Output Description
Difference Equation
▫ Given a causal signal x(n) and initial conditions y(-1), y(-2), …, y(-N) 𝐲 𝐧 = − @ 𝐚𝐤 𝐲 𝐧 − 𝐤 + @ 𝐛𝐤 𝐱 𝐧 − 𝐤
𝐤'𝟏 𝐤'𝟎
+
▫ Adopt one-sided z-transform and X (z) = X(z)
∑𝐌
𝐤I𝟎 𝐛 𝐤 𝐳 (𝐤 ∑𝐍
𝐤I𝟏 𝐚 𝐤 𝐳 (𝐤 ∑𝐤
𝐧I𝟏 𝐲 −𝐧 𝐳 𝐧 𝐍𝟎 (𝐳)
𝐘> 𝐳 = 𝐍 𝐤 (𝐤
𝐗 𝐳 − 𝐍 𝐤 (𝐤
=𝐇 𝐳 𝐗 𝐳 +
𝟏 + ∑𝐤I𝟏 𝐚 𝐳 𝟏 + ∑𝐤I𝟏 𝐚 𝐳 𝐀(𝐳)
𝐍 𝐤
▫ The total response consits of two parts 𝐍𝟎 𝐳 = − @ 𝐚𝐤 𝐳 !𝐤 @ 𝐲 −𝐧 𝐳 𝐧
The zero state response Yzs(z) = H(z)X(z) 𝐤'𝟏 𝐧'𝟏
The zero input response (p1, p2, …, pN are poles of A(z))
Since y(n) = yzs(n) + yzi(n)
𝐍
𝐍𝐨 (𝐳) 𝐙"
𝐘𝐳𝐢 𝐳 = 𝐲𝐳𝐢 𝐧 = @ 𝐃𝐤 𝐩𝐧𝐤 𝐮(𝐧)
𝐀(𝐳)
𝐤'𝟏
N L
Þ y (n) = å Ak' ( pk ) n u (n) + å Qk (qk ) n u (n) ( Ak' = Ak + Dk )
k =1 k =1
CO2035 – Z-Transform 42
Exercise (1)
§ Determine all possible signals that can have the following z-transform
𝟏
𝐗 𝐳 =
𝟏 − 𝟏. 𝟓𝐳 $𝟏 + 𝟎. 𝟓𝐳 $𝟐
CO2035 – Z-Transform 43
Exercise (2)
§ Determine x n = x, n ∗ x- n
where
'
1
x* n = u(n − 1)
4
'
1
x+ n = 1 + u(n)
2
CO2035 – Z-Transform 44
Exercise (3)
§ A LTI system is given by input-output description
𝟏
𝐲 𝐧 = 𝐲 𝐧 − 𝟏 + 𝟒𝐱 𝐧 + 𝟑𝐱(𝐧 − 𝟏)
𝟐
▫ Determine impulse response h(n) of the above system using Z and Z-1 Transform
𝟏 𝐧
▫ Determine 𝐲𝐳𝐬 𝐧 of the following LTI system where 𝐱 𝐧 = 𝐮(𝐧) using one-
𝟐
sided Z Transform and Z-1 Transform
CO2035 – Z-Transform 45
Exercise (4)
§ If 𝐳
𝐱 𝐧 𝐗(𝐳)
§ Then, prove the followings
▫ Z x∗ n = X ∗ (z ∗ )
,
▫ Z Re x n = [X z + X ∗ (z ∗ )]
-
,
▫ Z Im x n = [X z − X ∗ (z ∗ )]
-
▫ Z ePQ1 R = X(ze(PQ1 )
CO2035 – Z-Transform 46
CO2035 – Z-Transform 47
In-Class Quiz
§ Use z-transform, one-sided z-transform and inverse z-transform to
determine the zero-input response 𝒚𝒛𝒊 (𝒏), the zero-sate response 𝒚𝒛𝒔 (𝒏), and
total response y(n) of the following systems.
𝟑 𝟏
𝒚 𝒏 = 𝒚 𝒏 − 𝟏 + 𝒚 𝒏 − 𝟐 + 𝒙 𝒏 + 𝒙(𝒏 − 𝟏)
𝟒 𝟒
where 𝒙 𝒏 = 𝒖 𝒏 and 𝒚 −𝟏 = 𝒚 −𝟐 = 𝟏.
CO2035 – Z-Transform 48
In-Class Quiz
§ Use z-transform, one-sided z-transform and inverse z-transform to
determine the zero-input response 𝒚𝒛𝒊 (𝒏), the zero-sate response 𝒚𝒛𝒔 (𝒏), and
total response y(n) of the following systems.
𝟑 𝟏
𝒚 𝒏 = 𝒚 𝒏 − 𝟏 + 𝒚 𝒏 − 𝟐 + 𝒙 𝒏 + 𝒙(𝒏 − 𝟏)
𝟒 𝟒
where 𝒙 𝒏 = 𝒖 𝒏 and 𝒚 −𝟏 = 𝒚 −𝟐 = 𝟏.
𝟏
𝒚 𝒏 = 𝒚 𝒏 − 𝟐 + 𝒙(𝒏 − 𝟐)
𝟒
𝒏
𝟏
where 𝒙 𝒏 = 𝒖 𝒏 and 𝒚 −𝟏 = 𝒚 −𝟐 = 𝟏.
𝟑
𝟏
𝒚 𝒏 =𝒚 𝒏−𝟏 − 𝒚 𝒏 − 𝟐 + 𝒙(𝒏 − 𝟐)
𝒏
𝟒
𝟐
where 𝒙 𝒏 = 𝒖 𝒏 and 𝒚 −𝟏 = 𝒚 −𝟐 = 𝟏.
𝟑