The DTFT of Chapter 3 only exists for sequences that are absolutely (or square) summable — it fails for signals as basic as the unit step $\mu[n]$ or a growing exponential $2^n\mu[n]$. The z-transform(z 轉換) generalizes the DTFT by evaluating the sum on a complex variable $z$ instead of on $e^{j\omega}$ only, which buys convergence for a much larger class of sequences and turns difference equations into algebra.
We write the pair as $g[n] \xleftrightarrow{\;\mathcal{Z}\;} G(z)$. Throughout this course the unit step is written $\mu[n]$ (identical to the $u[n]$ used in many textbooks). Since $z$ is a complex number, it is natural to picture $G(z)$ as a function defined over the z-plane(z 平面): writing $z = re^{j\omega}$, the radius $r=|z|$ and the angle $\omega=\angle z$ play very different roles, as we now see.
Substituting $z = re^{j\omega}$ into the definition:
So the z-transform evaluated on the circle of radius $r$ is the DTFT of $g[n]$ after multiplication by the exponential weight $r^{-n}$. A decaying weight ($r>1$ for right-sided signals) can tame a sequence whose plain DTFT diverges. Two immediate consequences:
| DTFT | z-Transform | |
|---|---|---|
| Variable | $\omega$ real, $z=e^{j\omega}$ on the unit circle | $z$ anywhere in $\mathbb{C}$ |
| Exists for | absolutely / square-summable $g[n]$ | any exponentially bounded $g[n]$ (with proper ROC) |
| Periodicity | periodic in $\omega$ with period $2\pi$ | not periodic; one trip around a circle = one DTFT period |
| Main use | frequency content, filter response | solving LCCDEs, poles/zeros, stability/causality analysis |
The critical question for any $z$: does $\sum_n g[n]z^{-n}$ converge to a finite value? The region of convergence(收斂區域,ROC) $\mathcal{R}_g$ is the set of $z$ for which it does. In general it depends only on $|z|$, so it is always a circular region — the inside of a circle, the outside of a circle, or a ring (annulus).
Figure 5-1 shows the family $a^n\mu[n]$ for three values of $a$, together with the location of the corresponding transform's pole at $z=a$. Decaying sequences ($|a|<1$) have their pole inside the unit circle; the growing sequence ($a=1.2$) has it outside — and its DTFT does not exist, although its z-transform does (ROC $|z|>1.2$).
Each pole $\lambda$ of a rational $G(z)$ contributes a term whose ROC is either outside $|z|=|\lambda|$ (right-sided term) or inside (left-sided term). The overall ROC tells you the sidedness(單邊性) of $g[n]$:
| Sequence type | ROC shape | Includes |
|---|---|---|
| Right-sided(右邊序列), e.g. $\lambda^n\mu[n]$ | $|z| > r_{\max}$ — outside the outermost pole | $z=\infty$ if causal |
| Left-sided(左邊序列), e.g. $-\lambda^n\mu[-n-1]$ | $|z| < r_{\min}$ — inside the innermost pole | $z=0$ if anticausal |
| Two-sided(雙邊序列) | ring $r_1 < |z| < r_2$ between two poles | neither $0$ nor $\infty$ |
| Finite-length(有限長度) | entire plane except possibly $z=0$ and/or $z=\infty$ | — |
Consider a transform with two poles $\lambda_1,\lambda_2$ where $|\lambda_1| < 1 < |\lambda_2|$ and no ROC specified:
Each term may independently correspond to a right-sided or a left-sided sequence, so there are 4 possible sequences/ROCs, and the overall ROC is the intersection of each term's ROC:
| Case | $\lambda_1$ term | $\lambda_2$ term | Overall ROC | Resulting $g[n]$ |
|---|---|---|---|---|
| 1 | right-sided | right-sided | $|z|>|\lambda_2|$ | $(\lambda_1^n + \lambda_2^n)\,\mu[n]$ — right-sided |
| 2 | left-sided | left-sided | $|z|<|\lambda_1|$ | $-(\lambda_1^n + \lambda_2^n)\,\mu[-n-1]$ — left-sided |
| 3 | right-sided | left-sided | $|\lambda_1|<|z|<|\lambda_2|$ | $\lambda_1^n\mu[n] - \lambda_2^n\mu[-n-1]$ — two-sided |
| 4 | left-sided | right-sided | $|z|<|\lambda_1| \,\cap\, |z|>|\lambda_2| = \varnothing$ | no valid z-transform(無交集 → 不存在) |
Only Case 3 yields an ROC containing the unit circle, so only that choice corresponds to a stable (absolutely summable) sequence with a DTFT.
$G(z)$ can in principle be any function of $z$, but in DSP the important class is rational(有理) z-transforms — ratios of polynomials in $z^{-1}$. By convention they are expressed in powers of $z^{-1}$, which matches the transform definition and (as §5.4.3 shows) is reminiscent of LCCDE expressions:
Factoring numerator and denominator exposes the roots:
The pole–zero diagram(極零點圖) plots the ×'s and ○'s together with the unit circle. Up to the overall gain $p_0/d_0$, it completely determines a rational $G(z)$, and with the ROC shading added it completely determines $g[n]$. Picturing $|G(z)|$ as a surface over the z-plane: poles are tent-poles pushing the surface up to infinity, zeros pin it down to the floor. The DTFT $|G(e^{j\omega})|$ is the height profile measured while walking along the unit circle.
Writing each factor at $z = e^{j\omega}$ as a vector difference gives a purely geometric recipe:
As $e^{j\omega}$ slides along the unit circle, the magnitude response peaks when it passes close to a pole (small denominator distance) and dips when it passes near a zero. Figure 5-3 demonstrates this for a resonator with poles at $0.9e^{\pm j\pi/4}$: the magnitude has a sharp peak near $\omega = \pi/4$.
zplane(b,a) draws this diagram directly from the coefficient vectors.
| $g[n]$ | $G(z)$ | ROC |
|---|---|---|
| $\delta[n]$ | $1$ | all $z$ |
| $\delta[n-m]$ | $z^{-m}$ | all $z$ except $0$ ($m>0$) or $\infty$ ($m<0$) |
| $\mu[n]$ | $\dfrac{1}{1-z^{-1}}$ | $|z|>1$ |
| $\alpha^n\mu[n]$ | $\dfrac{1}{1-\alpha z^{-1}}$ | $|z|>|\alpha|$ |
| $-\alpha^n\mu[-n-1]$ | $\dfrac{1}{1-\alpha z^{-1}}$ | $|z|<|\alpha|$ |
| $n\alpha^n\mu[n]$ | $\dfrac{\alpha z^{-1}}{(1-\alpha z^{-1})^2}$ | $|z|>|\alpha|$ |
| $r^n\cos(\omega_0 n)\,\mu[n]$ | $\dfrac{1-r\cos(\omega_0)\,z^{-1}}{1-2r\cos(\omega_0)\,z^{-1}+r^2z^{-2}}$ | $|z|>r$ |
| $r^n\sin(\omega_0 n)\,\mu[n]$ | $\dfrac{r\sin(\omega_0)\,z^{-1}}{1-2r\cos(\omega_0)\,z^{-1}+r^2z^{-2}}$ | $|z|>r$ |
The two sinusoidal pairs are each the sum of two complex-exponential terms with poles at $re^{\pm j\omega_0}$ — a conjugate pole pair(共軛極點對). Real sequences always have poles and zeros in conjugate pairs (or on the real axis).
With $g[n] \leftrightarrow G(z)$ (ROC $\mathcal{R}_g$) and $h[n] \leftrightarrow H(z)$ (ROC $\mathcal{R}_h$):
| Property | $g[n]$ side | $G(z)$ side | ROC |
|---|---|---|---|
| Linearity(線性) | $\alpha g[n]+\beta h[n]$ | $\alpha G(z)+\beta H(z)$ | at least $\mathcal{R}_g\cap\mathcal{R}_h$ |
| Time shift(時移) | $g[n-n_0]$ | $z^{-n_0}G(z)$ | $\mathcal{R}_g$ (except $0/\infty$) |
| Exponential scaling(指數加權) | $\alpha^n g[n]$ | $G(z/\alpha)$ | $|\alpha|\,\mathcal{R}_g$ |
| Time reversal(時間反轉) | $g[-n]$ | $G(1/z)$ | $1/\mathcal{R}_g$ |
| Conjugation(共軛) | $g^*[n]$ | $G^*(z^*)$ | $\mathcal{R}_g$ |
| Differentiation w.r.t. $z$(微分) | $n\,g[n]$ | $-z\,\dfrac{dG(z)}{dz}$ | $\mathcal{R}_g$ (except $0/\infty$) |
| Convolution(摺積) | $g[n]\circledast h[n]$ | $G(z)\,H(z)$ | at least $\mathcal{R}_g\cap\mathcal{R}_h$ |
Apply the z-transform to a general linear constant-coefficient difference equation (LCCDE), using linearity and the time-shift property:
$H(z) = \mathcal{Z}\{h[n]\}$ is the system function / transfer function(系統函數/轉移函數). The coefficients of the difference equation are read off directly as the coefficients of the rational polynomials — feedback coefficients $d_k$ in the denominator, feed-forward coefficients $p_k$ in the numerator. This is why rational z-transforms are written in powers of $z^{-1}$: each $z^{-k}$ is a delay of $k$ samples.
Three practical methods recover $g[n]$ from $G(z)$ + ROC. Method 1 is the formal definition; methods 2 and 3 are the ones actually used by hand.
On a circle $z = re^{j\omega}$ inside the ROC, $G(re^{j\omega})$ is the DTFT of $g[n]r^{-n}$. Applying the inverse DTFT to that weighted sequence and changing variables to $z$ gives:
where $C$ is any counterclockwise closed contour inside the ROC encircling the origin. By the residue theorem this picks out the coefficient of $z^{-n}$ in the Laurent series. The contour integral is rarely computed directly — it justifies the easier methods below.
Recognize table entries. Given $G(z) = \dfrac{1}{1-0.8z^{-1}}$ with ROC $|z|>0.8$, match to $\alpha^n\mu[n] \leftrightarrow \frac{1}{1-\alpha z^{-1}}$ and read off $g[n] = (0.8)^n\mu[n]$. The same $G(z)$ with ROC $|z|<0.8$ instead gives $g[n] = -(0.8)^n\mu[-n-1]$. The ROC decides which pair applies.
Since $G(z) = \sum_n g[n]z^{-n}$, expanding $G(z)$ into a power series in $z^{-1}$ (for a right-sided ROC) or in $z$ (left-sided ROC) reveals the samples one by one. For rational $G(z)$, the expansion is obtained by polynomial long division of the numerator by the denominator.
The workhorse method: rearrange $G(z)$ as a sum of terms recognized as simple z-transforms — especially $\dfrac{1}{1-\alpha z^{-1}} \leftrightarrow \alpha^n\mu[n]$ (or its left-sided twin). For $F(z) = \dfrac{P(z)}{\prod_{\ell=1}^{N}(1-\lambda_\ell z^{-1})}$ with order of $P(z)$ less than $N$ and no repeated poles:
The residue(留數)$\rho_\ell$ is found by covering up the pole's own factor and evaluating everything else at $z=\lambda_\ell$ — the cancelled factor is "dominated" by the remaining terms. Bookkeeping rules:
All three problems of ICE503 DSP Homework #5, restated with complete worked solutions.(以下為作業五全部題目與詳解。原題的 "LTE/LCCDE" 拼寫依文意更正為 LTI 系統與脈衝響應。)
Problem: The block diagram of a causal LTI system is shown below.
(a) Write the rational polynomials of the system $H(z)$.
(b) Use partial fractions to find the impulse response $h[n]$ of this system.
(c) Write the difference equation that characterizes the system with $x[n]$ and $y[n]$.
(a) Label the output of the first adder $v[n]$ (as marked). The two delays produce $v[n-1]$ and $v[n-2]$. Tracing the adders:
$$v[n] = x[n] - 0.1\,v[n-1] + 0.12\,v[n-2], \qquad y[n] = 2\,v[n] + 0.45\,v[n-1]$$Transforming both (time-shift property):
$$V(z)\big(1 + 0.1z^{-1} - 0.12z^{-2}\big) = X(z), \qquad Y(z) = \big(2 + 0.45z^{-1}\big)V(z)$$(b) Factor the denominator: roots of $z^2 + 0.1z - 0.12 = 0$ are $z = \dfrac{-0.1 \pm \sqrt{0.01+0.48}}{2} = \dfrac{-0.1\pm 0.7}{2} = 0.3,\ -0.4$, so
$$1 + 0.1z^{-1} - 0.12z^{-2} = (1 - 0.3z^{-1})(1 + 0.4z^{-1})$$Partial fractions $H(z) = \dfrac{\rho_1}{1-0.3z^{-1}} + \dfrac{\rho_2}{1+0.4z^{-1}}$ with cover-up residues:
$$\rho_1 = \frac{2+0.45z^{-1}}{1+0.4z^{-1}}\bigg|_{z=0.3} = \frac{2 + 0.45\cdot\frac{10}{3}}{1 + 0.4\cdot\frac{10}{3}} = \frac{3.5}{7/3} = 1.5, \qquad \rho_2 = \frac{2+0.45z^{-1}}{1-0.3z^{-1}}\bigg|_{z=-0.4} = \frac{2 - 1.125}{1 + 0.75} = \frac{0.875}{1.75} = 0.5$$The system is causal, so both poles take the right-sided pair:
Check: $h[0] = 1.5+0.5 = 2$ ✓ (the direct path through gain 2); $h[1] = 1.5(0.3)+0.5(-0.4) = 0.25$, and from the diagram $y[1] = 2v[1] + 0.45v[0] = 2(-0.1)+0.45 = 0.25$ ✓. Both poles ($0.3$, $-0.4$) are inside the unit circle → the causal system is also stable.
(c) Cross-multiplying $Y(z)\big(1+0.1z^{-1}-0.12z^{-2}\big) = X(z)\big(2+0.45z^{-1}\big)$ and inverse-transforming term by term:
equivalently $y[n] = -0.1\,y[n-1] + 0.12\,y[n-2] + 2\,x[n] + 0.45\,x[n-1]$.
Problem: When the input to an LTI system is
$$x[n] = \left(\tfrac{1}{3}\right)^n\mu[n] + 3^n\,\mu[-n-1]$$the output is
$$y[n] = 5\left(\tfrac{1}{3}\right)^n\mu[n] - 5\left(\tfrac{3}{4}\right)^n\mu[n]$$(a) Find the z-transforms of $x[n]$ and $y[n]$, and indicate their ROCs.
(b) Find the rational polynomials of the system $H(z)$, plot the pole(s) and zero(s), and indicate the ROC.
(c) Determine whether the system is causal and stable.
(d) Find the impulse response $h[n]$ of the system.
(e) Write the difference equation that characterizes the system.
(a) First term of $x[n]$: right-sided pair → $\dfrac{1}{1-\frac{1}{3}z^{-1}}$, ROC $|z|>\frac13$. Second term: $3^n\mu[-n-1] = -\big(-3^n\mu[-n-1]\big)$, the left-sided pair → $\dfrac{-1}{1-3z^{-1}}$, ROC $|z|<3$. By linearity (ring ROC, Case 3):
$$X(z) = \frac{1}{1-\tfrac{1}{3}z^{-1}} - \frac{1}{1-3z^{-1}} = \frac{(1-3z^{-1}) - (1-\tfrac{1}{3}z^{-1})}{(1-\tfrac{1}{3}z^{-1})(1-3z^{-1})} = \frac{-\tfrac{8}{3}z^{-1}}{(1-\tfrac{1}{3}z^{-1})(1-3z^{-1})}, \qquad \tfrac{1}{3} < |z| < 3$$Both terms of $y[n]$ are right-sided:
$$Y(z) = \frac{5}{1-\tfrac{1}{3}z^{-1}} - \frac{5}{1-\tfrac{3}{4}z^{-1}} = \frac{5\big[(1-\tfrac{3}{4}z^{-1})-(1-\tfrac{1}{3}z^{-1})\big]}{(1-\tfrac{1}{3}z^{-1})(1-\tfrac{3}{4}z^{-1})} = \frac{-\tfrac{25}{12}z^{-1}}{(1-\tfrac{1}{3}z^{-1})(1-\tfrac{3}{4}z^{-1})}, \qquad |z| > \tfrac{3}{4}$$(b) Convolution property: $Y(z) = H(z)X(z)$, so
$$H(z) = \frac{Y(z)}{X(z)} = \frac{-\tfrac{25}{12}z^{-1}}{(1-\tfrac{1}{3}z^{-1})(1-\tfrac{3}{4}z^{-1})} \cdot \frac{(1-\tfrac{1}{3}z^{-1})(1-3z^{-1})}{-\tfrac{8}{3}z^{-1}}$$One pole at $z = \frac34$ (×), one zero at $z = 3$ (○). The ROC must be chosen so that $\mathcal{R}_h \cap \mathcal{R}_x \subseteq \mathcal{R}_y$: since $\mathcal{R}_y = |z|>\frac34$ extends only down to the pole at $\frac34$, the ROC of $H$ is $|z|>\frac34$. Note the zero of $H$ at $z=3$ cancels the input pole at $z=3$, which is why $\mathcal{R}_y$ is larger than $\mathcal{R}_x$(極零相消使輸出 ROC 變大). Pole–zero plot (matching the MATLAB zplane result of Exercise 3):
(c) The ROC is the exterior of the (only, outermost) pole and includes $z=\infty$ → $h[n]$ is right-sided/causal. The ROC $|z|>\frac34$ contains the unit circle → stable. The system is both causal and stable(因果且穩定:唯一極點 $3/4$ 在單位圓內).
(d) Numerator and denominator have equal order, so first extract the constant. Write $H(z) = c_0 + \dfrac{\rho}{1-\frac34 z^{-1}}$. Matching the $z^{-1}\to\infty$ behavior (ratio of $z^{-1}$ coefficients): $c_0 = \frac{25}{32}\cdot\frac{-3}{-3/4} = \frac{25}{8}$. The residue by cover-up:
$$\rho = \left(1-\tfrac{3}{4}z^{-1}\right)H(z)\Big|_{z=3/4} = \tfrac{25}{32}\big(1 - 3\cdot\tfrac{4}{3}\big) = \tfrac{25}{32}(-3) = -\tfrac{75}{32}$$ $$H(z) = \frac{25}{8} - \frac{75/32}{1-\frac{3}{4}z^{-1}} \qquad (\text{check at } z^{-1}=0:\ \tfrac{25}{8}-\tfrac{75}{32} = \tfrac{25}{32} = H(\infty)\ \checkmark)$$Check: $h[0] = \frac{25}{8}-\frac{75}{32} = \frac{25}{32}$, which equals $H(z\to\infty)$ ✓.
(e) From $Y(z)\big(1-\frac34 z^{-1}\big) = \frac{25}{32}\big(1-3z^{-1}\big)X(z)$:
equivalently $y[n] = \frac{3}{4}y[n-1] + \frac{25}{32}x[n] - \frac{75}{32}x[n-1]$.
Problem: For the system $H(z)$ found in Exercise 2(b) (with the difference equation of 2(e)):
(a) Use the zplane function to plot the pole(s) and zero(s) of $H(z)$ — the result should match your sketch in 2(b).
(b) Use the freqz function to compute a 100-point frequency-response vector and the corresponding angular-frequency vector, then plot the magnitude and phase responses.
From Exercise 2, $H(z) = \dfrac{25}{32}\,\dfrac{1-3z^{-1}}{1-\frac34 z^{-1}}$, so the coefficient vectors of the difference equation are $\texttt{num} = \frac{25}{32}[1,\ -3]$ and $\texttt{den} = [1,\ -\frac34]$ (cleaned-up homework script):
clc, clear, close all
% H(z) = (25/32)(1 - 3 z^-1) / (1 - (3/4) z^-1)
numerator = (25/32) * [1, -3]; % feed-forward coefficients p_k
denominator = [1, -3/4]; % feedback coefficients d_k
%% (a) pole-zero plot
figure;
zplane(numerator, denominator);
grid on;
title('Pole-Zero Plot of H(z)');
set(findobj('type','line'), 'LineWidth', 2)
set(gca, 'FontSize', 20)
%% (b) 100-point frequency response
[H, w] = freqz(numerator, denominator, 100);
figure;
subplot(2,1,1);
plot(w/pi, abs(H), 'm');
title('Magnitude Response');
xlabel('Normalized Frequency (\times\pi rad/sample)');
ylabel('Magnitude');
set(gca, 'FontSize', 20)
set(findobj('type','line'), 'LineWidth', 4)
subplot(2,1,2);
plot(w/pi, angle(H), 'm');
title('Phase Response');
xlabel('Normalized Frequency (\times\pi rad/sample)');
ylabel('Phase (radians)');
set(gca, 'FontSize', 20)
set(findobj('type','line'), 'LineWidth', 4)
(a) zplane(numerator, denominator) places × at $z = 0.75$ and ○ at $z = 3$, exactly as sketched in Fig. 5-5 above(與 2(b) 的手繪極零點圖一致).
(b) The regenerated 100-point frequency response ($\omega$ from $0$ to $\pi$):
freqz result for $H(z)$. Magnitude falls monotonically from $|H(e^{j0})| = \frac{25}{32}\cdot\frac{-2}{1/4} = 6.25$ at DC to $|H(e^{j\pi})| = \frac{25}{32}\cdot\frac{4}{7/4} \approx 1.79$ at $\omega=\pi$ — a lowpass shape, consistent with the pole on the positive real axis at $z=0.75$(極點靠近 $z=1$,DC 增益最大).Sanity check by geometry (§5.3.3): at $\omega=0$ the pole distance $|1-0.75|=0.25$ is smallest → maximum gain; at $\omega=\pi$ the distance $|-1-0.75|=1.75$ is largest → minimum pole boost, while the zero at $3$ varies little. The phase is $0$ at $\omega = 0$ and returns to $\pm\pi$-free values smoothly since neither pole nor zero lies on the unit circle. Note $H(e^{j0}) = -6.25 < 0$ (the real zero at $z=3>1$ flips the sign), so the phase starts at $\pi$ rad.