C936 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C9 · Lesson 36 · The z-transform

The Laplace transform's discrete-time partner

The DTFT evaluates a sequence's spectrum on the unit circle. The z-transform frees z to be any complex number, and does for discrete time what the Laplace transform does for continuous time: it turns difference equations into algebra, convolution into multiplication, and a filter into a ratio of polynomials whose poles and zeros you can see. The unit circle takes over the role of the jω axis. A causal digital filter is stable exactly when its poles lie inside the circle, and the closer a pole sits to the circle, the longer the filter rings.

  • A resonator H(z)=z2/(z2−2rcos⁡θz+r2): its poles (crosses) sit at radius r and angles ±θ; the circle is the unit circle.
  • r sets how long the filter rings: inside the circle it's stable, on it the ringing never ends, outside (shaded) it grows. θ sets the frequency it rings at.
  • This is lesson 9's two-line recursion. Its impulse response is drawn below: compare how fast it dies with how close the poles are to the circle.

Predict

x[n]=(0.5)nu[n] has X(z)=1/(1−0.5z−1). For which z does the sum defining X(z) converge?

Name it

The transform

X(z)=∑n=−∞∞x[n]z−n

converges in a region of convergence, a ring r1<|z|<r2 bounded by poles. On the unit circle, z=ejω, it's the DTFT, if the ROC includes the circle.

x[n]X(z)ROC
δ[n−k]z−kall z (except 0 for k > 0)
anu[n]11−az−1=zz−a|z|>|a|
−anu[−n−1]11−az−1|z|<|a|

Properties

A delay by k multiplies by z−k; convolution multiplies transforms. So the difference equation y[n]=∑aky[n−k]+∑bkx[n−k] gives

H(z)=Y(z)X(z)=∑kbkz−k1−∑kakz−k

a ratio of polynomials in z−1. Multiplying top and bottom by the highest power of z gives polynomials in z, whose roots are the zeros and poles.

Causality and stability

A causal system's ROC is outside its outermost pole, |z|>max⁡|p|. A stable one's ROC contains the unit circle. So a causal, stable filter has every pole strictly inside the unit circle. A pole at radius r gives a mode rn, which halves every ln⁡0.5/ln⁡r samples.

H(1) is the DC gain, and H(−1) is the gain at ω = π.

Worked example

Find the z-transform of x = [1, 2, 3] (n = 0 to 2) and its value at z = 1.

Show the solution
  1. Transform. It converges everywhere except z = 0: X(z)=1+2z−1+3z−2
  2. At z = 1. X(1)=1+2+3=6 the sum of the samples, which is the DTFT at ω = 0.

Answer X(z)=1+2z−1+3z−2, and its value at z = 1 is 6.

Worked example

Find H(z) for y[n]=0.9y[n−1]−0.81y[n−2]+x[n] and decide whether it's stable.

Show the solution
  1. Transfer function. H(z)=11−0.9z−1+0.81z−2=z2z2−0.9z+0.81
  2. Poles. They solve z2−0.9z+0.81=0: z=0.9e±jπ/3 radius 0.9, inside the unit circle.
  3. Behavior. Causal and stable, ringing every 6 samples and halving every 6.6.

Answer H(z)=z2/(z2−0.9z+0.81), with poles at 0.9e±jπ/3 inside the unit circle, so it's stable.

Worked example

Find X(z) and its region of convergence for x[n]=0.5nu[n]+2nu[−n−1].

Show the solution
  1. Right-sided part. For |z| > 0.5 it gives 11−0.5z−1
  2. Left-sided part. For |z| < 2 it gives −11−2z−1
  3. ROC. Both converge only in the ring 0.5 < |z| < 2, so that's the ROC.
  4. DTFT. It includes the unit circle, so the DTFT exists: the signal decays in both directions.

Answer X(z)=1/(1−0.5z−1)−1/(1−2z−1), with ROC 0.5 < |z| < 2.

Check

x = [1, 3, 4], starting at n = 0. What is X(z) at z = 0.5?

Check

What is the z-transform of (0.8)nu[n] at z = 2?

Check

A causal filter has poles at radius 0.5 and 0.3. Its ROC is |z| > ρ. What is ρ?

Check

A filter computes y[n]=0.9y[n−1]+2x[n].

(a)

Where is its pole?

(b)

What is its DC gain, H(1)?

Check

A filter computes y[n]=1.2y[n−1]+(−0.64)y[n−2]+x[n], and its poles are a complex pair.

(a)

What is their radius?

(b)

What is the DC gain?

Check

H(z)=1/(1−0.5z−1). What is its gain at ω = π?

Check

A causal filter's poles are at 0.5, 0.95e^{±j0.3} and 1.02. Is it stable?

Check

x = [1, −2, 5] for n = 0 to 2.

(a)

What is X(z) at z = 1?

(b)

And at z = −1?

Check

x[n]=anu[n] with a = 0.8.

(a)

What is X(z) at z = 2?

(b)

Outside what radius does it converge?

Explain why

Why is the unit circle the boundary between stable and unstable for causal digital filters?

Practice

Keep practicing

11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.