---
title: The z-transform and its region of convergence
heading: The z-transform as a generalized DTFT, the shape of the region of convergence, how it encodes causality and stability, and the transform's properties
eyebrow: S7 · Lesson 2 · The z-transform and its region of convergence
xp: 50
---

::: hook
An algebraic expression for X(z) doesn't determine a sequence by itself. The same $\frac{1}{1 - 0.5z^{-1}}$ is the transform of a decaying sequence running forward in time and of a growing one running backward, depending on which values of z the sum converges for. That set, the region of convergence, carries exactly the information that matters for systems: whether they are causal, whether they are stable, whether they have a frequency response at all. Reading X(z) together with its ROC is the basic skill of this course.
:::

::: play
- The inverse z-transform of $X(z) = \frac{1}{(1 - az^{-1})(1 - bz^{-1})}$ with |a| < |b|, for each of the three possible regions of convergence: inside both poles (k = 0), between them (k = 1) and outside both (k = 2).
- Outside both poles the sequence is causal; with |b| > 1 it grows without bound.
- Between the poles it's two-sided. If the ring contains the unit circle (|a| < 1 < |b|), this is the only stable choice, and it's anticausal for the b term.
:::
:::

```sim plot
view: graph
x: n = -12..12
y: x = -4..4
slider: a = -0.95..0.95 = 0.5
slider: b = 1.05..2 = 1.5
slider: k = 0..2 = 1 step 1
plot: a/(a - b)*a^n*(step(n)*step(k - 0.5) - step(-n - 1)*(1 - step(k - 0.5))) + b/(b - a)*b^n*(step(n)*step(k - 1.5) - step(-n - 1)*(1 - step(k - 1.5))) | stems | label: x[n]
```

::: predict
## A causal LTI system has poles at z = 0.9 and z = −1.1. Is it stable?

- [ ] Yes, because one pole is inside the unit circle
- [x] No: a causal system's ROC lies outside its outermost pole, |z| > 1.1, which excludes the unit circle
- [ ] Yes, if the zeros cancel the pole at 0.9
- [ ] It depends on the input

::: reveal
No. Causality forces the ROC to be the exterior of a circle through the outermost pole, |z| > 1.1. Stability needs the ROC to contain the unit circle, and |z| = 1 isn't in it. A causal stable system must have every pole strictly inside the unit circle. The same algebraic H(z) with the ROC 0.9 < |z| < 1.1 would be stable but not causal.
:::
:::

::: nameit
## The z-transform

$$X(z) = \sum_{n=-\infty}^{\infty}x[n]z^{-n}$$

On the unit circle, $z = e^{j\omega}$, it's the DTFT. The **ROC** is the set of z where the sum converges absolutely, which depends only on |z|.

## Properties of the ROC

- It's a ring (annulus) centered on the origin, $r_R < |z| < r_L$, and contains no poles.
- Finite-length sequences: the whole plane, possibly except 0 or ∞.
- **Right-sided** (zero before some n): outside the outermost pole. **Causal** adds ∞.
- **Left-sided**: inside the innermost pole.
- **Two-sided**: a ring bounded by poles.
- **Stable** ⇔ the ROC contains the unit circle.

Two basic pairs with the same formula:

$$a^nu[n] \leftrightarrow \frac{1}{1 - az^{-1}},\ |z| > |a|; \qquad -a^nu[-n-1] \leftrightarrow \frac{1}{1 - az^{-1}},\ |z| < |a|$$

## Properties of the transform

- Shift: $x[n - n_0] \leftrightarrow z^{-n_0}X(z)$.
- Exponential weighting: $z_0^nx[n] \leftrightarrow X(z/z_0)$, ROC scaled by $|z_0|$.
- Differentiation: $nx[n] \leftrightarrow -z\frac{dX}{dz}$.
- Convolution: $x_1 * x_2 \leftrightarrow X_1(z)X_2(z)$, ROC at least the overlap.
- For a causal sequence, $x[0] = \lim_{z\to\infty}X(z)$ (initial value theorem), and $\sum_nx[n] = X(1)$ when the ROC includes z = 1.
:::

::: example
## Find the z-transform and ROC of $x[n] = (\frac{1}{2})^nu[n] - 2^nu[-n-1]$, and check X(1) against the sum of the samples.

::: solution
1. **Z-transform.**
   $$X(z) = \frac{1}{1 - 0.5z^{-1}} + \frac{1}{1 - 2z^{-1}}$$
2. **ROC.** The ROC is the ring 0.5 < |z| < 2. It contains the unit circle, so the sequence has a DTFT.
3. **X(1) from the transform.**
   $$\begin{aligned} X(1) &= 2 + (-1) \\ &= 1 \end{aligned}$$
