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

C9 · Lesson 37 · Inverse z-transforms and system functions

From poles back to the impulse response

A filter designed in the z-plane has to come back to the time domain sooner or later: as an impulse response to check, as a difference equation to code, or as an output to predict. Going back is mostly partial fractions, the same technique A10 used for Laplace, with one simplification: each simple pole p turns into a geometric sequence pn. Every causal filter's impulse response is a sum of such terms, so its poles tell you, nearly at a glance, which modes it has, how fast each fades and which one lingers.

  • A filter with poles at p1 and p2, H(z)=1/((1−p1z−1)(1−p2z−1)), has impulse response h[n]=A1p1n+A2p2n.
  • The stems are h[n] and the dashed curves the two modes. The readouts give A1 and A2 from partial fractions.
  • Make one pole small: its mode vanishes in a few samples and the other dominates. Make a pole negative: its mode alternates in sign. Move them close together and watch A1 and A2 grow large with opposite signs.

Predict

H(z)=1/((1−0.5z−1)(1−0.25z−1)). What is h[0]?

Name it

Partial fractions

Write H(z) in powers of z−1. If the denominator has distinct poles pk and the numerator is of lower degree,

H(z)=∑kAk1−pkz−1,Ak=[(1−pkz−1)H(z)]z=pk

and for a causal system each term inverts to Akpknu[n]:

h[n]=∑kAkpknu[n]

For two poles and a numerator of 1: A1=p1/(p1−p2), A2=−p2/(p1−p2). A complex pair re±jθ combines into a real decaying sinusoid rncos⁡(θn+ϕ).

Power series

Dividing the numerator by the denominator as polynomials in z−1 gives h[0], h[1], h[2], … one at a time, useful for the first few samples or for checking. For (1+bz−1)/(1−az−1): 1, a + b, a(a + b), a2(a+b), ….

Initial and final values

For a causal sequence, x[0]=limz→∞⁡X(z). The step response of a stable filter settles at H(1).

Poles and zeros together

A zero on top of a pole cancels it: the mode disappears from the output. Filters that rely on exact cancellation are fragile, because coefficient rounding moves the zero slightly and the mode comes back.

Worked example

Find h[n] for H(z)=1/((1−0.5z−1)(1−0.25z−1)).

Show the solution
  1. Partial-fraction coefficients. A1=0.5/(0.5−0.25)=2A2=−0.25/0.25=−1
  2. Impulse response. h[n]=2(0.5)n−(0.25)n which runs 1, 0.75, 0.4375, 0.234, …
  3. Which mode matters. The 0.25 mode is gone after a few samples; the 0.5 mode sets how long the filter remembers.

Answer h[n]=2(0.5)n−(0.25)n for n ≥ 0.

Worked example

Find the first three samples of h for H(z)=(1+0.3z−1)/(1−0.5z−1).

Show the solution
  1. Long division. h[0]=1h[1]=0.5+0.3=0.8h[2]=0.5×0.8=0.4 Each later sample is half the one before.
  2. Closed form. For n ≥ 0: h[n]=1.6(0.5)n−0.6δ[n]

Answer h[0] = 1, h[1] = 0.8 and h[2] = 0.4.

Worked example

Find h[n] for H(z)=1/(1−0.25z−2).

Show the solution
  1. Factor the denominator. 1−0.25z−2=(1−0.5z−1)×(1+0.5z−1)
  2. Partial fractions. H=0.51−0.5z−1+0.51+0.5z−1
  3. Impulse response. h[n]=0.5(0.5n+(−0.5)n) For even n that's 0.5n, and for odd n it's 0: 1, 0, 0.25, 0, 0.0625, …
  4. Check. That's what the recursion y[n]=0.25y[n−2]+x[n] gives directly.

Answer h[n]=0.5(0.5n+(−0.5)n), which is 0.5n for even n and 0 for odd n.

Check

H(z)=1/((1−0.6z−1)(1−(0.2)z−1)) is causal.

(a)

What is A1, the coefficient of the 0.6 mode?

(b)

What is A2?

Check

For the same kind of filter with poles 0.8 and 0.4, what is h[5]?

Check

H(z)=(1+0.3z−1)/(1−0.8z−1) is causal.

(a)

What is h[1]?

(b)

What is h[2]?

Check

H(z)=(1+0.5z−1)/(1−0.75z−1). What does its step response settle to?

Check

A causal filter has H(z)=(1+0.5z−1)/(1−0.8z−1). What is h[0]?

Check

A causal filter's slowest mode comes from a pole at radius 0.9. How big is that mode after 10 samples, relative to its start?

Check

H(z)=(1−0.5z−1)/((1−0.5z−1)(1−0.9z−1)). Which modes appear in h[n]?

Check

H(z)=1/((1−0.8z−1)(1−0.2z−1)).

(a)

What is the partial-fraction coefficient of the 0.8 term?

(b)

What is h[3]?

Check

H(z)=(1+0.3z−1)/(1−0.5z−1).

(a)

What is h[1]?

(b)

And h[2]?

Explain why

Why does each pole of a causal filter contribute a geometric sequence to the impulse response?

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.