Assignment
Assignment
Z Transformation
1.1 Introduction
In the area of digital signal processing in Electrical engineering, we encounter
sequences of discrete signals. If we represent a sequence in signal processing as {fₙ}, then fₙ =
f(nT) where n = 0, 1, 2,.. is a non-negative integer and T is called the sampling period.
Therefore, the elements of the {fₙ} are functions of discrete non-negative integer valued
arguments. Such sequences are also encountered in many applications areas of digital
[Link] operation of such discrete systems is governed by different equations.
One of the important tools for solving the difference equations is Z [Link] Z
transform of a sequence {fₙ} can be defined as a functional transformation of sequences. We
usually define the Z transform of the sequence {fₙ}, n ≥ 0, where {fₙ} is a real or complex
number.
Z transforms have properties similar to Laplace transforms. For almost every result in
Laplace transform, there is a corresponding result in Z transform.
Laplace transform is the foundation that makes Z-transform possible and
understandable.
1.1.1 Deinition of Laplace Transforms
In mathematics, the Laplace transform, named after Pierre-Simon Laplace, is
an integral transform that converts a function of a real variable (usually t , in the time domain)
to a function of a complex variable s (in the complex-valued frequency domain, also known
as s-domain, or s-plane). The functions are often denoted by x(t) for the time-domain
representation, and X(s) for the frequency-domain.
The transform is useful for converting differentiation and integration in the time domain into
much easier multiplication and division in the Laplace domain (analogous to
how logarithms are useful for simplifying multiplication and division into addition and
subtraction). This gives the transform many applications in science and engineering, mostly as
a tool for solving linear differential equations and dynamical systems by simplifying ordinary
differential equations and integral equations into algebraic polynomial equations, and by
simplifying convolution into multiplication.
The Laplace transform is related to many other transforms. It is essentially the same as
the Mellin transform, and is closely related to the Fourier transform. Unlike the Fourier
transform, the Laplace transform is often an analytic function, meaning that it has a
convergent power series, the coefficients of which represent the moments of the original
function. Moreover, the techniques of complex analysis, and especially contour integrals, can
be used for simplifying calculations.
1. Conceptual Foundation
The Z-transform can be seen as a discrete version of the Laplace [Link] replacing
with -related terms, we move from continuous-time to discrete-time analysis.
Relationship:
z = e^{sT}
3. System Stability
Stability criteria in Laplace (poles in left-half plane) are mapped to Z-domain (poles
inside unit circle).This connection helps engineers convert analog stable systems into digital
stable systems.
5. Sampling Theorem
Laplace transform explains continuous-time signals, while Z-transform works for
sampled [Link] Laplace helps explain why and how signals are sampled.
1.2 History
Where n is an integer and z is, in general, a complex number. In polar form,z may be written
as:
z = A𝒆𝒊𝝋 = A(cos𝝋 + i sin𝝋 )
where A is the magnitude of z, i is the imaginary unit, and 𝜑 is the complex argument (also
referred to as angle or phase) in radians.
1.3.2 Unilateral Z-transform
Alternatively, in cases where x[n] is defined only for n≥0 , the single-sided or unilateral
Z-transform is defined as:
X(z) = Z{x[n]} = ∑∞
𝒏=𝟎 𝒙[𝒏]𝒛
-n
In signal processing, this definition can be used to evaluate the Z-transform of the unit impulse
response of a discrete-time causal system.
An important example of the unilateral Z-transform is the probability-generating function,
where the component x[n] is the probability that a discrete random variable takes the value.
The properties of Z-transforms (listed in § Properties) have useful interpretations in the context
of probability theory.
Where C is a counterclockwise closed path encircling the origin and entirely in the region of
convergence (ROC). In the case where the ROC is causal, this means the path C must encircle
all of the poles of X(z).
A special case of this contour integral occurs when C is the unit circle. This contour can be
used when the ROC includes the unit circle, which is always guaranteed when X(z) is stable,
that is, when all the poles are inside the unit circle. With this contour, the inverse Z-transform
simplifies to the inverse discrete-time Fourier transform, or Fourier series, of the periodic
values of the Z-transform around the unit circle:
𝟏 𝝅
x[n] = 𝟐𝝅 ∫−𝝅 𝑿(eiω) eiωndω
The Z-transform with a finite range of n and a finite number of uniformly spaced z
values can becomputed efficiently via Bluestein's FFT algorithm. The discrete-time Fourier
transform (DTFT) - not to be confused with the discrete Fourier transform (DFT)—is a special
case of such a Z-transform obtained by restricting z to lie on the unit circle.
2. System Analysis
• Many real systems (filters, circuits, controllers) are modeled by difference equations.
• Z-transform converts the difference equation into an algebraic equation in the Z-
domain.
• After simplification, applying the inverse Z-transform gives the time-domain
solution.
• Example: Solve y[n]−0.5y[n-1] = x[n]. Taking Z-transform and rearranging,
𝑌(𝑧) 1
we get H(z) = 𝑋(𝑧) = 1−0.5𝑧 −1
6. Signal Processing
• Z-transform is used for fundamental DSP operations:
o Convolution: Multiplication in Z-domain equals convolution in time domain.
o Correlation: Used in pattern matching and signal similarity checks.
o Spectral Analysis: Z-transform provides a way to compute the power spectrum
of signals.
• These operations are essential in speech processing, image processing, and
communications.
7. Control Systems
• In digital control systems, controllers and plants are modeled in discrete-time.
• Z-transform helps analyze system stability, transient response, and steady-state error.
• Digital controllers like PID controllers are often designed using Z-transform methods.
• Example: Converting a continuous-time control system (using Laplace transform) into
a discrete-time model (using Z-transform) for microprocessor implementation.
Remark 1
It is possible to consider Z-transforms of the sequences {fₙ} defined on integer-valued
arguments, that is, the arguments can take values n=…,-2,-1,0,1,2,…. In this case, we call {fₙ}
as a two-sided sequence and the corresponding transform as two-sided Z transform.
= αF(z) + βG(z).
Remark 2
Z-1 [αF (z) + βG (z)] = αZ-1 [F(z)] + βZ-1 [G(z)] = αfₙ + βgₙ
Example 1
Obtain the Z-transform of the sequence {fₙ} , where fₙ is given byType equation here.
(i) cos (nθ)
(ii) sin (nθ).
Hence, write the inverse Z-transform.
Solution:
z
Z{einθ } =
z − eiθ
z
=
z − co s θ − isi n θ
z[(z − co s θ) + isi n θ]
=
(z − co s θ)2 + sin2 θ)
Hence,
Z{co s(nθ) + isi n(nθ)} = Z{co s(nθ)} + iZ{si n(nθ)}
z[(z − co s θ) + isi n θ] z(z − co s θ) zsi n θ
= = + i
(z − co s θ)2 + sin2 θ z 2 − 2(zco s θ) + 1 z 2 − 2(zco s θ) + 1
Comparing the real and imaginary parts, we obtain
z(z − co s θ)
Z{co s(nθ)} =
z2 − 2(zco s θ) + 1
zsi n θ
Z{si n(nθ)} =
z2 − 2(zco s θ) + 1
The region of convergence is |z| > |eiθ | = 1 and
z(z − co s θ)
Z −1 [ ] = co s(nθ)
(z − co s θ)2 + sin2 θ
(zsi n θ)
Z −1 [ ] = si n(nθ)
(z − co s θ)2 + sin2 θ
Example 2
Obtain the Z-transform of the sequence {fₙ}, where fₙ is given by
(i) cos h(nθ) , (ii) sin h(nθ)
Solution:
enθ +e−nθ
(i) We write cos h(nθ) = .
2
Therefore, we get
1
Z{cos h(nθ)} = [Z{enθ } + Z{e−nθ }]
2
Setting a = θ and a = −𝜃 in Eq. (10.8i), we obtain
1
Z{cos h(nθ)} = [Z{enθ } + Z{e−nθ }]
2
1 z z
= [ θ
+ ]
2 z−e z − e−θ
1 z(z − e−θ ) + z(z − eθ )
= [ ]
2 (z − eθ )(z − e−θ )
1 2z 2 − 2(cos h θ)z
= ⋅
2 z 2 − 2(cos h θ)z + 1
z(z − cos h θ)
=
z 2 − 2(cos h θ)z + 1
enθ −e−nθ
(ii) We write (sin h(nθ) = ). Therefore, weget
2
1
Z{sin h(nθ)} = [Z{enθ } − Z{e−nθ }]
2
Setting a = θ and a = −θ , we obtain
1 z z
Z{sin h(nθ)} = [ − ]
2 z − eθ z − e−θ
z(eθ − e−θ )
=
2(z 2 − (eθ + e−θ )z + 1)
(sin h θ)z
=
z 2 − 2(cos h θ)z + 1
𝐓𝐡𝐞𝐨𝐫𝐞𝐦 𝟐. 𝟑
Let the Z transform 𝑍{fn } = 𝐹(z) exist in the region |z|>(1/R).If a is any real or complex
constant ,then
(i) 𝑍{a −n fn } = 𝐹(az)
(ii) 𝑍{an fn } = 𝐹(z/a)
𝐏𝐫𝐨𝐨𝐟
Using the definition of Z transform, we get
i) 𝑍{an fn }
∞
= ∑ a−n fn z −n
n=0
∞
= ∑ fn (az)−n
n=0
= 𝐹(az).
ii) 𝑍{a−n fn }
∞
= ∑ an fn z −n
n=0
∞
z −n
= ∑ fn ( )
a
n=0
z
= 𝐹 (a)
Example
Determine the Z transforms
(i) Z{eαn cos(βn)}, (ii) Z{e-αn sin(βn)}
Solution
(i) Let fn = cos(βn). We have
z(z − cos β)
Z(cos(βn)) = = F(z)
z 2 − 2(cos β)z + 1
with a = eα , we get
z
Z(eαn cos(βn)) = F ( )
eα
z(z − eα cos β)
=
z 2 − 2(cos β)eα z + e2α
(ii) Let fn = sin(βn) . We have
(sin β)z
Z(sin(βn)) = = F(z)
z2 − 2(cos β)z + 1
with a = eα , we get
−αn α
(sin β)zeα
Z{e sin(βn)} = F(e z) = 2α 2 .
e z − 2(cos β)zeα + 1
Proof
Using the definition of the Z − transform:
∞
f1 f2 fp fp+1
[F(z) = ∑ fn z −n = f0 + + 2 + ⋯ + p + p+1 +
z z z z
n=0
Set ( p = 1 ):
f2
zF(z) = zf0 + f1 + +⋯
z
Taking limita as ( z → ∞), we obtain:
f1 = lim [zF(z) − zf0 ] = lim [z(F(z) − f0 )]
z→∞ z→∞
Set ( p = 2 )
f3
z 2 F(z) = z 2 f0 + zf1 + f2 + +
z
Taking limita as ( z → ∞), we obtain:
f2 = lim [z 2 F(z) − z 2 f0 − zf1 ]]
z→∞
𝐓𝐡𝐞𝐨𝐫𝐞𝐦 𝟐. 𝟓 (𝐅𝐢𝐧𝐚𝐥𝐕𝐚𝐥𝐮𝐞𝐓𝐡𝐞𝐨𝐫𝐞𝐦)
1
Let the Z − transform (Z{fn } = F(z)) exist in the region (|z| > ). Then,
R
lim fn = lim(z − 1) F(z).
n→∞ z→1
𝐏𝐫𝐨𝐨𝐟
From the Z − transform definition:
[Z{fn+1 − fn } = Z{fn+1 } − Z{fn } = z[F(z) − f0 ] − F.
Using the Shifting Theorem, we obtain
Z{fn+1 − fn } = (z − 1)F(z) − zf0
Therefore, we obtain
(z-1) F(z) – zf0 = (f1 − f0 ) + (f2 − f1 )z −1 + ⋯ + (fn+1 − fn )z −n + ⋯ = (z −
1)F(z) − zf0
Hence,
lim fn = lim(z − 1) F(z)
n→∞ z→1
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 𝟏
3z 2 − 4z + 7
Let (Z{fn } = F(z) = ) Find (f0 , f1 , f2 , f3 ).
(z − 1)3
Solution
We have form Initial Value Theorem,
3z 2 − 4z + 7 3/z − 4/z 2 + 7/z 3
f0 = lim F (z) = lim [ ] = lim [ ]
z→∞ z→∞ (z − 1)3 z→∞ (1 − 1/z)3
3z 3 − 4z 2 + 7z 3 − 4/z + 7/z 2
f1 = lim z [F(z) − f0 ] = lim [ ] = lim [ ]
z→∞ z→∞ (z − 1)3 z→∞ (1 − 1/z)3
2 2
3z 4 − 4z 3 + 7z 2 − 3z 2
[z ]
f2 = lim F(z) − z f0 − zf1 = lim [ ]
z→∞ z→∞ (z − 1)3
5z 3 − 2z 2 + 3z 5 − 2/z + 3/z 2
= lim [ ] = lim [ ]=5
z→∞ (z − 1)3 z→∞ (1 − 1/z)3
3z 5 − 4z 4 + 7z 3 − 3z 2 − 5z
f3 = lim [z 3 3 2
F(z) − z f0 − z f1 − zf2 ] = lim [ ]
z→∞ z→∞ (z − 1)3
Z{fn } = F(z) = ∑ fn z −n = f0 + f1 z −1 + f2 z −2 + ⋯
n=0
Differentiating both sides with respect to ( z ), assuming that the term by term differentiation
of the infinite series is allowed, we get:
d
[F(z)] = −f1 z −2 − 2f2 z −3 − 3f3 z −4 − ⋯
dz
∞
−1
= −z ∑ n fn z −n = −z −1 Z{nfn }
n=0
Hence, we obtain
d d
Z{nfn } = −z [F(z)] = −z [Z{fn }].
dz dz
Remark 3
d
Z{np fn } = z [Z{np−1 fn }], p = 1,2, …
dz
Example 1
Determine(i)(Z{n}, (ii)Z{n2 }, (iii)Z{n3 } and Z{n4 }).
Solution
z
Let(fn = 1). Then Z{fn } = Z{1} = . From Theorem 2.6, we get
z−1
d
(i) Z{n} = −z [Z{1}]
dz
d z
= −z [ ]
dz z − 1
z
=
(z − 1)2
d
(ii) Z{n2 } = −z [Z{n}]
dz
d z
= −z [ ]
dz (z − 1)2
z2 + z
=
(z − 1)3
d
(iii) Z{n3 } = −z [Z{n2 }]
dz
d z2 + z
= −z [ ]
dz (z − 1)3
z 3 + 4z 2 + z
=
(z − 1)4
d
(iv) Z{n4 } = −z [Z{n3 }]
dz
d z 3 + 4z 2 + z
= −z [ ]
dz (z − 1)4
Example 2
Let(fn = an ). Determine (i) (Z{nan }) and (ii) (Z{n2 an
Solution:
z
We have Z{an } = . Using Theorem 2.6, we get
z−a
d
(i) Z{nan } = −z [Z{an }]
dz
d z
= −z [ ]
dz z − a
az
=
(z − a)2
d
(ii) 𝑍{n2 an } = −𝑧 [Z{nan }]
dz
d az
= −𝑧 [ ]
dz (z − a)2
az(z + a)
=
(z − a)3
Chapter 3
Difference equations using Z Transforms
3.1 Solution of Difference Equations using Z Transforms
Let n, n+1,…, n+k be a set of k+1 positive integers and yn, yn+1,…, yn+k be the
corresponding values of a function y(x) ar these points, that is yn+i = y(n+i), i = 0,1,…,k.
A relation of the form
yn+k + a1yn+k-1 +…+ ak yn = f(n) ------(1)
where a1,a2,…,ak are constants, is called a linear, constant coefficient difference equation of
order k. Note that the order of a difference equation is the difference between the ;argest and
the smallest arguments in the difference equation. The difference equation is called
homogeneous if f(n) = 0, and nonhomogeneous if f(n) = 0. A linear difference equation with
constant coefficients can be solved using Z transforms. We follow the following steps:
1. Let F(z) = Z{yn}.
2. Apply Z transform to both sides in equ.(1) using the linearity principle and shifting
theorem.
3. Simplify and obtain F(z).
4. Tale the inverse Z transform of F(z) and determine yn, which is rhe required solution.
The solution yn of the difference equation depends on k values y0, y1,…, yk-1.
Remark 4
A difference of the form
a0yn+k + a1yn+k-1 +…+ ak yn = f(n) , a0 ≠0
can be brought to the form as given in equ.(1) by dividing both sides by a0.
E𝐱𝐚𝐦𝐩𝐥𝐞 𝟏
Solve the following difference equations using Z transforms.
(i) yn+1 − 5yn = 0
(ii ) yn+2 − 3yn+1 + 2yn = 0, y0 = −1, y1 = 2
(iii) yn+2 + 5yn+1 + 4yn = 2n , y0 = 1, y1 = −4
(iv) yn+2 − 2yn+1 + yn = n, y0 = 1, y1 = 1
Solution:
Let Z{yn } = F(z). Apply Z transforms on both sides and use shifting theorem
(i) We have Z{yn+1 } − 5Z{yn } = 0.
z
Therefore, z[F(z) − y0 ] − 5F(z) = 0,orF(z) = ( )y .
z−5 0
Taking inverse Ztransform, we obtain
yn = Z −1 [F(z)]
z
= y0 Z −1 ! [z−5]
= (5n )y0 ,
and y0 is arbitrary.
(ii)We have Z{yn+2 } − 3Z{yn+1 } + 2Z{yn } = 0.
y1
Therefore, z 2 [F(z) − y0 − ] − 3z(F(z) − y0 ) + 2F(z) = 0,
z
or
(z 2 − 3z + 2)F(z) − (z 2 − 3z)y0 − zy1 = 0,
or
(z 2 − 3z + 2)F(z) = (z 2 − 3z)(−1) − z(2) = −z 2 + 5z,
or
−z 2 + 5z 3z 4z
F(z) = = − .
(z − 1)(z − 2) z − 2 z − 1
Taking inverse Z transform, we obtain
yn = Z −1 [F(z)]
3z 4z
= Z −1 [z−2] − Z −1 [z−1] ,
z[1 + (z − 1)3 ]
=
(z − 1)4
z(z 3 − 3z 2 + 3z)
= .
(z − 1)4
Since
z
Z[1] = ,
z−1
z
Z[n] = ,
(z − 1)2
z2 + z
Z[n2 ] = ,
(z − 1)3
z 3 + 4z 2 + z
Z[n3 ] = ,
(z − 1)4
we write F(z) as a linear combination of the right hand side factors, that is
z 4 − 3z 3 + 3z 2
F(z) =
(z − 1)4
z 3 + 4z 2 + z z2 + z z z
=A 4
+ B 3
+C 2
+D .
(z − 1) (z − 1) (z − 1) z−1
Hence,
z 4 − 3z 3 + 3z 2 = A(z 3 + 4z 2 + z) + B(z 2 + z)(z − 1) + Cz(z − 1)2 + Dz(z − 1)3
= Dz4 + (A + B + C − 3D)z3 + ( 4A −2C + 3D)z2 + (A− B + C −D)z
Setting z = 1, we get A = 1/6.
Comparing the coefficients of z4, z3 and z2, we obtain
D = 1, A + B + C − 3D = −3, 4A − 2C + 3D = 3.
We get
C = 1/3, B = 1/2. Hence,
[
z 3 + 4z 2 + z z2 + z z z
F(z) = 1/6 [ 4
] − 1/2 [ 3
] + 1/3 [ 2
] + .
(z − 1) (z − 1) (z − 1) z−1
Taking the inverse Z − transform, we get
1 1 1
yn = n3 − n2 + n+1
6 2 3
1
= (6 + 2n − 3 n2 + n3).
6
Conclusion
In this project, we studied the application of the Z-transform in solving linear difference
equations. By applying the transformation, we were able to convert complex recursive
relations into algebraic equations in the -domain. Using techniques such as partial fraction
decomposition and the inverse Z-transform, we systematically obtained closed-form solutions
for the given sequences.
The results clearly demonstrate that the Z-transform is a powerful tool in handling discrete-
time systems and provides an effective approach for solving initial value problems. Unlike
iterative methods, this approach gives exact solutions in terms of .
Through the worked examples, it was observed that:
• The Z-transform simplifies the process of solving recurrence relations.
• Initial conditions can be incorporated directly into the transformation process.
• The inverse Z-transform allows the retrieval of time-domain solutions, which are
useful in real-world applications such as digital signal processing, control systems,
and communication systems.
Overall, the project highlights the importance of Z-transform as a bridge between time-
domain and frequency-domain analysis, making it a vital mathematical tool in engineering
and applied sciences.
Bibliography
Book Reference
1. S. R. K. Iyengar and R. K. Jain, Mathematical Methods, Second Edition, Narosa
Publishing House, New Delhi.
2. Erwin Kreyszig, Advanced Engineering Mathematics, 10th Edition, Wiley India Pvt.
Ltd.
3. B. S. Grewal, Higher Engineering Mathematics, 44th Edition, Khanna Publishers,
New Delhi.
4. Murray R. Spiegel, Schaum’s Outline of Laplace Transforms, McGraw-Hill
Education.
5. Murray R. Spiegel, Schaum’s Outline of Advanced Mathematics for Engineers and
Scientists, McGraw-Hill Education.