Outline
5.1 The z-Transform
5.2 Region of Convergence
5.3 Rational z-Transforms
5.4 Properties and Pairs
5.5 The Inverse z-Transform
5.6 Summary
Exercises
DSP Study Guide · Chapter 5

The z-Transform

The z-transform and its region of convergence, poles and zeros, transform properties, and three routes back to the time domain — the algebraic engine behind LTI system analysis.

5.1 The z-Transform

5.1.1 Definition and the z-plane

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.

z-Transform (analysis equation) $$G(z) \;=\; \mathcal{Z}\{g[n]\} \;=\; \sum_{n=-\infty}^{\infty} g[n]\,z^{-n}, \qquad z \in \mathbb{C}$$

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.

Concept — why a power series?
$G(z)$ is a Laurent series(洛朗級數) in $z^{-1}$: the coefficient of $z^{-n}$ is exactly the sample $g[n]$. Negative-time samples multiply positive powers of $z$, positive-time samples multiply negative powers. Everything we know about power-series convergence (it converges in rings of the complex plane) transfers directly to the z-transform — that is the origin of all the ROC rules in §5.2.

5.1.2 Relation to the DTFT

Substituting $z = re^{j\omega}$ into the definition:

z-Transform as a DTFT of a weighted sequence $$G(re^{j\omega}) \;=\; \sum_{n=-\infty}^{\infty} \big(g[n]\,r^{-n}\big)\,e^{-j\omega n} \;=\; \mathcal{F}\{\,g[n]\,r^{-n}\,\}$$

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:

DTFTz-Transform
Variable$\omega$ real, $z=e^{j\omega}$ on the unit circle$z$ anywhere in $\mathbb{C}$
Exists forabsolutely / square-summable $g[n]$any exponentially bounded $g[n]$ (with proper ROC)
Periodicityperiodic in $\omega$ with period $2\pi$not periodic; one trip around a circle = one DTFT period
Main usefrequency content, filter responsesolving LCCDEs, poles/zeros, stability/causality analysis
Key — DTFT = z-transform on the unit circle
$G(e^{j\omega})$ is the slice of $G(z)$ along $|z|=1$. If the ROC of $G(z)$ contains the unit circle, the sequence has a DTFT (and, for an impulse response, the system is BIBO stable). Walking once around the unit circle ($\omega: 0 \to 2\pi$) traces exactly one period of the DTFT.

5.2 Region of Convergence (ROC)

5.2.1 Why the ROC is necessary

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).

Example 5-1 — Right-sided exponential $g[n] = \lambda^n \mu[n]$
Write the sum as a geometric series: $$G(z) = \sum_{n=0}^{\infty} \lambda^n z^{-n} = \sum_{n=0}^{\infty} (\lambda z^{-1})^n = \frac{1}{1-\lambda z^{-1}}$$
The geometric series converges iff $|\lambda z^{-1}| < 1$, i.e. $|z| > |\lambda|$. Hence $$\lambda^n \mu[n] \;\xleftrightarrow{\;\mathcal{Z}\;}\; \frac{1}{1-\lambda z^{-1}}, \qquad \text{ROC: } |z|>|\lambda| \quad (\text{outside the circle of radius } |\lambda|)$$
Example 5-2 — Left-sided exponential $g[n] = -\lambda^n \mu[-n-1]$
Now the sum runs over negative time only: $$G(z) = -\sum_{n=-\infty}^{-1} \lambda^n z^{-n} = -\sum_{m=1}^{\infty} (\lambda^{-1} z)^{m} = -\frac{\lambda^{-1}z}{1-\lambda^{-1}z} = \frac{1}{1-\lambda z^{-1}}$$
Convergence requires $|\lambda^{-1}z|<1$, i.e. $|z| < |\lambda|$: $$-\lambda^n \mu[-n-1] \;\xleftrightarrow{\;\mathcal{Z}\;}\; \frac{1}{1-\lambda z^{-1}}, \qquad \text{ROC: } |z|<|\lambda| \quad (\text{inside the circle})$$
Warning — the ROC is part of the answer
Examples 5-1 and 5-2 produce the same algebraic expression $\dfrac{1}{1-\lambda z^{-1}}$ for two completely different sequences. A single $G(z)$ formula can describe several sequences with different ROCs. To completely define a z-transform you must specify the ROC — omitting it is the classic exam mistake(沒寫 ROC 等於沒寫答案).
直觀解釋(點擊展開)
z 轉換本質上是一個冪級數,而冪級數「在哪些 $z$ 收斂」取決於訊號往哪個方向延伸:右邊($n\to+\infty$)的尾巴需要 $|z|$ 夠大才能被 $z^{-n}$ 壓下去;左邊($n\to-\infty$)的尾巴需要 $|z|$ 夠小。同一個代數式 $\frac{1}{1-\lambda z^{-1}}$ 配上「圓外」的 ROC 是因果遞減訊號,配上「圓內」的 ROC 卻是反因果訊號。所以 ROC 不是附註,而是答案的一半:它決定了你做反轉換時會得到哪一個時域序列。

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$).

