Z-Transform Basics: Poles, Zeros, ROC and a Worked Example

By DSP Academy Team · Updated · 7 min read

The z-transform converts a discrete-time signal x[n] into a function of a complex variable z: X(z) = Σ x[n]·z−n. It is the discrete-time partner of the Laplace transform, and its power is algebraic: convolution in time becomes multiplication in z, so a filter or system can be analysed by looking at its transfer function H(z), in particular at its poles, which decide stability, and its region of convergence (ROC), which decides which signal the transform actually describes.

What is the z-transform, in plain English?

The DFT tells you a signal’s frequency content, but it only looks at one circle’s worth of behaviour. The z-transform generalises the idea: instead of asking “how does the system respond at each frequency?”, it asks “how does it respond to signals that grow or decay at every possible rate, at every frequency?” Each value of z is a combination of a growth/decay rate (its magnitude |z|) and a frequency (its angle). Evaluating X(z) everywhere paints a complete map of the signal or system, and on that map, the interesting landmarks are the poles and zeros.

If z is new to you as a picture, it lives on exactly the circle from our unit circle lesson: the z-plane is the complex plane, and the unit circle drawn on it plays a starring role below.

The definition

X(z) = Σn=−∞∞ x[n] · z−n

Read it as a generating function: z−n is a placeholder that tags the sample at position n, and X(z) packages the whole sequence into one expression you can do algebra with. For a causal signal (x[n] = 0 for n < 0) the sum runs from n = 0 upward. Three examples build the intuition:

Signal x[n] X(z) ROC
δ[n] (a single impulse) 1 Everywhere
[1, 2, 3] (finite sequence) 1 + 2z−1 + 3z−2 Everywhere except z = 0
u[n] (unit step) 1 / (1 − z−1) |z| > 1
an u[n] (decaying or growing exponential) 1 / (1 − a·z−1) |z| > |a|
n·u[n] (ramp) z−1 / (1 − z−1)² |z| > 1

The finite-sequence row matters more than it looks: a polynomial in z−1 whose coefficients are the signal itself is exactly what an FIR filter’s transfer function looks like, which is why the FIR designer can talk about filters and polynomials interchangeably.

Worked example: x[n] = 0.5n u[n]

This is the an u[n] row with a = 0.5. Writing the sum out and recognising the geometric series:

X(z) = 1 + 0.5z−1 + 0.25z−2 + … = 1 / (1 − 0.5z−1) = z / (z − 0.5)

The series only converges when |0.5z−1| < 1, i.e. when |z| > 0.5, that is the ROC, and it is part of the answer, not a footnote. Sanity check at z = 2, two ways: the series gives 1 + 0.25 + 0.0625 + … = 1.3333, and the formula gives 1 / (1 − 0.25) = 1.3333. Same number, as it must be, and the code below reproduces both.

Z-plane diagram for X(z) = 1/(1 - 0.5 z^-1): a pole at z = 0.5, the unit circle, and the region of convergence shaded outside |z| = 0.5
The z-plane for the worked example: one pole at z = 0.5, and the ROC is everything outside the circle of radius 0.5, including the unit circle, which is why this signal’s frequency response exists.

Poles, zeros and the ROC, the three things to read off any X(z)

  • Zeros are the values of z where X(z) = 0 (the numerator’s roots). Poles are where X(z) blows up (the denominator’s roots). Our example: a zero at z = 0 and a pole at z = 0.5.
  • The ROC never contains a pole. For a causal signal it is the region outside the outermost pole, here, |z| > 0.5.
  • Stability: a causal system is stable if and only if all its poles lie inside the unit circle, equivalently, if the ROC includes the unit circle. Pole at 0.5: stable. Pole at 1.5: the impulse response grows like 1.5n and the system is unstable.
  • The same formula can describe two different signals. 1/(1 − 0.5z−1) with ROC |z| > 0.5 is 0.5n u[n]; with ROC |z| < 0.5 it is a left-sided signal instead. A z-transform quoted without its ROC is an incomplete answer.

Why engineers care: transfer functions

Apply the transform to both sides of a system’s difference equation and the convolution disappears. Take the simplest recursive filter:

y[n] = x[n] + 0.5·y[n−1]   ⟶   H(z) = Y(z)/X(z) = 1 / (1 − 0.5z−1)

Delaying by one sample became multiplying by z−1, that is the whole trick. Now everything from the worked example applies to the system: its pole sits at 0.5 (inside the unit circle, so the filter is stable), and its impulse response is the inverse transform, h[n] = 0.5n u[n], each output sample’s echo of an impulse halves, then quarters, and dies away. This is convolution viewed from the other side: y = x * h in time is Y(z) = X(z)·H(z) in z, and multiplication is easier than convolution.

The z-transform and the DFT are the same idea

