Z-transform

From Free net encyclopedia

In mathematics and signal processing, the Z-transform converts a discrete time domain signal, which is a sequence of real numbers, into a complex frequency domain representation.

The Z-transform and advanced Z-transform were introduced (under the Z-transform name) by E. I. Jury in 1958 in Sampled-Data Control Systems (John Wiley & Sons). The idea contained within the Z-transform was previously known as the "generating function method".

Z-transform is a placeholder name, akin to calling the Laplace transform the "s-transform". More accurate would be "Laurent transform", because it is based on the Laurent series. The (unilateral) Z-transform is to discrete time domain signals what the one-sided Laplace transform is to continuous time domain signals.


Contents

Definition

The Z-transform, like many other integral transforms, can be defined as either a one-sided or two-sided transform.

Bilateral Z-Transform

The bilateral or two-sided Z-transform of a discrete-time signal x[n] is the function X(z) defined as

<math>X(z) = Z\{x[n]\} = \sum_{n=-\infty}^{\infty} x[n] z^{-n} \ </math>

where n is an integer and z is, in general, a complex number:

<math> z= A e^{j\phi} </math>
where A is the magnitude of z, and φ is the angular frequency (in radians per sample).

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

<math>X(z) = Z\{x[n]\} = \sum_{n=0}^{\infty} x[n] z^{-n} \ </math>

In signal processing, this definition is used when the signal is causal.

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 n, and the function X(z) is usually written as X(s), in terms of s = z−1. The properties of Z-transforms (below) have useful interpretations in the context of probability theory.

Inverse Z-Transform

The inverse Z-Transform is

<math> x[n] = Z^{-1} \{X(z) \}= \frac{1}{2 \pi j} \oint_{C} X(z) z^{n-1} dz \ </math>

where <math> C \ </math> is a counterclockwise closed path encircling the origin and entirely in the region of convergence (ROC). The contour or path, <math> C \ </math>, must encircle all of the poles of <math> X(z) \ </math>.

A special case of this contour integral that is simply that where <math> C \ </math> is the unit circle (and can be used when the ROC includes the unit circle) is the inverse Discrete-Time Fourier transform:

<math> x[n] = \frac{1}{2 \pi} \int_{-\pi}^{+\pi} X(e^{j \omega}) e^{j \omega n} d \omega \ </math> .


The Z-transform with a finite range of n and a finite number of uniformly-spaced z values can be computed efficiently via Bluestein's FFT algorithm. The discrete Fourier transform (DFT) is a special case of such a Z-transform obtained by restricting z to lie on the unit circle.

Region of convergence

The region of convergence (ROC) is where the Z-transform of a signal has a finite sum for a region in the complex plane.

<math>ROC = \{z : \sum_{n=-\infty}^{\infty}x[n]z^{-n} < \infty\}\ </math>

Example 1 (No ROC)

Let <math>x[n] = 0.5^n\ </math>. Expanding <math>x[n]\ </math> on <math>(-\infty, \infty)\ </math> it becomes

<math>x[n] = \{..., 0.5^{-3}, 0.5^{-2}, 0.5^{-1}, 1, 0.5, 0.5^2, 0.5^3, ...\} = \{..., 2^3, 2^2, 2, 1, 0.5, 0.5^2, 0.5^3, ...\}\ </math>

Looking at the sum

<math>\sum_{n=-\infty}^{\infty}x[n]z^{-n} < \infty\ </math>

There are no such values of <math>z\ </math> that satisfy this condition.

Example 2 (causal ROC)

Let <math>x[n] = 0.5^n u[n]\ </math> (where <math>u</math> is the Heaviside step function). Expanding <math>x[n]\ </math> on <math>(-\infty, \infty)\ </math> it becomes

<math>x[n] = \{..., 0, 0, 0, 1, 0.5, 0.5^2, 0.5^3, ...\}\ </math>

Looking at the sum