4. **X(1) from the samples.** The causal part gives $\sum_{n\ge0}0.5^n = 2$, and the anticausal part gives
   $$\begin{aligned} -\sum_{n\le-1}2^n &= -\sum_{m\ge1}2^{-m} \\ &= -1 \end{aligned}$$
   for a total of 1.

**Answer:** $X(z) = \frac{1}{1 - 0.5z^{-1}} + \frac{1}{1 - 2z^{-1}}$ with ROC 0.5 < |z| < 2, and X(1) = 1 matches the sum of the samples.
:::
:::

::: example
## $X(z) = \frac{1}{(1 - 0.5z^{-1})(1 - 1.5z^{-1})}$. Find x[n] for each possible ROC.

::: solution
1. **Partial fractions.**
   $$\begin{aligned} X(z) &= \frac{-0.5}{1 - 0.5z^{-1}} \\ &\quad + \frac{1.5}{1 - 1.5z^{-1}} \end{aligned}$$
2. **ROC |z| > 1.5.** Both terms are causal:
   $$\begin{aligned} x[n] &= -0.5(0.5)^nu[n] \\ &\quad + 1.5(1.5)^nu[n] \end{aligned}$$
   This sequence is causal but unstable.
3. **Check the first samples.** x[0] = 1 and x[2] = 3.25, which the recursion
   $$\begin{aligned} y[n] &= 2y[n-1] - 0.75y[n-2] \\ &\quad + \delta[n] \end{aligned}$$
   confirms.
4. **ROC 0.5 < |z| < 1.5.**
   $$\begin{aligned} x[n] &= -0.5(0.5)^nu[n] \\ &\quad - 1.5(1.5)^nu[-n-1] \end{aligned}$$
   This one is stable and two-sided.
5. **ROC |z| < 0.5.** Both terms are anticausal.

**Answer:** for |z| > 1.5, $x[n] = (-0.5(0.5)^n + 1.5(1.5)^n)u[n]$, causal but unstable; for 0.5 < |z| < 1.5, $-0.5(0.5)^nu[n] - 1.5(1.5)^nu[-n-1]$, stable and two-sided; for |z| < 0.5, both terms anticausal.
:::
:::

::: example
## Find the z-transform of $x[n] = n(0.5)^nu[n]$ and use it to sum the sequence.

::: solution
1. **Use the derivative property.** Apply $nx[n] \leftrightarrow -z\frac{dX}{dz}$ to $\frac{1}{1 - 0.5z^{-1}}$:
   $$X(z) = \frac{0.5z^{-1}}{(1 - 0.5z^{-1})^2}$$
   with ROC |z| > 0.5.
2. **Sum the sequence.** The ROC contains z = 1, so
   $$\begin{aligned} \sum_nx[n] &= X(1) \\ &= \frac{0.5}{0.25} \\ &= 2 \end{aligned}$$
3. **Check.** That matches the series:
   $$\begin{aligned} \sum n(0.5)^n &= \frac{0.5}{(1 - 0.5)^2} \\ &= 2 \end{aligned}$$

**Answer:** $X(z) = \frac{0.5z^{-1}}{(1 - 0.5z^{-1})^2}$ for |z| > 0.5, and the sequence sums to 2.
:::
:::

::: check
given: a = 0.4 | 0.7 | -0.8; z = 1.5 | 2 | -1.2
answer: 1/(1 - a/z)
tolerance: 0.5%

## What's the z-transform of ({a})ⁿu[n] at z = {z}?

::: right
Right. $1/(1 - az^{-1})$ = {answer}, inside the ROC |z| > |a|.
:::

::: misses
- [1/(1 - a*z)] The transform uses $z^{-1}$: $1/(1 - a/z)$.
- [any] Not yet. $\sum a^nz^{-n} = 1/(1 - az^{-1})$.
:::
:::

::: check
given: a = 0.3 | 0.5 | 0.8; b = 1.2 | 1.5 | 2.5
answer: a/(a - b)
tolerance: 0.5%

## In the partial-fraction expansion $\frac{1}{(1 - az^{-1})(1 - bz^{-1})} = \frac{A}{1 - az^{-1}} + \frac{B}{1 - bz^{-1}}$ with a = {a} and b = {b}, what's A?

::: right
Right. $A = \frac{a}{a - b}$ = {answer}.
:::

::: misses
- [b/(b - a)] That's B.
- [1/(a - b)] Multiply by $(1 - az^{-1})$ and set $z^{-1} = 1/a$.
- [any] Not yet. $A = \left.\frac{1}{1 - bz^{-1}}\right|_{z = a}$.
:::
:::

::: check
given: a = 0.3 | 0.5 | 0.8; b = 1.2 | 1.5 | 2.5; m = 1 | 2 | 3
answer: -b/(b - a)*b^(-m)
tolerance: 0.5%

## The same X(z) has the stable ROC a < |z| < b (a = {a}, b = {b}). What's x[−{m}]?