2026-06-12T22:21:53.531628 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0.0 2.5 5.0 7.5 10.0 12.5 15.0 n 0.0 0.2 0.4 0.6 0.8 1.0 a^n u[n] a = 0.5 0.0 2.5 5.0 7.5 10.0 12.5 15.0 n 0.0 0.2 0.4 0.6 0.8 1.0 a^n u[n] a = 0.9 0.0 2.5 5.0 7.5 10.0 12.5 15.0 n 0.0 2.5 5.0 7.5 10.0 12.5 15.0 a^n u[n] a = 1.2 −1 0 1 Re(z) −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 Im(z) 0.5 0.9 1.2 pole of each transform at z = a
Fig. 5-1 — The family $a^n\mu[n]$ for $a=0.5,\,0.9,\,1.2$ (stem plots) and the pole location $z=a$ of each transform $1/(1-az^{-1})$ relative to the unit circle(每個序列的極點位置 $z=a$;$a>1$ 時極點在單位圓外,DTFT 不存在但 ZT 仍存在).

5.2.2 ROC properties

Key — facts about ROCs
  • The ROC is always defined in terms of $|z|$ only → circular regions(圓形區域): inside a circle, outside a circle, or a ring.
  • The ROC is bounded by poles and never contains a pole ($G(z)\to\infty$ there).
  • If the ROC includes the unit circle $|z|=1$, then $g[n]$ has a DTFT (finite-energy/absolutely-summable behavior).
  • A finite-length sequence converges for all $z$ except possibly $z=0$ (if $g[n]\ne 0$ for some $n>0$) and/or $z=\infty$ (if $g[n]\ne 0$ for some $n<0$).
  • The ROC is a single connected region — it is the intersection of the ROCs of all terms making up $g[n]$.

5.2.3 Sidedness and ROC shape

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 typeROC shapeIncludes
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 polesneither $0$ nor $\infty$
Finite-length(有限長度)entire plane except possibly $z=0$ and/or $z=\infty$
2026-06-12T22:21:53.729143 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −1 0 1 −1 0 1 right-sided: |z| > 0.7 −1 0 1 −1 0 1 left-sided: |z| < 1.3 −1 0 1 −1 0 1 two-sided: 0.7 < |z| < 1.3
Fig. 5-2 — The three ROC shapes for infinite-length sequences (shaded), with poles marked ×: right-sided → outside the outermost pole; left-sided → inside the innermost pole; two-sided → an annulus between poles(右邊序列在最外極點之外、左邊序列在最內極點之內、雙邊序列在兩極點之間的圓環). Dashed black circle = unit circle.

5.2.4 ROC intersections: four cases

Consider a transform with two poles $\lambda_1,\lambda_2$ where $|\lambda_1| < 1 < |\lambda_2|$ and no ROC specified:

Two-pole example $$G(z) = \frac{1}{1-\lambda_1 z^{-1}} + \frac{1}{1-\lambda_2 z^{-1}}, \qquad |\lambda_1| < 1 < |\lambda_2|$$

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$ termOverall ROCResulting $g[n]$
1right-sidedright-sided$|z|>|\lambda_2|$$(\lambda_1^n + \lambda_2^n)\,\mu[n]$ — right-sided
2left-sidedleft-sided$|z|<|\lambda_1|$$-(\lambda_1^n + \lambda_2^n)\,\mu[-n-1]$ — left-sided
3right-sidedleft-sided$|\lambda_1|<|z|<|\lambda_2|$$\lambda_1^n\mu[n] - \lambda_2^n\mu[-n-1]$ — two-sided
4left-sidedright-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.