<math>\sum_{n=-\infty}^{\infty}x[n]z^{-n} = \sum_{n=0}^{\infty}0.5^nz^{-n} = \sum_{n=0}^{\infty}\left(\frac{0.5}{z}\right)^n = \frac{1}{1 - 0.5z^{-1}}\ </math>

The last equality arises from the infinite geometric series and the equality only holds if <math>\left|0.5 z^{-1}\right| < 1\ </math> which can be rewritten in terms of <math>z\ </math> as <math>\left|z\right| > 0.5\ </math>. Thus, the ROC is <math>\left|z\right| > 0.5\ </math>. In this case the ROC is the complex plane with a disc of radius 0.5 at the origin "punched out".

Example 3 (anticausal ROC)

Let <math>x[n] = -(0.5)^n u[-n-1]\ </math> (where <math>u</math> is the Heaviside step function). Expanding <math>x[n]\ </math> on <math>(-\infty, \infty)\ </math> it becomes

<math>x[n] = \{..., -(0.5)^{-3}, -(0.5)^{-2}, -(0.5)^{-1}, 0, 0, 0, ...\}\ </math>

Looking at the sum

<math>\sum_{n=-\infty}^{\infty}x[n]z^{-n} = -\sum_{n=-\infty}^{-1}0.5^nz^{-n} = -\sum_{n=-\infty}^{-1}\left(\frac{z}{0.5}\right)^{-n}\ </math>
<math>= -\sum_{m=1}^{\infty}\left(\frac{z}{0.5}\right)^{m} = -\frac{0.5^{-1}z}{1 - 0.5^{-1}z} = \frac{z}{z - 0.5} = \frac{1}{1 - 0.5z^{-1}}\ </math>

Using the infinite geometric series, again, the equality only holds if <math>\left|0.5^{-1}z\right| < 1\ </math> which can be rewritten in terms of <math>z\ </math> as <math>\left|z\right| < 0.5\ </math>. Thus, the ROC is <math>\left|z\right| < 0.5\ </math>. In this case the ROC is a disc centered at the origin and of radius 0.5.

Examples conclusion

Examples 2 & 3 clearly show that the Z-transform <math>X(z)\ </math> of <math>x[n]\ </math> is unique when and only when specifying the ROC. Creating the pole-zero plot for the causal and anticausal case show that the ROC for either case does not include the pole that is at 0.5. This extends to cases with multiple poles: the ROC will never contain poles.

In example 2, the causal system yields an ROC that includes <math>\left| z \right| = \infty\ </math> while the anticausal system in example 3 yields an ROC that includes <math>\left| z \right| = 0\ </math>.

In systems with multiple poles it is possible to have an ROC that includes neither <math>\left| z \right| = \infty\ </math> nor <math>\left| z \right| = 0\ </math>. The ROC creates a circular band. For example, <math>x[n] = 0.5^nu[n] - 0.75^nu[-n-1]\ </math> has poles at 0.5 and 0.75. The ROC will be <math>0.5 < \left| z \right| < 0.75\ </math>, which includes neither the origin nor infinity. Such a system is called a mixed-causality system as it contains a causal term <math>0.5^nu[n]\ </math> and an anticausal term <math>-(0.75)^nu[-n-1]\ </math>.

The stability of a system can also be determined by knowing the ROC alone. If the ROC contains the unit circle (i.e., <math>\left| z \right| = 1\ </math>) then the system is stable. In the above systems the causal system is stable because <math>\left| z \right| > 0.5\ </math> contains the unit circle.

If you are provided a Z-transform of a system without an ROC (i.e., an ambiguous <math>x[n]\ </math>) you can determine a unique <math>x[n]\ </math> provided you desire the following:

  • Stability
  • Causality

If you need stability then the ROC must contain the unit circle. If you need a causal system then the ROC must contain infinity. If you need an anticausal system then the ROC must contain the origin.

The unique <math>x[n]\ </math> can then be found.

Properties

  • Linearity. The Z-transform of the linear combination of two signals is the linear combination of the individual Z-transforms.
