notesonly.in

One notebook for every subject — open it anywhere.

Log in

Z-Transform and Applications: Complete Beginner's Guide

The Z-transform is the discrete-time counterpart of the Laplace transform: it converts a sequence x[n] into a function of a complex variable z, defined by X(z) = sum from n = -infinity to infinity of x[n] z^(-n). A unit delay becomes multiplication by z^(-1), so linear difference equations turn into algebraic equations — exactly as differential equations do under Laplace.

This matters because the modern world runs on discrete time: every digital filter, every audio effect plugin, every control loop implemented on a microcontroller, and every communication modem processes sequences, not continuous waveforms. The Z-transform is the mathematics behind all of them — pole locations in the z-plane decide stability, and rational functions in z describe realizable digital filters.

Key Concepts

  • Definition: X(z) = sum of x[n] z^(-n) over all n. The negative exponent means a delay of one sample is z^(-1).
  • Standard pairs: unit impulse delta[n] becomes 1; unit step u[n] becomes z/(z - 1); a^n u[n] becomes z/(z - a); n a^n u[n] becomes a z/(z - a)^2.
  • Shift property: x[n - k] becomes z^(-k) X(z) (for causal sequences with zero initial conditions).
  • Region of convergence (ROC): the set of z values where the sum converges; for a causal sequence it is the region outside the outermost pole.
  • Stability: a causal LTI system is BIBO stable if and only if all poles lie strictly inside the unit circle (|z| less than 1).
  • Relation to frequency response: evaluating X(z) on the unit circle, z = e^(j omega), gives the discrete-time Fourier transform — the system's frequency response.

Formulas

  • Linearity: a x1[n] + b x2[n] becomes a X1(z) + b X2(z).
  • Time shift: x[n - k] u-causal becomes z^(-k) X(z).
  • Convolution: x[n] * h[n] becomes X(z) H(z) — convolution of sequences is multiplication in z.
  • Initial/final value: x[0] = limit of X(z) as z approaches infinity; x[infinity] = limit of (z - 1)/z X(z) as z approaches 1 (when the limit exists).
  • Transfer function of y[n] + a1 y[n-1] = b0 x[n]: H(z) = b0 / (1 + a1 z^(-1)).

Worked Example

Solve the difference equation y[n] - 0.5 y[n-1] = x[n] with x[n] = u[n] (unit step) and zero initial conditions.

  1. Transform: Y(z) - 0.5 z^(-1) Y(z) = X(z) = z/(z - 1).
  2. So Y(z) = z / ((z - 1)(1 - 0.5 z^(-1))). Multiply numerator and denominator by z: Y(z) = z^2 / ((z - 1)(z - 0.5)).
  3. Partial fractions on Y(z)/z = z / ((z - 1)(z - 0.5)) = A/(z - 1) + B/(z - 0.5).
  4. A = z/(z - 0.5) at z = 1: 1/0.5 = 2. B = z/(z - 1) at z = 0.5: 0.5/(-0.5) = -1.
  5. Thus Y(z) = 2 z/(z - 1) - z/(z - 0.5), giving y[n] = (2 - 0.5^n) u[n].
  6. Verify: y[0] = 2 - 1 = 1; equation check: y[0] - 0.5 y[-1] = 1 - 0 = 1 = x[0]. y[1] = 2 - 0.5 = 1.5; check: 1.5 - 0.5(1) = 1 = x[1]. Correct.

The single pole at z = 0.5 lies inside the unit circle, so the system is stable — and indeed y[n] settles toward 2 as n grows.

Common Misconceptions

  • "The Z-transform is just sampled Laplace." Related but distinct: z = e^(sT) maps the s-plane to the z-plane, and the stability boundary (imaginary axis) maps to the unit circle — the geometry changes completely.
  • "z^(-1) means advance." It means delay by one sample. Positive powers z^(+1) would be advances (non-causal).
  • "Poles anywhere are fine if the math works." For causal systems, any pole on or outside the unit circle means instability or marginal behavior — the z-plane unit circle is the stability test you must always apply.

Real-World Applications

  • Digital filter design: IIR and FIR filters are specified and analyzed as H(z).
  • Digital control: PID and state-space controllers implemented on microcontrollers are designed in the z-domain.
  • Audio processing: equalizers, compressors and effects are real-time difference equations.
  • Communications: modems and equalizers use z-domain models of channels and filters.
  • Image processing: 2-D difference equations describe recursive image filters.

The Z-transform turns difference equations into algebra via the delay operator z^(-1), with convolution becoming multiplication and stability decided by the unit circle. If Laplace is the language of continuous systems, Z is the language of everything digital — and every digital filter you will ever meet is a rational function of z.