Calculating The Inverse Z-Transform
Calculating The Inverse Z-Transform
Calculating The Inverse Z-Transform
Lecture 5
Calculating the Inverse Z-Transform
x(n ) =
1) Direct Method by contour integration 2) Expansion into a series of terms z/z-1 3) Partial Fraction expansion and look-up table.
Cauchy-Residue Theorem Let f(z) be a function of the complex variable z and C be a closed path in the z-plane. If the derivative
d f ( z ) exists on and inside the contour C and if f(z) has no poles at z = z0, then dz
if z0 inside C
else
RHS of the above equation is called residue of the pole zo. Now suppose the function can be written as f (z ) where f(z) has no poles inside C and g(z) is a g (z )
where Ai ( z ) = ( z zi )
f (z ) . g (z )
z = zi
N 1 n 1 n 1 x(n ) = x(z )z dz = (z zi )X (z )z 2j i =1
number of poles.
Example: Problem 3.56 (C)
22
X (z ) =
x(n ) = z=r>
za 1 az
z >
1 a
1 (z a )z n1 x(n ) = a
z=
1 1 1 = a a a a 1 = a
n 1
n 1
1 a
n +1
1 za z (1 az ) dz 2j
1 (z a ) a z 1a
1 (z a ) a z
z=
1 a
1 a
1 1 z a 1 a z 1 a z (n1) dz 2j c
Therefore, it has a pole at zero with order of (n1) and a pole at 1/a. Since ROC z >
1 x(n ) is right-sided and therefore, it is enough to find where it reaches the zero a
d za dz z 1 a
z =o
= 0
23
1 1 z2 = = 2 1 z 1 1 2 z 1 1 3 z 1 + 2 z 2 z 3 z + 2
)(
It has two poles: z = 1 and z = 2. Therefore, if the signal is casual, then ROC: |z| > 2 and if the signal is non-casual, ROC: |z| < 1. Case 1: ROC: |z| > 2 signal is casual and therefore X ( z ) = x(n ) z n has terms with negative power
n =o
Case 2: ROC: |z| < 1 signal is non-casual X ( z ) = x(n ) z n has terms with positive
24
1 2 3 3 7 4 z + z + z + ... 2 4 8 1 2 z 2 3 1 1 2 z + z 2 2 3 z 1 + 1 3 1 2 0+ z z 2 2 3 9 3 z z2 + z3 2 4 4 7 2 3 3 0+ z z 4 4 1
7 3 1 x(n ) = ..., , , , 0, 0 8 4 2
Question: How would you use this method for a case like ROC: 1 < |z| < 2?
X (z ) =
Let X ( z ) =
b0 + b1 z 1 + .... + bM z M . If it is an improper rational function (M > N) then the 1 + a1 z 1 + a2 z 2 + ... + a N z N N1 ( z ) , where now the degree of N1(z) is less than N. D( z )
The inverse z-transformation of c0 + c1z-1 + . is very straight-forward. Next step is to write N1 ( z ) N (z ) or in general a proper function , where M < N, in terms of positive powers of z, D( z ) D( z ) factorize denominator and then write X (z ) in terms of partial fractions. In general, lets assume z
25
Then Ak =
( z pk ) X ( z )
z
z = pk
k = 1, 2, ., n excluding k = j and
k d l k ( z pi ) X ( z ) A jk = l k , k = 1, 2, ..,l d z z
Then
n ( pk ) u (n ) ROC : z > pk 1 Z = N 1 1 pk z ( pk ) u ( n 1) ROC : z < pk 1
Example
X (z ) =
1 1 1.5 z 1 + 0.5 z 2
( z 1) (z 12 )
A1 A2 + z 1 z 1 = 1 =2 1 2
2 = 1 1 2 1
z2
X (z ) z = z (z 1) z 1
A1 = ( z 1)
X (z ) z
z =1
A2 = z 1
) X z(z ) 2
z= 1
=
2
2 1 2 1 = X (z ) = z 1 z 1 z 1 1 z 1 1 z 1 2 2
= 2 + 0.5n u ( n 1)
3)
26
One-Sided Z Transform
information about x(n) for n < 0. It is unique only for the causal signals that are zero for n < 0. It is useful to solve difference equations of the systems that are not relaxed initially, but the input is not necessarily zero before applying to the system. Properties
k Z+ Z+ If x(n ) X + ( z ) then x(n k ) z k X + ( z ) + x( n )z n , k > o n =1
= x(l ) z l z K
l=K
1 l K = z K x l z + x(l )z l = z K x( n ) z n + X + ( z ) { o l =4 4 n =1 l = K n 1 2 3 x (z )
+
This limit exists if the ROC of (z-1)X+(z) includes the unit circle. This can be proved by the following analogy. If the limit lim n x ( n ) exists, then the function x(n) can be written as x(n) = c + f (n), where lim x(n) = c and lim f (n) = 0 . Then take the one
n n
27
Y (z ) =
First lets assume that the poles are distinct and not common. Then
Y (z ) =
N L Ak Qk + k k k =1 1 q k z k =1 1 P z k N
( )
Note that natural response zero-input response. It is in fact the no-input response.
Example
y (n ) =
Solution
Y (z ) =
1 1 z Y (z ) + X (z ) 2
1 1 1 z 1 2
P=1 1
H (z ) =
101 1 z 1 2 q = e j / 4 However, X ( z ) = 1 1 2 1 2z + z
* q2 = q1 = e j / 4
natrual response
force response
28
Y (z ) = 1
101 1 z 1 2 2 2 1 3 z z 2 + 1 z 1 + 1 2 2 2
norm (R (1)) = 6.78 angle (R (1)) = -0.5005 rad = - 28.7o zplane (b, a) % plots the zero-poles
y (n )
3 1 y (n 1) + y (n 2 ) = x(n ) 2 2
n
n0
] [
1 1 3 Y + ( z )1 z 1 + z 2 = + 1 2 z 1 1 2 1 1 z 2 4
2 2 9 z 1 + 1 z 2 4 2 . z Finally: Y ( z ) = 1 3 z 1 + 1 z 2 1 1 4 z 1 2 2 +
or Y + ( z ) =
2 1 3 + + 1 z 1 1 z 1 1 1 2
3 1 z 1 4
29
1 u (n ) 43 2 1 force response
n
Note that natural response is due to system poles and force response is due to the input poles. Transient response is due to the poles inside the unit circle and steady-state response is due to poles on the unit circle. In this case, 1 1 n 1 n Transient Response + u (n) 3 4 2 and Steady-State Response 2 u ( n) . 3
Zero-Input (or Initial condition) Response is: YZI ( z ) = H ( z ). X IC ( z ) and Zero-State Response is: YZS ( z ) = H ( z ). X ( z ) . In this case,
n 1 1 n 1 8 y zs (n) = 2 + u (n) 3 2 3 4
1 n and y zi (n) = 3 2u (n) . 2 Note that complete response is either Transient Response+Steady-State Response, or Natural Response + Force Response, or Zero-Input Response + Zero-State Response. Each response emphasizes a different aspect of system analysis.
Checking with MatLab: n = [0: 7]; % just checking the first 8 samples
1 ; 2
( )( )
30
Since y and y1 are the same, then our solution is correct! However, for large order difference equations, it is tedious to determine xic(n) analytically. MatLab command filtic does find xic as well. Xic = filtic (b, a, Y, x) where Y and x are initial conditions. Y = [y(-1), y(-2), , y(-N)] x = [x(-1), x(-2), , x(-M)] If x(n) = 0 for n < -1, then x need not to be defined. In our example: Y = [4, 10]; Xic = 1, -2
If h(n) = 0, for n < 0, then the system is causal. Then its ROC is the exterior of a circle. The stability of a system is quarantined by the condition that the ROC includes the unit circle. Because the necessary and sufficient condition for a BIBO system is that follows that H ( z ) = circle, H ( z )
n =
h( n) < .
It
n =
h ( n) z n
n =
h ( n) z n =
n =
h( n ) z
n =
h(n) . Note that causality and stability are independent of each other. One
doesn't imply the other. However, a causal LTI system is BIBO if and only if all the poles of H(z) are inside the unit circle.
Pole-Zero Cancellation
1 5 z 1 + 6 z 2 1 2.5 z 1 + z 2
1 1 1 1
(1 2 z )(1 3z ) (1 12 z )(1 2 z )
P1 = 1 , P2 = 2 2 z1 = 3, z 2 = 2
It seems that the pole at 2 is cancelled by zero at 2. So, the system is theoretically stable but not practically. Do problems: 3,6,7,9,15,22 and 43 of Chapter 3.