TBVP Notes: Z-Transforms

Nov 19, 2026·Pranesh Mahanta·21MAB201T — Transforms and Boundary Value Problems

The unilateral Z-transform: regions of convergence and standard pairs, the shifting and multiplication-by-n theorems, initial and final value theorems, convolution, and difference equations solved end to end.

Contents
  1. The Z-transform: definition and basic idea
  2. Region of convergence (ROC)
  3. Elementary properties and standard pairs
  4. The first shifting theorem
  5. Multiplication by n
  6. Initial and final value theorems
  7. The convolution theorem
  8. Inversion by partial fractions
  9. Solving difference equations with Z-transforms
  10. Worked: second-order homogeneous equation
  11. Worked: non-homogeneous first-order equation
  12. Method checklist and common pitfalls

1The Z-transform: definition and basic idea

Where the Laplace transform acts on functions of a continuous variable, the Z-transform acts on sequences {xn}, n = 0, 1, 2, … — sampled signals, iterates of a recurrence, or the terms of a difference equation. The unilateral Z-transform used throughout these notes is

Z{xn} = X(z) = ∑n=0∞ xn z−n = x0 + x1z−1 + x2z−2 + …

It is a power series in the complex variable z (in negative powers — a “generating function” in reverse). The series converges on some region of the complex plane, the region of convergence; inside it, X(z) is an analytic function that carries the same information as the sequence. The first pair comes straight from the geometric series: for xn = 1, X(z) = ∑ z−n = 1/(1 − z−1) = z/(z − 1), convergent for |z| > 1.

Z{1} = z/(z − 1),   |z| > 1    (geometric series with ratio z−1, converging when |z−1| < 1)

The point of the transform is the same as ever: shifts become multiplications by powers of z, and the convolution of sequences becomes a product of transforms — exactly the two operations that difference equations are built from.

2Region of convergence (ROC)

The ROC is the set of z for which the defining series converges. For the unilateral transform it is always the exterior of a circle, |z| > R: the terms xnz−n decay with n precisely when |z| is large enough to dominate the growth of xn. The radius R is set by the poles of X(z) — the transform cannot converge at a pole, and the ROC boundary passes through the outermost pole.

xn = an (a complex, |a| > 0):   X(z) = ∑(a/z)n = z/(z − a),   ROC |z| > |a|
xn = n an:   X(z) = az/(z − a)2,   ROC |z| > |a|   (double pole at z = a)

Two-sided sequences (defined for negative n as well) can produce annular ROCs, R1 < |z| < R2; the unilateral transform never does. Within the ROC the representation is unique: one X(z) plus one ROC determines one sequence.

ROC: |z| > 2 |z| = 1 |z| = 2 (outermost pole) pole z = 2 zero z = 0 Re z Im z
Figure — complex z-plane for X(z) = z/(z − 2): the ROC is the shaded exterior of the circle through the pole (|z| > 2); the unit circle lies inside the ROC, so the final value theorem is applicable here. For X(z) = z/(z − 1/2) the ROC would be |z| > 1/2, also containing the unit circle.
Whenever a theorem below mentions limits (final value, in particular), the fine print is about the ROC: the unit circle must lie inside the ROC, equivalently all poles of (z − 1)X(z) must satisfy |z| < 1. Ignoring this is the classic way to “prove” that a diverging sequence converges.

3Elementary properties and standard pairs

Besides linearity (immediate from the definition), the two most used elementary properties are the damping rule and its relatives, plus the small family of standard pairs from which everything else is assembled. The pair for n follows by differentiating the geometric series: ∑nz−n = q/(1 − q)2 with q = z−1, i.e. z/(z − 1)2.

Linearity:   Z{a xn + b yn} = aX(z) + bY(z),   ROC the intersection
Damping:   Z{anxn} = X(z/a)   (replace z by z/a)
Sequence xn (n ≥ 0)X(z)ROC
1z/(z − 1)|z| > 1
anz/(z − a)|z| > |a|
nz/(z − 1)2|z| > 1
n2z(z + 1)/(z − 1)3|z| > 1
n anaz/(z − a)2|z| > |a|
cos nθz(z − cos θ)/(z2 − 2z cos θ + 1)|z| > 1
sin nθz sin θ/(z2 − 2z cos θ + 1)|z| > 1

The trigonometric rows come from combining Z{einθ} = z/(z − eiθ) with its conjugate; the n-rows come from the multiplication-by-n rule of Section 5.

4The first shifting theorem

Shifting a sequence is the operation difference equations are made of, and in the z-domain it is almost free. For the right shift (delay) with xn = 0 for n < 0, and for the left shift (advance):

Right shift:   Z{xn−k} = z−k X(z)
Left shift:   Z{xn+k} = zk X(z) − zk(x0 + x1z−1 + … + xk−1z−(k−1))

The correction terms on the left shift are the price of causality: advancing the sequence loses the first k samples, and the transform must be told about them. For k = 1 and k = 2 (the only cases needed for second-order equations):