Warning — two-sided exponential has no z-transform
The sequence $g[n] = \alpha^n$ for all $n$ ($-\infty < n < \infty$) splits as $\alpha^n\mu[n] + \alpha^n\mu[-n-1]$, requiring $|z|>|\alpha|$ and $|z|<|\alpha|$ simultaneously. There is no overlap, so the z-transform does not exist — the sum converges for no $z$ at all.

5.3 Rational z-Transforms, Poles and Zeros

5.3.1 Rational and factored forms

$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:

Rational z-transform $$G(z) = \frac{P(z)}{D(z)} = \frac{p_0 + p_1 z^{-1} + \cdots + p_{M-1}z^{-(M-1)} + p_M z^{-M}}{d_0 + d_1 z^{-1} + \cdots + d_{N-1}z^{-(N-1)} + d_N z^{-N}}$$

Factoring numerator and denominator exposes the roots:

Factored form — zeros $\xi_\ell$ and poles $\lambda_\ell$ $$G(z) = \frac{p_0}{d_0}\,\frac{\displaystyle\prod_{\ell=1}^{M}\big(1-\xi_\ell z^{-1}\big)}{\displaystyle\prod_{\ell=1}^{N}\big(1-\lambda_\ell z^{-1}\big)}$$

5.3.2 Pole–zero diagram and the z-plane surface

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.

5.3.3 Geometric evaluation of the DTFT

Writing each factor at $z = e^{j\omega}$ as a vector difference gives a purely geometric recipe:

Geometric magnitude evaluation $$\big|G(e^{j\omega})\big| = \left|\frac{p_0}{d_0}\right|\, \frac{\displaystyle\prod_{\ell=1}^{M}\big|e^{j\omega}-\xi_\ell\big|}{\displaystyle\prod_{\ell=1}^{N}\big|e^{j\omega}-\lambda_\ell\big|} = |K|\,\frac{\prod(\text{distances to zeros})}{\prod(\text{distances to poles})}$$

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$.

2026-06-12T22:21:53.889786 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −1 0 1 Re(z) −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 Im(z) (2) e^jω poles at 0.9e^±jπ/4, double zero at z = 0 0.0 0.2 0.4 0.6 0.8 1.0 ω / π 0 1 2 3 4 5 6 7 |H(e^jω)| ω = π/4 magnitude response (peak near pole angle)
Fig. 5-3 — Geometric evaluation: poles at $0.9e^{\pm j\pi/4}$ (×) and a double zero at the origin (○). The green segments are the pole-to-$e^{j\omega}$ distance vectors; as $e^{j\omega}$ passes near the pole, the distance shrinks and $|H(e^{j\omega})|$ peaks near $\omega=\pi/4$(頻率響應在靠近極點的角度出現峰值,靠近零點的角度出現谷值).
Tip — read filters off the pole–zero plot
Poles near the unit circle at angle $\omega_0$ → resonance/passband near $\omega_0$. Zeros on the unit circle at $\omega_1$ → a null at $\omega_1$. Poles clustered near $z=1$ (DC) → lowpass; near $z=-1$ ($\omega=\pi$) → highpass. MATLAB's zplane(b,a) draws this diagram directly from the coefficient vectors.

5.4 z-Transform Properties and Common Pairs

5.4.1 Common z-transform pairs

$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).

