Exercises 4 With Solutions
Exercises 4 With Solutions
Lange SS II
Exercise 13: Determine the z-transform X(z) of the discrete signals (xn )n
with
a) xn = σn n2 b) xn = σn n an−k
c) xn = σn−k n an−k d) xn = σn n e−2n sin(ω0 n)
b) The factor a−k is simply a constant. The factor n indicates that differentiating
once in the z-domain is needed:
n−k −k d z
(n a σn )n ❞ t X(z) = a · (−z) ·
dz z − a
−k z−a−z −k az
= a · (−z) · =a ·
(z − a)2 (z − a)2
Exercise 14: Determine the discrete signals (xn )n that correspond to the
following z-transforms:
(z + 1)2
a) X(z) = b) (omitted)
z2 √ √
3 2 3 3
z +z · 2 −1 +z· 2 +1 3z 3 − 8z 2 + 5z
c) X(z) = d) X(z) =
z3 + 1 z 3 − z 2 + 3z + 5
Solution:
a) Simply split up the term and use index-shifting:
(z + 1)2 z 2 + 2z + 1 2 1
2
= 2
=1+ + 2 t ❞ (δn + 2 δn−1 + δn−2 )n
z z z z
b) (omitted)
c) Use partial fraction decomposition with simple but complex poles
√ √ √ √
z 3 + z 2 · 23 − 1 + z · 23 + 1 z 2 + z · 23 − 1 + 23 + 1
X(z) = =z· π π
z3 + 1 (z + 1) · z − ej 3 · z − e−j 3
1 j 1 j 1
=z· − · π + · π
z + 1 2 z − ej 3 2 z − e−j 3
z 1 z 1 z
= + · π − · π
t ❞ (x ) with
n n
z + 1 2j z − ej 3 2j z − e−j 3
1 π n 1 π n
xn = (−1)n σn + · ej 3 σn − · e−j 3 σn
2j 2j
1 nπ 1 nπ
= σn · (−1)n + · ej 3 −
· e−j 3
2j 2j
n nπ
= σn · (−1) + sin( )
3
d) Use partial fraction decomposition with simple but complex poles, the
first one at z = −1:
3z 3 − 8z 2 + 5z 3z 2 − 8z + 5
X(z) = 3 =z·
z − z 2 + 3z + 5 (z + 1) · (z − (1 + 2j)) · (z − (1 − 2j))
1 1
+j −j
2 2 2
=z· + +
z + 1 z − (1 + 2j) z − (1 − 2j)
z 1 z 1 z
=2· + +j · + −j · t ❞ (x ) with
n n
z+1 2 z − (1 + 2j) 2 z − (1 − 2j)
1 1
xn = 2 σn · (−1)n + + j · (1 + 2j)n σn + − j · (1 − 2j)n σn
2 2
n 1 n 1 n
= σn · 2 · (−1) + + j · (1 + 2j) + − j · (1 − 2j)
2 2
n 1 n 1 n
= σn · 2 · (−1) + · (1 + 2j) · (1 + 2j) + · (1 − 2j) · (1 − 2j)
2 2
n 1 n+1 1 n+1
= σn · 2 · (−1) + · (1 + 2j) + · (1 − 2j)
2 2
√ 1 √ −jϕ n+1
n 1
jϕ
n+1
= σn · 2 · (−1) + · 5e + · 5e
2 2
1 √ n+1
n j·(n+1)·ϕ −j·(n+1)·ϕ
= σn · 2 · (−1) + · 5 · e +e
2
√ n+1
n
= σn · 2 · (−1) + 5 cos (n + 1) · ϕ
X(z) 3z − 4 2 1
= = + .
z (z − 2) · (z − 1) z−2 z−1
The inverse z-transform then results into
X(z) z z
= 2 z −1 · + z −1 · t ❞ (x ) with
n n
z z−2 z−1
xn = 2 σn−1 2n−1 + σn−1 = σn−1 · (2n + 1) .
X(z)
σn · 2n+1 + 1 .
X(z) = z · t ❞
z
In a) the inverse transform is somewhat more direct, in b) the partial fraction
decomposition is somewhat simpler.
With a = 21 , an σn ❞ t z
z−a
and index-shifting, the z-transform is determined
to be
5 5 !
z 1 z z 1
X(z) = 1 − · z −5 · 1 = 1 · 1− .
z− 2
2 z− 2
z− 2
2z
function X = exercise_16()
% calculation of a z-transform
syms n z
X = ztrans((0.5)^n*(heaviside(n)-heaviside(n-5)));
end
yields
1 1
+ 64
1 64·(z− 21 ) 1
XM (z) = − 5
+
2z −
1 z
2
1 1 1 1
= · 1 +1 − 5
· 1 +1
2 z−2 64z z− 2
1 1 1
= 1 +1 · −
z−2 2 64z 5
1 + z − 12 1
1
= · · 1−
z − 21 2 (2z)5
z + 21 1
1
= · · 1−
z − 21 2 (2z)5
The difference results from the fact that the MATLAB function heaviside(n)
is defined to be 21 at n = 0 and not 1 like the sequence (σn )n we use in the
lecture! Please remember that if you use the symbolic toolbox in MATLAB!