x[0]1.00x[1]0.80x[2]0.64x[3]0.51x[4]0.41×z⁰–×z⁻¹–×z⁻²–×z⁻³–×z⁻⁴–Σ1import numpy as np2n = np.arange(200)3x, z = 0.8**n, 2.04X = np.sum(x * z**-n)X(z) = 1.667z = 2.00+
-1012-101real part of zimaginary partTHE z-PLANE|z|=0.8|z| = 1zROC: |z| > 0.8zero 0 · pole 0.8|z| = 1 is in the ROCROC: |z| < 0.81481216-20246number of terms addedvalueTERMS | · SUM ●settlesdiverges ↑
Coloured parts: what the current step is about; everything else rests in whiteBlocks: the samples x[n], the test-value knob z, one term cell per sample, the adder Σ and a Python code cardPlots: the z-plane (unit circle, ROC, pole ×, zero ○, test point) and the terms with their running sumThe token carries each term to Σ; the pills show z and the sum right nowX(z) = Σ x[n]·z⁻ⁿ for x[n] = 0.8ⁿu[n] is z/(z − 0.8) with ROC |z| > 0.8: X(2) = 1.667, X(1) = 5, and at z = 0.5 the sum diverges. This lesson uses the two-sided (bilateral) Z-transform, n from −∞ to ∞, as Oppenheim and Willsky do; for a signal that is 0 before n = 0 it equals the one-sided version.

A list becomes a function

  1. Here is a signal that fades: x[n] = 0.8ⁿ for n ≥ 0, and 0 before n = 0. Each sample is 0.8 times the one before: 1, 0.8, 0.64, 0.512 ... It shrinks forever but never reaches 0.

Does the sum converge?

ROC, poles and the unit circle

Why the ROC matters

The working

# step 1/10 · signal

x[n] = 0.8ⁿ · u[n]

u[n] = 1 for n ≥ 0, 0 for n < 0
(the unit step)

x[0] = 1      x[1] = 0.8
x[2] = 0.64   x[3] = 0.512
x[4] = 0.4096 ...

infinitely many samples, none of them 0

The factor 0.8 and the test values z = 2, 0.5, 0.8, 1 and 0.4 are chosen examples. Every term, running sum and value in the figure is computed from the definition X(z) = Σ x[n]·z⁻ⁿ in this model; the plot adds the first 16 terms. The figure only tries real, positive values of z, so every term is a real number. The ROC is a statement about |z|: any complex z with the same size behaves the same way.