::: right
Right. Only the anticausal b term survives at negative n: $-\frac{b}{b - a}b^{-m}$ = {answer}.
:::

::: misses
- [b/(b - a)*b^(-m)] The left-sided term carries a minus sign: $-B b^nu[-n-1]$.
- [any] Not yet. For n < 0 only $-Bb^n$ contributes.
:::
:::

::: check
given: b = 1 | 2; c = 0.5 | -0.4 | 1.5; a = 0.5 | 0.9 | -0.6
answer: (b + c)/(1 - a)
tolerance: 0.5%

## A causal, stable sequence has $X(z) = \frac{\given{b} + \given{c}z^{-1}}{1 - \given{a}z^{-1}}$. What's the sum of all its samples?

::: right
Right. $X(1)$ = {answer}.
:::

::: misses
- [b] That's x[0], the initial value.
- [any] Not yet. Evaluate X(z) at z = 1.
:::
:::

::: check
given: b = 1 | 2; c = 0.5 | -0.4 | 1.5; a = 0.5 | 0.9 | -0.6
answer: c + a*b
tolerance: 0.5%

## For the same causal X(z), what's x[1]?

::: right
Right. Long division: x[0] = {b}, then x[1] = c + ax[0] = {answer}.
:::

::: misses
- [c] Include the pole's contribution, $a\,x[0]$.
- [any] Not yet. Run the recursion $x[n] = ax[n - 1] + b\delta[n] + c\delta[n - 1]$.
:::
:::

::: check
given: p = 0.6 | 0.95 | 1.1 | 1.4; q = 0.3 | 0.8
answer: (p + q + abs(p - q))/2
tolerance: 0.5%

## A causal system has poles of magnitude {p} and {q}. Its ROC is |z| > r. What's r?

::: right
Right. The ROC lies outside the outermost pole: r = {answer}.
:::

::: misses
- [(p + q - abs(p - q))/2] Causal ROCs lie outside the largest pole, not the smallest.
- [any] Not yet. The ROC can't contain a pole, and a causal one extends to infinity.
:::
:::

::: check
kind: parts
given: a = 0.3 | 0.6 | 0.8

## A causal sequence is $x[n] = n(\given{a})^nu[n]$.

::: part
answer: a/(1 - a)^2
tolerance: 0.5%

### What is the sum of its samples?

::: misses
- [1/(1 - a)] That's the sum of $a^n$; the factor n gives $a/(1 - a)^2$.
- [any] $X(1)$ with $X(z) = az^{-1}/(1 - az^{-1})^2$.
:::
:::

::: part
answer: 2*a^2
tolerance: 0.5%

### What is x[2]?

::: misses
- [any] $n a^n$ at n = 2.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.1..0.5, b = 0.6..0.95

## The causal inverse of $\frac{1}{(1 - az^{-1})(1 - bz^{-1})}$ is wanted (a < b).

::: step
answer: a/(a - b)

### What is the coefficient A of $\frac{1}{1 - az^{-1}}$?
:::

::: step
answer: b/(b - a)

### What is B, of $\frac{1}{1 - bz^{-1}}$?
:::

::: step
answer: a/(a - b)*a^2 + b/(b - a)*b^2

### What is x[2]?
:::

::: right
Right. Check: x[2] should equal $a^2 + ab + b^2$, the convolution of the two geometric sequences.
:::
:::

::: explain
## Why must the ROC of a stable system include the unit circle?

::: model
Stability means the impulse response is absolutely summable, $\sum|h[n]| < \infty$. On the unit circle |z| = 1, the terms of the z-transform sum have magnitude $|h[n]||z|^{-n} = |h[n]|$, so absolute summability is exactly the statement that the z-transform sum converges absolutely at |z| = 1. Since the ROC is defined as the set of z where the sum converges absolutely and depends only on |z|, a stable system's ROC contains the whole unit circle, and conversely a system whose ROC contains it is stable. It's also why only stable systems have a frequency response: the DTFT is the z-transform evaluated on that circle.
:::
:::

::: practice

::: check
given: a = 0.5 | -0.7; z = 1.5 | 3
answer: 1/(1 - a/z)
tolerance: 0.5%

## X(z) at z = {z} for ({a})ⁿu[n]?

::: misses
- [any] $1/(1 - az^{-1})$.
:::
:::

::: check
given: a = 0.4 | 0.6; b = 1.3 | 2
answer: b/(b - a)
tolerance: 0.5%

## Partial-fraction coefficient B for poles {a} and {b}?

::: misses
- [any] $B = b/(b - a)$.
:::
:::

::: check
given: b = 1 | 3; c = 0.2 | -1; a = 0.4 | 0.8
answer: (b + c)/(1 - a)
tolerance: 0.5%

## Sum of samples for $(\given{b} + \given{c}z^{-1})/(1 - \given{a}z^{-1})$, causal?

::: misses
- [any] X(1).
:::
:::
:::
