The problem
The Z-transform turned a list of samples into a function of z. Now go back. Here X(z) = 1/(1 − 0.75z⁻¹ + 0.125z⁻²) with ROC |z| > 0.5. Which samples x[n] made it? Finding them is the inverse Z-transform.
Partial fractions
Factor the denominator: 1 − 0.75z⁻¹ + 0.125z⁻² = (1 − 0.5z⁻¹)(1 − 0.25z⁻¹). It is zero at z = 0.5 and z = 0.25, so X(z) blows up there: the poles. A zero is where X(z) equals 0; here z = 0, twice.
Two different poles, so X(z) can be written as a sum of two simple fractions, one pole each: A/(1 − 0.5z⁻¹) + B/(1 − 0.25z⁻¹). This works because the top (degree 0 in z⁻¹) is lower than the bottom (degree 2).
Cover up one factor and put its pole into what is left. For A, z = 0.5 so z⁻¹ = 2: A = 1/(1 − 0.25·2) = 2. For B, z = 0.25 so z⁻¹ = 4: B = 1/(1 − 0.5·4) = −1.
Back to time
One pair does all the work: aⁿu[n] ↔ 1/(1 − az⁻¹). Here u[n] is the unit step: 1 for n ≥ 0, 0 before. Piece one has a = 0.5, piece two has a = 0.25. Each fraction is a geometric sequence in disguise.
Two different sequences share the fraction 1/(1 − az⁻¹); only the ROC tells them apart. Our ROC |z| > 0.5 lies outside both poles, so both pieces are right-sided (causal). With |z| < 0.25, both would be left-sided.
Piece one is 2(0.5)ⁿu[n]: 2, 1, 0.5, 0.25 … Piece two is −(0.25)ⁿu[n]: −1, −0.25, −0.0625 … Each pole sets how fast its piece shrinks. The pole nearer 0 dies out faster.
x[n] = 2(0.5)ⁿ − (0.25)ⁿ for n ≥ 0. So x[0] = 2 − 1 = 1, x[1] = 1 − 0.25 = 0.75, x[2] = 0.4375, x[3] = 0.234375. That is the inverse Z-transform.
Check it
Cross-multiply: X(z)(1 − 0.75z⁻¹ + 0.125z⁻²) = 1. In time that says x[n] = 0.75x[n−1] − 0.125x[n−2] + δ[n], where the unit impulse δ[n] is 1 at n = 0, else 0. Run it: 1, 0.75, 0.4375, 0.234375. Same numbers, so the split was right.
In Python 3 with SciPy, signal.residuez(b, a) does the split: residues r = [−1, 2] (our B and A) at poles p = [0.25, 0.5]. signal.lfilter on an impulse runs the recursion. Both give x[n] = 1, 0.75, 0.4375 …
The working
# step 1/10 · goal
given X(z) = 1 / (1 − 0.75z⁻¹ + 0.125z⁻²)
ROC (region of convergence): |z| > 0.5
wanted x[n] for every n
three ways back:
partial fractions + a pair table <- this lesson
long division (a power series in z⁻¹)
a contour integral (residues)
z⁻¹ = "one sample later"
The example X(z) = 1/(1 − 0.75z⁻¹ + 0.125z⁻²) with ROC |z| > 0.5 is a standard textbook case; every number in the figure is computed from this model and checked against the recursion. The memory cells round to 4 decimals (x[3] = 0.234375 shows as 0.2344); the working shows the exact values.