# Z-transform

﻿
Z-transform

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

It is like a discrete equivalent of the Laplace Transform. This similarity is explored in the theory of time scale calculus.

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".

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

:$X\left(z\right) = mathcal\left\{Z\right\}\left\{x \left[n\right] \right\} = sum_\left\{n=-infty\right\}^\left\{infty\right\} x \left[n\right] z^\left\{-n\right\}$

where "n" is an integer and "z" is, in general, a complex number::$z= A e^\left\{jphi\right\}$:where "A" is the magnitude of "z", and &phi; is the "complex argument" (also referred to as "angle" or "phase") in radians.

Unilateral Z-transform

Alternatively, in cases where "x" ["n"] is defined only for "n" &ge; 0, the "single-sided" or "unilateral" Z-transform is defined as

:$X\left(z\right) = mathcal\left\{Z\right\}\left\{x \left[n\right] \right\} = sum_\left\{n=0\right\}^\left\{infty\right\} x \left[n\right] z^\left\{-n\right\}$

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 \left[n\right]$ is the probability that a discrete random variable takes the value $n$, and the function $X\left(z\right)$ is usually written as $X\left(s\right)$, in terms of $s = z^\left\{-1\right\}$. The properties of Z-transforms (below) have useful interpretations in the context of probability theory.

Geophysical Definition

In geophysics, the usual definition for the Z-transform is a polynomial in "z" as opposed to $z^\left\{-1\right\}$. This convention is used by Robinson and Treitel and by Kanasewich. The geophysical definition is

:$X\left(z\right) = mathcal\left\{Z\right\}\left\{x \left[n\right] \right\} = sum_\left\{n\right\} x \left[n\right] z^\left\{n\right\}$

The two definitions are equivalent; however, the difference results in a number of changes. For example, the location of zeros and poles move from inside the unit circle, using one definition, to outside the unit circle, using the other definition (and vice versa). Thus, care is required to note which definition is being used by a particular author.

Inverse Z-transform

The "inverse" Z-transform is

:$x \left[n\right] = mathcal\left\{Z\right\}^\left\{-1\right\} \left\{X\left(z\right) \right\}= frac\left\{1\right\}\left\{2 pi j\right\} oint_\left\{C\right\} X\left(z\right) z^\left\{n-1\right\} dz$

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

A special case of this contour integral occurs when $C$ is the unit circle (and can be used when the ROC includes the unit circle). The inverse Z-transform simplifies to the inverse discrete-time Fourier transform:

:$x \left[n\right] = frac\left\{1\right\}\left\{2 pi\right\} int_\left\{-pi\right\}^\left\{+pi\right\} X\left(e^\left\{j omega\right\}\right) e^\left\{j omega n\right\} d omega$ .

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-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.

Region of convergence

The region of convergence (ROC) is the set of points in the complex plane for which the Z-transform summation converges.

:$ROC = left\left\{ z : left|sum_\left\{n=-infty\right\}^\left\{infty\right\}x \left[n\right] z^\left\{-n\right\} ight| < infty ight\right\}$

Example 1 (No ROC)

Let $x \left[n\right] = 0.5^n$. Expanding $x \left[n\right]$ on the interval $\left(-infty, infty\right)$ it becomes

:$x \left[n\right] = \left\{..., 0.5^\left\{-3\right\}, 0.5^\left\{-2\right\}, 0.5^\left\{-1\right\}, 1, 0.5, 0.5^2, 0.5^3, ...\right\} = \left\{..., 2^3, 2^2, 2, 1, 0.5, 0.5^2, 0.5^3, ...\right\} .$

Looking at the sum

:$sum_\left\{n=-infty\right\}^\left\{infty\right\}x \left[n\right] z^\left\{-n\right\} < infty .$

There are no such values of $z$ that satisfy this condition.

=Example 2 (causal ROC)=

Let $x \left[n\right] = 0.5^n u \left[n\right]$ (where $u$ is the Heaviside step function). Expanding $x \left[n\right]$ on the interval $\left(-infty, infty\right)$ it becomes

:$x \left[n\right] = \left\{..., 0, 0, 0, 1, 0.5, 0.5^2, 0.5^3, ...\right\}$

Looking at the sum