5.4.2 z-Transform properties

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)$ sideROC
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$
Key — convolution becomes multiplication
$y[n] = h[n]\circledast x[n] \;\Longleftrightarrow\; Y(z) = H(z)\,X(z)$, with $\mathcal{R}_y \supseteq \mathcal{R}_h\cap\mathcal{R}_x$. The ROC of $Y$ can be larger than the intersection when a zero of one transform cancels a pole of the other(極零相消會擴大 ROC)— this is exactly what happens in Homework problem 2.
Example 5-3 — ZT via properties: $g[n] = n\,(0.5)^n\,\mu[n]$
Start from the basic pair $(0.5)^n\mu[n] \leftrightarrow \dfrac{1}{1-0.5z^{-1}}$, ROC $|z|>0.5$.
Apply differentiation: $n\,g_1[n] \leftrightarrow -z\dfrac{d}{dz}\Big[\dfrac{1}{1-0.5z^{-1}}\Big] = -z\cdot\dfrac{-0.5z^{-2}}{(1-0.5z^{-1})^2}$
Result: $G(z) = \dfrac{0.5z^{-1}}{(1-0.5z^{-1})^2}$, ROC $|z|>0.5$ — matching the $n\alpha^n\mu[n]$ table entry.
Example 5-4 — ZT of a two-sided sum: $g[n] = (0.5)^n\mu[n] + 2^n\mu[-n-1]$
First term: $\dfrac{1}{1-0.5z^{-1}}$, ROC $|z|>0.5$. Second term: from the left-sided pair, $2^n\mu[-n-1] \leftrightarrow \dfrac{-1}{1-2z^{-1}}$, ROC $|z|<2$.
By linearity: $$G(z) = \frac{1}{1-0.5z^{-1}} - \frac{1}{1-2z^{-1}} = \frac{-1.5z^{-1}}{(1-0.5z^{-1})(1-2z^{-1})}, \qquad 0.5 < |z| < 2$$
The ROC is the ring between the two poles (Case 3 of §5.2.4); it contains the unit circle, so this two-sided sequence has a DTFT.

5.4.3 System function of an LCCDE; causality and stability

Apply the z-transform to a general linear constant-coefficient difference equation (LCCDE), using linearity and the time-shift property:

From LCCDE to system function $$\sum_{k=0}^{N} d_k\, y[n-k] = \sum_{k=0}^{M} p_k\, x[n-k] \;\;\Longrightarrow\;\; H(z) = \frac{Y(z)}{X(z)} = \frac{\displaystyle\sum_{k=0}^{M} p_k z^{-k}}{\displaystyle\sum_{k=0}^{N} d_k z^{-k}} = \frac{P(z)}{D(z)}$$

$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.

Key — causality and stability from the ROC of H(z)
  • Causal(因果) ⟺ $h[n]$ right-sided starting at $n\ge 0$ ⟺ ROC is the exterior of the outermost pole and includes $z=\infty$.
  • Stable(穩定) ⟺ $\sum_n |h[n]| < \infty$ ⟺ ROC includes the unit circle $|z|=1$.
  • Causal and stable ⟺ all poles strictly inside the unit circle (with ROC outside the outermost pole).
直觀解釋(點擊展開)
因果性與穩定性都寫在 ROC 上:因果 ⇒ $h[n]$ 是右邊序列 ⇒ ROC 在最外圈極點之外;穩定 ⇒ $h[n]$ 絕對可和 ⇒ DTFT 存在 ⇒ ROC 包含單位圓。兩者要同時成立,唯一的辦法是所有極點都落在單位圓內。直覺上:每個極點 $\lambda$ 對因果系統貢獻一項 $\lambda^n\mu[n]$,$|\lambda|<1$ 才會衰減;只要有一個極點在圓上或圓外,脈衝響應就不收斂,系統就不穩定。

5.5 The Inverse z-Transform

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.

5.5.1 IZT #1 — Contour-integral definition (generalize the IDTFT)

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:

Inverse z-transform (synthesis equation) $$g[n] = \frac{1}{2\pi j}\oint_{C} G(z)\, z^{\,n-1}\, dz$$

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.

5.5.2 Inspection(觀察法)

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.

5.5.3 IZT #2 — Power series and long division(長除法)

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.

Example 5-5 — Long division of $H(z) = \dfrac{1+2z^{-1}}{1+0.4z^{-1}-0.12z^{-2}}$, ROC $|z|>0.6$
ROC is outside the outermost pole → right-sided → divide to obtain ascending powers of $z^{-1}$.
Step 1: $1+2z^{-1} \div (1+0.4z^{-1}-0.12z^{-2})$ → first quotient term $1$; remainder $1.6z^{-1}+0.12z^{-2}$.
Step 2: next term $1.6z^{-1}$; remainder $(0.12+0.64-0.52\ldots)$ → $-0.52z^{-2}$ term, and so on: $$H(z) = 1 + 1.6z^{-1} - 0.52z^{-2} + 0.4z^{-3} - \cdots$$
Read off $h[n] = \{\,\underline{1},\ 1.6,\ -0.52,\ 0.4,\ \ldots\,\}$ starting at $n=0$. Long division gives numeric samples quickly but no closed form(只得到數值,不易看出封閉式).

