ECE538 Week 3: Z-Transform & DT Fourier Transform
The purpose of this week is to revisit the idea of the Z-transform and DTFT.
Derivation / Motivation
Z-Transform
As stated previously, the geometric series is the eigenfunction for LTI systems in discrete time:
$$y[n]=h[n]*x[n]=\sum_{k=-\infty}^{\infty}h[k]a^{n-k}=(\sum_{k=-\infty}^{\infty}h[k]a^{-k})a^n=H(a)a^n$$Thus, we define
$$H(z)=Z\{h[n]\}=\sum_{n=-\infty}^{\infty}h[n]z^{-n}$$DTFT
Let $x[n]=e^{j\omega_0 n}$ and pass into LTI system:
$$y[n]=h[n]*x[n]=\sum_{k=-\infty}^{\infty}h[k]e^{j\omega_0(n-k)}=(\sum_{k=-\infty}^{\infty}h[k]e^{-j\omega k})e^{j\omega_0 n}=H(e^{j\omega_0})e^{j\omega_0 n}$$Thus, the DTFT is nothing but evaluating the Z-transform on the unit circle:
$$H(e^{j\omega})=DTFT\{h[n]\}=H(z)|_{z=e^{j\omega}}=\sum_{n=-\infty}^{\infty}h[n]e^{-j\omega_0 n}$$Stability
First, express $H(z)$ in terms of poles and zeroes (a relatively unrestrictive assumption, see Difference Equations):
$$H(z)=\frac{\Pi_{k=0}^{M}(z-z_k)}{\Pi_{k=0}^{N}(p-p_k)}$$Notice first that the radius of convergence of $H(z)$ must be given by $|z|>|p_{max}|$, where $p_{max}$ is the pole with the largest magnitude.
Notice second that the definition of the Z-transform and the triangle inequality obtains:
$$|H(z)|\leq \sum_{n=-\infty}^{\infty}|h[n]z^{-n}|$$We know that BIBO stability requires $$$\sum_{n=-\infty}^{\infty}|h[n]| < \infty$
So evaluate the above at $z=e^{j\omega}$
$$|H(e^{j\omega})|\leq \sum_{n=-\infty}^{\infty}|h[n]|<\infty$$This means that the radius of convergence must include the unit circle. Since $|z_{max}|=1>|p_{max}|$, this means that in order for a system to be BIBO stable, all poles must be within the unit circle.
Difference Equations
A difference equation is the DT analogy to a CT differential equation. They are given in the below form:
$$y[n]=\sum_{k=0}^{M}a_kx[n-k]-\sum_{k=1}^{N}b_ky[n-k]$$Simple Analysis
Taking the Z-transform of both sides:
$$Y(z)=\sum_{k=0}^{M}a_kX(z)z^{-k}-\sum_{k=1}^{N}b_kY(z)z^{-k}$$Solving for $H(z)=\frac{Y(z)}{X(z)}$:
$$H(z)=\frac{\sum_{k=0}^{M}a_kz^{-k}}{1+\sum_{k=1}^{N}b_kz^{-k}}$$From here, pole-zero analysis can be performed.
FIR, IIR
Finite impulse response (FIR) systems often take the following form:
$$y[n]=\sum_{k=0}^{M}a_kx[n-k]$$As can be seen:
$$h[n]=\sum_{k=0}^{M}a_k\delta[n-k]$$.
$\fbox{The defining characteristic of FIR systems is that they have no (nonzero) poles, only zeros.}$
Infinite impulse response (IIR) systems take the form of a general difference equation. $\fbox{If a system has a nonzero pole, it is IIR.}$
The names of both types come from the length of time it takes for the impulse response to stay at 0. This never happens for IIRs, and always happens for FIRs.
Pole-Zero Analysis
It is useful to be able to look at just $|H(z)|$ or $\angle H(z)$ for any given $z$. Since $H(z)$ can usually be written as a rational function of polynomials, this analysis is not difficult if we understand complex numbers.
$$H(z)=\frac{\Pi_{k=0}^{M}(z-z_k)}{\Pi_{k=0}^{N}(p-p_k)}$$$$|H(z)|=\frac{\Pi_{k=0}^{M}|z-z_k|}{\Pi_{k=0}^{N}|p-p_k|}$$$$\angle H(z)=\Pi_{k=0}^{M}\angle(z-z_k)-\Pi_{k=0}^{N}\angle(p-p_k)$$
This can be easily programmed and calculated.
Properties / Useful TidBits
- Time shifting $$Z\{x[n-n_0]\}=z^{-n_0}X(z)$$
- Convolution $$Z\{x[n]*h[n]\}=X(z)H(z)$$
- Conjugation $$Z\{x^*[n]\}=X^*(z^*)$$
- Time-Reversal $$Z\{x[-n]\}=X(\frac{1}{z})$$
- Geometric Sequence $$Z\{a^nu[n]\}=\frac{z}{z-a} \forall |z|>|a|$$
- Derivative in Z-domain $$Z\{nx[n]\}=-z\frac{d}{dz}X(z)$$
- Domain Stretch in Z-domain $$Z\{a^nx[n]\}=X(\frac{z}{a})$$