Set z = ejω, a point travelling around the unit circle, and the z-transform sum becomes the frequency response; sample that circle at N equally spaced points and you get exactly the DFT from our DFT vs FFT lesson. So: the DFT is the z-transform restricted to the unit circle, the FFT is how you compute those samples quickly, and the poles just inside or outside that circle explain why the frequency response has peaks and dips where it does. You can walk the unit circle yourself in our interactive unit circle tool, the angle you drag is the same ω.

Z-transforms in Python (tested code)

Python has no single “z-transform button” for sequences, but the two checks from this lesson take a few lines, evaluating the series against the closed form, and recovering the IIR filter’s impulse response with SciPy:

import numpy as np
from scipy import signal

# 1) Series vs closed form for X(z) = 1/(1 - 0.5 z^-1) at z = 2
n = np.arange(0, 60)
series = np.sum((0.5 ** n) * 2.0 ** (-n))   # 1.3333...
formula = 1 / (1 - 0.5 / 2)                  # 1.3333...
print(series, formula)                       # both 1.333333...

# 2) Impulse response of H(z) = 1/(1 - 0.5 z^-1): should be 0.5^n
impulse = np.zeros(8); impulse[0] = 1
h = signal.lfilter([1.0], [1.0, -0.5], impulse)
print(h)   # [1. 0.5 0.25 0.125 0.0625 0.03125 0.015625 0.0078125]

Note the denominator coefficients in lfilter: [1.0, −0.5] is the polynomial 1 − 0.5z−1 written directly. Filter code and z-domain algebra are the same statement in two notations, our impulse response lesson covers the time-domain side of that equivalence.

Common mistakes

  • Quoting X(z) without its ROC. The formula alone does not identify the signal; the ROC is half the specification.
  • Judging stability from the zeros. Stability is about poles relative to the unit circle. Zeros can sit anywhere without making a system unstable.
  • Mixing z and z−1 forms mid-calculation. 1/(1 − 0.5z−1) and z/(z − 0.5) are the same function; pick one form per derivation and convert once, carefully.
  • Thinking the z-transform replaces the DFT. They answer different questions: the z-transform maps the whole system (poles, stability, ROC); the DFT measures one signal’s spectrum. You need both, at different moments.

Quick quiz

  1. What is the z-transform of the impulse δ[n]?
  2. A causal filter has poles at z = 0.8 and z = 1.2. Is it stable?
  3. Where do you evaluate X(z) to get the signal’s frequency response?
Answers
  1. X(z) = 1, for all z.
  2. No, the pole at 1.2 lies outside the unit circle, so the impulse response contains a growing 1.2n term.
  3. On the unit circle, z = ejω, provided the ROC includes the unit circle.

Frequently asked questions

What is the z-transform in simple words?

The z-transform re-packages a discrete signal as a function of a complex variable z, tagging each sample x[n] with z−n and adding them up. The re-packaging is worth it because hard time-domain operations become easy algebra: convolution becomes multiplication, and a system’s stability can be read from where its poles sit relative to the unit circle.

What is the difference between the z-transform and the Laplace transform?

They are the same strategy applied to different signal types. Laplace transforms continuous-time signals and lives on the s-plane; the z-transform handles discrete-time signals and lives on the z-plane. The two planes are related by z = esT, which wraps the Laplace plane’s left half into the z-plane’s unit disc, stability regions correspond exactly.

Why does the ROC matter?

Because one algebraic expression can be the transform of several different signals. The expression 1/(1 − 0.5z−1) describes the causal signal 0.5n u[n] when the region of convergence is |z| > 0.5, and a left-sided signal when the ROC is |z| < 0.5. The ROC also settles stability: a system is stable exactly when its ROC includes the unit circle.

How do I find the inverse z-transform?

For the rational functions that come from real filters, the standard routes are the transform-pair table (recognise the form, as with an u[n]), partial-fraction expansion into table entries, or long division to read off the first samples directly. In code, applying the filter to an impulse with a tool such as SciPy’s lfilter gives the impulse response numerically, sample by sample.

Where to go next

You now have the four fundamentals: signals, sampling, convolution, and the DFT/FFT pair, the z-transform was the last piece, and it leans on all of them. The filters cluster comes next in the Beginner DSP learning path, starting with FIR vs IIR, a comparison that is really a conversation about where a filter’s poles are allowed to live.

References

Try it yourself

The z-plane is the unit circle’s home turf. Drag the angle in the interactive tool and watch the point travel the circle, every stop is one evaluation of z = ejω, the frequency response the DFT samples. Open the Interactive Unit Circle for DSP.

Keep going in order: the Beginner DSP learning path shows what to learn next.

Found a mistake? Tell us and we will fix it and note the change. How we check lessons.

Esc