5.5.4 IZT #3 — Partial fractions(部分分式)

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:

Partial-fraction expansion and residues $$F(z) = \sum_{\ell=1}^{N} \frac{\rho_\ell}{1-\lambda_\ell z^{-1}}, \qquad \rho_\ell = \big(1-\lambda_\ell z^{-1}\big)\,F(z)\Big|_{z=\lambda_\ell} \qquad\Longrightarrow\qquad f[n] = \sum_{\ell=1}^{N} \rho_\ell\,(\lambda_\ell)^n\,\mu[n] \;\;\text{(if ROC } |z|>\text{all } |\lambda_\ell|)$$

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:

Example 5-6 — Partial fractions on the same $H(z) = \dfrac{1+2z^{-1}}{1+0.4z^{-1}-0.12z^{-2}}$
Factor: $1+0.4z^{-1}-0.12z^{-2} = (1+0.6z^{-1})(1-0.2z^{-1})$ — poles at $\lambda_1 = -0.6$, $\lambda_2 = 0.2$.
Residues (cover-up rule): $$\rho_1 = \frac{1+2z^{-1}}{1-0.2z^{-1}}\bigg|_{z=-0.6} = \frac{1+2(-\tfrac{1}{0.6})}{1-0.2(-\tfrac{1}{0.6})} = \frac{-2.333}{1.333} = -1.75, \qquad \rho_2 = \frac{1+2z^{-1}}{1+0.6z^{-1}}\bigg|_{z=0.2} = \frac{1+10}{1+3} = 2.75$$
Hence $H(z) = \dfrac{-1.75}{1+0.6z^{-1}} + \dfrac{2.75}{1-0.2z^{-1}}$. With ROC $|z|>0.6$ (causal $h[n]$): $$\boxed{\,h[n] = -1.75\,(-0.6)^n\,\mu[n] + 2.75\,(0.2)^n\,\mu[n]\,}$$
Check against long division: $h[0]=-1.75+2.75=1$, $h[1]=1.05+0.55=1.6$, $h[2]=-0.63-(-0.11)=-0.52$ … = $\{1,\ 1.6,\ -0.52,\ 0.4,\ldots\}$ — the same as Example 5-5, but now in closed form.
2026-06-12T22:21:53.994058 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0 2 4 6 8 10 n −0.5 0.0 0.5 1.0 1.5 h[n] h[n] = −1.75(−0.6)^n μ[n] + 2.75(0.2)^n μ[n]
Fig. 5-4 — Impulse response of Examples 5-5/5-6: $h[n] = -1.75(-0.6)^n\mu[n] + 2.75(0.2)^n\mu[n]$. The first samples $\{1, 1.6, -0.52, 0.4, \ldots\}$ agree with the long-division expansion; the alternating decay comes from the negative pole at $-0.6$(負極點造成正負交替衰減).
直觀解釋(點擊展開)
部分分式法的精神:任何有理 $G(z)$ 都是「每個極點各出一項」的疊加,而每一項 $\frac{\rho_\ell}{1-\lambda_\ell z^{-1}}$ 正是我們最熟悉的指數序列。求留數的「遮蓋法」之所以成立,是因為在 $z\to\lambda_\ell$ 時該極點的項發散、主宰一切,其他項都相形見絀——把 $(1-\lambda_\ell z^{-1})$ 乘掉後取極限,留下的就是該項的係數。最後別忘了用 ROC 決定每個極點對應右邊還是左邊序列。

5.6 Summary