<math>\mathcal{Z}\{a_1 x_1(n) + a_2 x_2(n)\} = a_1 \mathcal{Z}\{x_1(n)\} + a_2 \mathcal{Z}\{x_2(n)\} \ </math>
  • Shift. Time-shifting the signal by a distance of k to the right results in multiplying the Z-transform by z−k.
<math>\mathcal{Z}\{x(n-k)\} = z^{-k}\mathcal{Z}\{x(n)\} \ </math>
  • Convolution. The Z-transform of the convolution of two sequences is the product of the individual Z-transforms.
<math>\mathcal{Z}\{x(n) * y(n)\} = \mathcal{Z}\{x(n)\} \mathcal{Z}\{y(n)\} \ </math>
  • Differentiation.
<math>\mathcal{Z}\{nx(n)\} = \ -z \frac{\mathrm{d}\mathcal{Z}\{x(n)\}}{\mathrm{d}z} \ </math>

Table of common Z-transform pairs

  Signal, <math>x[n]</math> Z-transform, <math>X(z)</math> ROC
1 <math>\delta[n] \, </math> <math>1\, </math> <math> \mbox{all }z\, </math>
2 <math>u[n] \,</math> <math> \frac{1}{1-z^{-1}}</math> z| > 1\,</math>
3 <math>a^n u[n] \,</math> <math> \frac{1}{1-a z^{-1}}</math> z| > |a|\,</math>
4 <math>n a^n u[n] \,</math> <math> \frac{az^{-1} }{ (1-a z^{-1})^2 }</math> z| > |a|\,</math>
5 <math>-a^n u[-n-1] \,</math> <math> \frac{1}{1-a z^{-1}}</math> z| < |a|\,</math>
6 <math>-n a^n u[-n-1] \,</math> <math> \frac{az^{-1} }{ (1-a z^{-1})^2 }</math> z| < |a|\,</math>
7 <math>\cos(\omega_0 n) u[n] \,</math> <math> \frac{ 1-z^{-1} \cos(\omega_0) }{ 1-2z^{-1}\cos(\omega_0)+ z^{-2} }</math> z| >1\,</math>
8 <math>\sin(\omega_0 n) u[n] \,</math> <math> \frac{ z^{-1} \sin(\omega_0) }{ 1-2z^{-1}\cos(\omega_0)+ z^{-2} }</math> z| >1\,</math>
9 <math>a^n \cos(\omega_0 n) u[n] \,</math> <math> \frac{ 1-a z^{-1} \cos( \omega_0) }{ 1-2az^{-1}\cos(\omega_0)+ a^2 z^{-2} }</math> z| > |a|\,</math>
10 <math>a^n \sin(\omega_0 n) u[n] \,</math> <math> \frac{ az^{-1} \sin(\omega_0) }{ 1-2az^{-1}\cos(\omega_0)+ a^2 z^{-2} }</math> z| > |a|\,</math>

Relationship to Laplace

The bilateral Z-transform is simply the two-sided Laplace transform of the ideal sampled function

<math> x(t) \sum_{n=-\infty}^{\infty} \delta(t-nT) = \sum_{n=-\infty}^{\infty} x[n] \delta(t-nT) \ </math>

where <math> x(t) \ </math> is the continuous-time function being sampled, <math> x[n]=x(nT) \ </math> the nth sample, <math> T \ </math> is the sampling period, and with the substitution: <math> z = e^{sT} \ </math>.

Likewise the unilateral Z-transform is simply the one-sided Laplace transform of the ideal sampled function. Both assume that the sampled function is zero for all negative time indices.

The Bilinear transform is a useful approximation for converting continuous time filters (represented in Laplace space) into discrete time filters (represented in z space), and vice versa. To do this, you can use the following substitutions in <math> H(s) </math> or <math> H(z) </math>  :

<math> s =\frac{2}{T} \frac{z-1}{z+1} </math> from Laplace to z;


<math> z =\frac{2+sT}{2-sT} </math> from z to Laplace.

Relationship to Fourier