Z{xn+1} = zX(z) − zx0    Z{xn+2} = z2X(z) − z2x0 − zx1
Worked problem · shifting theorem
Find Z{cos nθ} and hence Z{cos(nπ/2)}.
Exponential route: Z{einθ} = ∑(eiθ/z)n = z/(z − eiθ) for |z| > 1.
Take the even part: cos nθ = (einθ + e−inθ)/2, so
Z{cos nθ} = (1/2)[z/(z − eiθ) + z/(z − e−iθ)] = (1/2) · z[2z − (eiθ + e−iθ)]/(z2 − 2z cos θ + 1) = z(z − cos θ)/(z2 − 2z cos θ + 1).
Special case θ = π/2: cos θ = 0, so X(z) = z2/(z2 + 1).
Check: the sequence cos(nπ/2) = 1, 0, −1, 0, 1, … has transform 1 − z−2 + z−4 − … = 1/(1 + z−2) = z2/(z2 + 1) — the same answer, as it must be.

5Multiplication by n

Multiplying a sequence by n corresponds to differentiating its transform with respect to z, because z−n differentiates to −n z−n−1:

Z{n xn} = −z (dX/dz),   and more generally   Z{nkxn} = (−z d/dz)k X(z)
Worked problem · multiplication by n
Using Z{n} = z/(z − 1)2, find Z{n2}, and find Z{n 2n}.
Second power: apply the rule to X(z) = z/(z − 1)2: dX/dz = [(z − 1)2 − z · 2(z − 1)]/(z − 1)4 = [(z − 1) − 2z]/(z − 1)3 = −(z + 1)/(z − 1)3.
So Z{n2} = −z · (dX/dz) = z(z + 1)/(z − 1)3.
Damped case: Z{n 2n} = −z d/dz [z/(z − 2)] = −z · [(z − 2) − z]/(z − 2)2 = 2z/(z − 2)2 — agreeing with the pair n an → az/(z − a)2 in the table of Section 3 (a = 2).
Check: the same result follows from the damping rule alone: Z{n 2n} = Z{n} evaluated at z/2 = (z/2)/((z/2) − 1)2 = (z/2) · 4/(z − 2)2 = 2z/(z − 2)2. Two independent routes, one answer.

6Initial and final value theorems

Two short theorems read the beginning and the end of the sequence straight off the transform, without any inversion:

Initial value:   x0 = limz→∞ X(z)
Final value:   limn→∞ xn = limz→1 (z − 1) X(z),   provided the poles of (z − 1)X(z) all lie inside |z| < 1

The initial value is visible because x0 is the leading term of the series in z−1. The final value comes from the left-shift rule applied to xn+1 − xn and summing the telescoping differences; the pole condition is exactly what makes that summation legal.

Worked problem · initial and final values
Find the initial value x0 and the limit of xn as n → ∞ for (i) X(z) = z/(z − 1/2); (ii) X(z) = z/(z − 2). Comment on case (ii).
Case (i): initial value x0 = limz→∞ z/(z − 1/2) = 1 (and indeed the sequence is (1/2)n, whose first term is 1). Final value: (z − 1)X(z) = z(z − 1)/(z − 1/2) is analytic at z = 1, so limz→1 = 1 · 0/(1/2) = 0 — and indeed (1/2)n → 0.
Case (ii): initial value x0 = limz→∞ z/(z − 2) = 1 (sequence 2n, first term 1). But the pole of (z − 1)X(z) = z(z − 1)/(z − 2) is at z = 2, outside the unit circle: the final value theorem does not apply. The formal limit limz→1 (z − 1)X(z) = 0/(−1) = 0 is meaningless here — the actual sequence 2n diverges.
Moral: always check the pole condition before quoting a final value; a transform whose ROC does not contain the unit circle describes a sequence with no limit.

7The convolution theorem

The convolution of two causal sequences is

(x ∗ y)n = ∑k=0n xk yn−k,   and   Z{(x ∗ y)n} = X(z) Y(z)

so the z-domain turns the (laborious) convolution sum into an ordinary product. This is the standard route for inverting products of transforms: factor the product, invert each factor, convolve — or, when the factors are simpler than the product, read the answer off the factorization.

Worked problem · convolution theorem
Use the convolution theorem to find the inverse Z-transform of X(z) = z2/[(z − 1)(z − 2)].
Factor: X(z) = [z/(z − 1)] · [z/(z − 2)], the product of the transforms of the sequences 1 (all ones) and 2n.
Convolve: xn = ∑k=0n 1 · 2n−k = 2n + 2n−1 + … + 2 + 1, a geometric sum with ratio 2:
xn = (2n+1 − 1)/(2 − 1) = 2n+1 − 1.
Check: Z{2n+1 − 1} = 2Z{2n} − Z{1} = 2z/(z − 2) − z/(z − 1) = [2z(z − 1) − z(z − 2)]/[(z − 1)(z − 2)] = [2z2 − 2z − z2 + 2z]/[(z − 1)(z − 2)] = z2/[(z − 1)(z − 2)]. Recovered exactly.