Definition & DTFT link
$G(z)=\sum_n g[n]z^{-n}$, $z\in\mathbb{C}$. On $|z|=1$: $G(e^{j\omega})$ = DTFT. $G(re^{j\omega})$ = DTFT of $g[n]r^{-n}$ — the weight $r^{-n}$ buys convergence for non-summable signals.
ROC rules
Always a circular region bounded by poles; never contains a pole. Right-sided → outside outermost pole; left-sided → inside innermost; two-sided → annulus; finite-length → all $z$ (except $0/\infty$). A ZT without ROC is incomplete.
Essential pairs
$\delta[n]\leftrightarrow 1$; $\alpha^n\mu[n]\leftrightarrow\frac{1}{1-\alpha z^{-1}},\,|z|>|\alpha|$; $-\alpha^n\mu[-n-1]\leftrightarrow$ same formula, $|z|<|\alpha|$; $n\alpha^n\mu[n]\leftrightarrow\frac{\alpha z^{-1}}{(1-\alpha z^{-1})^2}$.
Key properties
Shift → $z^{-n_0}$; $\alpha^n g[n]\to G(z/\alpha)$; $g[-n]\to G(1/z)$; $ng[n]\to -z\,dG/dz$; convolution → product. ROCs intersect (and may grow via pole–zero cancellation).
System function
LCCDE $\sum d_k y[n-k]=\sum p_k x[n-k]$ ⟺ $H(z)=P(z)/D(z)$. Causal ⟺ ROC outside outermost pole; stable ⟺ ROC ⊇ unit circle; both ⟺ all poles inside $|z|=1$.
Inverse z-transform
(1) contour integral $\frac{1}{2\pi j}\oint G(z)z^{n-1}dz$ — formal; (2) long division — numeric samples; (3) partial fractions $\sum \rho_\ell/(1-\lambda_\ell z^{-1})$ with cover-up residues — closed form. ROC picks right/left side per pole.

Exercises

All three problems of ICE503 DSP Homework #5, restated with complete worked solutions.(以下為作業五全部題目與詳解。原題的 "LTE/LCCDE" 拼寫依文意更正為 LTI 系統與脈衝響應。)

Exercise 1 — Block diagram → H(z), h[n], difference equation

Problem: The block diagram of a causal LTI system is shown below.

x[n] v[n] 2 y[n] z⁻¹ 0.45 −0.1 z⁻¹ 0.12
Figure (Ex. 1) — Block diagram of the LTI system (direct form II: feedback taps −0.1, 0.12; feed-forward taps 2, 0.45).

(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]$.

Click to reveal solution

(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)$$
System function $$H(z) = \frac{Y(z)}{X(z)} = \frac{2 + 0.45z^{-1}}{1 + 0.1z^{-1} - 0.12z^{-2}}, \qquad \text{ROC: } |z| > 0.4 \ \text{(causal)}$$

(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:

Impulse response $$h[n] = 1.5\,(0.3)^n\,\mu[n] \;+\; 0.5\,(-0.4)^n\,\mu[n]$$

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:

Difference equation $$y[n] + 0.1\,y[n-1] - 0.12\,y[n-2] = 2\,x[n] + 0.45\,x[n-1]$$

equivalently $y[n] = -0.1\,y[n-1] + 0.12\,y[n-2] + 2\,x[n] + 0.45\,x[n-1]$.

Exercise 2 — System identification from input/output pair

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.

Click to reveal solution

(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}}$$
System function $$H(z) = \frac{25}{32}\,\frac{1-3z^{-1}}{1-\tfrac{3}{4}z^{-1}}, \qquad \text{ROC: } |z| > \tfrac{3}{4}$$

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):

2026-06-12T22:21:54.093351 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −2 −1 0 1 2 3 Re(z) −2.0 −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 2.0 Im(z) H(z): pole 3/4, zero 3, ROC |z| > 3/4 (shaded) pole z = 3/4 zero z = 3
Fig. 5-5 — Pole–zero diagram of $H(z)$: pole at $z=3/4$ (×), zero at $z=3$ (○), ROC $|z|>3/4$ shaded(綠色區域為 ROC,包含單位圓與無窮遠點).

(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)$$
Impulse response $$h[n] = \frac{25}{8}\,\delta[n] \;-\; \frac{75}{32}\left(\frac{3}{4}\right)^n \mu[n]$$

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)$:

Difference equation $$y[n] - \frac{3}{4}\,y[n-1] = \frac{25}{32}\,x[n] - \frac{75}{32}\,x[n-1]$$

equivalently $y[n] = \frac{3}{4}y[n-1] + \frac{25}{32}x[n] - \frac{75}{32}x[n-1]$.

Exercise 3 — MATLAB: zplane and freqz

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.

Click to reveal solution

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$):

2026-06-12T22:21:55.204823 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0.0 0.2 0.4 0.6 0.8 1.0 Normalized Frequency (×π rad/sample) 2 3 4 5 6 Magnitude Magnitude Response 0.0 0.2 0.4 0.6 0.8 1.0 Normalized Frequency (×π rad/sample) 0 1 2 3 Phase (radians) Phase Response
Fig. 5-6 — 100-point 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.