:$sum_\left\{n=-infty\right\}^\left\{infty\right\}x \left[n\right] z^\left\{-n\right\} = sum_\left\{n=0\right\}^\left\{infty\right\}0.5^nz^\left\{-n\right\} = sum_\left\{n=0\right\}^\left\{infty\right\}left\left(frac\left\{0.5\right\}\left\{z\right\} ight\right)^n = frac\left\{1\right\}\left\{1 - 0.5z^\left\{-1$

The last equality arises from the infinite geometric series and the equality only holds if $left|0.5 z^\left\{-1\right\} ight| < 1$ which can be rewritten in terms of $z$ as $left|z ight| > 0.5$. Thus, the ROC is $left|z ight| > 0.5$. 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 $x \left[n\right] = -\left(0.5\right)^n u \left[-n-1\right]$ (where $u$ is the Heaviside step function). Expanding $x \left[n\right]$ on the interval $\left(-infty, infty\right)$ it becomes

:$x \left[n\right] = \left\{..., -\left(0.5\right)^\left\{-3\right\}, -\left(0.5\right)^\left\{-2\right\}, -\left(0.5\right)^\left\{-1\right\}, 0, 0, 0, ...\right\}$

Looking at the sum

:$sum_\left\{n=-infty\right\}^\left\{infty\right\}x \left[n\right] z^\left\{-n\right\} = -sum_\left\{n=-infty\right\}^\left\{-1\right\}0.5^nz^\left\{-n\right\} = -sum_\left\{n=-infty\right\}^\left\{-1\right\}left\left(frac\left\{z\right\}\left\{0.5\right\} ight\right)^\left\{-n\right\}$:$= -sum_\left\{m=1\right\}^\left\{infty\right\}left\left(frac\left\{z\right\}\left\{0.5\right\} ight\right)^\left\{m\right\} = -frac\left\{0.5^\left\{-1\right\}z\right\}\left\{1 - 0.5^\left\{-1\right\}z\right\} = frac\left\{z\right\}\left\{z - 0.5\right\} = frac\left\{1\right\}\left\{1 - 0.5z^\left\{-1$

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

What differentiates this example from the previous example is "only" the ROC. This is intentional to demonstrate that the transform result alone is insufficient.

Examples conclusion

Examples 2 & 3 clearly show that the Z-transform $X\left(z\right)$ of $x \left[n\right]$ 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 $left| z ight| = infty$ while the anticausal system in example 3 yields an ROC that includes $left| z ight| = 0$.

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

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

If you are provided a Z-transform of a system without an ROC (i.e., an ambiguous $x \left[n\right]$) you can determine a unique $x \left[n\right]$ 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 and the system function will be a right-sided sequence.If you need an anticausal system then the ROC must contain the origin and the system function will be a left-sided sequence. If you need both, stability and causality, all the poles of the system function must be inside the unit circle.

The unique $x \left[n\right]$ can then be found.

Properties

* Initial value theorem::$x \left[0\right] =lim_\left\{z ightarrow infty\right\}X\left(z\right)$, If $x \left[n\right] ,$ causal

* Final value theorem:: $x \left[infty\right] =lim_\left\{z ightarrow 1\right\}\left(1-z^\left\{-1\right\}\right)X\left(z\right)$, Only if poles of $\left(1-z^\left\{-1\right\}\right)X\left(z\right)$ are inside the unit circle

Table of common Z-transform pairs

Here:
* u [n] =1 for n>=0, u [n] =0 for n<0
* &delta; [n] = 1 for n=0, &delta; [n] = 0 otherwise

Relationship to Laplace

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

::$x_\left\{s\right\}\left(t\right) = sum_\left\{n=-infty\right\}^\left\{infty\right\} x\left(nT\right) delta\left(t-nT\right) = sum_\left\{n=-infty\right\}^\left\{infty\right\} x \left[n\right] delta\left(t-nT\right)$

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

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 $H\left(s\right)$ or $H\left(z\right)$ :

$s =frac\left\{2\right\}\left\{T\right\} frac\left\{z-1\right\}\left\{z+1\right\}$ from Laplace to z (Tustin transformation);

$z =frac\left\{2+sT\right\}\left\{2-sT\right\}$ 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 $X\left(z\right)$ at $z=e^\left\{jomega\right\}$ 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.

:

Both sides of the above equation can be divided by $alpha_0$, if it is not zero, normalizing $alpha_0 = 1$ and the LCCD equation can be written

:

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

Transfer function

Taking the Z-transform of the above equation (using linearity and time-shifting laws) yields

:

and rearranging results in

:

Zeros and poles

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

:$H\left(z\right) = frac\left\{\left(1 - q_1 z^\left\{-1\right\}\right)\left(1 - q_2 z^\left\{-1\right\}\right)cdots\left(1 - q_M z^\left\{-1\right\}\right) \right\} \left\{ \left(1 - p_1 z^\left\{-1\right\}\right)\left(1 - p_2 z^\left\{-1\right\}\right)cdots\left(1 - p_N z^\left\{-1\right\}\right)\right\}$

Where $q_k$ is the $k^\left\{th\right\}$ zero and $p_k$ is the $k^\left\{th\right\}$ pole. The zeros and poles are commonly complex and when plotted on the complex plane (z-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 $z=0$ and $z=infty$. 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 $H\left(z\right)$ is driven by a signal $X\left(z\right)$ then the output is $Y\left(z\right) = H\left(z\right)X\left(z\right)$. By performing partial fraction decomposition on $Y\left(z\right)$ and then taking the inverse Z-transform the output $y \left[n\right]$ can be found. In practice, it is often useful to fractionally decompose $frac\left\{Y\left(z\right)\right\}\left\{z\right\}$ before multiplying that quantity by $z$ to generate a form of $Y\left(z\right)$ which has terms with easily computable inverse Z-transforms.

ee also

* Bilinear transform
* Finite impulse response
* Formal power series
* Laplace transform
* Laurent series
* Probability-generating function
* Zeta function regularization
* Discrete-time Fourier transform

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-4116-1979-X.

* Ogata, Katsuhiko, "Discrete Time Control Systems 2nd Ed", Prentice-Hall Inc, 1995, 1987. ISBN 0-13-034281-5.

* Alan V. Oppenheim and Ronald W. Schafer (1999). Discrete-Time Signal Processing, 2nd Edition, Prentice Hall Signal Processing Series. ISBN 0-13-754920-2.

* [http://www.swarthmore.edu/NatSci/echeeve1/Ref/LPSA/LaplaceZTable/LaplaceZFuncTable.html Z-Transform table of some common Laplace transforms]
* [http://mathworld.wolfram.com/Z-Transform.html Mathworld's entry on the Z-transform]
* [http://www.dsprelated.com/comp.dsp/keyword/Z_Transform.php Z-Transform threads in Comp.DSP]
* [http://math.fullerton.edu/mathews/c2003/ZTransformIntroMod.html Z-Transform Module by John H. Mathews]

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Transform fault — (the red lines) A transform fault or transform boundary, also known as conservative plate boundary since these faults neither create nor destroy lithosphere, is a type of fault whose relative motion is predominantly horizontal in either sinistral …   Wikipedia

• Transform coding — is a type of data compression for natural data like audio signals or photographic images. The transformation is typically lossy, resulting in a lower quality copy of the original input.In transform coding, knowledge of the application is used to… …   Wikipedia

• transform — transform, metamorphose, transmute, convert, transmogrify, transfigure can all mean to turn or change one thing into another or a different thing or from one form into another and different form. In general, the same differences in implications… …   New Dictionary of Synonyms

• transform — UK US /trænsˈfɔːm/ verb [T] ► to change completely the character or appearance of something in order to improve it: »Smart metropolitan developments have transformed former industrial areas in cities such as Birmingham and Manchester. »Social and …   Financial and business terms

• Transform — may refer to: *Transformation (genetics) *Transformation (geometry) *Transform (mathematics) *Transform (album) by Powerman 5000 *Transform (Rebecca St. James album) *XSL Transformations (computing) for XML conversion *Transform (scratch)ee also* …   Wikipedia

• Transform, clipping, and lighting — (T L or sometimes TCL) is a term used in computer graphics. DescriptionTransform is the task of converting spatial coordinates, which in this case involves moving three dimensional objects in a virtual world and converting the coordinates to a… …   Wikipedia

• Transform and Lighting — Transform, clipping, and lighting Pour les articles homonymes, voir TCL. Transform, clipping Lighting (T L ou TCL), est un terme de graphisme, utilisé dans l industrie informatique et en particulier dans la conception et les rendus de scènes en 3 …   Wikipédia en Français

• Transform and lighting — Transform, clipping, and lighting Pour les articles homonymes, voir TCL. Transform, clipping Lighting (T L ou TCL), est un terme de graphisme, utilisé dans l industrie informatique et en particulier dans la conception et les rendus de scènes en 3 …   Wikipédia en Français

• Transform — Trans*form , v. t. [imp. & p. p. {Transformed}; p. pr. & vb. n. {Transforming}.] [L. transformare, transformatum; trans across, over + formare to from: cf. F. transformer. See {Form}, v. t.] 1. To change the form of; to change in shape or… …   The Collaborative International Dictionary of English

• Transform — Album par Powerman 5000 Sortie 20 Mai 2003 Enregistrement Mad Dog Studios à Burbank, Cello Studios à Hollywood, QI Lab Studios à Los Angeles Durée 45:35 Genre Hard rock Producteur …   Wikipédia en Français

• transform — [trans fôrm′; ] for n. [ trans′fôrm΄] vt. [ME transformen < L transformare < trans , TRANS + formare, to form < forma, FORM] 1. to change the form or outward appearance of 2. to change the condition, nature, or function of; convert 3. to …   English World dictionary