8Inversion by partial fractions

The everyday inversion tool is partial fractions, with one bookkeeping trick: always expand X(z)/z (not X(z)) in partial fractions, then multiply the decomposition back by z. The reason is that the standard pairs are of the form z/(z − a), and expanding X(z)/z produces exactly those shapes after the multiplication. Distinct linear factors give simple terms; repeated factors give the corresponding n-multiplied pairs (Section 5).

Miniature example:   X(z) = z/(z2 − 5z + 6). Then X(z)/z = 1/[(z − 2)(z − 3)] = 1/(z − 3) − 1/(z − 2),
so X(z) = z/(z − 3) − z/(z − 2)  ⇒  xn = 3n − 2n.

Quadratic irreducible factors are handled by completing the square to match the cos/sin pairs of Section 3, or by splitting into complex conjugate linear factors and taking the real part. As always, the ROC is the exterior of the outermost pole, and it should be stated with the answer.

A useful check at the end of any partial-fraction inversion: evaluate the decomposed X(z) at a convenient z (for instance z = 0 or compare coefficients of z−1) against the original — a mismatch of one coefficient means one constant is wrong.

9Solving difference equations with Z-transforms

A linear difference equation with constant coefficients, such as yn+2 + a1yn+1 + a2yn = f(n) with initial values y0, y1, is solved in four steps that mirror the Laplace method for ODEs:

The algebra replaces the entire characteristic-equation discussion: the poles of Y(z) are the roots of the characteristic polynomial, and repeated poles reproduce the n-multiplied solutions — all automatically. The next two sections carry out the procedure completely, once homogeneous and once with a forcing term.

10Worked: second-order homogeneous equation

Worked problem · homogeneous recurrence
Solve yn+2 − 5yn+1 + 6yn = 0, given y0 = 1 and y1 = 4.
Transform: z2Y − z2y0 − zy1 − 5(zY − zy0) + 6Y = 0. With y0 = 1, y1 = 4:
Y(z)(z2 − 5z + 6) = z2 + 4z − 5z = z2 − z = z(z − 1).
Solve: Y(z) = z(z − 1)/[(z − 2)(z − 3)].
Partial fractions (via Y/z): Y(z)/z = (z − 1)/[(z − 2)(z − 3)] = A/(z − 2) + B/(z − 3) with A + B = 1 and 3A + 2B = 1. Subtracting: 2A = −1, so A = −1, B = 2. Hence Y(z) = −z/(z − 2) + 2z/(z − 3).
Invert: yn = −2n + 2 · 3n, ROC |z| > 3.
Check against the recurrence: n = 0: −1 + 2 = 1 = y0; n = 1: −2 + 6 = 4 = y1; n = 2: y2 should equal 5y1 − 6y0 = 14, and the formula gives −4 + 18 = 14. Correct.
The poles z = 2, 3 of Y(z) are exactly the roots of the characteristic equation r2 − 5r + 6 = 0, and the solution is the familiar combination of exponentials — the Z-transform did not change the mathematics, it mechanized it.

11Worked: non-homogeneous first-order equation

Worked problem · forced recurrence
Solve yn+1 − yn = 2n, given y0 = 0.
Transform: zY − zy0 − Y = 2Z{n} = 2z/(z − 1)2. With y0 = 0:
Y(z)(z − 1) = 2z/(z − 1)2, so Y(z) = 2z/(z − 1)3.
Invert: match against the table: Z{n2} = z(z + 1)/(z − 1)3 and Z{n} = z/(z − 1)2, so
Z{n2 − n} = [z(z + 1) − z(z − 1)]/(z − 1)3 = 2z/(z − 1)3 = Y(z).
Solution: yn = n2 − n, ROC |z| > 1 (triple pole at z = 1).
Check in the recurrence: yn+1 − yn = [(n+1)2 − (n+1)] − [n2 − n] = (n2 + 2n + 1 − n − 1) − n2 + n = 2n. And y0 = 0, y1 = 0 = y0 + 2 · 0, y2 = 2 = 0 + 2 · 1, y3 = 6 = 2 + 2 · 2. All consistent.

Observe the shape of the answer: the forcing term 2n produced a triple pole at z = 1, i.e. a polynomial (degree 2) particular solution — the discrete counterpart of resonance, and the reason the pair table contains the nk entries at z = 1.

12Method checklist and common pitfalls

Every Z-transform problem in this unit uses the same small toolkit, and most lost marks come from a handful of predictable slips. The checklist:

With the pairs table, the shifting rules and the convolution theorem in place, the Z-transform handles in a few lines what direct iteration of a recurrence handles in many — and, unlike iteration, it delivers a closed-form formula valid for all n at once. That closed form is exactly what boundary value and stability questions need, which is why this transform closes the course.