The Z-transform is a generalization of the discrete time fourier transform (DTFT). The DTFT can be found by evaluating the Z-transform <math>X(z)\ </math> at <math>z=e^{j\omega}\ </math> or, in other words, evaluated on the unit circle. In order to determine the frequency response of the system the Z-transform must be evaluated on the unit circle, meaning that the system's region of convergence must contain the unit circle. Otherwise, the DTFT of the system does not exist.

Linear constant coefficient difference equation

The linear constant coefficient difference (LCCD) equation is a representation for a linear system based on the autoregressive moving average equation.

<math>\sum_{p=0}^{N}y[n-p]\alpha_{p} = \sum_{q=0}^{M}x[n-q]\beta_{q}\ </math>

Both sides of the above equation can be divided by <math>\alpha_0 \ </math>, if it is not zero, normalizing <math>\alpha_0 = 1\ </math> and the LCCD equation can be written

<math>y[n] = \sum_{q=0}^{M}x[n-q]\beta_{q} - \sum_{p=1}^{N}y[n-p]\alpha_{p}\ </math>

This form of the LCCD equation is favorable to make it more explicit that the "current" output <math>y[{n}]\ </math> is a function of past outputs <math>y[{n-p}]\ </math>, current input <math>x[{n}]\ </math>, and previous inputs <math>x[{n-q}]\ </math>.

Transfer function

Taking the Z-transform of the equation yields

<math>Y(z) \sum_{p=0}^{N}z^{-p}\alpha_{p} = X(z) \sum_{q=0}^{M}z^{-q}\beta_{q}\ </math>

and rearranging results in

<math>H(z) = \frac{Y(z)}{X(z)} = \frac{\sum_{q=0}^{M}z^{-q}\beta_{q}}{\sum_{p=0}^{N}z^{-p}\alpha_{p}} = \frac{\beta_0 + z^{-1} \beta_1 + z^{-2} \beta_2 + ... + z^{-M} \beta_M}{\alpha_0 + z^{-1} \alpha_1 + z^{-2} \alpha_2 + ... + z^{-N} \alpha_N}\ </math>

Zeros and poles

From the fundamental theorem of algebra the numerator has M roots (called zeros) and the denominator has N roots (called poles). Rewriting the transfer function in terms of poles

<math>H(z) = \frac{(1 - q_1 z^{-1})(1 - q_2 z^{-1})...(1 - q_M z^{-1}) } { (1 - p_1 z^{-1})(1 - p_2 z^{-1})...(1 - p_N z^{-1})}\ </math>

Where <math>q_k\ </math> is the <math>k^{th}\ </math> zero and <math>p_k\ </math> is the <math>k^{th}\ </math> pole. The zeros and poles are commonly complex and when plotted on the complex plane it is called the pole-zero plot.

In simple words, zeros are the solutions to the equation obtained by setting the numerator equal to zero, while poles are the solutions to the equation obtained by setting the denominator equal to zero.

In addition, there may also exist zeros and poles at <math>z=0</math> and <math>z=\infty</math>. If we take these poles and zeros as well as multiple-order zeros and poles into consideration, the number of zeros and poles are always equal.

By factoring the denominator, partial fraction decomposition can be used, which can then be transformed back to the time domain. Doing so would result in the impulse response and the linear constant coefficient difference equation of the system.

Output response

If such a system <math>H(z)\ </math> is driven by a signal <math>X(z)\ </math> then the output is <math>Y(z) = H(z)X(z)\ </math>. By performing partial fraction decomposition on <math>Y(z)\ </math> and then taking the inverse Z-transform the output <math>y[n]\ </math> can be found.

See also

Bibliography

  • Eliahu Ibrahim Jury, Theory and Application of the Z-Transform Method, Krieger Pub Co, 1973. ISBN 0-88275-122-0.
  • Refaat El Attar, Lecture notes on Z-Transform, Lulu Press, Morrisville NC, 2005. ISBN 1-41161-979-X.

External links

de:Z-Transformation es:Transformada Z fr:Transformée en Z it:Trasformata zeta nl:Z-transformatie ja:Z変換 pl:Transformata Z sv:Z-transform zh:Z轉換