Outline大綱アウトライン
4.1 The Fourier Domain4.1 傅立葉域4.1 フーリエ領域
4.2 The DTFT4.2 DTFT4.2 DTFT(離散時間フーリエ変換)
4.3 DTFTs of Simple Sequences4.3 簡單序列的 DTFT4.3 簡単な系列の DTFT
4.4 DTFT Theorems4.4 DTFT 定理4.4 DTFT の定理
4.5 Parseval & Energy Spectrum4.5 Parseval 與能量頻譜4.5 パーセバルの関係とエネルギースペクトル
4.6 Magnitude, Phase, Group Delay4.6 振幅、相位與群延遲4.6 振幅・位相・群遅延
4.7 Summary4.7 本章總結4.7 本章のまとめ
Exercises習題演習問題
Figures圖表図表
DSP Study Guide · Chapter 4
DSP 學習指南 · 第 4 章
DSP 学習ガイド · 第 4 章

Fourier Domain傅立葉域フーリエ領域

From Fourier series to the discrete-time Fourier transform: frequency response, DTFT pairs and theorems, Parseval's relation, and group delay.
從傅立葉級數到離散時間傅立葉轉換:頻率響應、DTFT 轉換對與定理、Parseval 關係式,以及群延遲。
フーリエ級数から離散時間フーリエ変換へ:周波数応答、DTFT の変換対と定理、パーセバルの関係、そして群遅延。

4.1 The Fourier Domain4.1 傅立葉域4.1 フーリエ領域

Joseph Fourier (1768–1830) claimed that any function of a variable — continuous or discontinuous — can be expanded in a series of sines of multiples of that variable. The modern statement is more careful about convergence, but the idea survives intact: signals can be represented as sums (or integrals) of sinusoids, and this representation — the Fourier domain(傅立葉域 / 頻域) — is where LTI systems become simple to analyze.

Joseph Fourier(1768–1830)主張:任何一個變數的函數——不論連續或不連續——都可以展開成該變數各倍數的正弦級數。現代的敘述對收斂性講究得多,但核心想法原封不動地保留了下來:訊號可以表示成弦波的和(或積分),而這個表示法——傅立葉域(Fourier domain,又稱頻域)——正是讓 LTI 系統變得容易分析的地方。

Joseph Fourier(1768–1830)は、ある変数の任意の関数は——連続であれ不連続であれ——その変数の整数倍の正弦の級数に展開できる、と主張した。現代の言明は収束について遥かに慎重だが、着想はそのまま生き残っている。すなわち、信号は正弦波の和(あるいは積分)として表現でき、この表現——フーリエ領域(Fourier domain / 周波数領域)——こそが LTI システムの解析を簡単にしてくれる場所である。

4.1.1 Fourier series and Fourier coefficients4.1.1 傅立葉級數與傅立葉係數4.1.1 フーリエ級数とフーリエ係数

A periodic signal $x(t)$ with period $T$ (fundamental frequency $\Omega_0 = 2\pi/T$) can be approximated by a sum of harmonics(諧波) of the fundamental frequency:

週期為 $T$(基頻 $\Omega_0 = 2\pi/T$)的週期訊號 $x(t)$,可以用基頻各諧波(harmonics)的和來逼近:

周期 $T$(基本周波数 $\Omega_0 = 2\pi/T$)をもつ周期信号 $x(t)$ は、基本周波数の高調波(harmonics)の和で近似できる:

Fourier series (synthesis) 傅立葉級數(合成式)フーリエ級数(合成式) $$x(t) = a_0 + \sum_{k=1}^{\infty}\bigl[a_k\cos(k\Omega_0 t) + b_k\sin(k\Omega_0 t)\bigr] = \sum_{k=-\infty}^{\infty} c_k\, e^{jk\Omega_0 t}$$
Fourier coefficients (analysis) 傅立葉係數(分析式)フーリエ係数(分析式) $$c_k = \frac{1}{T}\int_{T} x(t)\, e^{-jk\Omega_0 t}\, dt$$

Equivalently, each harmonic pair $a_k\cos + b_k\sin$ can be written as a single sinusoid with an amplitude and a phase shift(相位移): $A_k\cos(k\Omega_0 t + \phi_k)$ with $A_k = \sqrt{a_k^2+b_k^2}$, $\phi_k = -\arctan(b_k/a_k)$. The set $\{c_k\}$ is the signal, viewed in the Fourier domain.

等價地,每一對諧波 $a_k\cos + b_k\sin$ 都可以寫成單一個帶振幅與相位移(phase shift)的弦波:$A_k\cos(k\Omega_0 t + \phi_k)$,其中 $A_k = \sqrt{a_k^2+b_k^2}$、$\phi_k = -\arctan(b_k/a_k)$。集合 $\{c_k\}$ 就是這個訊號,只是從傅立葉域來看它。

同じことだが、各高調波の対 $a_k\cos + b_k\sin$ は、振幅と位相シフト(phase shift)をもつ単一の正弦波として書ける。すなわち $A_k\cos(k\Omega_0 t + \phi_k)$、ただし $A_k = \sqrt{a_k^2+b_k^2}$、$\phi_k = -\arctan(b_k/a_k)$ である。集合 $\{c_k\}$ こそが、フーリエ領域から見た信号そのものである。

為什麼右邊的和要從 −∞ 加到 +∞?——負頻率與複指數形式(點擊展開)

因為 Euler 公式把每一個實數餘弦拆成一對「反向旋轉的相量」——正頻率一個、負頻率一個。這就是右邊那個和要從 $-\infty$ 加到 $+\infty$ 的原因。

代數推導:把三角函數換成指數

$$\cos(k\Omega_0 t)=\frac{e^{jk\Omega_0 t}+e^{-jk\Omega_0 t}}{2},\qquad \sin(k\Omega_0 t)=\frac{e^{jk\Omega_0 t}-e^{-jk\Omega_0 t}}{2j}$$

代入括號裡那一項,再按 $e^{\pm jk\Omega_0 t}$ 收集:

$$a_k\cos + b_k\sin =\underbrace{\frac{a_k-jb_k}{2}}_{c_k}\,e^{jk\Omega_0 t} +\underbrace{\frac{a_k+jb_k}{2}}_{c_{-k}}\,e^{-jk\Omega_0 t}$$

(用到 $1/j=-j$。)所以第 $k$ 項並沒有消失,只是被劈成兩半放到 $+k$ 和 $-k$ 兩個位置。再加上 $c_0=a_0$,左右兩式就完全相同。

負頻率不是物理上的東西,是記帳方式。 實際訊號當然只有一個頻率 $k\Omega_0$。負頻率項存在的唯一理由,是為了讓虛部自動歸零。這給出一個很重要的條件:

$$x(t)\in\mathbb{R}\iff c_{-k}=c_k^{*}\quad(\text{Hermitian symmetry})$$

也就是振幅頻譜 $|c_k|$ 偶對稱、相位頻譜 $\angle c_k$ 奇對稱。這也是為什麼實訊號的頻譜「一半是多餘的」——SDR 裡做 complex baseband 時只留單邊,資訊量完全沒少。反過來,如果 $c_{-k}\neq c_k^*$,合成出來就是複數訊號(I/Q 訊號),那正是 image rejection 要處理的情境。

三種寫法是同一組資料的三種座標:

表示法 參數 換算
直角 $(a,b)$ $a_k,\ b_k$ —
極座標 $A_k,\ \phi_k$ $A_k=\sqrt{a_k^2+b_k^2}$
複指數 $c_k$ $c_k=\tfrac{a_k-jb_k}{2}$,故 $A_k=2\lvert c_k\rvert$,$\phi_k=\angle c_k$

注意 $A_k=2|c_k|$ 那個 2:能量被分給了 $\pm k$ 兩根譜線,所以單邊振幅是單根複數係數的兩倍。畫功率譜時漏掉這個 factor 是常見的 3 dB 錯誤。

為什麼工程上偏好複指數那一式:

  1. 係數只要一條積分公式:$c_k=\frac{1}{T}\int_T x(t)\,e^{-jk\Omega_0 t}\,dt$,不用分 $a_k$、$b_k$ 兩條。
  2. $e^{jk\Omega_0 t}$ 是 LTI 系統的特徵函數——過系統只會被乘上 $H(jk\Omega_0)$,不會變波形。用 cos/sin 就得處理它們互相耦合。
  3. 微分變成乘 $jk\Omega_0$,摺積變成相乘,推導全部代數化。
  4. 直接接得上 DFT/FFT,那本來就是複指數基底。

From the magnitude–phase form to the complex form從振幅相位式到複數式振幅・位相の形から複素形へ

Lecture slides often write the truncated ($M$-harmonic) series in two ways that look different but are the same sum. The real (cosine) form runs over non-negative harmonics only, while the complex exponential form runs from $-M$ to $+M$:

課堂投影片常把截斷($M$ 個諧波)的級數寫成兩種看起來不同、其實完全相同的形式。實數(餘弦)形式只跑非負諧波,而複指數形式則從 $-M$ 跑到 $+M$:

講義スライドでは、打ち切った($M$ 次までの)級数を、見た目は違うが実は同じ和である二通りの形で書くことが多い。実数(余弦)形は非負の高調波だけを走るのに対し、複素指数形は $-M$ から $+M$ まで走る:

The same partial sum, two notations 同一個部分和,兩種記法同じ部分和の、二つの記法 $$\tilde{x}(t)=\sum_{k=0}^{M} c_k\cos\!\left(\frac{2\pi k}{T}t+\phi_k\right) \;=\;\sum_{k=-M}^{M} X_k\, e^{\,j\frac{2\pi k}{T}t} \qquad\text{with } X_k=\frac{c_k}{2}e^{j\phi_k}\ (k\ge 1),\quad X_{-k}=X_k^{*}$$

Euler's formula is the whole story: it splits each real cosine into two complex exponentials, one at $+k$ and one at $-k$. The negative-frequency half of the second sum is not new content — it is the other half of each cosine.

Euler 公式就是全部的答案:它把每一個實數餘弦劈成兩個複指數,一個在 $+k$、一個在 $-k$。第二個和式裡的負頻率那一半並不是新增的內容——它是每個餘弦的另外一半。

オイラーの公式がすべてを語っている。各実数余弦を二つの複素指数に、一方を $+k$、他方を $-k$ に分割するのである。二番目の和の負周波数側の半分は新しい内容ではない。各余弦のもう半分にすぎない。

Derivation — splitting the cosine推導 —— 把餘弦劈成兩半導出 — 余弦を二つに割る
Step 1 — apply Euler's formula. Write $\theta_k = 2\pi k t/T$. Since $\cos x=\tfrac12\!\left(e^{jx}+e^{-jx}\right)$, $$c_k\cos(\theta_k+\phi_k) =\frac{c_k}{2}e^{j\phi_k}e^{j\theta_k}+\frac{c_k}{2}e^{-j\phi_k}e^{-j\theta_k}$$ The single real harmonic has become two counter-rotating phasors of half the amplitude.
第 1 步 —— 套用 Euler 公式。令 $\theta_k = 2\pi k t/T$。由於 $\cos x=\tfrac12\!\left(e^{jx}+e^{-jx}\right)$, $$c_k\cos(\theta_k+\phi_k) =\frac{c_k}{2}e^{j\phi_k}e^{j\theta_k}+\frac{c_k}{2}e^{-j\phi_k}e^{-j\theta_k}$$ 一個實數諧波就變成了兩個振幅減半、反向旋轉的相量。
第 1 段階 — オイラーの公式を適用する。$\theta_k = 2\pi k t/T$ と置く。$\cos x=\tfrac12\!\left(e^{jx}+e^{-jx}\right)$ であるから、 $$c_k\cos(\theta_k+\phi_k) =\frac{c_k}{2}e^{j\phi_k}e^{j\theta_k}+\frac{c_k}{2}e^{-j\phi_k}e^{-j\theta_k}$$ 一つの実数高調波が、振幅が半分で互いに逆回転する二つのフェーザになった。
Step 2 — name the complex coefficient. Define $X_k=\tfrac{c_k}{2}e^{j\phi_k}$. The second coefficient is then exactly its conjugate, $\tfrac{c_k}{2}e^{-j\phi_k}=X_k^{*}$, so each cosine reads $$X_k\,e^{j\theta_k}+X_k^{*}\,e^{-j\theta_k}$$ All of the amplitude and phase information of the harmonic now sits in the single complex number $X_k$: $|X_k|=c_k/2$ and $\angle X_k=\phi_k$.
第 2 步 —— 為複數係數命名。定義 $X_k=\tfrac{c_k}{2}e^{j\phi_k}$。第二個係數剛好就是它的共軛 $\tfrac{c_k}{2}e^{-j\phi_k}=X_k^{*}$,於是每個餘弦可以寫成 $$X_k\,e^{j\theta_k}+X_k^{*}\,e^{-j\theta_k}$$ 這個諧波的振幅與相位資訊,現在全都裝進單一個複數 $X_k$ 裡:$|X_k|=c_k/2$、$\angle X_k=\phi_k$。
第 2 段階 — 複素係数に名前を与える。$X_k=\tfrac{c_k}{2}e^{j\phi_k}$ と定義する。すると二番目の係数はちょうどその共役 $\tfrac{c_k}{2}e^{-j\phi_k}=X_k^{*}$ となり、各余弦は $$X_k\,e^{j\theta_k}+X_k^{*}\,e^{-j\theta_k}$$ と読める。この高調波の振幅と位相の情報は、いまや単一の複素数 $X_k$ に収まっている。すなわち $|X_k|=c_k/2$、$\angle X_k=\phi_k$ である。
Step 3 — recognize the negative frequency. The second term is the same kind of exponential as the first, only with index $-k$, because $e^{-j\theta_k}=e^{\,j2\pi(-k)t/T}$. Defining $X_{-k}=X_k^{*}$ turns the pair into two entries of one indexed family: $$X_k\,e^{\,j\frac{2\pi k}{T}t}+X_{-k}\,e^{\,j\frac{2\pi(-k)}{T}t}$$
第 3 步 —— 把它認出來是負頻率。第二項和第一項是同一種指數,只是索引變成 $-k$,因為 $e^{-j\theta_k}=e^{\,j2\pi(-k)t/T}$。定義 $X_{-k}=X_k^{*}$,這一對就成了同一個索引族的兩個成員: $$X_k\,e^{\,j\frac{2\pi k}{T}t}+X_{-k}\,e^{\,j\frac{2\pi(-k)}{T}t}$$
第 3 段階 — 負周波数だと見抜く。$e^{-j\theta_k}=e^{\,j2\pi(-k)t/T}$ であるから、第二項は第一項と同種の指数であり、ただ添字が $-k$ になっているだけである。$X_{-k}=X_k^{*}$ と定義すれば、この対は一つの添字づけられた族の二つの要素になる: $$X_k\,e^{\,j\frac{2\pi k}{T}t}+X_{-k}\,e^{\,j\frac{2\pi(-k)}{T}t}$$
Step 4 — sum over $k$. Each $k$ from $1$ to $M$ contributes one term at $+k$ and one at $-k$. Together they fill every index from $-M$ to $M$ except $0$ — which is precisely why the second sum runs over $k=-M,\dots,-1,0,1,\dots,M$.
第 4 步 —— 對 $k$ 求和。從 $1$ 到 $M$ 的每個 $k$ 各貢獻一項在 $+k$、一項在 $-k$。合起來剛好填滿 $-M$ 到 $M$ 之間除了 $0$ 以外的每一個索引——這正是第二個和式要跑 $k=-M,\dots,-1,0,1,\dots,M$ 的原因。
第 4 段階 — $k$ について和をとる。$1$ から $M$ までの各 $k$ が $+k$ に一項、$-k$ に一項を寄与する。合わせると $-M$ から $M$ までの $0$ 以外のすべての添字がちょうど埋まる——これこそ、二番目の和が $k=-M,\dots,-1,0,1,\dots,M$ を走る理由である。
The $k=0$ term. Here $\theta_0=0$, so $c_0\cos(0+\phi_0)=c_0\cos\phi_0$ is a single real constant (the DC level); with the usual convention $\phi_0=0$ it is just $c_0$. It has no negative-frequency partner, so it appears once, as $X_0=c_0\cos\phi_0$.
$k=0$ 這一項。此時 $\theta_0=0$,所以 $c_0\cos(0+\phi_0)=c_0\cos\phi_0$ 是一個實數常數(直流準位);依慣例取 $\phi_0=0$ 時它就是 $c_0$。它沒有負頻率的搭檔,所以只出現一次,即 $X_0=c_0\cos\phi_0$。
$k=0$ の項。ここでは $\theta_0=0$ なので、$c_0\cos(0+\phi_0)=c_0\cos\phi_0$ は単一の実定数(直流レベル)である。通常の慣例どおり $\phi_0=0$ とすれば、それは単に $c_0$ となる。この項には負周波数の相方がいないので、$X_0=c_0\cos\phi_0$ として一度だけ現れる。
Notation trap — the symbol $c_k$ is reused
記號陷阱 —— $c_k$ 這個符號被重複使用了
記号の罠 — $c_k$ という記号は使い回されている

Many slides write the complex form as $\sum_{k=-M}^{M} c_k e^{j2\pi kt/T}$, using the same letter $c_k$ that denoted the real amplitude in the cosine form. These are not the same number. In the complex form $c_k$ means the complex coefficient $X_k=\tfrac{c_k^{\text{(real form)}}}{2}e^{j\phi_k}$ — half the real amplitude, with the phase folded into it. The factor of $\tfrac12$ has not disappeared; it is hidden in the redefinition of the symbol. Forgetting it is the classic factor-of-2 (3 dB) error when converting a two-sided spectrum back to physical amplitudes: $c_k = 2|X_k|$ for $k\ge 1$, but $c_0=|X_0|$ for DC.

許多投影片把複數形式寫成 $\sum_{k=-M}^{M} c_k e^{j2\pi kt/T}$,用的是與餘弦形式中實數振幅同一個字母 $c_k$。這兩者並不是同一個數。在複數形式裡,$c_k$ 指的是複數係數 $X_k=\tfrac{c_k^{\text{(實數形式)}}}{2}e^{j\phi_k}$ —— 是實數振幅的一半,而且把相位摺了進去。那個 $\tfrac12$ 並沒有消失,它藏在符號的重新定義裡。忘掉它,就會在把雙邊頻譜換回物理振幅時犯下經典的 2 倍(3 dB)誤差:$k\ge 1$ 時 $c_k = 2|X_k|$,但直流項是 $c_0=|X_0|$。

多くのスライドは複素形を $\sum_{k=-M}^{M} c_k e^{j2\pi kt/T}$ と書き、余弦形で実振幅を表していたのと同じ文字 $c_k$ を使う。この二つは同じ数ではない。複素形における $c_k$ は複素係数 $X_k=\tfrac{c_k^{\text{(real form)}}}{2}e^{j\phi_k}$ を意味する——実振幅の半分に、位相を畳み込んだものである。$\tfrac12$ の因子は消えたのではなく、記号の再定義のなかに隠れている。これを忘れることが、両側スペクトルを物理的な振幅に戻すときの古典的な 2 倍(3 dB)の誤りである。$k\ge 1$ では $c_k = 2|X_k|$ だが、直流では $c_0=|X_0|$ となる。

Why the conjugate symmetry matters
共軛對稱為什麼重要
共役対称性がなぜ効くのか

The condition $X_{-k}=X_k^{*}$ is exactly what makes the two-sided sum real. Adding a complex number to its conjugate cancels the imaginary parts: $$X_k e^{j\theta_k}+X_k^{*}e^{-j\theta_k}=2\,\mathrm{Re}\!\left\{X_k e^{j\theta_k}\right\} =c_k\cos(\theta_k+\phi_k)$$ which lands you back in the cosine form. Drop the symmetry and the synthesis produces a complex-valued signal instead — the same Hermitian condition $X_{-k}=X_k^{*}$ met in §4.1.1 above, and the reason a real signal's spectrum carries no information in its negative half.

條件 $X_{-k}=X_k^{*}$ 正是讓雙邊和式為實數的原因。把一個複數與它的共軛相加,虛部就互相抵消: $$X_k e^{j\theta_k}+X_k^{*}e^{-j\theta_k}=2\,\mathrm{Re}\!\left\{X_k e^{j\theta_k}\right\} =c_k\cos(\theta_k+\phi_k)$$ 這就回到了餘弦形式。拿掉這個對稱性,合成出來的就會是複數值訊號——這正是上面 §4.1.1 遇到的同一個 Hermitian 條件 $X_{-k}=X_k^{*}$,也是實訊號的頻譜在負頻率那一半不帶任何資訊的原因。

条件 $X_{-k}=X_k^{*}$ こそが、両側の和を実数にしているものである。複素数とその共役を足すと虚部が打ち消される: $$X_k e^{j\theta_k}+X_k^{*}e^{-j\theta_k}=2\,\mathrm{Re}\!\left\{X_k e^{j\theta_k}\right\} =c_k\cos(\theta_k+\phi_k)$$ これで余弦形に戻ってくる。この対称性を外せば、合成の結果は複素数値の信号になってしまう——これは上の §4.1.1 で出会ったのと同じエルミート条件 $X_{-k}=X_k^{*}$ であり、実信号のスペクトルが負側の半分に情報をもたない理由でもある。

直觀解釋:$\sum_{k=0}^{M}$ 為什麼變成 $\sum_{k=-M}^{M}$(點擊展開)

一句話:Euler 公式把每一個實餘弦剖成兩個「半振幅」的旋轉相量,一個轉正向(頻率 $+k$)、一個轉反向(頻率 $-k$)。所以原本 $k=0\sim M$ 共 $M$ 個餘弦,攤開後就佔滿 $-M\sim M$ 的所有格子。

三個要記住的對應:

  1. $X_k=\dfrac{c_k}{2}e^{j\phi_k}$:振幅減半、相位藏進複數的輻角。
  2. $X_{-k}=X_k^{*}$:負頻率那一項不是新資訊,而是正頻率項的共軛鏡像;有了它,虛部才會自動抵消、合成結果才是實訊號。
  3. $k=0$ 是直流,沒有鏡像伙伴,只出現一次,且 $X_0$ 必為實數。

投影片若把複指數式的係數也寫成 $c_k$,那是符號重用:該處的 $c_k$ 其實是複數係數 $X_k$,數值只有實振幅的一半。要還原物理振幅得乘 2(DC 除外)——漏掉這個 2 就是常見的 3 dB 錯誤。

2026-06-12T22:19:56.373591 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 t −1.0 −0.5 0.0 0.5 1.0 partial sum Fourier-series partial sums of a square wave square wave 1 harmonic 2 harmonics 11 harmonics
Fig. 4-1 — Fourier-series partial sums of a square wave. More harmonics give a better fit, but the overshoot near the jumps (Gibbs phenomenon) never shrinks below about 9%.
圖 4-1 — 方波的傅立葉級數部分和。諧波取得愈多,逼近得愈好,但跳變附近的過衝(Gibbs 現象)永遠降不到 9% 以下。
図 4-1 — 方形波のフーリエ級数の部分和。高調波を増やすほど当てはまりは良くなるが、跳びの近傍のオーバーシュート(ギブス現象)は約 9% より下には決して縮まない。
直觀解釋:為什麼要換到頻域?(點擊展開)
時域上看一個訊號,只看到波形隨時間起伏;頻域上看同一個訊號,看到的是「它由哪些頻率的弦波組成、各佔多少」。 對 LTI 系統而言這個視角特別有用:弦波(複指數)通過 LTI 系統後仍是同頻率的弦波,只是振幅與相位改變。 所以複雜的時域卷積,在頻域只是逐頻率的乘法。這就是整章的核心動機。

Finding the coefficients: inner product with conjugate complex sinusoids求係數:與共軛複弦波做內積係数の求め方:共役複素正弦波との内積

The synthesis equation tells you how to build $x(t)$ once you know the coefficients. The practical question runs the other way: given the signal, how do you find the magnitude $|c_k|$ and the phase $\arg\{c_k\}$ of each harmonic? The answer is a single operation — take the inner product(內積) of $x(t)$ with the conjugate of the complex sinusoid at that frequency:

合成式告訴你,知道係數之後要怎麼組出 $x(t)$。實務上的問題卻是反過來的:給了訊號,怎麼求出每個諧波的振幅 $|c_k|$ 與相位 $\arg\{c_k\}$?答案是單一個運算——把 $x(t)$ 與該頻率複弦波的共軛做內積(inner product):

合成式は、係数が分かっているときに $x(t)$ をどう組み立てるかを教えてくれる。実際の問題は逆向きである。信号が与えられたとき、各高調波の振幅 $|c_k|$ と位相 $\arg\{c_k\}$ をどう求めるか。答えはただ一つの演算——$x(t)$ と、その周波数の複素正弦波の共役との内積(inner product)をとることである:

Analysis equation — the slide's form 分析式 —— 投影片上的寫法分析式 — スライドでの書き方 $$c_k=\frac{1}{T}\int_{-T/2}^{T/2} x(t)\, e^{-j\frac{2\pi k}{T}t}\,dt \;=\;\bigl\langle x,\ \varphi_k \bigr\rangle, \qquad \varphi_k(t)=e^{\,j\frac{2\pi k}{T}t}$$

This is the same formula as the analysis equation above, with the period written out explicitly as $[-T/2,\,T/2]$. What the words inner product add is the reason the formula looks the way it does.

這與上面的分析式是同一條公式,只是把週期明確寫成 $[-T/2,\,T/2]$。「內積」這個詞多告訴我們的,是這條公式為什麼長成這個樣子。

これは上の分析式と同じ公式であり、周期を $[-T/2,\,T/2]$ と明示的に書き下しただけである。「内積」という言葉が付け加えるのは、この公式がなぜこういう形をしているのかという理由である。

The inner product, and where the conjugate comes from內積,以及共軛是從哪裡來的内積、そして共役はどこから来るのか

For $T$-periodic finite-power signals the natural inner product is a normalized integral of one signal against the conjugate of the other:

對週期為 $T$ 的有限功率訊號而言,自然的內積是把一個訊號對另一個訊號的共軛做正規化積分:

周期 $T$ の有限電力信号に対して自然な内積は、一方の信号を他方の共役に対して積分し正規化したものである:

Inner product on one period 一個週期上的內積一周期上の内積 $$\bigl\langle x,\ y \bigr\rangle \;\triangleq\; \frac{1}{T}\int_{-T/2}^{T/2} x(t)\,y^{*}(t)\,dt$$

The conjugate on the second argument is not decoration: it is what makes $\langle x,x\rangle=\frac1T\int_T |x(t)|^2\,dt$ a real, non-negative number — an average power — so that "length" and "angle" mean something in a complex space. Put $y=\varphi_k$ and the conjugation turns $e^{+j2\pi kt/T}$ into $e^{-j2\pi kt/T}$: the minus sign in the analysis exponent is the conjugation in the inner product, nothing more. That is exactly what the parenthesis on the slide is flagging — inner product with (conjugate) complex sinusoids.

第二個引數上的共軛不是裝飾品:正是它使得 $\langle x,x\rangle=\frac1T\int_T |x(t)|^2\,dt$ 成為一個實數、非負的量——平均功率——這樣「長度」與「夾角」在複數空間裡才有意義。代入 $y=\varphi_k$,共軛就把 $e^{+j2\pi kt/T}$ 變成 $e^{-j2\pi kt/T}$:分析式指數上的那個負號,就是內積裡的共軛,如此而已。這正是投影片括號裡要提醒的事——與(共軛)複弦波做內積。

第二引数に付く共役は飾りではない。それこそが $\langle x,x\rangle=\frac1T\int_T |x(t)|^2\,dt$ を実数かつ非負の量——平均電力——にしているものであり、そのおかげで複素空間でも「長さ」と「角度」が意味をもつ。$y=\varphi_k$ と置けば、共役は $e^{+j2\pi kt/T}$ を $e^{-j2\pi kt/T}$ に変える。分析式の指数に付く負号こそが内積の共役であり、それ以上のものではない。スライドの括弧書きが注意を促しているのはまさにこの点である——(共役)複素正弦波との内積、というわけだ。

Why it works: the harmonics are orthonormal為什麼行得通:諧波是正交歸一的なぜうまくいくのか:高調波は正規直交である

Orthonormality of the harmonics 諧波的正交歸一性高調波の正規直交性 $$\bigl\langle \varphi_m,\ \varphi_k \bigr\rangle =\frac{1}{T}\int_{-T/2}^{T/2} e^{\,j\frac{2\pi (m-k)}{T}t}\,dt =\frac{\sin\bigl(\pi(m-k)\bigr)}{\pi(m-k)} =\delta[m-k]=\begin{cases}1,& m=k\\ 0,& m\neq k\end{cases}$$

Both cases are visible without doing the integral. If $m=k$ the integrand is the constant $1$, the integral is $T$, and the $1/T$ normalizes it to $1$. If $m\neq k$ the integrand is a complex sinusoid that completes a whole number $|m-k|$ of turns around the unit circle during the interval, so its phasor points in every direction equally often and the contributions cancel exactly — the integral is zero. Integer harmonics of a common period are mutually orthogonal, and that single fact is the engine of the entire Fourier series.

不必真的算積分就能看出這兩種情形。若 $m=k$,被積函數是常數 $1$,積分等於 $T$,再乘上 $1/T$ 正規化成 $1$。若 $m\neq k$,被積函數是一個複弦波,它在這段區間內恰好繞單位圓整數圈 $|m-k|$ 次,所以相量指向每個方向的次數一樣多,貢獻完全抵消——積分為零。共同週期的整數諧波彼此正交,光是這一個事實就驅動了整個傅立葉級數。

どちらの場合も、積分を実行しなくても見てとれる。$m=k$ なら被積分関数は定数 $1$、積分は $T$ となり、$1/T$ がそれを $1$ に正規化する。$m\neq k$ なら被積分関数は複素正弦波であり、区間のあいだに単位円をちょうど整数回 $|m-k|$ 周する。したがってフェーザはあらゆる方向を同じ回数だけ指し、寄与はぴたりと打ち消し合う——積分はゼロである。共通の周期をもつ整数次の高調波は互いに直交しており、このただ一つの事実がフーリエ級数全体の原動力になっている。

Derivation — why the inner product returns $c_k$ and nothing else推導 —— 為什麼內積只還原出 $c_k$、其餘全為零導出 — 内積が $c_k$ だけを返す理由
Step 1 — start from the synthesis equation. Assume the expansion exists, written with a dummy index $m$ so it is not confused with the harmonic we are about to test for: $$x(t)=\sum_{m=-\infty}^{\infty} c_m\,\varphi_m(t),\qquad \varphi_m(t)=e^{\,j\frac{2\pi m}{T}t}$$
第 1 步 —— 從合成式出發。假設展開式存在,並用啞指標 $m$ 書寫,以免與我們接下來要測試的那個諧波混淆: $$x(t)=\sum_{m=-\infty}^{\infty} c_m\,\varphi_m(t),\qquad \varphi_m(t)=e^{\,j\frac{2\pi m}{T}t}$$
第 1 段階 — 合成式から出発する。展開が存在すると仮定し、これから調べようとする高調波と混同しないよう、ダミー添字 $m$ を使って書く: $$x(t)=\sum_{m=-\infty}^{\infty} c_m\,\varphi_m(t),\qquad \varphi_m(t)=e^{\,j\frac{2\pi m}{T}t}$$
Step 2 — take the inner product with one harmonic $\varphi_k$. The inner product is linear in its first argument, so it passes through the sum (uniform convergence on the period justifies the exchange of sum and integral): $$\bigl\langle x,\varphi_k\bigr\rangle =\Bigl\langle \sum_m c_m\varphi_m,\ \varphi_k\Bigr\rangle =\sum_{m=-\infty}^{\infty} c_m\,\bigl\langle \varphi_m,\varphi_k\bigr\rangle$$
第 2 步 —— 與其中一個諧波 $\varphi_k$ 做內積。內積對第一個引數是線性的,所以可以穿過求和號(在一個週期上的均勻收斂保證了求和與積分可以交換): $$\bigl\langle x,\varphi_k\bigr\rangle =\Bigl\langle \sum_m c_m\varphi_m,\ \varphi_k\Bigr\rangle =\sum_{m=-\infty}^{\infty} c_m\,\bigl\langle \varphi_m,\varphi_k\bigr\rangle$$
第 2 段階 — 一つの高調波 $\varphi_k$ との内積をとる。内積は第一引数について線形なので、和の中へ通すことができる(一周期上の一様収束が和と積分の交換を正当化する): $$\bigl\langle x,\varphi_k\bigr\rangle =\Bigl\langle \sum_m c_m\varphi_m,\ \varphi_k\Bigr\rangle =\sum_{m=-\infty}^{\infty} c_m\,\bigl\langle \varphi_m,\varphi_k\bigr\rangle$$
Step 3 — apply orthonormality. Every term with $m\neq k$ is multiplied by zero. The sum sifts down to the one surviving term: $$\sum_{m} c_m\,\delta[m-k]=c_k \qquad\Longrightarrow\qquad \boxed{\,c_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt\,}$$ The analysis equation is not a second postulate — it falls out of the synthesis equation the moment you know the basis is orthonormal.
第 3 步 —— 套用正交歸一性。每一個 $m\neq k$ 的項都被乘上零。整個和式篩到只剩下唯一存活的那一項: $$\sum_{m} c_m\,\delta[m-k]=c_k \qquad\Longrightarrow\qquad \boxed{\,c_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt\,}$$ 分析式並不是第二條公設——只要知道基底是正交歸一的,它就會從合成式裡自己掉出來。
第 3 段階 — 正規直交性を使う。$m\neq k$ の項はすべてゼロが掛かる。和は生き残る一項だけにふるい落とされる: $$\sum_{m} c_m\,\delta[m-k]=c_k \qquad\Longrightarrow\qquad \boxed{\,c_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt\,}$$ 分析式は第二の公理ではない。基底が正規直交だと分かった瞬間に、合成式から自然に転がり出てくるものである。
Step 4 — the same derivation in normalized time $\tau$. Lecture treatments usually run this calculation after the substitution $\tau=\frac{2\pi}{T}\,t$, and it is worth following once, because this is where normalized time / frequency(正規化頻率) makes its first appearance. With $t=\frac{T}{2\pi}\tau$, $dt=\frac{T}{2\pi}d\tau$ and the limits mapping $t=\mp T/2\mapsto\tau=\mp\pi$: $$\hat{c}_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt =\frac{1}{T}\cdot\frac{T}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau =\frac{1}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau$$ The Jacobian $T/2\pi$ cancels the averaging $1/T$, so the period drops out of the problem entirely: one period of the signal is now one trip around the unit circle, $\tau\in[-\pi,\pi]$, whatever $T$ happened to be. Insert the synthesis sum — which in these coordinates is simply $x=\sum_{l} c_l e^{\,jl\tau}$, the dummy index $l$ playing the role of $m$ above — and exchange sum and integral: $$\hat{c}_k=\sum_{l} c_l\left(\frac{1}{2\pi}\int_{-\pi}^{\pi}e^{\,j(l-k)\tau}\,d\tau\right) =\sum_{l} c_l\,\delta[l-k]=c_k$$ The bracket is orthonormality again, in its normalized form: for $l\neq k$ the integrand completes $|l-k|$ whole turns, so its cosine part covers complete cycles and its sine part is odd on the symmetric interval — both integrate to zero; for $l=k$ the integrand is the constant $1$, whose average is $1$. Writing the left-hand side as $\hat{c}_k$ — "whatever the analysis integral hands back" — makes the punchline explicit: $\hat{c}_k=c_k$, so the analysis equation genuinely inverts the synthesis equation. The pair is self-consistent, which is the real content of the derivation.

Notice the $\frac{1}{2\pi}$ that appeared on its own: it is not a new constant, it is the averaging $\frac1T$ seen in normalized coordinates. The same factor, arriving the same way, sits in front of every inverse transform in this chapter — the inverse DTFT is this very integral with $\tau$ renamed $\omega$.

第 4 步 —— 用正規化時間 $\tau$ 重做同一段推導。課堂上通常會在代換 $\tau=\frac{2\pi}{T}\,t$ 之後才做這個計算,值得跟著走一次,因為正規化時間/頻率(normalized frequency)就是在這裡第一次登場。令 $t=\frac{T}{2\pi}\tau$、$dt=\frac{T}{2\pi}d\tau$,積分上下限對映成 $t=\mp T/2\mapsto\tau=\mp\pi$: $$\hat{c}_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt =\frac{1}{T}\cdot\frac{T}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau =\frac{1}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau$$ Jacobian $T/2\pi$ 與求平均的 $1/T$ 互相抵消,於是週期完全從問題裡消失了:不論 $T$ 原本是多少,訊號的一個週期現在就是繞單位圓一圈,$\tau\in[-\pi,\pi]$。把合成式代進去——在這組座標下它就是 $x=\sum_{l} c_l e^{\,jl\tau}$,啞指標 $l$ 扮演上面 $m$ 的角色——再交換求和與積分: $$\hat{c}_k=\sum_{l} c_l\left(\frac{1}{2\pi}\int_{-\pi}^{\pi}e^{\,j(l-k)\tau}\,d\tau\right) =\sum_{l} c_l\,\delta[l-k]=c_k$$ 括號裡又是正交歸一性,只是換成正規化的形式:$l\neq k$ 時被積函數繞了 $|l-k|$ 整數圈,餘弦部分走完整數個週期、正弦部分在對稱區間上是奇函數——兩者積分都為零;$l=k$ 時被積函數是常數 $1$,平均值為 $1$。把左邊寫成 $\hat{c}_k$——「分析積分不管還我什麼」——就讓結論變得很明白:$\hat{c}_k=c_k$,也就是說分析式確確實實是合成式的反運算。這一對式子是自洽的,而這才是整段推導真正的內容。

注意那個自己冒出來的 $\frac{1}{2\pi}$:它不是什麼新的常數,而是在正規化座標下看到的求平均因子 $\frac1T$。本章每一個反轉換前面都坐著同一個因子,來歷也一樣——反 DTFT 就是這條積分把 $\tau$ 改名成 $\omega$ 而已。

第 4 段階 — 同じ導出を正規化時間 $\tau$ で行う。講義ではたいてい、代入 $\tau=\frac{2\pi}{T}\,t$ を済ませてからこの計算を進める。一度は追っておく価値がある。正規化時間/正規化周波数(normalized frequency)が初めて登場するのがここだからである。$t=\frac{T}{2\pi}\tau$、$dt=\frac{T}{2\pi}d\tau$ とし、積分区間は $t=\mp T/2\mapsto\tau=\mp\pi$ と写る: $$\hat{c}_k=\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,e^{-j\frac{2\pi k}{T}t}\,dt =\frac{1}{T}\cdot\frac{T}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau =\frac{1}{2\pi}\int_{-\pi}^{\pi}x\!\left(\frac{T}{2\pi}\tau\right)e^{-jk\tau}\,d\tau$$ ヤコビアン $T/2\pi$ が平均化の $1/T$ を打ち消すので、周期は問題から完全に姿を消す。$T$ がいくつであったにせよ、信号の一周期はいまや単位円を一周すること、すなわち $\tau\in[-\pi,\pi]$ になる。合成式の和——この座標では単に $x=\sum_{l} c_l e^{\,jl\tau}$ であり、ダミー添字 $l$ が上の $m$ の役を演じる——を代入し、和と積分を交換する: $$\hat{c}_k=\sum_{l} c_l\left(\frac{1}{2\pi}\int_{-\pi}^{\pi}e^{\,j(l-k)\tau}\,d\tau\right) =\sum_{l} c_l\,\delta[l-k]=c_k$$ 括弧の中は再び正規直交性であり、今度は正規化された形になっている。$l\neq k$ では被積分関数が $|l-k|$ 回まるごと周回するので、余弦部分は完全な周期を覆い、正弦部分は対称区間上の奇関数となる——どちらも積分するとゼロである。$l=k$ では被積分関数は定数 $1$ であり、その平均は $1$ である。左辺を $\hat{c}_k$——「分析積分が返してくるもの、何であれ」——と書いておくと、結論が明示的になる。$\hat{c}_k=c_k$、つまり分析式は確かに合成式の逆演算になっている。この一対は自己無撞着であり、それこそがこの導出の本当の中身である。

ひとりでに現れた $\frac{1}{2\pi}$ に注目してほしい。これは新しい定数ではなく、正規化座標で見た平均化因子 $\frac1T$ である。本章のあらゆる逆変換の前には、同じ経緯で現れた同じ因子が座っている——逆 DTFT は、まさにこの積分の $\tau$ を $\omega$ と呼び替えたものにすぎない。

Step 5 — read off magnitude and phase. The integral returns one complex number per $k$; its polar form is what the slide asks for: $$|c_k|=\sqrt{\mathrm{Re}^2\{c_k\}+\mathrm{Im}^2\{c_k\}},\qquad \arg\{c_k\}=\operatorname{atan2}\bigl(\mathrm{Im}\{c_k\},\ \mathrm{Re}\{c_k\}\bigr)$$ Through the correspondence of the previous subsection, the physical amplitude of the $k$-th cosine is $2|c_k|$ for $k\ge 1$ and its phase is $\phi_k=\arg\{c_k\}$; the DC term $c_0=\frac1T\int_{-T/2}^{T/2}x(t)\,dt$ is simply the average value of the signal.
第 5 步 —— 讀出振幅與相位。這條積分對每個 $k$ 回傳一個複數;投影片要的就是它的極座標形式: $$|c_k|=\sqrt{\mathrm{Re}^2\{c_k\}+\mathrm{Im}^2\{c_k\}},\qquad \arg\{c_k\}=\operatorname{atan2}\bigl(\mathrm{Im}\{c_k\},\ \mathrm{Re}\{c_k\}\bigr)$$ 依前一小節的對應關係,第 $k$ 個餘弦的物理振幅在 $k\ge 1$ 時是 $2|c_k|$、相位是 $\phi_k=\arg\{c_k\}$;而直流項 $c_0=\frac1T\int_{-T/2}^{T/2}x(t)\,dt$ 就只是訊號的平均值。
第 5 段階 — 振幅と位相を読み取る。この積分は $k$ ごとに一つの複素数を返す。スライドが求めているのはその極形式である: $$|c_k|=\sqrt{\mathrm{Re}^2\{c_k\}+\mathrm{Im}^2\{c_k\}},\qquad \arg\{c_k\}=\operatorname{atan2}\bigl(\mathrm{Im}\{c_k\},\ \mathrm{Re}\{c_k\}\bigr)$$ 前小節の対応により、第 $k$ 余弦の物理的な振幅は $k\ge 1$ では $2|c_k|$、その位相は $\phi_k=\arg\{c_k\}$ である。直流項 $c_0=\frac1T\int_{-T/2}^{T/2}x(t)\,dt$ は、単に信号の平均値である。
直觀解釋:為什麼「乘共軛再平均」就能把 $c_k$ 撈出來(點擊展開)

為什麼要取共軛?因為複數空間的內積定義是 $\langle x,y\rangle=\frac1T\int_T x\,y^{*}\,dt$,第二個引數一定要共軛,$\langle x,x\rangle$ 才會是實數且非負(才能當成「能量/長度」用)。把 $y=e^{+j2\pi kt/T}$ 代進去,共軛就把指數的正號翻成負號。所以分析式裡的那個負號不是另外規定的,它就是內積裡的共軛。

為什麼只會留下 $c_k$?因為 $\{e^{j2\pi kt/T}\}$ 是一組單位正交基底。把合成式代進去之後,每一項都會出現 $\frac{1}{2\pi}\int_{-\pi}^{\pi}e^{j(l-k)\tau}d\tau$:$l\neq k$ 時被積函數在區間內剛好轉 $|l-k|$ 整圈,實部(cos)走完整數個週期、虛部(sin)又是奇函數,兩者都積成 $0$;$l=k$ 時被積函數是常數 $1$,平均值為 $1$。所以整個級數只剩下第 $k$ 項。

回答投影片的問題:積分算出一個複數,$|c_k|$ 是它的模長、$\arg\{c_k\}$ 是它的輻角。換回實數餘弦時,振幅是 $2|c_k|$($k\ge1$)、相位是 $\arg\{c_k\}$;$c_0$ 則是訊號的平均值(直流)。

4.1.2 The Fourier transform and the sinc function4.1.2 傅立葉轉換與 sinc 函數4.1.2 フーリエ変換と sinc 関数

For aperiodic continuous-time signals, the spacing $\Omega_0=2\pi/T$ between harmonics goes to zero as $T\to\infty$ and the sum becomes an integral — the Fourier transform(傅立葉轉換):

對非週期的連續時間訊號而言,諧波之間的間距 $\Omega_0=2\pi/T$ 隨 $T\to\infty$ 趨近於零,和式就變成積分——也就是傅立葉轉換(Fourier transform):

非周期の連続時間信号では、高調波の間隔 $\Omega_0=2\pi/T$ が $T\to\infty$ とともにゼロへ向かい、和は積分になる——これがフーリエ変換(Fourier transform)である:

Continuous-time Fourier transform pair 連續時間傅立葉轉換對連続時間フーリエ変換対 $$X(j\Omega) = \int_{-\infty}^{\infty} x(t)\,e^{-j\Omega t}\,dt \qquad\Longleftrightarrow\qquad x(t) = \frac{1}{2\pi}\int_{-\infty}^{\infty} X(j\Omega)\,e^{j\Omega t}\,d\Omega$$

The recurring example from the slides: a rectangular pulse of width $T_p$ transforms to the sinc function,

投影片上反覆出現的例子:寬度 $T_p$ 的矩形脈衝會轉換成 sinc 函數,

スライドで繰り返し現れる例:幅 $T_p$ の矩形パルスは sinc 関数に変換される。

Rectangle ↔ sinc 矩形 ↔ sinc矩形 ↔ sinc $$x(t)=\begin{cases}1, & |t|\le T_p/2\\ 0, & \text{otherwise}\end{cases} \qquad\Longrightarrow\qquad X(j\Omega) = T_p\,\frac{\sin(\Omega T_p/2)}{\Omega T_p/2} = T_p\,\operatorname{sinc}\!\Bigl(\tfrac{\Omega T_p}{2\pi}\Bigr)$$

The slides define the function itself as

投影片把這個函數本身定義為

スライドはこの関数自体を次のように定義している

Definition — sinc(sinc 函數) 定義 —— sinc 函數定義 — sinc(sinc 関数) $$\operatorname{sinc}\,x \;\triangleq\; \frac{\sin x}{x},\qquad \operatorname{sinc}\,0 = 1$$

The symbol $\triangleq$ means "is defined as". At $x=0$ the quotient is $0/0$, but $\sin x/x\to1$, so $\operatorname{sinc}0=1$ by convention($x=0$ 處取極限值 1). Away from the origin it oscillates like $\sin x$ inside an envelope that decays as $1/|x|$, crossing zero at every nonzero multiple of $\pi$. It is even, its peak is at the origin, and the mainlobe (between the first two zeros) is twice as wide as every sidelobe.

符號 $\triangleq$ 的意思是「定義為」。在 $x=0$ 處這個商是 $0/0$,但 $\sin x/x\to1$,所以依慣例 $\operatorname{sinc}0=1$(在 $x=0$ 處取極限值 1)。離開原點之後,它像 $\sin x$ 一樣振盪,外包絡以 $1/|x|$ 衰減,並在 $\pi$ 的每一個非零倍數處穿過零點。它是偶函數,峰值在原點,主瓣(前兩個零點之間)的寬度是每個旁瓣的兩倍。

記号 $\triangleq$ は「と定義する」という意味である。$x=0$ では商が $0/0$ になるが、$\sin x/x\to1$ であるから、慣例として $\operatorname{sinc}0=1$ とする($x=0$ では極限値 1 をとる)。原点から離れると $\sin x$ のように振動し、包絡線は $1/|x|$ で減衰し、$\pi$ の非零の整数倍ごとにゼロ交差する。偶関数であり、ピークは原点にあり、メインローブ(最初の二つの零点のあいだ)の幅はどのサイドローブの二倍でもある。

Warning — two sinc conventions(兩種定義)
注意 —— sinc 有兩種定義
注意 — sinc には二つの流儀がある(二種類の定義)
Textbooks and software do not agree on the argument scaling. Check which one is in use before reading zero locations off a formula.教科書與軟體對引數的縮放方式並不一致。從公式讀零點位置之前,先確認用的是哪一種定義。教科書とソフトウェアとで、引数のスケーリングの取り方が一致していない。公式から零点の位置を読み取る前に、どちらの流儀が使われているかを確かめること。
ConventionDefinitionZeros atUsed by
Unnormalized$\operatorname{sinc}x=\sin x/x$$x=\pm\pi,\pm2\pi,\dots$ These slides; most mathematics texts
Normalized$\operatorname{sinc}x=\sin(\pi x)/(\pi x)$$x=\pm1,\pm2,\dots$ Bracewell, Oppenheim–Schafer, MATLAB sinc, NumPy np.sinc
慣例定義零點位置採用者
未正規化$\operatorname{sinc}x=\sin x/x$$x=\pm\pi,\pm2\pi,\dots$ 本投影片;多數數學教科書
已正規化$\operatorname{sinc}x=\sin(\pi x)/(\pi x)$$x=\pm1,\pm2,\dots$ Bracewell、Oppenheim–Schafer、MATLAB sinc、NumPy np.sinc
流儀定義零点の位置採用例
非正規化$\operatorname{sinc}x=\sin x/x$$x=\pm\pi,\pm2\pi,\dots$ 本スライド、および多くの数学書
正規化$\operatorname{sinc}x=\sin(\pi x)/(\pi x)$$x=\pm1,\pm2,\dots$ Bracewell、Oppenheim–Schafer、MATLAB の sinc、NumPy の np.sinc
The rectangle transform above can be written either way: $T_p\dfrac{\sin(\Omega T_p/2)}{\Omega T_p/2}$ is $T_p\operatorname{sinc}(\Omega T_p/2)$ in the unnormalized form and $T_p\operatorname{sinc}\bigl(\tfrac{\Omega T_p}{2\pi}\bigr)$ in the normalized form. Both say the same thing: zeros at $\Omega=2\pi k/T_p$, $k\ne0$. The normalized form is the natural one for sampling (Chapter 6), where the reconstruction kernel $\operatorname{sinc}(t/T)$ vanishes at every sample instant except $t=0$.上面的矩形轉換兩種寫法都可以:$T_p\dfrac{\sin(\Omega T_p/2)}{\Omega T_p/2}$ 在未正規化的定義下是 $T_p\operatorname{sinc}(\Omega T_p/2)$,在已正規化的定義下則是 $T_p\operatorname{sinc}\bigl(\tfrac{\Omega T_p}{2\pi}\bigr)$。兩者說的是同一件事:零點落在 $\Omega=2\pi k/T_p$、$k\ne0$。做取樣(第 6 章)時,正規化的定義比較自然,因為重建核 $\operatorname{sinc}(t/T)$ 在除了 $t=0$ 以外的每個取樣時刻都等於零。上の矩形の変換はどちらの流儀でも書ける。$T_p\dfrac{\sin(\Omega T_p/2)}{\Omega T_p/2}$ は、非正規化の形では $T_p\operatorname{sinc}(\Omega T_p/2)$、正規化の形では $T_p\operatorname{sinc}\bigl(\tfrac{\Omega T_p}{2\pi}\bigr)$ である。どちらも同じことを述べている。零点は $\Omega=2\pi k/T_p$、$k\ne0$ にある。標本化(第 6 章)では正規化の形が自然である。再構成核 $\operatorname{sinc}(t/T)$ が、$t=0$ を除くすべての標本時刻で消えるからである。

and by duality a sinc in time transforms to a rectangle in frequency — which is exactly why the ideal lowpass filter of §4.3.3 has a sinc impulse response. A pure sine $\sin(\Omega_0 t)$ transforms to a pair of impulses at $\pm\Omega_0$: a single frequency occupies a single point in the Fourier domain.

而由對偶性,時域上的 sinc 會轉換成頻域上的矩形——這正是 §4.3.3 的理想低通濾波器具有 sinc 型脈衝響應的原因。純正弦 $\sin(\Omega_0 t)$ 轉換成 $\pm\Omega_0$ 處的一對脈衝:單一頻率在傅立葉域中只佔單一個點。

そして双対性により、時間領域の sinc は周波数領域の矩形に変換される——§4.3.3 の理想低域通過フィルタのインパルス応答が sinc 型になるのは、まさにこのためである。純粋な正弦 $\sin(\Omega_0 t)$ は $\pm\Omega_0$ にある一対のインパルスに変換される。単一の周波数は、フーリエ領域では単一の点を占めるのである。

Concept — narrow in time ↔ wide in frequency
觀念 —— 時域窄 ↔ 頻域寬
概念 — 時間で狭い ↔ 周波数で広い
The shorter the pulse $T_p$, the wider its sinc mainlobe ($\propto 1/T_p$). This time–frequency tradeoff reappears in windowing, in the uncertainty principle, and in the STFT of Chapter 9.脈衝 $T_p$ 愈短,它的 sinc 主瓣就愈寬($\propto 1/T_p$)——時域愈窄,頻域愈寬。這個時間–頻率的取捨會在加窗、不確定性原理,以及第 9 章的 STFT 中一再出現。パルス $T_p$ が短いほど、その sinc のメインローブは広くなる($\propto 1/T_p$)。この時間–周波数のトレードオフは、窓かけ、不確定性原理、そして第 9 章の STFT で繰り返し現れる。

4.1.3 Eigenfunctions of LTI systems and frequency response4.1.3 LTI 系統的特徵函數與頻率響應4.1.3 LTI システムの固有関数と周波数応答

Why are complex exponentials the right building blocks? Feed $x[n] = e^{j\omega n}$ (for all $n$) into an LTI system with impulse response $h[n]$:

為什麼複指數是正確的建構元件?把 $x[n] = e^{j\omega n}$(對所有 $n$)送進脈衝響應為 $h[n]$ 的 LTI 系統:

複素指数がなぜ正しい構成要素なのか。インパルス応答 $h[n]$ をもつ LTI システムに $x[n] = e^{j\omega n}$(すべての $n$ について)を入力してみよう:

Eigenfunction property(特徵函數) 特徵函數性質固有関数の性質(固有関数) $$y[n] = \sum_{k=-\infty}^{\infty} h[k]\,e^{j\omega(n-k)} = e^{j\omega n}\underbrace{\sum_{k=-\infty}^{\infty} h[k]\,e^{-j\omega k}}_{H(e^{j\omega})} = H(e^{j\omega})\,e^{j\omega n}$$

The output is the same exponential scaled by the complex constant $H(e^{j\omega})$ — the frequency response(頻率響應) of the system, which is precisely the DTFT of $h[n]$. So $e^{j\omega n}$ is an eigenfunction of every LTI system, with eigenvalue $H(e^{j\omega})$.

輸出是同一個指數,只被複數常數 $H(e^{j\omega})$ 縮放——這就是系統的頻率響應(frequency response),而它恰好就是 $h[n]$ 的 DTFT。所以 $e^{j\omega n}$ 是每一個 LTI 系統的特徵函數,對應的特徵值為 $H(e^{j\omega})$。

出力は同じ指数関数を複素定数 $H(e^{j\omega})$ で定数倍したものである——これがシステムの周波数応答(frequency response)であり、ちょうど $h[n]$ の DTFT にほかならない。したがって $e^{j\omega n}$ はあらゆる LTI システムの固有関数であり、その固有値が $H(e^{j\omega})$ である。

特徵函數性質逐步拆解——為什麼複指數過 LTI 只被乘一個數(點擊展開)

這條式子在證明一件事:把 $e^{j\omega n}$ 丟進任何 LTI 系統,出來的還是同一個 $e^{j\omega n}$,只是被乘上一個複數常數。

逐步拆解。起點是摺積和(LTI 系統的定義式):

$$y[n] = \sum_{k=-\infty}^{\infty} h[k]\, x[n-k]$$

代入 $x[n] = e^{j\omega n}$,所以 $x[n-k] = e^{j\omega(n-k)}$:

$$y[n] = \sum_{k} h[k]\, e^{j\omega(n-k)}$$

關鍵一步是指數律拆項:$e^{j\omega(n-k)} = e^{j\omega n}\cdot e^{-j\omega k}$。因為 $e^{j\omega n}$ 裡完全沒有 $k$,它對求和而言是常數,可以提到 $\sum$ 外面:

$$y[n] = e^{j\omega n} \underbrace{\sum_{k} h[k]\, e^{-j\omega k}}_{H(e^{j\omega})}$$

剩下那個和式只跟 $\omega$ 有關、跟 $n$ 無關——它就是 $h[n]$ 的 DTFT,也就是頻率響應 $H(e^{j\omega})$。

$$\boxed{\;e^{j\omega n} \;\longrightarrow\; \text{LTI} \;\longrightarrow\; H(e^{j\omega})\,e^{j\omega n}\;}$$

為什麼叫「特徵函數」。對照線性代數的 $A\mathbf{v} = \lambda \mathbf{v}$:

  • 特徵函數(eigenfunction):$e^{j\omega n}$(輸入輸出波形長得一樣)
  • 特徵值(eigenvalue):$H(e^{j\omega})$(一個複數,隨 $\omega$ 變化)

系統這個「算子」作用在複指數上,不會改變它的形狀,只做純量縮放。寫成極座標 $H(e^{j\omega}) = |H(e^{j\omega})|\,e^{j\angle H(e^{j\omega})}$ 就更直觀:$|H|$ 是增益(振幅縮放),$\angle H$ 是相位延遲。

頻率完全不變。這正是為什麼「LTI 系統不會產生新的頻率成分」——反過來說,只要你在輸出看到輸入沒有的頻率(諧波、交互調變 IM3),系統必定是非線性的。這條界線在 mixer / PA 分析裡就是根本判準。

這條性質的實際價值:

  1. 摺積 → 乘法:任意訊號用 DTFT 拆成複指數的疊加,每個分量各自乘上自己的 $H(e^{j\omega})$,再疊回去。時域的 $\sum h[k]x[n-k]$ 就變成頻域的 $Y = HX$。整個濾波器設計、頻域分析的基礎都在這裡。
  2. 量測方法論:掃頻量 $|H|$ 和 $\angle H$ 就完整刻畫了系統——這就是網路分析儀在做的事。
  3. 實數弦波的推論:因為 $\cos(\omega n) = \frac{1}{2}(e^{j\omega n} + e^{-j\omega n})$,加上 $h[n]$ 為實數時 $H(e^{-j\omega}) = H^*(e^{j\omega})$,可推得 $\cos(\omega n) \to |H(e^{j\omega})|\cos(\omega n + \angle H(e^{j\omega}))$。

兩個容易被略過的前提:

  • 這裡的 $e^{j\omega n}$ 是從 $n = -\infty$ 就存在的雙邊訊號。如果實際上是 $e^{j\omega n}u[n]$(某時刻才開機),輸出會有暫態項,只有穩態部分才等於 $H(e^{j\omega})\,e^{j\omega n}$。
  • $\sum_k |h[k]| < \infty$(BIBO 穩定)才保證 $H(e^{j\omega})$ 收斂存在。
Key — sinusoid in, sinusoid out
重點 —— 弦波進,弦波出
要点 — 正弦波を入れれば正弦波が出る
For a real LTI system and real input $x[n]=A\cos(\omega_0 n + \phi)$, the steady-state output is $$y[n] = A\,\bigl|H(e^{j\omega_0})\bigr|\cos\!\bigl(\omega_0 n + \phi + \angle H(e^{j\omega_0})\bigr)$$ Magnitude is scaled by $|H|$, phase is shifted by $\angle H$ — the frequency never changes. This is used directly in Exercise 2(c).對實數的 LTI 系統與實數輸入 $x[n]=A\cos(\omega_0 n + \phi)$,穩態輸出為 $$y[n] = A\,\bigl|H(e^{j\omega_0})\bigr|\cos\!\bigl(\omega_0 n + \phi + \angle H(e^{j\omega_0})\bigr)$$ 振幅被 $|H|$ 縮放、相位被 $\angle H$ 平移 —— 頻率則從不改變(弦波進、同頻率弦波出)。習題 2(c) 會直接用到這一點。実数の LTI システムに実数入力 $x[n]=A\cos(\omega_0 n + \phi)$ を加えたとき、定常状態の出力は $$y[n] = A\,\bigl|H(e^{j\omega_0})\bigr|\cos\!\bigl(\omega_0 n + \phi + \angle H(e^{j\omega_0})\bigr)$$ となる。振幅は $|H|$ 倍され、位相は $\angle H$ だけずれる——周波数は決して変わらない。これは演習 2(c) でそのまま使う。

4.2 The Discrete-Time Fourier Transform (DTFT) 🔖4.2 離散時間傅立葉轉換(DTFT) 🔖4.2 離散時間フーリエ変換(DTFT) 🔖

4.2.1 Definition4.2.1 定義4.2.1 定義

For a sequence $x[n]$, the discrete-time Fourier transform(離散時間傅立葉轉換) is the continuous, complex-valued function of the normalized angular frequency $\omega$ (rad/sample):

對序列 $x[n]$ 而言,離散時間傅立葉轉換(discrete-time Fourier transform)是正規化角頻率 $\omega$(弳/樣本)的連續複數值函數:

系列 $x[n]$ に対する離散時間フーリエ変換(discrete-time Fourier transform)とは、正規化角周波数 $\omega$(rad/サンプル)の連続な複素数値関数である:

DTFT (analysis equation) DTFT(分析式)DTFT(分析式) $$\boxed{\,X(e^{j\omega}) = \sum_{n=-\infty}^{\infty} x[n]\,e^{-j\omega n}\,}$$

In general $X(e^{j\omega})$ is complex and can be written in rectangular or polar form:

一般而言 $X(e^{j\omega})$ 是複數,可以寫成直角座標式或極座標式:

一般に $X(e^{j\omega})$ は複素数であり、直交形式でも極形式でも書ける:

Rectangular / polar form 直角座標式/極座標式直交形式/極形式 $$X(e^{j\omega}) = X_{re}(e^{j\omega}) + jX_{im}(e^{j\omega}) = \bigl|X(e^{j\omega})\bigr|\,e^{\,j\theta(\omega)}, \qquad \theta(\omega)=\arg\{X(e^{j\omega})\}$$
Warning — why the argument is written $e^{j\omega}$
注意 —— 為什麼引數寫成 $e^{j\omega}$
注意 — 引数を $e^{j\omega}$ と書く理由
The notation $X(e^{j\omega})$ (not $X(\omega)$) is deliberate: the transform depends on $\omega$ only through $e^{j\omega}$, which makes the $2\pi$-periodicity explicit and connects directly to the z-transform of Chapter 5 — the DTFT is the z-transform evaluated on the unit circle $z=e^{j\omega}$.寫成 $X(e^{j\omega})$(而不是 $X(\omega)$)是刻意的:這個轉換對 $\omega$ 的依賴只透過 $e^{j\omega}$,這讓 $2\pi$ 週期性變得顯而易見,也直接接上第 5 章的 z 轉換 —— DTFT 就是 z 轉換在單位圓 $z=e^{j\omega}$ 上取值。$X(\omega)$ ではなく $X(e^{j\omega})$ と書くのは意図的である。この変換が $\omega$ に依存するのは $e^{j\omega}$ を通じてのみであり、そのおかげで $2\pi$ 周期性が明示的になり、第 5 章の z 変換とも直接つながる——DTFT とは、単位円 $z=e^{j\omega}$ の上で評価した z 変換にほかならない。

4.2.2 Periodicity of the DTFT4.2.2 DTFT 的週期性4.2.2 DTFT の周期性

Because $n$ is an integer, $e^{-j(\omega+2\pi)n} = e^{-j\omega n}e^{-j2\pi n} = e^{-j\omega n}$. The periodicity is implicit in the definition:

因為 $n$ 是整數,所以 $e^{-j(\omega+2\pi)n} = e^{-j\omega n}e^{-j2\pi n} = e^{-j\omega n}$。週期性內建在定義裡:

$n$ は整数なので、$e^{-j(\omega+2\pi)n} = e^{-j\omega n}e^{-j2\pi n} = e^{-j\omega n}$ となる。周期性は定義のなかに暗に組み込まれている:

Implicit periodicity 內建的週期性組み込まれた周期性 $$X\bigl(e^{j(\omega+2\pi k)}\bigr) = X(e^{j\omega})\qquad\text{for any integer } k$$

The two lines behind that statement are worth writing out, because they are the whole proof — the integer $n$ is doing all the work:

這句話背後的兩行值得寫出來,因為它們就是完整的證明——整數 $n$ 扛下了全部的工作:

この主張の背後にある二行は書き下しておく価値がある。それが証明のすべてだからである——整数である $n$ が仕事のすべてを引き受けている:

Periodicity in ω — the derivation ω 方向的週期性 —— 推導ω 方向の周期性 — 導出 $$\begin{aligned} X\bigl(e^{j(\omega+2\pi)}\bigr) &= \sum_{n=-\infty}^{\infty} x[n]\,e^{-j(\omega+2\pi)n}\\[2pt] &= \sum_{n=-\infty}^{\infty} x[n]\,e^{-j\omega n}\,\underbrace{e^{-j2\pi n}}_{=\,1\ \text{for integer }n} \;=\; X(e^{j\omega}) \end{aligned}$$

Shifting $\omega$ by $2\pi$ multiplies every term by $e^{-j2\pi n}$, and because $n$ is an integer that factor is exactly $1$ — term by term, nothing changes. Contrast this with the CTFT, where the summation index becomes a continuous $t$, $e^{-j2\pi t}\ne 1$, and no periodicity appears. A periodic spectrum is a signature of discrete time.

把 $\omega$ 平移 $2\pi$,每一項都會乘上 $e^{-j2\pi n}$,而因為 $n$ 是整數,這個因子恰好等於 $1$——逐項來看什麼都沒變。對照 CTFT:那裡的求和指標變成連續的 $t$,$e^{-j2\pi t}\ne 1$,週期性也就不會出現。頻譜具有週期性,是離散時間的標誌。

$\omega$ を $2\pi$ だけずらすと各項に $e^{-j2\pi n}$ が掛かるが、$n$ が整数なのでこの因子はちょうど $1$ である——項ごとに見て何も変わらない。CTFT と対比してほしい。あちらでは和の添字が連続変数 $t$ になり、$e^{-j2\pi t}\ne 1$ となって、周期性は現れない。スペクトルが周期的であることは、時間が離散であることの証である。

2026-09-21T17:47:22.846423 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ 0 π 2π 3π 4π 5π ω 0 1 2 3 |X(e^{jω})| magnitude 0 π 2π 3π 4π 5π ω −π 0 π arg{X(e^{jω})} phase
Fig. 4-2 — Magnitude (left) and phase (right) of $X(e^{j\omega})=\dfrac{1}{1-0.6\,e^{-j\omega}}$ over $0\le\omega\le 5\pi$. The whole pattern repeats every $2\pi$ (dashed red lines at $\omega=2\pi,4\pi$), so everything there is to know already lies in one period.
圖 4-2 — $X(e^{j\omega})=\dfrac{1}{1-0.6\,e^{-j\omega}}$ 在 $0\le\omega\le 5\pi$ 上的振幅(左)與相位(右)。整個圖形每隔 $2\pi$ 就重複一次(紅色虛線在 $\omega=2\pi,4\pi$ 處),所以該知道的一切都已經落在一個週期裡了。
図 4-2 — $0\le\omega\le 5\pi$ における $X(e^{j\omega})=\dfrac{1}{1-0.6\,e^{-j\omega}}$ の振幅(左)と位相(右)。全体の形は $2\pi$ ごとに繰り返す(赤い破線が $\omega=2\pi,4\pi$ の位置)ので、知るべきことはすべて一周期のなかにすでに収まっている。
Key — one period tells all
重點 —— 一個週期就說完了一切
要点 — 一周期がすべてを語る
Every DTFT is periodic in $\omega$ with period $2\pi$. We therefore only ever need one period, conventionally $-\pi \le \omega < \pi$ or $0 \le \omega < 2\pi$. High frequencies live near $\omega=\pm\pi$, low frequencies near $\omega = 0$. In Exercise 3 the spectra are plotted over $0\le\omega\le 6\pi$ precisely to make this periodicity visible — you will see three identical copies.每一個 DTFT 對 $\omega$ 都以 $2\pi$ 為週期。因此我們永遠只需要一個週期,慣例上取 $-\pi \le \omega < \pi$ 或 $0 \le \omega < 2\pi$。高頻住在 $\omega=\pm\pi$ 附近,低頻住在 $\omega = 0$ 附近。習題 3 之所以把頻譜畫在 $0\le\omega\le 6\pi$ 上,正是為了讓這個週期性看得見 —— 你會看到三份一模一樣的複本。どの DTFT も $\omega$ について周期 $2\pi$ をもつ。したがって必要なのは常に一周期だけであり、慣例的には $-\pi \le \omega < \pi$ あるいは $0 \le \omega < 2\pi$ をとる。高い周波数は $\omega=\pm\pi$ の近くに、低い周波数は $\omega = 0$ の近くに住んでいる。演習 3 でスペクトルを $0\le\omega\le 6\pi$ の範囲に描くのは、まさにこの周期性を目に見えるようにするためである——まったく同じ複製が三つ並ぶのが見えるだろう。
Why we write $X(e^{j\omega})$ and not $X(\omega)$
為什麼寫 $X(e^{j\omega})$ 而不是 $X(\omega)$
$X(\omega)$ ではなく $X(e^{j\omega})$ と書く理由
The notation is deliberate. The DTFT is really a function of the complex number $e^{j\omega}$ — a point on the unit circle — not of $\omega$ itself. Since $e^{j(\omega+2\pi)} = e^{j\omega}$, pushing $\omega$ past $2\pi$ simply returns to the same point on the circle, so the argument of $X$ has not changed at all. Writing $X(e^{j\omega})$ therefore makes the $2\pi$ periodicity implicit: it is built into the notation and cannot be forgotten, whereas $X(\omega)$ would suggest a fresh value for every fresh $\omega$. That is the phase ambiguity of $e^{j\omega}$ the lecture slide points at, and it is why §4.2.3 may invert the transform by integrating over any single period.這個記號是刻意的。DTFT 真正是複數 $e^{j\omega}$ ——單位圓上的一個點——的函數,而不是 $\omega$ 本身的函數。既然 $e^{j(\omega+2\pi)} = e^{j\omega}$,把 $\omega$ 推過 $2\pi$ 只是回到圓上同一個點,$X$ 的引數根本沒有改變。因此寫成 $X(e^{j\omega})$ 就讓 $2\pi$ 週期性變成內建的:它寫在記號裡,想忘也忘不掉;而 $X(\omega)$ 卻會讓人以為每一個新的 $\omega$ 都有一個新的值。這就是投影片所指的「$e^{j\omega}$ 的相位本身帶有 $2\pi$ 的多值性」,也是 §4.2.3 之所以可以在任何單一個週期上積分來做反轉換的原因。この記法は意図的なものである。DTFT は実のところ、$\omega$ そのものの関数ではなく、複素数 $e^{j\omega}$——単位円上の一点——の関数である。$e^{j(\omega+2\pi)} = e^{j\omega}$ であるから、$\omega$ を $2\pi$ だけ先へ進めても円上の同じ点に戻るだけで、$X$ の引数はまったく変化していない。それゆえ $X(e^{j\omega})$ と書けば $2\pi$ 周期性が暗黙のうちに表現される。周期性は記法に組み込まれていて忘れようがないのに対し、$X(\omega)$ と書くと $\omega$ が新しくなるたびに新しい値があるかのように見えてしまう。これが講義スライドの指摘する $e^{j\omega}$ の位相の多価性であり、§4.2.3 で任意の一周期にわたる積分によって変換を逆にできる理由でもある。
直觀解釋(點擊展開)
離散時間訊號只在整數點 $n$ 上取值,而頻率 $\omega$ 與 $\omega+2\pi$ 的兩個複指數 $e^{j\omega n}$、$e^{j(\omega+2\pi)n}$ 在所有整數 $n$ 上完全相同——取樣點根本分不出差別。 既然「輸入」分不出來,頻譜當然也分不出來,所以 $X(e^{j\omega})$ 必定以 $2\pi$ 為週期。 這也解釋了為什麼離散時間的最高頻率是 $\omega=\pi$(每兩點變號一次):再往上加,只是繞回 已經看過的頻率。連續時間沒有這個現象,因為 $t$ 不是整數,$e^{-j2\pi t}\ne 1$。

4.2.3 Inverse DTFT4.2.3 反 DTFT4.2.3 逆 DTFT

The DTFT can be inverted by integrating over any one period. Multiply $X(e^{j\omega})$ by $e^{j\omega n}$ and integrate:

DTFT 可以藉由在任一個週期上積分來反轉。把 $X(e^{j\omega})$ 乘上 $e^{j\omega n}$ 再積分:

DTFT は、任意の一周期にわたって積分することで逆変換できる。$X(e^{j\omega})$ に $e^{j\omega n}$ を掛けて積分する:

Inverse DTFT (synthesis equation) 反 DTFT(合成式)逆 DTFT(合成式) $$\boxed{\,x[n] = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,e^{j\omega n}\,d\omega\,}$$

The proof rests on the orthogonality of complex exponentials over one period:這個證明建立在複指數於一個週期上的正交性:この証明は、一周期にわたる複素指数の直交性に立脚している:?

Why "over one period"? For integers $n\ne m$, the phasor $e^{j\omega(n-m)}$ makes exactly $|n-m|$ full turns as $\omega$ sweeps any interval of length $2\pi$, so it spends equal time pointing every direction and the integral cancels to $0$. For $n=m$ the integrand is the constant $1$ and the integral is $2\pi$. On a shorter interval the cancellation fails, e.g. $\int_0^{\pi} e^{j\omega}\,d\omega = 2j \ne 0$, so the sifting that isolates $x[n]$ would break.

為什麼要「在一個週期上」?對整數 $n\ne m$,當 $\omega$ 掃過任何長度為 $2\pi$ 的區間時,相量 $e^{j\omega(n-m)}$ 恰好轉滿 $|n-m|$ 整圈,因此指向每個方向的時間一樣長,積分抵消為 $0$。$n=m$ 時被積函數是常數 $1$,積分等於 $2\pi$。區間短於一個週期時抵消就不完全,例如 $\int_0^{\pi} e^{j\omega}\,d\omega = 2j \ne 0$,那麼用來篩出 $x[n]$ 的機制就失效了。

なぜ「一周期にわたって」なのか。整数 $n\ne m$ に対し、$\omega$ が長さ $2\pi$ の任意の区間を掃くあいだ、フェーザ $e^{j\omega(n-m)}$ はちょうど $|n-m|$ 回まるごと回転する。したがってあらゆる方向を向く時間が等しくなり、積分は打ち消し合って $0$ になる。$n=m$ では被積分関数は定数 $1$ であり、積分は $2\pi$ になる。区間がこれより短いと打ち消しが成立せず、たとえば $\int_0^{\pi} e^{j\omega}\,d\omega = 2j \ne 0$ となるので、$x[n]$ を取り出すふるい分けが壊れてしまう。

Orthogonality says that complex exponentials at different frequencies have inner product 0 over a complete period. Since $n-m$ is an integer, $e^{j\omega(n-m)}$ turns a whole number of times over a span of $2\pi$ and closes back on itself, which is what makes the positive and negative parts cancel; over less than a full period a residue is left behind and the proof no longer holds.

中文:正交性是說「不同頻率的複指數在一個完整週期上內積為 0」。$n-m$ 是整數,$e^{j\omega(n-m)}$ 在 $2\pi$ 長度內剛好轉整數圈、頭尾相接,正負才會抵消;不到一個週期就會留下殘值,證明就不成立。

直交性が述べているのは、異なる周波数の複素指数は完全な一周期にわたる内積がゼロになる、ということである。$n-m$ は整数なので、$e^{j\omega(n-m)}$ は $2\pi$ の区間で整数回だけ回って自分自身に閉じる。それが正の部分と負の部分を打ち消させているのである。一周期に満たない区間では残差が残り、証明はもはや成り立たない。

Orthogonality 正交性直交性 $$\frac{1}{2\pi}\int_{-\pi}^{\pi} e^{j\omega(n-m)}\,d\omega = \frac{\sin\pi(n-m)}{\pi(n-m)} = \delta[n-m] \quad{\scriptstyle\textcolor{gray}{\text{(integer } n,m\text{)}}}$$

Verify by substituting into the DTFT代回 DTFT 驗證DTFT に代入して確かめる

Rather than take the pair on faith, substitute the analysis equation into the synthesis integral and watch the orthogonality collapse the double sum. Use $l$ as the dummy index inside $X(e^{j\omega})$ so it cannot be confused with the $n$ we are solving for:

與其直接相信這一對式子,不如把分析式代進合成積分裡,看正交性怎麼把雙重和式壓垮。在 $X(e^{j\omega})$ 裡用 $l$ 當啞指標,以免與我們要解的 $n$ 混淆:

この変換対を鵜呑みにするかわりに、分析式を合成の積分に代入し、直交性が二重和をつぶしていく様子を見てみよう。$X(e^{j\omega})$ の中ではダミー添字に $l$ を使い、求めようとしている $n$ と混同しないようにする:

Verification — synthesis undoes analysis 驗證 —— 合成式抵消分析式検証 — 合成は分析を打ち消す $$\begin{aligned} x[n] &= \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,e^{j\omega n}\,d\omega\\[4pt] &= \frac{1}{2\pi}\int_{-\pi}^{\pi}\Bigl(\sum_{l} x[l]\,e^{-j\omega l}\Bigr)e^{j\omega n}\,d\omega\\[4pt] &= \sum_{l} x[l]\,\underbrace{\frac{1}{2\pi}\int_{-\pi}^{\pi} e^{j\omega(n-l)}\,d\omega}_{\;=\,0\ \text{unless}\ n=l,\ \text{i.e.}\ =\,\delta[n-l]}\\[4pt] &= \sum_{l} x[l]\,\operatorname{sinc}\pi(n-l) \;=\; \sum_{l} x[l]\,\delta[n-l] \;=\; x[n] \end{aligned}$$

Line 2 inserts $X(e^{j\omega})=\sum_l x[l]e^{-j\omega l}$; line 3 pulls the sum outside the integral; line 4 evaluates the inner integral with orthogonality. The inner integral is the sinc of §4.1.2 evaluated at integer arguments — it is $1$ at $n=l$ and lands exactly on a zero crossing of $\sin\pi(n-l)$ for every other integer, so it is the unit sample $\delta[n-l]$. The final sum then sifts out the single term $l=n$ and returns $x[n]$: the transform pair is consistent.

第 2 行代入 $X(e^{j\omega})=\sum_l x[l]e^{-j\omega l}$;第 3 行把求和號提到積分外面;第 4 行用正交性算出內層積分。這個內層積分正是 §4.1.2 的 sinc 在整數引數上取值——在 $n=l$ 時等於 $1$,而對其他每一個整數都恰好落在 $\sin\pi(n-l)$ 的零點上,所以它就是單位脈衝 $\delta[n-l]$。最後的和式再篩出 $l=n$ 這唯一一項,得回 $x[n]$:這一對轉換是自洽的。

2 行目で $X(e^{j\omega})=\sum_l x[l]e^{-j\omega l}$ を代入し、3 行目で和を積分の外へ出し、4 行目で直交性を使って内側の積分を評価する。この内側の積分は §4.1.2 の sinc を整数の引数で評価したものである——$n=l$ では $1$ であり、それ以外のすべての整数ではちょうど $\sin\pi(n-l)$ の零交差に当たる。だからそれはまさに単位サンプル $\delta[n-l]$ である。最後の和が $l=n$ の一項だけをふるい出して $x[n]$ を返す。この変換対は自己無撞着である。

Warning — the sinc here is the unnormalized one
注意 —— 這裡的 sinc 是未正規化的那種
注意 — ここでの sinc は非正規化のほうである
$\operatorname{sinc}\pi(n-l)$ means $\dfrac{\sin\pi(n-l)}{\pi(n-l)}$, the $\sin x/x$ convention of §4.1.2 — not MATLAB's normalized sinc, which would already carry its own $\pi$ and give $\sin(\pi^2(n-l))/(\pi^2(n-l))$. Both conventions still collapse to $\delta[n-l]$ here, but only because the argument is an integer multiple of $\pi$; keep the convention straight whenever you write sinc on an exam.$\operatorname{sinc}\pi(n-l)$ 指的是 $\dfrac{\sin\pi(n-l)}{\pi(n-l)}$,也就是 §4.1.2 的 $\sin x/x$ 定義 —— 不是 MATLAB 那個已正規化的 sinc,後者自帶一個 $\pi$,會給出 $\sin(\pi^2(n-l))/(\pi^2(n-l))$。在這裡兩種定義最後都塌縮成 $\delta[n-l]$,但那只是因為引數恰好是 $\pi$ 的整數倍;考試時只要寫到 sinc,就要先把用的是哪種定義弄清楚。$\operatorname{sinc}\pi(n-l)$ は $\dfrac{\sin\pi(n-l)}{\pi(n-l)}$ を意味する。すなわち §4.1.2 の $\sin x/x$ の流儀であって、MATLAB の正規化された sinc ではない。あちらはすでに自前の $\pi$ をもっているので $\sin(\pi^2(n-l))/(\pi^2(n-l))$ になってしまう。ここではどちらの流儀でも結局 $\delta[n-l]$ につぶれるが、それは引数が $\pi$ の整数倍だからにすぎない。試験で sinc を書くときは、どの流儀かを常にはっきりさせておくこと。
Tip — when is the swap legal?
小技巧 —— 什麼時候可以交換順序?
ヒント — 順序の交換はいつ許されるのか
Exchanging $\sum_l$ and $\int$ in line 3 is not free: it needs the sum to converge well enough (absolute summability is more than sufficient — see §4.2.4). For a merely square-summable $x[n]$ the verification still holds, but in the mean-square sense rather than pointwise.第 3 行交換 $\sum_l$ 與 $\int$ 並不是白吃的午餐:它要求那個和式收斂得夠好(絕對可和已經綽綽有餘 —— 見 §4.2.4)。對僅僅平方可和的 $x[n]$,這個驗證仍然成立,但只在均方意義下,而非逐點成立。3 行目で $\sum_l$ と $\int$ を交換するのはただではない。和が十分よく収束していることが必要である(絶対総和可能なら十分すぎるほどである——§4.2.4 を参照)。単に二乗総和可能なだけの $x[n]$ でもこの検証は成り立つが、各点収束ではなく平均二乗の意味においてである。

The pair (analysis, synthesis) says: $x[n]$ is a superposition of exponentials $e^{j\omega n}$ over a continuum of frequencies, weighted by $X(e^{j\omega})\,d\omega/2\pi$.

這一對式子(分析、合成)說的是:$x[n]$ 是指數 $e^{j\omega n}$ 在一段連續頻率上的疊加,權重為 $X(e^{j\omega})\,d\omega/2\pi$。

この対(分析、合成)が述べているのは、$x[n]$ とは連続的に分布した周波数にわたる指数関数 $e^{j\omega n}$ の重ね合わせであり、その重みが $X(e^{j\omega})\,d\omega/2\pi$ だ、ということである。

中文推導:為什麼反轉換成立(點擊展開)
把 $X(e^{j\omega})=\sum_m x[m]e^{-j\omega m}$ 代入反轉換積分: $$\frac{1}{2\pi}\int_{-\pi}^{\pi}\Bigl(\sum_m x[m]e^{-j\omega m}\Bigr)e^{j\omega n}d\omega =\sum_m x[m]\cdot\frac{1}{2\pi}\int_{-\pi}^{\pi}e^{j\omega(n-m)}d\omega$$ 當 $m\ne n$ 時,$e^{j\omega(n-m)}$ 在一個完整週期內正負抵消、積分為 0; 只有 $m=n$ 時被積函數恆為 1,積分得 $2\pi$。所以整串和只剩下 $x[n]$。 這正是「正交性」:不同頻率的複指數在一個週期上互相垂直。

4.2.4 Convergence4.2.4 收斂性4.2.4 収束性

The DTFT is an infinite sum, so existence is a real question. Three regimes (三種收斂情形):

DTFT 是一個無窮和,所以「存不存在」是個真問題。共有三種情形:

DTFT は無限和なので、存在するかどうかは本当に問題になる。収束のしかたは三通りある(三種類の収束):

Condition on $x[n]$Convergence of $X(e^{j\omega})$Example
Absolutely summable: $\sum_n |x[n]| < \infty$ Uniform convergence; $X$ is continuous in $\omega$ $a^n\mu[n]$, $|a|<1$; any stable $h[n]$
Square summable only: $\sum_n |x[n]|^2 < \infty$ Mean-square convergence; $X$ may be discontinuous (Gibbs ripples at jumps) ideal LPF $h_{lp}[n]=\sin(\omega_c n)/\pi n$
Neither (power signals, periodic signals) Only in the distribution sense — Dirac impulses $\delta(\omega)$ allowed $x[n]=1$, $e^{j\omega_0 n}$, $\cos(\omega_0 n)$, $\mu[n]$
$x[n]$ 需滿足的條件$X(e^{j\omega})$ 的收斂性例子
絕對可和:$\sum_n |x[n]| < \infty$ 均勻收斂;$X$ 對 $\omega$ 連續 $a^n\mu[n]$、$|a|<1$;任何穩定的 $h[n]$
只有平方可和:$\sum_n |x[n]|^2 < \infty$ 均方收斂;$X$ 可能不連續(跳變處出現 Gibbs 漣波) 理想低通 $h_{lp}[n]=\sin(\omega_c n)/\pi n$
兩者皆非(功率訊號、週期訊號) 只在廣義函數(分布)意義下成立 —— 允許出現 Dirac 脈衝 $\delta(\omega)$ $x[n]=1$、$e^{j\omega_0 n}$、$\cos(\omega_0 n)$、$\mu[n]$
$x[n]$ に課す条件$X(e^{j\omega})$ の収束例
絶対総和可能:$\sum_n |x[n]| < \infty$ 一様収束。$X$ は $\omega$ について連続 $a^n\mu[n]$、$|a|<1$。安定な $h[n]$ はすべて
二乗総和可能なだけ:$\sum_n |x[n]|^2 < \infty$ 平均二乗収束。$X$ は不連続になりうる(跳びの位置にギブスのリプル) 理想低域通過フィルタ $h_{lp}[n]=\sin(\omega_c n)/\pi n$
どちらでもない(電力信号、周期信号) 超関数(分布)の意味でのみ成立——ディラックのインパルス $\delta(\omega)$ を許す $x[n]=1$、$e^{j\omega_0 n}$、$\cos(\omega_0 n)$、$\mu[n]$
Tip — stability ⇔ frequency response exists
小技巧 —— 穩定 ⇔ 頻率響應存在
ヒント — 安定性 ⇔ 周波数応答の存在
An LTI system is BIBO stable iff $h[n]$ is absolutely summable — which is exactly the condition for $H(e^{j\omega})$ to exist as an ordinary (uniformly convergent) function. A stable system always has a well-defined frequency response.一個 LTI 系統為 BIBO 穩定的充要條件是 $h[n]$ 絕對可和 —— 而那恰恰就是 $H(e^{j\omega})$ 能以一般(均勻收斂)函數存在的條件。穩定的系統一定有定義良好且連續的頻率響應。LTI システムが BIBO 安定であることと $h[n]$ が絶対総和可能であることは同値であり——それはまさに $H(e^{j\omega})$ が通常の(一様収束する)関数として存在するための条件である。安定なシステムは必ず、よく定義された周波数応答をもつ。

4.2.5 Comparison with the continuous-time transforms4.2.5 與連續時間轉換的比較4.2.5 連続時間の変換との比較

The DTFT has two close relatives already met in §4.1: the continuous-time Fourier series(傅立葉級數) of §4.1.1, which represents a periodic $x(t)$ by discrete coefficients $c_k$, and the continuous-time Fourier transform (CTFT) of §4.1.2, which represents an aperiodic $x(t)$ by a continuous $X(j\Omega)$. All three resolve a signal into complex exponentials, but they are different objects, and nearly every beginner's error in this chapter comes from treating them as interchangeable. Put the three pairs side by side:

DTFT 有兩個在 §4.1 已經見過的近親:§4.1.1 的連續時間傅立葉級數,它用離散係數 $c_k$ 表示週期的 $x(t)$;以及 §4.1.2 的連續時間傅立葉轉換(CTFT),它用連續的 $X(j\Omega)$ 表示非週期的 $x(t)$。三者都把訊號分解成複指數,但它們是不同的東西,而本章初學者幾乎每一個錯誤,都來自把它們當成可以互換。把三組轉換對並排來看:

DTFT には、§4.1 ですでに出会った二つの近親がある。§4.1.1 の連続時間フーリエ級数(フーリエ級数)は周期的な $x(t)$ を離散的な係数 $c_k$ で表し、§4.1.2 の連続時間フーリエ変換(CTFT)は非周期的な $x(t)$ を連続関数 $X(j\Omega)$ で表す。三つとも信号を複素指数に分解するが、互いに別物である。そして本章で初学者が犯す誤りのほとんどすべては、これらを交換可能なものとして扱うことから生じる。三組の変換対を並べて見よう:

The three transform pairs 三組轉換對三組の変換対 $$\begin{aligned} \text{Fourier series:}\quad && c_k &= \frac{1}{T_0}\int_{T_0} x(t)\,e^{-jk\Omega_0 t}\,dt, &\qquad x(t) &= \sum_{k=-\infty}^{\infty} c_k\,e^{jk\Omega_0 t}\\[4pt] \text{CTFT:}\quad && X(j\Omega) &= \int_{-\infty}^{\infty} x(t)\,e^{-j\Omega t}\,dt, &\qquad x(t) &= \frac{1}{2\pi}\int_{-\infty}^{\infty} X(j\Omega)\,e^{j\Omega t}\,d\Omega\\[4pt] \text{DTFT:}\quad && X(e^{j\omega}) &= \sum_{n=-\infty}^{\infty} x[n]\,e^{-j\omega n}, &\qquad x[n] &= \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,e^{j\omega n}\,d\omega \end{aligned}$$

Look at the shapes of the four operations rather than their contents. A sum over an integer index always produces a continuous, periodic function; an integral over one period always produces a discrete sequence; an integral over the whole line produces a continuous, aperiodic function. The Fourier series and the DTFT use the same two operations as each other — just swapped between analysis and synthesis. That is not a coincidence, and §"The DTFT is a Fourier series" below makes it exact.

先看四個運算的形狀,而不是它們的內容。對整數指標求和一定產生連續、週期的函數;在一個週期上積分一定產生離散的序列;在整條實線上積分則產生連續、非週期的函數。傅立葉級數與 DTFT 用的是彼此相同的那兩個運算——只是在分析與合成之間對調了。這並非巧合,下面「DTFT 就是一種傅立葉級數」一節會把它講精確。

四つの演算の中身ではなく、その形に目を向けてほしい。整数の添字にわたる和は必ず連続かつ周期的な関数を生み、一周期にわたる積分は必ず離散的な系列を生み、実軸全体にわたる積分は連続かつ非周期的な関数を生む。フーリエ級数と DTFT は互いに同じ二つの演算を使っている——ただし分析と合成とで入れ替わっているだけである。これは偶然ではなく、下の「DTFT はフーリエ級数である」の節でそれを厳密にする。

Point-by-point逐點對照一点ずつの対応

Fourier series (CTFS)Continuous-time FTDiscrete-time FT
Applies to$x(t)$ periodic, period $T_0$$x(t)$ aperiodicany sequence $x[n]$
Spectrum$c_k$$X(j\Omega)$$X(e^{j\omega})$
Frequency variable$k\Omega_0$ — discrete harmonics, $\Omega_0=2\pi/T_0$$\Omega$ continuous, rad/s$\omega$ continuous, rad/sample (dimensionless)
Analysis$\displaystyle\frac{1}{T_0}\int_{T_0}(\cdot)\,e^{-jk\Omega_0 t}dt$
integral over one period
$\displaystyle\int_{-\infty}^{\infty}(\cdot)\,e^{-j\Omega t}dt$
integral over all $t$
$\displaystyle\sum_{n=-\infty}^{\infty}(\cdot)\,e^{-j\omega n}$
sum over integers
Synthesis$\displaystyle\sum_{k=-\infty}^{\infty} c_k\,e^{jk\Omega_0 t}$
sum over integers
$\displaystyle\frac{1}{2\pi}\int_{-\infty}^{\infty}(\cdot)\,d\Omega$
integral over all $\Omega$
$\displaystyle\frac{1}{2\pi}\int_{-\pi}^{\pi}(\cdot)\,d\omega$
integral over one period
Time domain is…continuous, periodiccontinuous, aperiodicdiscrete, aperiodic
Frequency domain is…discrete, aperiodiccontinuous, aperiodiccontinuous, periodic ($2\pi$)
Distinct frequencies$k=0,\pm1,\pm2,\dots$ — countable$-\infty<\Omega<\infty$ — unboundedone period only, $|\omega|\le\pi$
"Highest" frequencynone; $k$ unboundednone; $\Omega$ unbounded$\omega=\pi$, i.e. $(-1)^n$ — Nyquist
ExistenceDirichlet conditions on $x(t)$$\int|x(t)|\,dt<\infty$$\sum_n|x[n]|<\infty$ — §4.2.4
Gibbs overshoot appears at…jumps of $x(t)$ — in timejumps of $x(t)$ — in timejumps of $X(e^{j\omega})$ — in frequency
Parseval$\displaystyle\frac{1}{T_0}\!\int_{T_0}\!|x|^2dt=\sum_k|c_k|^2$$\displaystyle\int_{-\infty}^{\infty}\!|x|^2dt=\frac{1}{2\pi}\!\int_{-\infty}^{\infty}\!|X|^2d\Omega$$\displaystyle\sum_n|x[n]|^2=\frac{1}{2\pi}\!\int_{-\pi}^{\pi}\!|X|^2d\omega$ — §4.5.1
Generalized form—Laplace $X(s)$; CTFT is $X(s)$ on the $j\Omega$ axis$z$-transform $X(z)$; DTFT is $X(z)$ on the unit circle (Ch. 5)
Convolution theoremidentical in form in all three — convolution $\leftrightarrow$ multiplication (§4.4.3)
傅立葉級數(CTFS)連續時間傅立葉轉換離散時間傅立葉轉換
適用對象$x(t)$ 週期,週期 $T_0$$x(t)$ 非週期任意序列 $x[n]$
頻譜$c_k$$X(j\Omega)$$X(e^{j\omega})$
頻率變數$k\Omega_0$ —— 離散諧波,$\Omega_0=2\pi/T_0$$\Omega$ 連續,rad/s$\omega$ 連續,rad/樣本(無因次)
分析式$\displaystyle\frac{1}{T_0}\int_{T_0}(\cdot)\,e^{-jk\Omega_0 t}dt$
在一個週期上積分
$\displaystyle\int_{-\infty}^{\infty}(\cdot)\,e^{-j\Omega t}dt$
在所有 $t$ 上積分
$\displaystyle\sum_{n=-\infty}^{\infty}(\cdot)\,e^{-j\omega n}$
對整數求和
合成式$\displaystyle\sum_{k=-\infty}^{\infty} c_k\,e^{jk\Omega_0 t}$
對整數求和
$\displaystyle\frac{1}{2\pi}\int_{-\infty}^{\infty}(\cdot)\,d\Omega$
在所有 $\Omega$ 上積分
$\displaystyle\frac{1}{2\pi}\int_{-\pi}^{\pi}(\cdot)\,d\omega$
在一個週期上積分
時域是……連續、週期連續、非週期離散、非週期
頻域是……離散、非週期連續、非週期連續、週期($2\pi$)
相異的頻率$k=0,\pm1,\pm2,\dots$ —— 可數$-\infty<\Omega<\infty$ —— 無界只有一個週期,$|\omega|\le\pi$
「最高」頻率沒有;$k$ 無上界沒有;$\Omega$ 無上界$\omega=\pi$,即 $(-1)^n$ —— Nyquist
存在條件$x(t)$ 滿足 Dirichlet 條件$\int|x(t)|\,dt<\infty$$\sum_n|x[n]|<\infty$ —— §4.2.4
Gibbs 過衝出現在……$x(t)$ 的跳變處 —— 時域$x(t)$ 的跳變處 —— 時域$X(e^{j\omega})$ 的跳變處 —— 頻域
Parseval$\displaystyle\frac{1}{T_0}\!\int_{T_0}\!|x|^2dt=\sum_k|c_k|^2$$\displaystyle\int_{-\infty}^{\infty}\!|x|^2dt=\frac{1}{2\pi}\!\int_{-\infty}^{\infty}\!|X|^2d\Omega$$\displaystyle\sum_n|x[n]|^2=\frac{1}{2\pi}\!\int_{-\pi}^{\pi}\!|X|^2d\omega$ —— §4.5.1
推廣形式—Laplace $X(s)$;CTFT 是 $X(s)$ 在 $j\Omega$ 軸上的值$z$ 轉換 $X(z)$;DTFT 是 $X(z)$ 在單位圓上的值(第 5 章)
卷積定理三者形式完全相同 —— 卷積 $\leftrightarrow$ 相乘(§4.4.3)
フーリエ級数(CTFS)連続時間フーリエ変換離散時間フーリエ変換
適用対象$x(t)$ が周期的、周期 $T_0$$x(t)$ が非周期的任意の系列 $x[n]$
スペクトル$c_k$$X(j\Omega)$$X(e^{j\omega})$
周波数変数$k\Omega_0$ — 離散的な高調波、$\Omega_0=2\pi/T_0$$\Omega$ は連続、rad/s$\omega$ は連続、rad/サンプル(無次元)
分析式$\displaystyle\frac{1}{T_0}\int_{T_0}(\cdot)\,e^{-jk\Omega_0 t}dt$
一周期にわたる積分
$\displaystyle\int_{-\infty}^{\infty}(\cdot)\,e^{-j\Omega t}dt$
すべての $t$ にわたる積分
$\displaystyle\sum_{n=-\infty}^{\infty}(\cdot)\,e^{-j\omega n}$
整数にわたる和
合成式$\displaystyle\sum_{k=-\infty}^{\infty} c_k\,e^{jk\Omega_0 t}$
整数にわたる和
$\displaystyle\frac{1}{2\pi}\int_{-\infty}^{\infty}(\cdot)\,d\Omega$
すべての $\Omega$ にわたる積分
$\displaystyle\frac{1}{2\pi}\int_{-\pi}^{\pi}(\cdot)\,d\omega$
一周期にわたる積分
時間領域は…連続、周期的連続、非周期的離散的、非周期的
周波数領域は…離散的、非周期的連続、非周期的連続、周期的($2\pi$)
相異なる周波数$k=0,\pm1,\pm2,\dots$ — 可算$-\infty<\Omega<\infty$ — 非有界一周期のみ、$|\omega|\le\pi$
「最高」周波数存在しない。$k$ は非有界存在しない。$\Omega$ は非有界$\omega=\pi$、すなわち $(-1)^n$ — ナイキスト
存在条件$x(t)$ がディリクレ条件を満たすこと$\int|x(t)|\,dt<\infty$$\sum_n|x[n]|<\infty$ — §4.2.4
ギブスのオーバーシュートが現れるのは…$x(t)$ の跳び — 時間領域$x(t)$ の跳び — 時間領域$X(e^{j\omega})$ の跳び — 周波数領域
パーセバル$\displaystyle\frac{1}{T_0}\!\int_{T_0}\!|x|^2dt=\sum_k|c_k|^2$$\displaystyle\int_{-\infty}^{\infty}\!|x|^2dt=\frac{1}{2\pi}\!\int_{-\infty}^{\infty}\!|X|^2d\Omega$$\displaystyle\sum_n|x[n]|^2=\frac{1}{2\pi}\!\int_{-\pi}^{\pi}\!|X|^2d\omega$ — §4.5.1
一般化した形—ラプラス変換 $X(s)$。CTFT は $j\Omega$ 軸上の $X(s)$$z$ 変換 $X(z)$。DTFT は単位円上の $X(z)$(第 5 章)
畳み込み定理三つとも形はまったく同じ — 畳み込み $\leftrightarrow$ 乗算(§4.4.3)

The bridge to the CTFT: sampling通往 CTFT 的橋樑:取樣CTFT への橋渡し:標本化

The DTFT and the CTFT are joined by sampling. If $x[n]=x_c(nT)$ are samples of a continuous-time signal taken every $T$ seconds ($\Omega_s=2\pi/T$), then discrete-time frequency is continuous-time frequency normalized by the sampling rate,

DTFT 與 CTFT 由取樣連接起來。若 $x[n]=x_c(nT)$ 是每 $T$ 秒取一次的連續時間訊號樣本($\Omega_s=2\pi/T$),那麼離散時間頻率就是連續時間頻率以取樣率正規化之後的結果,

DTFT と CTFT は標本化によって結びついている。$x[n]=x_c(nT)$ が連続時間信号を $T$ 秒ごとに標本化したものであるとき($\Omega_s=2\pi/T$)、離散時間の周波数とは連続時間の周波数を標本化レートで正規化したものにほかならない。

Frequency normalization 頻率正規化周波数の正規化 $$\boxed{\;\omega = \Omega T = \frac{2\pi\Omega}{\Omega_s} = \frac{2\pi f}{f_s}\;} \qquad\text{so}\qquad \Omega=\frac{\Omega_s}{2}\ \ (\text{Nyquist}) \;\longmapsto\; \omega=\pi$$

and the two spectra are related by scaling and periodic replication:

而兩邊的頻譜之間的關係是縮放加上週期複製:

そして二つのスペクトルはスケーリングと周期的複製によって結ばれている:

Sampling relation (derived in Ch. 6) 取樣關係式(第 6 章推導)標本化の関係式(第 6 章で導出) $$X(e^{j\omega})\Big|_{\omega=\Omega T} \;=\; \frac{1}{T}\sum_{k=-\infty}^{\infty} X_c\!\bigl(j(\Omega - k\Omega_s)\bigr) \;=\; \frac{1}{T}\sum_{k=-\infty}^{\infty} X_c\!\Bigl(j\,\frac{\omega - 2\pi k}{T}\Bigr)$$

Read it as a recipe: take the aperiodic CTFT, scale it by $1/T$, lay down a copy centred on every multiple of $\Omega_s$, and add. The copies are exactly why the DTFT is periodic — and if they overlap, that overlap is aliasing.

可以把它讀成一份食譜:取非週期的 CTFT,乘上 $1/T$ 縮放,然後在 $\Omega_s$ 的每一個倍數處放一份副本,最後全部相加。這些副本正是 DTFT 具有週期性的原因——而如果它們互相重疊,那個重疊就是混疊(aliasing)。

これは調理法だと思って読めばよい。非周期の CTFT をとり、$1/T$ 倍し、$\Omega_s$ の整数倍ごとを中心にその複製を置き、全部を足し合わせる。この複製こそが DTFT が周期的である理由であり——もし複製どうしが重なれば、その重なりがエイリアシングである。

2026-09-16T15:43:56.245554 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −8 −6 −4 −2 0 2 4 6 8 t     ( s ) 0.00 0.25 0.50 0.75 1.00 1.25 x t ( ) ( a )     c o n t i n u o u s - t i m e     ( ) x t −3π −2π −π 0 π 2π 3π Ω     ( r a d / s ) −2 0 2 4 6 8 X j ( Ω ) ( b )     C T F T     ( Ω )     a p e r i o d i c ,   d e c a y s X j — −8 −6 −4 −2 0 2 4 6 8 n     ( s a m p l e s ) 0.00 0.25 0.50 0.75 1.00 1.25 x n [ ] ( c )     s a m p l e d     [ ] = ( ) ,     = 1 x n x n T T −3π −2π −π 0 π 2π 3π ω T = Ω     ( r a d / s a m p l e ) −2.5 0.0 2.5 5.0 7.5 10.0 X e ( ) j ω ( d )     D T F T     ( )     p e r i o d i c ,   2 X e π j ω — shifted CTFT replicas X e ( ) j ω
Fig. 4-3 — CTFT and DTFT of the same rectangle. (a) a continuous pulse of width $T_p=9$ s and (b) its CTFT, the aperiodic sinc $X(j\Omega)=\sin(4.5\Omega)/(\Omega/2)$, which decays and never repeats. (c) the same pulse sampled at $T=1$ s, giving the 9-point rectangular sequence, and (d) its DTFT, the Dirichlet kernel $\sin(4.5\omega)/\sin(\omega/2)$ — periodic with period $2\pi$. The dashed curves in (d) are the shifted, $1/T$-scaled copies of (b); for this signal they sum to the solid DTFT curve exactly.
圖 4-3 — 同一個矩形訊號的 CTFT 與 DTFT。 (a) 寬度 $T_p=9$ 秒的連續脈衝,(b) 它的 CTFT,也就是非週期的 sinc $X(j\Omega)=\sin(4.5\Omega)/(\Omega/2)$,會逐漸衰減且永不重複。 (c) 同一個脈衝以 $T=1$ 秒取樣,得到 9 點的矩形序列,(d) 它的 DTFT,也就是 Dirichlet 核 $\sin(4.5\omega)/\sin(\omega/2)$ —— 以 $2\pi$ 為週期。 (d) 中的虛線是 (b) 平移並乘上 $1/T$ 之後的各份副本;對這個訊號而言,它們恰好加總成實線的 DTFT 曲線。
図 4-3 — 同じ矩形に対する CTFT と DTFT。 (a) 幅 $T_p=9$ 秒の連続パルス、(b) その CTFT すなわち非周期の sinc $X(j\Omega)=\sin(4.5\Omega)/(\Omega/2)$ で、減衰していき決して繰り返さない。 (c) 同じパルスを $T=1$ 秒で標本化して得た 9 点の矩形系列、(d) その DTFT すなわち Dirichlet 核 $\sin(4.5\omega)/\sin(\omega/2)$ で、周期 $2\pi$ をもつ。 (d) の破線は (b) を平行移動し $1/T$ 倍した複製である。この信号については、それらの和が実線の DTFT 曲線にぴたりと一致する。

The bridge to the Fourier series: the DTFT is one通往傅立葉級數的橋樑:DTFT 就是一種傅立葉級數フーリエ級数への橋渡し:DTFT はフーリエ級数である

The relationship to the Fourier series is not an analogy — it is an identity. A Fourier series expands a periodic function into a sum over a discrete index. The DTFT $X(e^{j\omega})$ is a periodic function of $\omega$, and the analysis equation $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ is a sum over a discrete index. So read the DTFT pair with the roles of the two domains exchanged:

它與傅立葉級數的關係不是類比,而是一個恆等。傅立葉級數把一個週期函數展開成對離散指標的求和。而 DTFT $X(e^{j\omega})$ 就是 $\omega$ 的週期函數,分析式 $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ 就是對離散指標的求和。所以把 DTFT 這一對式子中兩個域的角色對調過來讀:

フーリエ級数との関係は類比ではなく、同一性である。フーリエ級数は周期的な関数を離散添字にわたる和に展開する。DTFT $X(e^{j\omega})$ は $\omega$ の周期関数であり、分析式 $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ は離散添字にわたる和である。そこで、二つの領域の役割を入れ替えて DTFT の対を読んでみよう:

The DTFT spectrum, expanded as a Fourier series in $\omega$ 把 DTFT 頻譜展開成 $\omega$ 的傅立葉級數DTFT のスペクトルを $\omega$ のフーリエ級数として展開する $$X(e^{j\omega})=\sum_{k=-\infty}^{\infty} c_k\,e^{jk\omega}, \qquad c_k=\frac{1}{2\pi}\int_{-\pi}^{\pi}X(e^{j\omega})\,e^{-jk\omega}\,d\omega \;=\; \boxed{\,x[-k]\,}$$

The last step is just the inverse DTFT evaluated at $n=-k$. In words: the sequence values are the Fourier-series coefficients of its own spectrum (with the index reflected). A period-$T_0$ waveform in time has discrete coefficients $c_k$; a $2\pi$-periodic spectrum in frequency has discrete "coefficients" $x[-k]$. Same mathematics, the two domains swapped — $T_0 \leftrightarrow 2\pi$ and $t \leftrightarrow -\omega$.

最後一步不過就是反 DTFT 在 $n=-k$ 處取值。用白話說:序列的各個值,就是它自己頻譜的傅立葉級數係數(指標要反號)。時域上週期為 $T_0$ 的波形有離散係數 $c_k$;頻域上週期為 $2\pi$ 的頻譜則有離散的「係數」$x[-k]$。同一套數學,只是兩個域互換——$T_0 \leftrightarrow 2\pi$、$t \leftrightarrow -\omega$。

最後の段階は、逆 DTFT を $n=-k$ で評価しただけのものである。言葉にすれば、系列の各値は、その系列自身のスペクトルのフーリエ係数である(添字は反転する)。時間領域で周期 $T_0$ の波形は離散的な係数 $c_k$ をもち、周波数領域で $2\pi$ 周期のスペクトルは離散的な「係数」$x[-k]$ をもつ。数学は同じで、二つの領域が入れ替わっているだけである——$T_0 \leftrightarrow 2\pi$、$t \leftrightarrow -\omega$ という具合に。

2026-09-16T15:43:56.477745 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −8 −6 −4 −2 0 2 4 6 8 n 0.00 0.25 0.50 0.75 1.00 1.25 x n [ ] ( a )     [ ]     d i s c r e t e ,   a p e r i o d i c x n — −3π −2π −π 0 π 2π 3π ω −2.5 0.0 2.5 5.0 7.5 10.0 12.5 X e ( ) j ω period 2π ( b )     ( )     c o n t i n u o u s ,   p e r i o d i c X e j ω — −10 −5 0 5 10 t 0.00 0.25 0.50 0.75 1.00 1.25 x t ( ) T 0 ( c )     ( )     c o n t i n u o u s ,   p e r i o d i c x t — −10 −5 0 5 10 k     ( h a r m o n i c   n u m b e r ) 0.0 0.1 0.2 0.3 c k ( d )         d i s c r e t e ,   a p e r i o d i c c k — sinc envelope c k
Fig. 4-4 — the DTFT and the Fourier series are mirror images. Top (DTFT): (a) a discrete, aperiodic sequence transforms to (b) a continuous, $2\pi$-periodic spectrum. Bottom (Fourier series): (c) a continuous, $T_0$-periodic waveform — here a rectangular pulse train with duty cycle $T_p/T_0=1/3$ — transforms to (d) discrete, aperiodic coefficients $c_k=\tfrac13\operatorname{sinc}(k/3)=\sin(\pi k/3)/(\pi k)$, samples of a sinc envelope. The arrows run in opposite directions between the same two kinds of object: "discrete and aperiodic" on one side, "continuous and periodic" on the other.
圖 4-4 — DTFT 與傅立葉級數互為鏡像。 上(DTFT):(a) 離散、非週期的序列轉換成 (b) 連續、以 $2\pi$ 為週期的頻譜。 下(傅立葉級數):(c) 連續、以 $T_0$ 為週期的波形——此處是責任週期 $T_p/T_0=1/3$ 的矩形脈衝串——轉換成 (d) 離散、非週期的係數 $c_k=\tfrac13\operatorname{sinc}(k/3)=\sin(\pi k/3)/(\pi k)$,也就是 sinc 包絡上的取樣值。 兩組箭頭在同樣兩類物件之間反方向奔跑:一邊是「離散且非週期」,另一邊是「連續且週期」。
図 4-4 — DTFT とフーリエ級数は互いに鏡像である。 上段(DTFT):(a) 離散で非周期的な系列が (b) 連続で $2\pi$ 周期のスペクトルへ変換される。下段(フーリエ級数):(c) 連続で $T_0$ 周期の波形——ここでは時比率 $T_p/T_0=1/3$ の矩形パルス列——が (d) 離散で非周期的な係数 $c_k=\tfrac13\operatorname{sinc}(k/3)=\sin(\pi k/3)/(\pi k)$、すなわち sinc 包絡の標本値へ変換される。二組の矢印は、同じ二種類の対象のあいだを逆向きに走っている。一方は「離散かつ非周期」、他方は「連続かつ周期」である。
Tip — this is why the ideal lowpass filter rings
小技巧 —— 這就是理想低通濾波器會振鈴的原因
ヒント — 理想低域通過フィルタがリンギングする理由はこれである
The ideal lowpass frequency response $H(e^{j\omega})$ is a brick wall: a $2\pi$-periodic square wave in $\omega$. Its Fourier-series coefficients are, by the boxed result above, its impulse response — the sinc sequence $h_{lp}[n]=\sin(\omega_c n)/\pi n$ of §4.3.3. Truncating that sequence to $|n|\le M$ to make it realizable is therefore exactly forming a partial sum of a Fourier series of a square wave. The overshoot you then see at the band edge is the very same Gibbs phenomenon plotted in Fig. 4-1 — only now it lives on the frequency axis instead of the time axis. Windowed FIR design (Ch. 14) is, in this light, the art of truncating a Fourier series gracefully.理想低通的頻率響應 $H(e^{j\omega})$ 是一堵磚牆:一個以 $2\pi$ 為週期、在 $\omega$ 上的方波。由上面框起來的結論可知,它的傅立葉級數係數就是它的脈衝響應 —— 也就是 §4.3.3 的 sinc 序列 $h_{lp}[n]=\sin(\omega_c n)/\pi n$。因此,為了讓它可實現而把序列截斷到 $|n|\le M$,恰恰就是在取一個方波傅立葉級數的部分和。接著你在帶緣看到的那個過衝,正是圖 4-1 裡畫的同一個 Gibbs 現象 —— 只是現在它住在頻率軸上,而不是時間軸上。從這個角度看,加窗 FIR 設計(第 14 章)就是「如何優雅地截斷一條傅立葉級數」的藝術。理想低域通過フィルタの周波数応答 $H(e^{j\omega})$ はレンガ壁である。すなわち $2\pi$ 周期の$\omega$ 上の方形波にほかならない。上の囲み結果により、そのフーリエ係数はそのインパルス応答——§4.3.3 の sinc 系列 $h_{lp}[n]=\sin(\omega_c n)/\pi n$——である。したがって、実現可能にするためにこの系列を $|n|\le M$ で打ち切ることは、まさしく方形波のフーリエ級数の部分和を作ることにほかならない。そのとき帯域端に見えるオーバーシュートは、図 4-1 に描いたのとまったく同じギブス現象である——ただし今度は時間軸ではなく周波数軸の上に住んでいる。この見方からすれば、窓関数による FIR 設計(第 14 章)とは、フーリエ級数を優雅に打ち切る技術にほかならない。
Concept — discreteness in one domain ⇒ periodicity in the other
觀念 —— 一個域離散 ⇒ 另一個域週期
概念 — 一方の領域が離散 ⇒ 他方の領域が周期的
This is the single rule that organizes all four Fourier transforms. Sampling a signal makes its spectrum periodic; making a signal periodic makes its spectrum discrete:這是統整全部四種傅立葉轉換的唯一一條規則。把訊號取樣,它的頻譜就變成週期的;把訊號變成週期的,它的頻譜就變成離散的:これが四つのフーリエ変換すべてを秩序づけるただ一つの規則である。信号を標本化するとそのスペクトルは周期的になり、信号を周期的にするとそのスペクトルは離散的になる:
Time domainFrequency domainTransform
continuous, aperiodiccontinuous, aperiodicCTFT $X(j\Omega)$ — §4.1.2
continuous, periodic ($T_0$)discrete, aperiodicFourier series $c_k$ — §4.1.1
discrete, aperiodiccontinuous, periodic ($2\pi$)DTFT $X(e^{j\omega})$ — this section
discrete, periodic ($N$)discrete, periodic ($N$)DFS / DFT $X[k]$ — Ch. 8
時域頻域轉換
連續、非週期連續、非週期CTFT $X(j\Omega)$ —— §4.1.2
連續、週期($T_0$)離散、非週期傅立葉級數 $c_k$ —— §4.1.1
離散、非週期連續、週期($2\pi$)DTFT $X(e^{j\omega})$ —— 本節
離散、週期($N$)離散、週期($N$)DFS/DFT $X[k]$ —— 第 8 章
時間領域周波数領域変換
連続、非周期連続、非周期CTFT $X(j\Omega)$ — §4.1.2
連続、周期的($T_0$)離散、非周期フーリエ級数 $c_k$ — §4.1.1
離散、非周期連続、周期的($2\pi$)DTFT $X(e^{j\omega})$ — 本節
離散、周期的($N$)離散、周期的($N$)DFS/DFT $X[k]$ — 第 8 章

Rows 2 and 3 are the mirror pair of Fig. 4-4. The DTFT sits in the third row: discrete time buys periodicity in frequency, but the spectrum is still a continuous function of $\omega$, so it is still not something a computer can hold. Sampling the frequency axis too — the fourth row, where both domains are discrete and periodic — is what produces the DFT.

第 2 列與第 3 列就是圖 4-4 的那組鏡像。DTFT 坐在第 3 列:時間離散換來了頻率的週期性,但頻譜仍是 $\omega$ 的連續函數,所以電腦還是裝不下它。把頻率軸也取樣——第 4 列,兩個域同時離散且週期——得到的才是 DFT。

第 2 行と第 3 行が図 4-4 の鏡像の対である。DTFT は第 3 行に座っている。時間を離散にしたことで周波数の周期性が得られたが、スペクトルは依然として $\omega$ の連続関数であり、まだ計算機に収まるものではない。周波数軸も標本化すること——両方の領域が離散かつ周期的になる第 4 行——が DFT を生むのである。

Warning — four notation traps
注意 —— 四個記號陷阱
注意 — 四つの記号の罠
  • $\Omega$ versus $\omega$. Capital $\Omega$ is analog frequency in rad/s; lower-case $\omega$ is normalized frequency in rad/sample and carries no units. They differ by the factor $T$. Writing "$\omega = 2\pi\cdot 1\,\text{kHz}$" is meaningless without a sampling rate.
  • $c_k$ versus $X(j\Omega)$ versus $X(e^{j\omega})$. The argument is part of the name, and it tells you which of the three transforms — and hence which inversion formula — you are holding. A discrete index $k$ means a Fourier series and a periodic time signal.
  • Two different $T$'s. In §4.1.1 $T$ is the period of a periodic waveform (written $T_0$ here to keep them apart, with $\Omega_0=2\pi/T_0$); from §4.2.5 onward $T$ is the sampling period, with $\Omega_s=2\pi/T$. They are unrelated quantities that happen to share a letter.
  • The $1/T$. The sampling relation carries a factor $1/T=f_s$. Forget it and every magnitude you compute is off by the sampling rate; this is the usual culprit when a spectrum computed two ways disagrees by a constant.
  • $\Omega$ 與 $\omega$。大寫 $\Omega$ 是類比頻率,單位 rad/s;小寫 $\omega$ 是正規化頻率,單位 rad/樣本,不帶物理單位。兩者相差一個因子 $T$。寫「$\omega = 2\pi\cdot 1\,\text{kHz}$」在沒有指定取樣率之前是沒有意義的。
  • $c_k$、$X(j\Omega)$ 與 $X(e^{j\omega})$。引數是名字的一部分,它告訴你手上拿的是三種轉換中的哪一種——也因此決定了該用哪一條反轉換公式。離散指標 $k$ 代表傅立葉級數,也代表一個週期的時間訊號。
  • 兩個不同的 $T$。在 §4.1.1 中 $T$ 是週期波形的週期(這裡寫成 $T_0$ 以資區別,且 $\Omega_0=2\pi/T_0$);從 §4.2.5 起 $T$ 則是取樣週期,且 $\Omega_s=2\pi/T$。兩者是毫無關係的量,只是碰巧用了同一個字母。
  • 那個 $1/T$。取樣關係式帶有一個因子 $1/T=f_s$。忘掉它,你算出來的每一個振幅都會差一個取樣率;當同一個頻譜用兩種方法算出來只差一個常數時,通常就是它在作怪。
  • $\Omega$ と $\omega$ の違い。大文字の $\Omega$ はアナログ周波数で単位は rad/s、小文字の $\omega$ は正規化周波数で単位は rad/サンプル、すなわち無次元である。両者は因子 $T$ だけ異なる。標本化レートを決めずに「$\omega = 2\pi\cdot 1\,\text{kHz}$」と書いても無意味である。
  • $c_k$ と $X(j\Omega)$ と $X(e^{j\omega})$ の違い。引数は名前の一部であり、三つの変換のどれを——したがってどの逆変換公式を——手にしているのかを教えてくれる。離散添字 $k$ はフーリエ級数を、そして周期的な時間信号を意味する。
  • 二つの別物の $T$。§4.1.1 では $T$ は周期波形の周期である(ここでは区別のため $T_0$ と書き、$\Omega_0=2\pi/T_0$ とする)。§4.2.5 以降では $T$ は標本化周期であり、$\Omega_s=2\pi/T$ である。両者はたまたま同じ文字を使っているだけの無関係な量である。
  • あの $1/T$。標本化の関係式は因子 $1/T=f_s$ をもつ。これを忘れると、計算したすべての振幅が標本化レートの分だけずれる。同じスペクトルを二通りに計算して定数倍だけ食い違うとき、たいていはこれが犯人である。
中文整理:三種傅立葉工具到底差在哪(點擊展開)

一句話分工:傅立葉級數處理「連續時間、週期」訊號,頻譜是離散的 $c_k$; 連續時間傅立葉轉換(CTFT)處理「連續時間、非週期」訊號,頻譜是連續且不重複的 $X(j\Omega)$; 離散時間傅立葉轉換(DTFT)處理「離散時間」序列,頻譜是連續但以 $2\pi$ 為週期的 $X(e^{j\omega})$。

只要記一條規則:「某一域離散 ⇒ 另一域週期」。 時間取樣成整數點 ⇒ 頻譜變週期(DTFT);時間變週期 ⇒ 頻譜變離散(傅立葉級數); 兩邊都離散又都週期,就是 DFT(第 8 章)。

為什麼 DTFT 一定是 $2\pi$ 週期?因為 $n$ 是整數, $e^{-j(\omega+2\pi)n}=e^{-j\omega n}e^{-j2\pi n}=e^{-j\omega n}$。 在取樣點上 $\omega$ 與 $\omega+2\pi$ 這兩個複指數長得一模一樣,序列根本分辨不出來。 連續時間沒這問題:$t$ 是實數,頻率可以一路往上、不會繞回來。

DTFT 與 CTFT 怎麼接?(取樣)若 $x[n]=x_c(nT)$,則 $\omega=\Omega T$。 $\Omega=\Omega_s/2$(奈奎斯特頻率)對應 $\omega=\pi$,也就是離散時間能表示的最高頻率 (時域上是 $(-1)^n$ 這種一正一負的跳動)。頻譜關係是 $X(e^{j\omega})=\frac{1}{T}\sum_k X_c\bigl(j(\omega-2\pi k)/T\bigr)$: 把類比頻譜放大 $1/T$ 倍,每隔 $\Omega_s$ 複製一份再相加。副本若重疊就是混疊。 圖 4-2 用矩形脈波示範,而且那些虛線副本疊起來剛好等於實線的 Dirichlet 核,可以用公式嚴格驗証。

DTFT 與傅立葉級數怎麼接?(根本是同一件事) 傅立葉級數是「把週期函數展開成離散係數的和」。而 $X(e^{j\omega})$ 本身就是一個週期函數, $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ 本身就是那樣的和。所以: 序列值 $x[n]$ 就是它自己頻譜的傅立葉級數係數(指標要反號,$c_k=x[-k]$)。 時域週期 $T_0$ ↔ 頻域週期 $2\pi$,兩個域對調而已。圖 4-3 把這個鏡像關係畫出來了。

一個很有用的推論:理想低通在頻域是個方波, 它的「傅立葉係數」就是時域的 sinc 序列 $h_{lp}[n]=\sin(\omega_c n)/\pi n$。 把 sinc 截斷成有限長度,等於只取級數的部分和 —— 所以band edge 一定會出現 Gibbs 過衝,而且和圖 4-1 的方波部分和是同一個現象,只是搬到頻率軸上。 第 14 章的視窗法 FIR 設計,本質上就是在學「怎麼把傅立葉級數截得漂亮一點」。

最容易混淆的地方:$\Omega$(rad/s,有單位)和 $\omega$(rad/sample,無單位) 差一個 $T$;§4.1.1 的 $T$ 是訊號週期(本節寫成 $T_0$),§4.2.5 之後的 $T$ 是取樣週期, 兩者毫無關係只是剛好同一個字母;還有那個 $1/T$ 常數,漏掉就整個振幅差一個取樣率。

4.3 DTFTs of Simple Sequences4.3 簡單序列的 DTFT4.3 簡単な系列の DTFT

4.3.1 Common DTFT pairs4.3.1 常見的 DTFT 轉換對4.3.1 代表的な DTFT 変換対

$x[n]$$X(e^{j\omega})$, one period $|\omega|\le\pi$Note
$\delta[n]$$1$flat spectrum — contains all frequencies equally
$\delta[n-n_0]$$e^{-j\omega n_0}$pure linear phase, $|X|=1$
$1$ (all $n$)$2\pi\,\delta(\omega)$DC only (distribution sense)
$e^{j\omega_0 n}$$2\pi\,\delta(\omega-\omega_0)$single spectral line — derivation
$\cos(\omega_0 n)$$\pi\bigl[\delta(\omega-\omega_0)+\delta(\omega+\omega_0)\bigr]$two lines at $\pm\omega_0$
$a^n \mu[n],\ |a|<1$$\dfrac{1}{1-a\,e^{-j\omega}}$geometric series — see Example 4-A
$\mu[n]$$\dfrac{1}{1-e^{-j\omega}} + \displaystyle\sum_k \pi\,\delta(\omega+2\pi k)$limit $a\to 1$ plus DC impulse — derivation
rect: $x[n]=1,\ 0\le n\le M-1$$\dfrac{\sin(\omega M/2)}{\sin(\omega/2)}\,e^{-j\omega(M-1)/2}$Dirichlet kernel — §4.3.2
$\dfrac{\sin(\omega_c n)}{\pi n}$$\begin{cases}1,&|\omega|\le\omega_c\\0,&\omega_c<|\omega|\le\pi\end{cases}$ideal LPF — §4.3.3
$x[n]$$X(e^{j\omega})$,取一個週期 $|\omega|\le\pi$備註
$\delta[n]$$1$平坦頻譜 —— 所有頻率的成分一樣多
$\delta[n-n_0]$$e^{-j\omega n_0}$純線性相位,$|X|=1$
$1$(所有 $n$)$2\pi\,\delta(\omega)$只有直流(廣義函數意義下)
$e^{j\omega_0 n}$$2\pi\,\delta(\omega-\omega_0)$單一條譜線 —— 推導
$\cos(\omega_0 n)$$\pi\bigl[\delta(\omega-\omega_0)+\delta(\omega+\omega_0)\bigr]$$\pm\omega_0$ 處各一條譜線
$a^n \mu[n],\ |a|<1$$\dfrac{1}{1-a\,e^{-j\omega}}$等比級數 —— 見範例 4-A
$\mu[n]$$\dfrac{1}{1-e^{-j\omega}} + \displaystyle\sum_k \pi\,\delta(\omega+2\pi k)$$a\to 1$ 的極限再加上直流脈衝 —— 推導
矩形:$x[n]=1,\ 0\le n\le M-1$$\dfrac{\sin(\omega M/2)}{\sin(\omega/2)}\,e^{-j\omega(M-1)/2}$Dirichlet 核 —— §4.3.2
$\dfrac{\sin(\omega_c n)}{\pi n}$$\begin{cases}1,&|\omega|\le\omega_c\\0,&\omega_c<|\omega|\le\pi\end{cases}$理想低通 —— §4.3.3
$x[n]$$X(e^{j\omega})$、一周期 $|\omega|\le\pi$注
$\delta[n]$$1$平坦なスペクトル — すべての周波数を等しく含む
$\delta[n-n_0]$$e^{-j\omega n_0}$純粋な線形位相、$|X|=1$
$1$(すべての $n$)$2\pi\,\delta(\omega)$直流のみ(超関数の意味で)
$e^{j\omega_0 n}$$2\pi\,\delta(\omega-\omega_0)$単一のスペクトル線 — 導出
$\cos(\omega_0 n)$$\pi\bigl[\delta(\omega-\omega_0)+\delta(\omega+\omega_0)\bigr]$$\pm\omega_0$ に二本の線
$a^n \mu[n],\ |a|<1$$\dfrac{1}{1-a\,e^{-j\omega}}$等比級数 — 例題 4-A を参照
$\mu[n]$$\dfrac{1}{1-e^{-j\omega}} + \displaystyle\sum_k \pi\,\delta(\omega+2\pi k)$$a\to 1$ の極限に直流インパルスを加えたもの — 導出
矩形:$x[n]=1,\ 0\le n\le M-1$$\dfrac{\sin(\omega M/2)}{\sin(\omega/2)}\,e^{-j\omega(M-1)/2}$Dirichlet 核 — §4.3.2
$\dfrac{\sin(\omega_c n)}{\pi n}$$\begin{cases}1,&|\omega|\le\omega_c\\0,&\omega_c<|\omega|\le\pi\end{cases}$理想低域通過フィルタ — §4.3.3

The geometric series behind almost every DTFT幾乎每個 DTFT 背後的那條等比級數ほとんどすべての DTFT の背後にある等比級数

Every closed form in the table above that is not an impulse comes from one sum. It is worth deriving once, because the same shift-and-subtract trick(平移相減)gives both the infinite and the finite version:

上表中所有不是脈衝的封閉解,全都來自同一個和式。值得推導一次,因為同一招「平移相減」同時給出無窮版與有限版:

上表の閉じた形のうちインパルスでないものは、すべて一つの和から生まれている。一度は導いておく価値がある。同じ「ずらして引く」手口(平行移動して引く)が、無限版と有限版の両方を与えてくれるからである:

Geometric series(等比級數) 等比級數等比級数(幾何級数) $$\begin{aligned} S &= \sum_{n=0}^{\infty} c^{\,n} &&\Longrightarrow\quad cS = \sum_{n=1}^{\infty} c^{\,n}\\[4pt] \Longrightarrow\quad S - cS &= c^{\,0} = 1 &&\Longrightarrow\quad \boxed{\,S = \frac{1}{1-c}\,}\qquad (|c|<1) \end{aligned}$$

Multiplying by $c$ shifts the index by one, so the two sums share every term except $c^0$; subtracting kills the infinite tail and leaves a single number. The restriction $|c|<1$ is what makes the tail vanish — with $|c|\ge 1$ the terms do not go to zero and $S$ does not exist.

乘上 $c$ 會把指標平移一格,於是兩個和式除了 $c^0$ 之外每一項都相同;相減就消掉了無限長的尾巴,只留下一個數。限制 $|c|<1$ 正是讓尾巴消失的條件——若 $|c|\ge 1$,各項不會趨近於零,$S$ 也就不存在。

$c$ を掛けると添字が一つずれるので、二つの和は $c^0$ を除くすべての項を共有する。引き算をすれば無限に続く尾が消え、ただ一つの数が残る。制限 $|c|<1$ こそが尾を消す条件である——$|c|\ge 1$ では各項がゼロに向かわず、$S$ は存在しない。

Truncating the same argument at $n=M-1$ gives the finite sum used in Example 4-B, which needs no condition on $c$ at all (only $c\ne 1$):

把同樣的論證在 $n=M-1$ 處截斷,就得到範例 4-B 要用的有限和,而它對 $c$ 完全不需要任何條件(只要 $c\ne 1$):

同じ議論を $n=M-1$ で打ち切れば、例題 4-B で使う有限和が得られる。こちらは $c$ に何の条件も要らない($c\ne 1$ でさえあればよい):

Finite geometric sum 有限等比和有限等比和 $$\sum_{n=0}^{M-1} c^{\,n} = \frac{1-c^{\,M}}{1-c},\qquad c\neq 1$$
Key — how it becomes a DTFT
重點 —— 它怎麼變成 DTFT
要点 — これがどうして DTFT になるのか
In the DTFT of $a^n\mu[n]$ the ratio is $c = a\,e^{-j\omega}$, and $|c| = |a|\,|e^{-j\omega}| = |a|$, so the series converges for every $\omega$ exactly when $|a|<1$ — the same absolute-summability condition as §4.2.4. For the rectangular pulse the ratio is $c = e^{-j\omega}$ with $|c|=1$, which is why only the finite form may be used there.在 $a^n\mu[n]$ 的 DTFT 裡,公比是 $c = a\,e^{-j\omega}$,而 $|c| = |a|\,|e^{-j\omega}| = |a|$,所以這個級數對每一個 $\omega$ 都收斂的充要條件恰好是 $|a|<1$ —— 與 §4.2.4 的絕對可和條件相同。至於矩形脈衝,公比是 $c = e^{-j\omega}$、$|c|=1$,這就是那裡只能用有限版公式的原因。$a^n\mu[n]$ の DTFT では公比が $c = a\,e^{-j\omega}$ であり、$|c| = |a|\,|e^{-j\omega}| = |a|$ となる。したがってこの級数がすべての $\omega$ で収束するための条件は、ちょうど $|a|<1$ である——§4.2.4 の絶対総和可能性の条件と同じである。矩形パルスでは公比が $c = e^{-j\omega}$ で $|c|=1$ となり、だからこそそこでは有限版の形しか使えないのである。
直觀解釋(點擊展開)
把 $S=1+c+c^2+\cdots$ 乘上 $c$,整串往右平移一項變成 $c+c^2+c^3+\cdots$。兩者只差最前面的 $c^0=1$,相減後無窮多項全部消掉,只剩 $S-cS=1$,於是 $S=\dfrac{1}{1-c}$。 條件 $|c|<1$ 的意義是「尾巴要趨近於零」:若 $|c|\ge 1$,項不會衰減,相減時剩下的尾巴不為零, 這個推導就不成立。有限項的情形不需要收斂條件,因為根本沒有尾巴——相減後剩下 $1-c^{M}$。在 DTFT 中取 $c=a e^{-j\omega}$,因為 $|e^{-j\omega}|=1$,收斂與否只看 $|a|$。
Example 4-A — DTFT of the exponential sequence $x[n]=a^n\mu[n]$範例 4-A —— 指數序列 $x[n]=a^n\mu[n]$ 的 DTFT例題 4-A — 指数系列 $x[n]=a^n\mu[n]$ の DTFT

Assume $|a|<1$ so the sequence is absolutely summable.

假設 $|a|<1$,如此序列才是絕對可和的。

系列が絶対総和可能であるように $|a|<1$ を仮定する。

Insert into the definition and recognize a geometric series: $$X(e^{j\omega}) = \sum_{n=0}^{\infty} a^n e^{-j\omega n} = \sum_{n=0}^{\infty}\bigl(a\,e^{-j\omega}\bigr)^n = \frac{1}{1-a\,e^{-j\omega}} \quad{\scriptstyle\textcolor{gray}{|a e^{-j\omega}| = |a| < 1}}$$
代入定義,並認出這是一條等比級數: $$X(e^{j\omega}) = \sum_{n=0}^{\infty} a^n e^{-j\omega n} = \sum_{n=0}^{\infty}\bigl(a\,e^{-j\omega}\bigr)^n = \frac{1}{1-a\,e^{-j\omega}} \quad{\scriptstyle\textcolor{gray}{|a e^{-j\omega}| = |a| < 1}}$$
定義に代入し、等比級数だと見抜く: $$X(e^{j\omega}) = \sum_{n=0}^{\infty} a^n e^{-j\omega n} = \sum_{n=0}^{\infty}\bigl(a\,e^{-j\omega}\bigr)^n = \frac{1}{1-a\,e^{-j\omega}} \quad{\scriptstyle\textcolor{gray}{|a e^{-j\omega}| = |a| < 1}}$$
Magnitude and phase (rationalize with the conjugate): $$\bigl|X(e^{j\omega})\bigr| = \frac{1}{\sqrt{1-2a\cos\omega+a^2}},\qquad \theta(\omega) = -\arctan\frac{a\sin\omega}{1-a\cos\omega}$$
振幅與相位(乘上共軛把分母有理化): $$\bigl|X(e^{j\omega})\bigr| = \frac{1}{\sqrt{1-2a\cos\omega+a^2}},\qquad \theta(\omega) = -\arctan\frac{a\sin\omega}{1-a\cos\omega}$$
振幅と位相(共役を掛けて分母を有理化する): $$\bigl|X(e^{j\omega})\bigr| = \frac{1}{\sqrt{1-2a\cos\omega+a^2}},\qquad \theta(\omega) = -\arctan\frac{a\sin\omega}{1-a\cos\omega}$$
Sanity check(合理性驗証): for $0<a<1$, $|X|$ is largest at $\omega=0$ (value $\tfrac{1}{1-a}$) and smallest at $\omega=\pi$ (value $\tfrac{1}{1+a}$) — a lowpass shape, consistent with a slowly decaying, smooth time sequence. See Fig. 4-11 for $a=\tfrac12$.
合理性檢查:對 $0<a<1$,$|X|$ 在 $\omega=0$ 處最大(值為 $\tfrac{1}{1-a}$)、在 $\omega=\pi$ 處最小(值為 $\tfrac{1}{1+a}$)—— 這是低通的形狀,與一條緩慢衰減、平滑的時間序列相符。$a=\tfrac12$ 的情形見圖 4-11。
妥当性の確認(健全性チェック):$0<a<1$ のとき、$|X|$ は $\omega=0$ で最大(値は $\tfrac{1}{1-a}$)、$\omega=\pi$ で最小(値は $\tfrac{1}{1+a}$)となる——低域通過型の形であり、ゆるやかに減衰する滑らかな時間系列と整合する。$a=\tfrac12$ の場合は図 4-11 を参照。
Derivation — why $e^{j\omega_0 n}\leftrightarrow 2\pi\,\delta(\omega-\omega_0)$推導 —— 為什麼 $e^{j\omega_0 n}\leftrightarrow 2\pi\,\delta(\omega-\omega_0)$導出 — なぜ $e^{j\omega_0 n}\leftrightarrow 2\pi\,\delta(\omega-\omega_0)$ となるのか

$e^{j\omega_0 n}$ is not absolutely summable, so the DTFT sum does not converge as an ordinary function. There are two ways to reach the table entry.

$e^{j\omega_0 n}$ 不是絕對可和的,所以 DTFT 的和式在一般函數意義下並不收斂。要得到表中那一項,有兩條路。

$e^{j\omega_0 n}$ は絶対総和可能ではないので、DTFT の和は通常の関数としては収束しない。表の項に到達する道は二つある。

(a) Guess and check with the inverse DTFT. A single frequency should give a single spike, $X(e^{j\omega})=A\,\delta(\omega-\omega_0)$. By the sifting property,

(a) 猜一個答案,再用反 DTFT 驗證。單一頻率理應給出單一根尖峰,$X(e^{j\omega})=A\,\delta(\omega-\omega_0)$。由篩選性質,

(a) 答えを推測し、逆 DTFT で検算する。単一の周波数なら単一のスパイク $X(e^{j\omega})=A\,\delta(\omega-\omega_0)$ になるはずである。ふるい分けの性質により、

$$x[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}A\,\delta(\omega-\omega_0)\,e^{j\omega n}\,d\omega =\frac{A}{2\pi}\,e^{j\omega_0 n}\;\Longrightarrow\; A=2\pi .$$

The $2\pi$ cancels the $1/2\pi$ in front of the IDTFT integral.

那個 $2\pi$ 恰好抵消反 DTFT 積分前面的 $1/2\pi$。

この $2\pi$ が、逆 DTFT の積分の前にある $1/2\pi$ を打ち消す。

(b) Forward from the definition, as a limit.

(b) 從定義正向推,取極限。

(b) 定義から順方向に、極限として求める。

Write out the DTFT with $\theta=\omega-\omega_0$: $$X(e^{j\omega})=\sum_{n=-\infty}^{\infty}e^{j\omega_0 n}e^{-j\omega n}=\sum_{n=-\infty}^{\infty}e^{-j\theta n}$$
令 $\theta=\omega-\omega_0$,把 DTFT 寫開: $$X(e^{j\omega})=\sum_{n=-\infty}^{\infty}e^{j\omega_0 n}e^{-j\omega n}=\sum_{n=-\infty}^{\infty}e^{-j\theta n}$$
$\theta=\omega-\omega_0$ と置いて DTFT を書き下す: $$X(e^{j\omega})=\sum_{n=-\infty}^{\infty}e^{j\omega_0 n}e^{-j\omega n}=\sum_{n=-\infty}^{\infty}e^{-j\theta n}$$
Truncate to $-N\dots N$. The finite geometric sum gives the (symmetric) Dirichlet kernel: $$D_N(\theta)=\sum_{n=-N}^{N}e^{-j\theta n}=\frac{\sin\bigl((2N+1)\theta/2\bigr)}{\sin(\theta/2)}$$
截斷到 $-N\dots N$。有限等比和給出(對稱型的)Dirichlet 核: $$D_N(\theta)=\sum_{n=-N}^{N}e^{-j\theta n}=\frac{\sin\bigl((2N+1)\theta/2\bigr)}{\sin(\theta/2)}$$
$-N\dots N$ で打ち切る。有限等比和が(対称型の)Dirichlet 核を与える: $$D_N(\theta)=\sum_{n=-N}^{N}e^{-j\theta n}=\frac{\sin\bigl((2N+1)\theta/2\bigr)}{\sin(\theta/2)}$$
Let $N\to\infty$. At $\theta=0$ every term is 1, so $D_N(0)=2N+1\to\infty$. Away from $\theta=0$ the terms cancel; $D_N$ oscillates ever faster and averages to zero against any smooth function. The area over one period is fixed: $$\int_{-\pi}^{\pi}D_N(\theta)\,d\theta=\sum_{n=-N}^{N}\int_{-\pi}^{\pi}e^{-j\theta n}\,d\theta=2\pi\quad\text{for every }N,$$ since each $n\ne 0$ term is a whole number of cycles and integrates to 0. An infinitely tall, infinitely narrow spike of area $2\pi$ is $2\pi\,\delta(\theta)$.
令 $N\to\infty$。 在 $\theta=0$ 處每一項都是 1,所以 $D_N(0)=2N+1\to\infty$。 離開 $\theta=0$ 之後各項互相抵消;$D_N$ 振盪得愈來愈快,對任何平滑函數取平均都趨近於零。 而它在一個週期上的面積是固定的: $$\int_{-\pi}^{\pi}D_N(\theta)\,d\theta=\sum_{n=-N}^{N}\int_{-\pi}^{\pi}e^{-j\theta n}\,d\theta=2\pi\quad\text{對每一個 }N,$$ 因為每個 $n\ne 0$ 的項都走完整數個週期,積分為 0。一根無限高、無限窄、面積為 $2\pi$ 的尖峰,就是 $2\pi\,\delta(\theta)$。
$N\to\infty$ とする。 $\theta=0$ では各項がすべて 1 なので、$D_N(0)=2N+1\to\infty$ となる。 $\theta=0$ から離れると各項は打ち消し合い、$D_N$ はますます速く振動して、どんな滑らかな関数に対しても平均するとゼロになる。 一周期にわたる面積は固定されている: $$\int_{-\pi}^{\pi}D_N(\theta)\,d\theta=\sum_{n=-N}^{N}\int_{-\pi}^{\pi}e^{-j\theta n}\,d\theta=2\pi\quad\text{for every }N,$$ なぜなら $n\ne 0$ の各項は整数回の周期をちょうど走り、積分すると 0 になるからである。面積 $2\pi$ をもつ無限に高く無限に細いスパイク、それが $2\pi\,\delta(\theta)$ である。
$D_N$ is $2\pi$-periodic, so the spike repeats at every $\theta=2\pi k$. Substituting back $\theta=\omega-\omega_0$: $$X(e^{j\omega})=\sum_{k=-\infty}^{\infty}2\pi\,\delta(\omega-\omega_0-2\pi k)$$ Within $-\pi<\omega<\pi$ only the $k=0$ spike appears: $2\pi\,\delta(\omega-\omega_0)$.
$D_N$ 以 $2\pi$ 為週期,所以這根尖峰在每個 $\theta=2\pi k$ 處重複。代回 $\theta=\omega-\omega_0$: $$X(e^{j\omega})=\sum_{k=-\infty}^{\infty}2\pi\,\delta(\omega-\omega_0-2\pi k)$$ 在 $-\pi<\omega<\pi$ 之內只會出現 $k=0$ 那一根:$2\pi\,\delta(\omega-\omega_0)$。
$D_N$ は $2\pi$ 周期なので、このスパイクは $\theta=2\pi k$ ごとに繰り返す。$\theta=\omega-\omega_0$ を戻すと: $$X(e^{j\omega})=\sum_{k=-\infty}^{\infty}2\pi\,\delta(\omega-\omega_0-2\pi k)$$ $-\pi<\omega<\pi$ の内側に現れるのは $k=0$ のスパイクだけであり、それは $2\pi\,\delta(\omega-\omega_0)$ である。
Key — where each part comes from
重點 —— 每一部分是從哪裡來的
要点 — 各部分はどこから来たのか
$2\pi$: the area of the Dirichlet kernel over one period. $\delta$: the peak becomes infinitely tall and narrow as $N\to\infty$. Sum over $k$: the kernel repeats every $2\pi$. Setting $\omega_0=0$ gives the entry $1\leftrightarrow 2\pi\,\delta(\omega)$.$2\pi$:Dirichlet 核在一個週期上的面積。$\delta$:當 $N\to\infty$ 時峰值變得無限高、無限窄。對 $k$ 求和:這個核每隔 $2\pi$ 就重複一次。令 $\omega_0=0$ 就得到表中的 $1\leftrightarrow 2\pi\,\delta(\omega)$ 那一項。$2\pi$:Dirichlet 核の一周期にわたる面積。 $\delta$:$N\to\infty$ でピークが無限に高く細くなる。 $k$ についての和:この核が $2\pi$ ごとに繰り返す。 $\omega_0=0$ と置けば、表の $1\leftrightarrow 2\pi\,\delta(\omega)$ の項が得られる。
直觀解釋(點擊展開)
$e^{j\omega_0 n}$ 永不衰減,$\sum|x[n]|=\infty$,所以 DTFT 不是一般函數,只能用脈衝表示。 反向驗証:代入 IDTFT,篩選性質取出 $e^{j\omega_0 n}$,係數要等於 1,所以前面要乘 $2\pi$ 抵消 $\tfrac{1}{2\pi}$。 正向推導:把無窮和截成 $-N\dots N$ 得到 Dirichlet 核;$N$ 越大,$\theta=0$ 處峰值 $2N+1$ 越高、越窄, 但一個週期內面積恆為 $2\pi$,極限就是 $2\pi\delta(\theta)$。因為 DTFT 以 $2\pi$ 為週期, 完整頻譜是一串相隔 $2\pi$ 的脈衝,在 $(-\pi,\pi)$ 內只看到 $\omega_0$ 那一根。
Derivation — DTFT of the unit step $\mu[n]$推導 —— 單位步階 $\mu[n]$ 的 DTFT導出 — 単位ステップ $\mu[n]$ の DTFT

From Example 4-A we already have, for $|a|<1$,

由範例 4-A,我們已經知道對 $|a|<1$ 有

例題 4-A により、$|a|<1$ については既に次が分かっている

$$a^n\mu[n]\;\longleftrightarrow\;\frac{1}{1-a\,e^{-j\omega}}$$

and $\mu[n]$ is the $a\to 1$ case. But $a=1$ is exactly where that derivation breaks: $\sum_n|\mu[n]|=\infty$, so the step is not absolutely summable and its DTFT cannot be an ordinary function. Taking the limit carefully shows what the naive substitution loses.

而 $\mu[n]$ 就是 $a\to 1$ 的情形。但 $a=1$ 恰恰是那段推導失效的地方:$\sum_n|\mu[n]|=\infty$,所以步階不是絕對可和的,它的 DTFT 也不可能是一般函數。小心地取極限,才能看出草率代入會漏掉什麼。

そして $\mu[n]$ は $a\to 1$ の場合にあたる。しかし $a=1$ こそ、あの導出が破綻する点である。$\sum_n|\mu[n]|=\infty$ なのでステップは絶対総和可能でなく、その DTFT は通常の関数ではありえない。慎重に極限をとると、安易な代入が何を取りこぼすのかが見えてくる。

1. The limit away from DC. Fix $\omega\neq 2\pi k$. Then $1-a\,e^{-j\omega}$ tends to the nonzero number $1-e^{-j\omega}$, so $$\lim_{a\to 1^-}\frac{1}{1-a\,e^{-j\omega}}=\frac{1}{1-e^{-j\omega}}\qquad(\omega\neq 2\pi k)$$ At $\omega=0$, however, the denominator is $1-a\to 0$: the value blows up. Something is concentrating at DC.
1. 離開直流處的極限。固定 $\omega\neq 2\pi k$。此時 $1-a\,e^{-j\omega}$ 趨近於非零的數 $1-e^{-j\omega}$,所以 $$\lim_{a\to 1^-}\frac{1}{1-a\,e^{-j\omega}}=\frac{1}{1-e^{-j\omega}}\qquad(\omega\neq 2\pi k)$$ 但在 $\omega=0$ 處,分母是 $1-a\to 0$:函數值爆掉了。有東西正在直流處集中。
1. 直流から離れた点での極限。$\omega\neq 2\pi k$ を固定する。このとき $1-a\,e^{-j\omega}$ は非零の数 $1-e^{-j\omega}$ に近づくので、 $$\lim_{a\to 1^-}\frac{1}{1-a\,e^{-j\omega}}=\frac{1}{1-e^{-j\omega}}\qquad(\omega\neq 2\pi k)$$ ところが $\omega=0$ では分母が $1-a\to 0$ となり、値は発散する。何かが直流に集中しつつあるのである。
2. How much area concentrates there. The area under one period is pinned down by the inverse DTFT evaluated at $n=0$, for every $a$: $$x[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=a^0=1 \;\Longrightarrow\;\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=2\pi$$ Split into real and imaginary parts: $$X_a(e^{j\omega})=\frac{1}{1-a\,e^{-j\omega}} =\frac{1-a\cos\omega}{1-2a\cos\omega+a^2}\;-\;j\,\frac{a\sin\omega}{1-2a\cos\omega+a^2}$$ The imaginary part is odd in $\omega$ and contributes nothing, so $\int_{-\pi}^{\pi}\operatorname{Re}X_a\,d\omega=2\pi$ for every $a<1$.
2. 集中過去的面積有多少。一個週期底下的面積可以由反 DTFT 在 $n=0$ 處取值釘死,而且對每一個 $a$ 都成立: $$x[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=a^0=1 \;\Longrightarrow\;\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=2\pi$$ 拆成實部與虛部: $$X_a(e^{j\omega})=\frac{1}{1-a\,e^{-j\omega}} =\frac{1-a\cos\omega}{1-2a\cos\omega+a^2}\;-\;j\,\frac{a\sin\omega}{1-2a\cos\omega+a^2}$$ 虛部對 $\omega$ 是奇函數,貢獻為零,所以對每一個 $a<1$ 都有 $\int_{-\pi}^{\pi}\operatorname{Re}X_a\,d\omega=2\pi$。
2. そこに集中する面積はどれだけか。一周期の下の面積は、逆 DTFT を $n=0$ で評価することで、どの $a$ についても次のように固定される: $$x[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=a^0=1 \;\Longrightarrow\;\int_{-\pi}^{\pi}X_a(e^{j\omega})\,d\omega=2\pi$$ 実部と虚部に分けると: $$X_a(e^{j\omega})=\frac{1}{1-a\,e^{-j\omega}} =\frac{1-a\cos\omega}{1-2a\cos\omega+a^2}\;-\;j\,\frac{a\sin\omega}{1-2a\cos\omega+a^2}$$ 虚部は $\omega$ について奇関数であり何も寄与しないので、$a<1$ のすべてについて $\int_{-\pi}^{\pi}\operatorname{Re}X_a\,d\omega=2\pi$ である。
3. Where the area goes. As $a\to 1^-$ the real part tends pointwise to $$\frac{1-\cos\omega}{2-2\cos\omega}=\frac{1}{2}\qquad(\omega\neq 0),$$ and $\int_{-\pi}^{\pi}\tfrac12\,d\omega=\pi$ — only half of the required $2\pi$. The other $\pi$ has not disappeared; it has been squeezed into an ever taller, ever narrower peak at $\omega=0$. An infinitely tall spike of area $\pi$ is $\pi\,\delta(\omega)$.
3. 這些面積跑到哪裡去了。當 $a\to 1^-$ 時,實部逐點趨近於 $$\frac{1-\cos\omega}{2-2\cos\omega}=\frac{1}{2}\qquad(\omega\neq 0),$$ 而 $\int_{-\pi}^{\pi}\tfrac12\,d\omega=\pi$ —— 只有所需 $2\pi$ 的一半。另外那個 $\pi$ 並沒有消失,它被擠進 $\omega=0$ 處一根愈來愈高、愈來愈窄的峰裡。一根無限高、面積為 $\pi$ 的尖峰,就是 $\pi\,\delta(\omega)$。
3. その面積はどこへ行くのか。$a\to 1^-$ とすると実部は各点で $$\frac{1-\cos\omega}{2-2\cos\omega}=\frac{1}{2}\qquad(\omega\neq 0),$$ に近づき、$\int_{-\pi}^{\pi}\tfrac12\,d\omega=\pi$ となる——必要な $2\pi$ の半分しかない。残りの $\pi$ は消えたのではなく、$\omega=0$ にあるますます高くますます細いピークへ押し込められたのである。面積 $\pi$ をもつ無限に高いスパイク、それが $\pi\,\delta(\omega)$ である。
4. Periodicity. Every DTFT repeats with period $2\pi$, so the spike repeats too:
4. 週期性。每一個 DTFT 都以 $2\pi$ 為週期重複,所以這根尖峰也跟著重複:
4. 周期性。どの DTFT も周期 $2\pi$ で繰り返すので、このスパイクもまた繰り返す:
DTFT of the unit step 單位步階的 DTFT単位ステップの DTFT $$\mu[n]\;\longleftrightarrow\;U(e^{j\omega})=\frac{1}{1-e^{-j\omega}} +\sum_{k=-\infty}^{\infty}\pi\,\delta(\omega+2\pi k)$$

Sanity check — the impulse is the DTFT of $\tfrac12$合理性檢查 —— 那個脈衝就是 $\tfrac12$ 的 DTFT妥当性の確認 — あのインパルスは $\tfrac12$ の DTFT である

Split the step into its even and odd parts. With $\operatorname{sgn}[0]=1$,

把步階拆成偶部與奇部。取 $\operatorname{sgn}[0]=1$,

ステップを偶部と奇部に分ける。$\operatorname{sgn}[0]=1$ と約束すると、

$$\mu[n]=\underbrace{\tfrac12}_{\text{constant}}+\underbrace{\tfrac12\operatorname{sgn}[n]}_{\text{odd (except }n=0)}$$

and the constant $\tfrac12$ is a scaled version of the table entry $1\leftrightarrow 2\pi\,\delta(\omega)$:

而常數 $\tfrac12$ 只是表中 $1\leftrightarrow 2\pi\,\delta(\omega)$ 這一項的縮放版:

そして定数 $\tfrac12$ は、表の項 $1\leftrightarrow 2\pi\,\delta(\omega)$ を定数倍したものである:

$$\tfrac12\;\longleftrightarrow\;\tfrac12\cdot 2\pi\sum_k\delta(\omega+2\pi k)=\sum_k\pi\,\delta(\omega+2\pi k)$$

That is the slide's annotation: the impulse train is literally the DTFT of $\tfrac12$ — the average value the step settles at. The remaining $\tfrac12\operatorname{sgn}[n]$ carries all the $\omega$-dependence and supplies the rational term. Indeed, rationalizing,

這正是投影片上那句註解的意思:那串脈衝確確實實就是 $\tfrac12$ 的 DTFT —— 也就是步階最後穩定下來的平均值。剩下的 $\tfrac12\operatorname{sgn}[n]$ 承載了全部的 $\omega$ 相依性,提供那個有理式項。事實上,把它有理化,

これがスライドの注記の意味である。インパルス列は文字どおり、ステップが落ち着く平均値である $\tfrac12$ の DTFT なのである。残った $\tfrac12\operatorname{sgn}[n]$ が $\omega$ 依存性のすべてを担い、あの有理式の項を供給する。実際、有理化すると、

$$\frac{1}{1-e^{-j\omega}}=\frac{1}{2}-\frac{j}{2}\cot\!\Bigl(\frac{\omega}{2}\Bigr)$$

whose real part is the constant $\tfrac12$ predicted in step 3, and whose odd imaginary part is the transform of $\tfrac12\operatorname{sgn}[n]$.

它的實部正是第 3 步預測的常數 $\tfrac12$,而它為奇函數的虛部,就是 $\tfrac12\operatorname{sgn}[n]$ 的轉換。

その実部は第 3 段階で予言した定数 $\tfrac12$ であり、奇関数である虚部は $\tfrac12\operatorname{sgn}[n]$ の変換である。

Key — magnitude and phase of the continuous part
重點 —— 連續部分的振幅與相位
要点 — 連続部分の振幅と位相
From $U=\tfrac12-\tfrac{j}{2}\cot(\omega/2)$, $$\bigl|U(e^{j\omega})\bigr|=\frac{1}{2\left|\sin(\omega/2)\right|},\qquad \angle U(e^{j\omega})=\frac{\omega}{2}-\frac{\pi}{2}\quad(0<\omega<2\pi),$$ the phase repeating every $2\pi$ — a sawtooth from $-\pi/2$ up to $+\pi/2$. The magnitude diverges at $\omega=2\pi k$, which is exactly where the $\pi$-area impulses sit. See Fig. 4-5.由 $U=\tfrac12-\tfrac{j}{2}\cot(\omega/2)$, $$\bigl|U(e^{j\omega})\bigr|=\frac{1}{2\left|\sin(\omega/2)\right|},\qquad \angle U(e^{j\omega})=\frac{\omega}{2}-\frac{\pi}{2}\quad(0<\omega<2\pi),$$ 相位每隔 $2\pi$ 重複一次 —— 是一條從 $-\pi/2$ 升到 $+\pi/2$ 的鋸齒。振幅在 $\omega=2\pi k$ 處發散,而那正是那些面積為 $\pi$ 的脈衝所在的位置。見圖 4-5。$U=\tfrac12-\tfrac{j}{2}\cot(\omega/2)$ より、 $$\bigl|U(e^{j\omega})\bigr|=\frac{1}{2\left|\sin(\omega/2)\right|},\qquad \angle U(e^{j\omega})=\frac{\omega}{2}-\frac{\pi}{2}\quad(0<\omega<2\pi),$$ となり、位相は $2\pi$ ごとに繰り返す——$-\pi/2$ から $+\pi/2$ まで上る鋸歯状波である。振幅は $\omega=2\pi k$ で発散し、そこがまさに面積 $\pi$ のインパルスの座る位置である。図 4-5 を参照。
Exam trap — $\pi$, not $2\pi$
考試陷阱 —— 是 $\pi$,不是 $2\pi$
試験の罠 — $2\pi$ ではなく $\pi$ である
Writing $\mu[n]\leftrightarrow 1/(1-e^{-j\omega})$ alone is the most common error: it silently drops the DC content. And the impulse weight is $\pi$, not $2\pi$, because the step is half of a constant — its running average is $\tfrac12$, not $1$. A quick check: the even part of $\mu[n]$ is $\tfrac12+\tfrac12\delta[n]$, whose transform $\sum_k\pi\delta(\omega+2\pi k)+\tfrac12$ must equal $\operatorname{Re}U$ — and it does.只寫 $\mu[n]\leftrightarrow 1/(1-e^{-j\omega})$ 是最常見的錯誤:它悄悄地把直流成分丟掉了。而且脈衝的權重是 $\pi$ 而不是 $2\pi$,因為步階只是常數的一半 —— 它的長期平均是 $\tfrac12$,不是 $1$。快速驗算:$\mu[n]$ 的偶部是 $\tfrac12+\tfrac12\delta[n]$,其轉換 $\sum_k\pi\delta(\omega+2\pi k)+\tfrac12$ 必須等於 $\operatorname{Re}U$ —— 確實如此。$\mu[n]\leftrightarrow 1/(1-e^{-j\omega})$ とだけ書くのが最もよくある誤りである。これは直流成分をこっそり落としてしまう。しかもインパルスの重みは $2\pi$ ではなく $\pi$ である。ステップは定数の半分だからであり、その長期平均は $1$ ではなく $\tfrac12$ だからである。手早い確認:$\mu[n]$ の偶部は $\tfrac12+\tfrac12\delta[n]$ であり、その変換 $\sum_k\pi\delta(\omega+2\pi k)+\tfrac12$ は $\operatorname{Re}U$ に等しくなければならない——実際そうなっている。
直觀解釋(點擊展開)
$a^n\mu[n]$ 在 $|a|<1$ 時會衰減,DTFT 是漂亮的 $\dfrac{1}{1-ae^{-j\omega}}$。但單位步階 $\mu[n]$ 永遠不衰減, $\sum|\mu[n]|=\infty$,所以不能直接把 $a=1$ 代進去了事。
關鍵在「面積守恆」:不管 $a$ 多接近 1,一個週期內 $\int X_a\,d\omega$ 永遠等於 $2\pi x[0]=2\pi$。 可是當 $a\to 1$ 時,實部在 $\omega\neq 0$ 處趨近常數 $\tfrac12$,積分只有 $\pi$ —— 少掉的 $\pi$ 並沒有消失,而是全部擠到 $\omega=0$ 變成無限高、無限窄的尖峰,也就是 $\pi\delta(\omega)$。 因為 DTFT 以 $2\pi$ 為週期,這根尖峰每隔 $2\pi$ 重複一次。
另一個更直觀的看法:把 $\mu[n]$ 拆成「常數 $\tfrac12$」加上「奇對稱的 $\tfrac12\operatorname{sgn}[n]$」。 常數 $\tfrac12$ 的 DTFT 就是 $\tfrac12\times 2\pi\delta=\pi\delta$(投影片上綠字標的正是這件事), 剩下的奇部分則給出 $\dfrac{1}{1-e^{-j\omega}}$ 的虛部 $-\tfrac{j}{2}\cot(\omega/2)$。 所以脈衝的權重是 $\pi$ 而不是 $2\pi$ —— 因為步階只是常數的一半。
2026-09-24T07:58:14.305109 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −3π −2π −π 0 π 2π 3π 0 1 2 3 | U ( e ) | j ω impulses of area π at ω = 2πk Unit step μ[n]: magnitude 1/(2|sin(ω/2)|) plus π-area impulses −3π −2π −π 0 π 2π 3π ω (rad/sample) −π/2 0 π/2 ∠ U ( e ) j ω phase of the continuous part: ω/2 − π/2 on (0, 2π), repeating every 2π
Fig. 4-5 — Spectrum of the unit step. Top: the continuous part $1/(2|\sin(\omega/2)|)$ (blue) blowing up at $\omega=2\pi k$, with the $\pi$-area impulses (red) drawn at the same frequencies. Bottom: the phase $\omega/2-\pi/2$, a sawtooth of period $2\pi$.
圖 4-5 — 單位步階的頻譜。上:連續部分 $1/(2|\sin(\omega/2)|)$(藍色)在 $\omega=2\pi k$ 處發散,紅色則是畫在相同頻率上、面積為 $\pi$ 的脈衝。下:相位 $\omega/2-\pi/2$,一條週期為 $2\pi$ 的鋸齒波。
図 4-5 — 単位ステップのスペクトル。上:連続部分 $1/(2|\sin(\omega/2)|)$(青)が $\omega=2\pi k$ で発散し、同じ周波数に面積 $\pi$ のインパルス(赤)が描かれている。下:位相 $\omega/2-\pi/2$、周期 $2\pi$ の鋸歯状波である。
Worked example — $x[n]=\delta[n]+\alpha^{n}\mu[n-1]$完整範例 —— $x[n]=\delta[n]+\alpha^{n}\mu[n-1]$詳解例 — $x[n]=\delta[n]+\alpha^{n}\mu[n-1]$

This one looks like a new transform, but it is just the two tools above — linearity and the time-shift theorem — plus one bit of bookkeeping. Assume $|\alpha|<1$.

這一題看起來像是一個新的轉換,其實只用到上面兩樣工具——線性與時移定理——再加上一點記帳功夫。假設 $|\alpha|<1$。

これは新しい変換のように見えるが、実際は上の二つの道具——線形性と時間シフト定理——に、ちょっとした帳尻合わせを加えただけである。$|\alpha|<1$ とする。

1. Force the shifted term into a recognizable shape. The sequence $\alpha^{n}\mu[n-1]$ is not $\alpha^{n}\mu[n]$ delayed by one — a delayed copy would read $\alpha^{\,n-1}\mu[n-1]$. Pull out one factor of $\alpha$ to fix the exponent: $$x[n]=\delta[n]+\alpha^{n}\mu[n-1] =\delta[n]+\alpha\bigl(\alpha^{\,n-1}\mu[n-1]\bigr)$$ Now the bracket is $g[n-1]$ with $g[n]=\alpha^{n}\mu[n]$.
1. 把位移項湊成認得出來的形狀。序列 $\alpha^{n}\mu[n-1]$ 並不是 $\alpha^{n}\mu[n]$ 延遲一格——延遲一格的複本應該寫成 $\alpha^{\,n-1}\mu[n-1]$。把一個 $\alpha$ 提出來修正指數: $$x[n]=\delta[n]+\alpha^{n}\mu[n-1] =\delta[n]+\alpha\bigl(\alpha^{\,n-1}\mu[n-1]\bigr)$$ 現在括號裡就是 $g[n-1]$,其中 $g[n]=\alpha^{n}\mu[n]$。
1. シフトされた項を見覚えのある形に整える。系列 $\alpha^{n}\mu[n-1]$ は $\alpha^{n}\mu[n]$ を 1 サンプル遅らせたものではない。遅延させた複製なら $\alpha^{\,n-1}\mu[n-1]$ と書けるはずである。指数を直すために $\alpha$ を一つ括り出す: $$x[n]=\delta[n]+\alpha^{n}\mu[n-1] =\delta[n]+\alpha\bigl(\alpha^{\,n-1}\mu[n-1]\bigr)$$ これで括弧の中は、$g[n]=\alpha^{n}\mu[n]$ とおいたときの $g[n-1]$ そのものになる。
2. Transform term by term. $\delta[n]\leftrightarrow 1$, and by Example 4-A $g[n]\leftrightarrow 1/(1-\alpha e^{-j\omega})$. A delay of one sample multiplies by $e^{-j\omega\cdot 1}$: $$X(e^{j\omega})=1+\alpha\left(e^{-j\omega}\cdot\frac{1}{1-\alpha e^{-j\omega}}\right) =1+\frac{\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}}$$
2. 逐項轉換。$\delta[n]\leftrightarrow 1$,而由範例 4-A 得 $g[n]\leftrightarrow 1/(1-\alpha e^{-j\omega})$。延遲一個樣本就是乘上 $e^{-j\omega\cdot 1}$: $$X(e^{j\omega})=1+\alpha\left(e^{-j\omega}\cdot\frac{1}{1-\alpha e^{-j\omega}}\right) =1+\frac{\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}}$$
2. 項ごとに変換する。$\delta[n]\leftrightarrow 1$ であり、例題 4-A より $g[n]\leftrightarrow 1/(1-\alpha e^{-j\omega})$ である。1 サンプルの遅延は $e^{-j\omega\cdot 1}$ を掛けることにあたる: $$X(e^{j\omega})=1+\alpha\left(e^{-j\omega}\cdot\frac{1}{1-\alpha e^{-j\omega}}\right) =1+\frac{\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}}$$
3. Combine over a common denominator. $$X(e^{j\omega})=\frac{\bigl(1-\alpha e^{-j\omega}\bigr)+\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}} =\boxed{\;\frac{1}{1-\alpha e^{-j\omega}}\;}$$ The two $\alpha e^{-j\omega}$ terms cancel exactly.
3. 通分合併。 $$X(e^{j\omega})=\frac{\bigl(1-\alpha e^{-j\omega}\bigr)+\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}} =\boxed{\;\frac{1}{1-\alpha e^{-j\omega}}\;}$$ 兩個 $\alpha e^{-j\omega}$ 恰好互相抵消。
3. 通分してまとめる。 $$X(e^{j\omega})=\frac{\bigl(1-\alpha e^{-j\omega}\bigr)+\alpha e^{-j\omega}}{1-\alpha e^{-j\omega}} =\boxed{\;\frac{1}{1-\alpha e^{-j\omega}}\;}$$ 二つの $\alpha e^{-j\omega}$ はきれいに打ち消し合う。
4. Read the answer backwards. That is the transform of $\alpha^{n}\mu[n]$, so $$x[n]=\delta[n]+\alpha^{n}\mu[n-1]=\alpha^{n}\mu[n]$$
4. 把答案反著讀。那正是 $\alpha^{n}\mu[n]$ 的轉換,所以 $$x[n]=\delta[n]+\alpha^{n}\mu[n-1]=\alpha^{n}\mu[n]$$
4. 答えを逆向きに読む。これは $\alpha^{n}\mu[n]$ の変換にほかならないので、 $$x[n]=\delta[n]+\alpha^{n}\mu[n-1]=\alpha^{n}\mu[n]$$
Key — the identity was there all along
重點 —— 這個恆等式其實一直都在
要点 — この恒等式は初めからそこにあった
$\mu[n]=\delta[n]+\mu[n-1]$: the step is its own delayed copy plus the sample at the origin. Multiplying by $\alpha^{n}$ (and using $\alpha^{0}=1$ at $n=0$) gives $\alpha^{n}\mu[n]=\delta[n]+\alpha^{n}\mu[n-1]$ directly. The frequency-domain route is a consistency check: linearity, the shift theorem and Example 4-A must agree with the time-domain identity, and they do.$\mu[n]=\delta[n]+\mu[n-1]$:步階等於它自己延遲一格的複本,再加上原點那一個樣本。兩邊乘上 $\alpha^{n}$(並在 $n=0$ 用到 $\alpha^{0}=1$),就直接得到 $\alpha^{n}\mu[n]=\delta[n]+\alpha^{n}\mu[n-1]$。走頻域那條路只是一次一致性檢查:線性、位移定理與範例 4-A 必須與這個時域恆等式吻合,而它們確實吻合。$\mu[n]=\delta[n]+\mu[n-1]$、すなわちステップは自分自身を遅らせた複製に原点の標本を足したものである。両辺に $\alpha^{n}$ を掛け($n=0$ では $\alpha^{0}=1$ を使い)、$\alpha^{n}\mu[n]=\delta[n]+\alpha^{n}\mu[n-1]$ が直ちに得られる。周波数領域を通る道筋は整合性の確認にすぎない。線形性、シフト定理、例題 4-A は、この時間領域の恒等式と一致しなければならず、実際に一致している。
Tip — the exam version of this problem
小技巧 —— 這題的考試版本
ヒント — この問題の試験版
Split-off-the-first-sample is the standard way to handle a sequence that starts at $n=1$ instead of $n=0$. Watch the exponent: $\alpha^{n}\mu[n-1]$ carries $\alpha^{n}$, not $\alpha^{\,n-1}$, so the shift theorem cannot be applied until the extra factor $\alpha$ has been pulled out front. Forgetting it is the usual way to land on $\dfrac{1}{1-\alpha e^{-j\omega}}\cdot e^{-j\omega}$, which is off by a whole factor of $\alpha$.「把第一個樣本單獨拆出來」是處理從 $n=1$ 而非 $n=0$ 開始的序列的標準做法。要盯緊指數:$\alpha^{n}\mu[n-1]$ 帶的是 $\alpha^{n}$ 而不是 $\alpha^{\,n-1}$,所以必須先把多出來的因子 $\alpha$ 提到前面,才能套用位移定理。忘了這一步,通常就會得到 $\dfrac{1}{1-\alpha e^{-j\omega}}\cdot e^{-j\omega}$,整整差了一個 $\alpha$。最初の標本を切り離すのは、$n=0$ ではなく $n=1$ から始まる系列を扱う標準的な手である。指数に注意すること。$\alpha^{n}\mu[n-1]$ がもつのは $\alpha^{\,n-1}$ ではなく $\alpha^{n}$ なので、余分な因子 $\alpha$ を前へ括り出すまではシフト定理を適用できない。これを忘れると、たいてい $\dfrac{1}{1-\alpha e^{-j\omega}}\cdot e^{-j\omega}$ にたどり着いてしまい、まるごと $\alpha$ 一つ分ずれる。
直觀解釋(點擊展開)
$\alpha^{n}\mu[n-1]$ 只是「從 $n=1$ 才開始」的指數序列,而 $\delta[n]$ 剛好補上 $n=0$ 那一點 (值為 $\alpha^{0}=1$),兩者加起來當然就是完整的 $\alpha^{n}\mu[n]$。
用頻域算一遍是為了練習兩個性質。重點在第一步:時移定理要求括號裡必須是「同一個序列整體往右移」, 但 $\alpha^{n}\mu[n-1]$ 的指數是 $\alpha^{n}$ 而不是 $\alpha^{\,n-1}$,所以要先提出一個 $\alpha$, 寫成 $\alpha\cdot\alpha^{\,n-1}\mu[n-1]$,括號裡才真的是 $g[n-1]$。之後乘上 $e^{-j\omega}$、通分, $\alpha e^{-j\omega}$ 剛好一正一負消掉,得回 $\dfrac{1}{1-\alpha e^{-j\omega}}$,與時域答案一致。

4.3.2 The rectangular pulse and the Dirichlet kernel4.3.2 矩形脈衝與 Dirichlet 核4.3.2 矩形パルスと Dirichlet 核

Example 4-B — DTFT of a length-$M$ rectangular pulse範例 4-B —— 長度 $M$ 矩形脈衝的 DTFT例題 4-B — 長さ $M$ の矩形パルスの DTFT

Let $x[n]=1$ for $0\le n\le M-1$ and zero elsewhere — a finite geometric sum:

令 $0\le n\le M-1$ 時 $x[n]=1$,其餘為零——這是一個有限等比和:

$0\le n\le M-1$ で $x[n]=1$、それ以外ではゼロとする——これは有限等比和である:

$$X(e^{j\omega}) = \sum_{n=0}^{M-1} e^{-j\omega n} = \frac{1-e^{-j\omega M}}{1-e^{-j\omega}}$$
Factor half-angle exponentials from numerator and denominator: $$X(e^{j\omega}) = \frac{e^{-j\omega M/2}\bigl(e^{j\omega M/2}-e^{-j\omega M/2}\bigr)} {e^{-j\omega/2}\bigl(e^{j\omega/2}-e^{-j\omega/2}\bigr)} = \underbrace{\frac{\sin(\omega M/2)}{\sin(\omega/2)}}_{\text{Dirichlet kernel}}\; e^{-j\omega(M-1)/2}$$
把半角指數從分子與分母裡提出來: $$X(e^{j\omega}) = \frac{e^{-j\omega M/2}\bigl(e^{j\omega M/2}-e^{-j\omega M/2}\bigr)} {e^{-j\omega/2}\bigl(e^{j\omega/2}-e^{-j\omega/2}\bigr)} = \underbrace{\frac{\sin(\omega M/2)}{\sin(\omega/2)}}_{\text{Dirichlet 核}}\; e^{-j\omega(M-1)/2}$$
分子と分母から半角の指数を括り出す: $$X(e^{j\omega}) = \frac{e^{-j\omega M/2}\bigl(e^{j\omega M/2}-e^{-j\omega M/2}\bigr)} {e^{-j\omega/2}\bigl(e^{j\omega/2}-e^{-j\omega/2}\bigr)} = \underbrace{\frac{\sin(\omega M/2)}{\sin(\omega/2)}}_{\text{Dirichlet kernel}}\; e^{-j\omega(M-1)/2}$$
The linear-phase factor $e^{-j\omega(M-1)/2}$ just reflects that the pulse is centered at $n=(M-1)/2$. Zeros of $|X|$ fall at $\omega = 2\pi k/M$, $k=1,\dots,M-1$; the mainlobe width is $4\pi/M$ — longer pulse, narrower mainlobe.
線性相位因子 $e^{-j\omega(M-1)/2}$ 只是反映出脈衝的中心落在 $n=(M-1)/2$。$|X|$ 的零點落在 $\omega = 2\pi k/M$($k=1,\dots,M-1$);主瓣寬度為 $4\pi/M$ —— 脈衝愈長,主瓣愈窄。
線形位相の因子 $e^{-j\omega(M-1)/2}$ は、パルスの中心が $n=(M-1)/2$ にあることを反映しているにすぎない。$|X|$ の零点は $\omega = 2\pi k/M$、$k=1,\dots,M-1$ に落ちる。メインローブの幅は $4\pi/M$ であり——パルスが長いほどメインローブは狭くなる。
2026-06-12T22:19:56.495291 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −π −π/2 0 π/2 π ω (rad/sample) 0 2 4 6 8 |X(e^jω)| zeros at ω = 2πk/M |X(e^jω)| of length-8 rectangular pulse (Dirichlet kernel)
Fig. 4-6 — Magnitude of the DTFT of a length-8 rectangular pulse: the Dirichlet kernel $\left|\sin(\omega M/2)/\sin(\omega/2)\right|$, the discrete-time analogue of the sinc. Peak value $M$ at $\omega=0$; zeros at $\omega=2\pi k/M$.
圖 4-6 — 長度 8 矩形脈衝的 DTFT 振幅:Dirichlet 核 $\left|\sin(\omega M/2)/\sin(\omega/2)\right|$,也就是離散時間版的 sinc。峰值在 $\omega=0$ 處為 $M$;零點落在 $\omega=2\pi k/M$。
図 4-6 — 長さ 8 の矩形パルスの DTFT の振幅:Dirichlet 核 $\left|\sin(\omega M/2)/\sin(\omega/2)\right|$ であり、sinc の離散時間版にあたる。$\omega=0$ でのピーク値は $M$、零点は $\omega=2\pi k/M$ にある。

4.3.3 The ideal lowpass filter and the sinc sequence4.3.3 理想低通濾波器與 sinc 序列4.3.3 理想低域通過フィルタと sinc 系列

Going the other way — specify a perfect rectangle in frequency and ask what sequence produces it. With cutoff $\omega_c$:

反過來走——直接在頻域指定一個完美的矩形,再問是什麼序列產生了它。取截止頻率 $\omega_c$:

逆向きに進んでみよう——周波数領域で完全な矩形を指定し、それを生む系列は何かと問うのである。遮断周波数を $\omega_c$ とすると:

Ideal lowpass filter 理想低通濾波器理想低域通過フィルタ $$H_{lp}(e^{j\omega}) = \begin{cases}1, & |\omega|\le\omega_c\\ 0, & \omega_c<|\omega|\le\pi\end{cases} \qquad\Longrightarrow\qquad h_{lp}[n] = \frac{1}{2\pi}\int_{-\omega_c}^{\omega_c} e^{j\omega n}\,d\omega = \frac{\sin(\omega_c n)}{\pi n},\quad -\infty<n<\infty$$

At $n=0$ the value is $h_{lp}[0]=\omega_c/\pi$ (take the limit). The impulse response is a sampled sinc.

在 $n=0$ 處其值為 $h_{lp}[0]=\omega_c/\pi$(取極限)。這個脈衝響應就是取樣後的 sinc。

$n=0$ での値は $h_{lp}[0]=\omega_c/\pi$ である(極限をとる)。このインパルス応答は標本化された sinc にほかならない。

2026-06-12T22:19:56.612945 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ −20 −15 −10 −5 0 5 10 15 20 n −0.05 0.00 0.05 0.10 0.15 0.20 0.25 h_lp[n] Ideal lowpass filter impulse response, ω_c = π/4 (sinc envelope dashed)
Fig. 4-7 — Impulse response of the ideal lowpass filter with $\omega_c=\pi/4$: $h_{lp}[n]=\sin(\omega_c n)/\pi n$, a two-sided, infinitely long sinc sequence (dashed: continuous sinc envelope).
圖 4-7 — 截止頻率 $\omega_c=\pi/4$ 的理想低通濾波器脈衝響應:$h_{lp}[n]=\sin(\omega_c n)/\pi n$,一條雙邊、無限長的 sinc 序列(虛線為連續的 sinc 包絡)。
図 4-7 — 遮断周波数 $\omega_c=\pi/4$ の理想低域通過フィルタのインパルス応答:$h_{lp}[n]=\sin(\omega_c n)/\pi n$、両側に無限に続く sinc 系列である(破線は連続の sinc 包絡)。
Warning — the ideal LPF is unrealizable
注意 —— 理想低通濾波器無法實現
注意 — 理想低域通過フィルタは実現できない
$h_{lp}[n]$ is noncausal (nonzero for $n<0$) and decays only like $1/n$, so it is not absolutely summable — the ideal LPF is unstable and cannot be implemented exactly. Its DTFT converges only in the mean-square sense, with Gibbs ripples appearing whenever the sinc is truncated. All of filter design (Chapters 13–14) is the art of approximating this ideal with realizable systems.$h_{lp}[n]$ 是非因果的($n<0$ 時不為零),而且只以 $1/n$ 的速度衰減,所以它不是絕對可和的 —— 理想低通濾波器不穩定,也無法精確實現。它的 DTFT 只在均方意義下收斂,而且只要把 sinc 截斷就會出現 Gibbs 漣波。整個濾波器設計(第 13–14 章)就是「用可實現的系統逼近這個理想」的藝術。$h_{lp}[n]$ は非因果的であり($n<0$ でも非零)、しかも $1/n$ 程度にしか減衰しないので、絶対総和可能ではない。つまり理想低域通過フィルタは不安定であり、厳密に実装することはできない。その DTFT は平均二乗の意味でしか収束せず、sinc を打ち切れば必ずギブスのリプルが現れる。フィルタ設計(第 13–14 章)のすべては、この理想を実現可能なシステムで近似する技術にほかならない。

4.4 DTFT Theorems and Properties4.4 DTFT 定理與性質4.4 DTFT の定理と性質

4.4.1 Property table4.4.1 性質表4.4.1 性質の一覧表

Let $x[n]\leftrightarrow X(e^{j\omega})$, $g[n]\leftrightarrow G(e^{j\omega})$. All transforms below are $2\pi$-periodic, so frequency shifts wrap around.

令 $x[n]\leftrightarrow X(e^{j\omega})$、$g[n]\leftrightarrow G(e^{j\omega})$。以下所有轉換都以 $2\pi$ 為週期,所以頻率平移會繞回來。

$x[n]\leftrightarrow X(e^{j\omega})$、$g[n]\leftrightarrow G(e^{j\omega})$ とする。以下の変換はすべて $2\pi$ 周期なので、周波数シフトは回り込む。

PropertySequenceDTFT
Linearity(線性)$\alpha x[n]+\beta g[n]$$\alpha X(e^{j\omega})+\beta G(e^{j\omega})$
Time shift(時移)$x[n-n_0]$$e^{-j\omega n_0}\,X(e^{j\omega})$
Frequency shift / modulation(調變)$e^{j\omega_0 n}\,x[n]$$X\bigl(e^{j(\omega-\omega_0)}\bigr)$
Time reversal(時間反轉)$x[-n]$$X(e^{-j\omega})$
Conjugation(共軛)$x^*[n]$$X^*(e^{-j\omega})$
Frequency differentiation$n\,x[n]$$j\,\dfrac{dX(e^{j\omega})}{d\omega}$
Convolution(卷積)$x[n]\ast g[n]$$X(e^{j\omega})\,G(e^{j\omega})$
Multiplication / windowing(加窗)$x[n]\,g[n]$$\dfrac{1}{2\pi}\displaystyle\int_{-\pi}^{\pi} X(e^{j\theta})\,G\bigl(e^{j(\omega-\theta)}\bigr)\,d\theta$
Parseval(能量守恆)$\displaystyle\sum_{n=-\infty}^{\infty} x[n]\,g^*[n] = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,G^*(e^{j\omega})\,d\omega$
性質序列DTFT
線性$\alpha x[n]+\beta g[n]$$\alpha X(e^{j\omega})+\beta G(e^{j\omega})$
時移$x[n-n_0]$$e^{-j\omega n_0}\,X(e^{j\omega})$
頻移/調變$e^{j\omega_0 n}\,x[n]$$X\bigl(e^{j(\omega-\omega_0)}\bigr)$
時間反轉$x[-n]$$X(e^{-j\omega})$
共軛$x^*[n]$$X^*(e^{-j\omega})$
頻域微分$n\,x[n]$$j\,\dfrac{dX(e^{j\omega})}{d\omega}$
卷積$x[n]\ast g[n]$$X(e^{j\omega})\,G(e^{j\omega})$
相乘/加窗$x[n]\,g[n]$$\dfrac{1}{2\pi}\displaystyle\int_{-\pi}^{\pi} X(e^{j\theta})\,G\bigl(e^{j(\omega-\theta)}\bigr)\,d\theta$
Parseval(能量守恆)$\displaystyle\sum_{n=-\infty}^{\infty} x[n]\,g^*[n] = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,G^*(e^{j\omega})\,d\omega$
性質系列DTFT
線形性(linearity)$\alpha x[n]+\beta g[n]$$\alpha X(e^{j\omega})+\beta G(e^{j\omega})$
時間シフト(time shift)$x[n-n_0]$$e^{-j\omega n_0}\,X(e^{j\omega})$
周波数シフト/変調(modulation)$e^{j\omega_0 n}\,x[n]$$X\bigl(e^{j(\omega-\omega_0)}\bigr)$
時間反転(time reversal)$x[-n]$$X(e^{-j\omega})$
複素共役(conjugation)$x^*[n]$$X^*(e^{-j\omega})$
周波数微分$n\,x[n]$$j\,\dfrac{dX(e^{j\omega})}{d\omega}$
畳み込み(convolution)$x[n]\ast g[n]$$X(e^{j\omega})\,G(e^{j\omega})$
乗算/窓かけ(windowing)$x[n]\,g[n]$$\dfrac{1}{2\pi}\displaystyle\int_{-\pi}^{\pi} X(e^{j\theta})\,G\bigl(e^{j(\omega-\theta)}\bigr)\,d\theta$
パーセバル(エネルギー保存)$\displaystyle\sum_{n=-\infty}^{\infty} x[n]\,g^*[n] = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\omega})\,G^*(e^{j\omega})\,d\omega$
Tip — time shift only rotates the phase
小技巧 —— 時移只會旋轉相位
ヒント — 時間シフトは位相を回すだけである
$|e^{-j\omega n_0}X| = |X|$: delaying a sequence never changes its magnitude spectrum, it only adds linear phase with slope $-n_0$. This is the cleanest way to remember what "linear phase = pure delay" means in §4.6.$|e^{-j\omega n_0}X| = |X|$:延遲一條序列絕不會改變它的振幅頻譜,只會加上一個斜率為 $-n_0$ 的線性相位。這是記住 §4.6「線性相位=純延遲」最乾淨的方式。$|e^{-j\omega n_0}X| = |X|$:系列を遅らせても振幅スペクトルは決して変わらず、傾き $-n_0$ の線形位相が加わるだけである。これが §4.6 の「線形位相=純粋な遅延」の意味を覚えるのに最も見通しのよい言い方である。

4.4.2 Symmetry relations and real sequences4.4.2 對稱關係與實數序列4.4.2 対称関係と実数系列

Define the conjugate-symmetric / conjugate-antisymmetric parts (共軛對稱/反對稱部分) of a sequence and of a spectrum:

先定義序列與頻譜的共軛對稱/共軛反對稱部分(conjugate-symmetric / conjugate-antisymmetric part):

系列およびスペクトルの共役対称部分/共役反対称部分(conjugate-symmetric / conjugate-antisymmetric part)を定義する:

Conjugate-symmetric decomposition 共軛對稱分解共役対称分解 $$\begin{aligned} x_{cs}[n] &= \tfrac{1}{2}\bigl(x[n]+x^*[-n]\bigr), & x_{ca}[n] &= \tfrac{1}{2}\bigl(x[n]-x^*[-n]\bigr)\\[4pt] X_{cs}(e^{j\omega}) &= \tfrac{1}{2}\bigl(X(e^{j\omega})+X^*(e^{-j\omega})\bigr), & X_{ca}(e^{j\omega}) &= \tfrac{1}{2}\bigl(X(e^{j\omega})-X^*(e^{-j\omega})\bigr) \end{aligned}$$

Both decompositions are just "average with the reflected conjugate" — in time the reflection is $n\to-n$, in frequency it is $\omega\to-\omega$. Every sequence and every spectrum splits uniquely into the two halves: $x[n]=x_{cs}[n]+x_{ca}[n]$ and $X=X_{cs}+X_{ca}$.

兩個分解都只是「和自己的反射共軛取平均」——在時域反射是 $n\to-n$,在頻域則是 $\omega\to-\omega$。每一條序列、每一個頻譜都唯一地分成這兩半:$x[n]=x_{cs}[n]+x_{ca}[n]$ 與 $X=X_{cs}+X_{ca}$。

どちらの分解も「反転した共役との平均をとる」だけのものである——時間領域での反転は $n\to-n$、周波数領域では $\omega\to-\omega$ である。どの系列もどのスペクトルも、この二つの半分へ一意に分かれる。すなわち $x[n]=x_{cs}[n]+x_{ca}[n]$ および $X=X_{cs}+X_{ca}$ である。

From the table (time reversal + conjugation, proved in Exercise 1) follow the pairings:

由性質表(時間反轉+共軛,在習題 1 中證明)可以導出下列對應:

性質表(時間反転+共役、演習 1 で証明する)から、次の対応が導かれる:

SequenceDTFTWhere it comes from
$x[-n]$$X(e^{-j\omega})$ re-index the summation, $m=-n$ — Ex. 1(a)
$x^*[n]$$X^*(e^{-j\omega})$ $\bigl(e^{-j\omega}\bigr)^{*}=e^{j\omega}$, so conjugating the sum flips $\omega$ — Ex. 1(b)
$x^*[-n]$$X^*(e^{j\omega})$ the two above applied together — Ex. 1(c)
$\mathrm{Re}\{x[n]\}$$X_{cs}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})+X^{*}(e^{-j\omega})\bigr]$ $\mathrm{Re}\{x\}=\tfrac12(x+x^{*})$, then linearity — Ex. 1(d)
$j\,\mathrm{Im}\{x[n]\}$$X_{ca}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})-X^{*}(e^{-j\omega})\bigr]$ $j\,\mathrm{Im}\{x\}=\tfrac12(x-x^{*})$ — same step with a minus sign
$x_{cs}[n]$$\mathrm{Re}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X+X^{*}(e^{j\omega})\bigr]$ — Ex. 1(e)
$x_{ca}[n]$$j\,\mathrm{Im}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X-X^{*}(e^{j\omega})\bigr]$ — same step with a minus sign
序列DTFT由來
$x[-n]$$X(e^{-j\omega})$ 對求和重新索引,令 $m=-n$ —— 習題 1(a)
$x^*[n]$$X^*(e^{-j\omega})$ $\bigl(e^{-j\omega}\bigr)^{*}=e^{j\omega}$,所以把整個和式取共軛就會使 $\omega$ 反號 —— 習題 1(b)
$x^*[-n]$$X^*(e^{j\omega})$ 把上面兩條一起用 —— 習題 1(c)
$\mathrm{Re}\{x[n]\}$$X_{cs}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})+X^{*}(e^{-j\omega})\bigr]$ $\mathrm{Re}\{x\}=\tfrac12(x+x^{*})$,再用線性 —— 習題 1(d)
$j\,\mathrm{Im}\{x[n]\}$$X_{ca}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})-X^{*}(e^{-j\omega})\bigr]$ $j\,\mathrm{Im}\{x\}=\tfrac12(x-x^{*})$ —— 同一步,只差一個負號
$x_{cs}[n]$$\mathrm{Re}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X+X^{*}(e^{j\omega})\bigr]$ —— 習題 1(e)
$x_{ca}[n]$$j\,\mathrm{Im}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X-X^{*}(e^{j\omega})\bigr]$ —— 同一步,只差一個負號
系列DTFT出どころ
$x[-n]$$X(e^{-j\omega})$ $m=-n$ として和の添字を取り直す — 演習 1(a)
$x^*[n]$$X^*(e^{-j\omega})$ $\bigl(e^{-j\omega}\bigr)^{*}=e^{j\omega}$ なので、和全体の共役をとると $\omega$ の符号が反転する — 演習 1(b)
$x^*[-n]$$X^*(e^{j\omega})$ 上の二つを同時に適用する — 演習 1(c)
$\mathrm{Re}\{x[n]\}$$X_{cs}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})+X^{*}(e^{-j\omega})\bigr]$ $\mathrm{Re}\{x\}=\tfrac12(x+x^{*})$ としてから線形性を使う — 演習 1(d)
$j\,\mathrm{Im}\{x[n]\}$$X_{ca}(e^{j\omega})=\tfrac12\bigl[X(e^{j\omega})-X^{*}(e^{-j\omega})\bigr]$ $j\,\mathrm{Im}\{x\}=\tfrac12(x-x^{*})$ — 符号が負になるだけで同じ手順
$x_{cs}[n]$$\mathrm{Re}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X+X^{*}(e^{j\omega})\bigr]$ — 演習 1(e)
$x_{ca}[n]$$j\,\mathrm{Im}\{X(e^{j\omega})\}$ $\tfrac12\bigl[X-X^{*}(e^{j\omega})\bigr]$ — 符号が負になるだけで同じ手順

Notice the pattern: taking a real/imaginary part in one domain produces a conjugate-symmetric/antisymmetric part in the other, and vice versa. The top three rows are the raw operations; the bottom four are just those three combined with $\mathrm{Re}\{z\}=\tfrac12(z+z^{*})$ and $j\,\mathrm{Im}\{z\}=\tfrac12(z-z^{*})$.

注意這個規律:在一個域取實部/虛部,會在另一個域產生共軛對稱/反對稱的部分,反之亦然。前三列是最原始的運算;後四列只是把那三條與 $\mathrm{Re}\{z\}=\tfrac12(z+z^{*})$、$j\,\mathrm{Im}\{z\}=\tfrac12(z-z^{*})$ 組合起來而已。

この規則性に注目してほしい。一方の領域で実部/虚部をとると、他方の領域に共役対称/反対称の部分が生じる。その逆も成り立つ。上の三行が素の演算であり、下の四行はその三つを $\mathrm{Re}\{z\}=\tfrac12(z+z^{*})$ と $j\,\mathrm{Im}\{z\}=\tfrac12(z-z^{*})$ と組み合わせただけのものである。

Why conjugate symmetry is what makes a signal real
為什麼共軛對稱正是「訊號為實數」的條件
共役対称性こそが信号を実数にしている理由

The middle rows carry a second reading: conjugate symmetry in the spectrum is exactly the condition under which the inverse DTFT comes out real — the imaginary parts cancel in the synthesis integral. Conjugate $x[n]$ and substitute $\omega\to-\omega$:

中間那幾列還有第二層讀法:頻譜的共軛對稱,恰恰就是反 DTFT 會算出實數的條件——虛部在合成積分裡互相抵消。把 $x[n]$ 取共軛並代入 $\omega\to-\omega$:

中ほどの行には第二の読み方がある。スペクトルの共役対称性は、逆 DTFT が実数になるための条件そのものなのである——合成の積分のなかで虚部が打ち消し合う。$x[n]$ の共役をとり、$\omega\to-\omega$ を代入してみよう:

$$x^{*}[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X^{*}(e^{j\omega})e^{-j\omega n}d\omega =\frac{1}{2\pi}\int_{-\pi}^{\pi}X^{*}(e^{-j\omega})e^{j\omega n}d\omega$$

If $X=X^{*}(e^{-j\omega})$ the right-hand side is the synthesis integral for $x[n]$ itself, so $x^{*}[n]=x[n]$ — the sequence is real. Conversely, a spectrum with no conjugate symmetry synthesizes a complex sequence. This is the discrete-time twin of the Fourier-series result in §4.1: pairing each complex exponential with its conjugate cancels the imaginary parts.

若 $X=X^{*}(e^{-j\omega})$,右式就是 $x[n]$ 自己的合成積分,於是 $x^{*}[n]=x[n]$ —— 序列是實數的。反過來說,不具共軛對稱的頻譜會合成出複數序列。這是 §4.1 傅立葉級數結論的離散時間雙胞胎:讓每個複指數與它的共軛配成一對,虛部就消掉了。

$X=X^{*}(e^{-j\omega})$ であれば右辺は $x[n]$ 自身の合成積分になるので、$x^{*}[n]=x[n]$、すなわち系列は実数である。逆に、共役対称性をもたないスペクトルは複素数の系列を合成する。これは §4.1 のフーリエ級数の結果の離散時間版の双子である。各複素指数をその共役と対にすれば虚部は打ち消し合う、というわけだ。

Key — DTFT of a real sequence
重點 —— 實數序列的 DTFT
要点 — 実数系列の DTFT
If $x[n]$ is real, then $X(e^{j\omega}) = X^*(e^{-j\omega})$ (conjugate symmetry). Hence $$|X(e^{j\omega})| = |X(e^{-j\omega})| \;{\scriptstyle\textcolor{gray}{\text{(even)}}},\qquad \arg X(e^{j\omega}) = -\arg X(e^{-j\omega}) \;{\scriptstyle\textcolor{gray}{\text{(odd)}}}$$ Real part and $|X|$ are even functions of $\omega$; imaginary part and phase are odd. For real signals, the half-band $0\le\omega\le\pi$ carries all the information.若 $x[n]$ 為實數,則 $X(e^{j\omega}) = X^*(e^{-j\omega})$(共軛對稱)。因此 $$|X(e^{j\omega})| = |X(e^{-j\omega})| \;{\scriptstyle\textcolor{gray}{\text{(偶)}}},\qquad \arg X(e^{j\omega}) = -\arg X(e^{-j\omega}) \;{\scriptstyle\textcolor{gray}{\text{(奇)}}}$$ 實部與 $|X|$ 是 $\omega$ 的偶函數;虛部與相位是奇函數。對實數訊號而言,半個頻帶 $0\le\omega\le\pi$ 就帶著全部的資訊。$x[n]$ が実数なら $X(e^{j\omega}) = X^*(e^{-j\omega})$(共役対称)が成り立つ。したがって $$|X(e^{j\omega})| = |X(e^{-j\omega})| \;{\scriptstyle\textcolor{gray}{\text{(even)}}},\qquad \arg X(e^{j\omega}) = -\arg X(e^{-j\omega}) \;{\scriptstyle\textcolor{gray}{\text{(odd)}}}$$ となる。実部と $|X|$ は $\omega$ の偶関数であり、虚部と位相は奇関数である。実信号については、半分の帯域 $0\le\omega\le\pi$ がすべての情報を担っている。

Before specializing, it is worth seeing what a general complex sequence actually looks like. A real sequence is a curve in the $(n,\,x)$ plane; a complex one needs a third axis, so it is a curve in the $(n,\,\mathrm{Re},\,\mathrm{Im})$ space, and the two "parts" in the table above are its two projections onto the coordinate planes:

在把情況特殊化之前,值得先看看一般的複數序列到底長什麼樣子。實數序列是 $(n,\,x)$ 平面上的一條曲線;複數序列則需要第三個軸,所以它是 $(n,\,\mathrm{Re},\,\mathrm{Im})$ 空間中的一條曲線,而上表中的那兩個「部分」,就是它投影到兩個座標平面上的結果:

特殊化する前に、一般の複素系列が実際にどんな姿をしているのかを見ておく価値がある。実数系列は $(n,\,x)$ 平面上の一本の曲線であるが、複素系列には第三の軸が要るので $(n,\,\mathrm{Re},\,\mathrm{Im})$ 空間内の曲線になる。そして上の表に出てきた二つの「部分」とは、その曲線を二つの座標平面へ射影したものにほかならない:

loading 3-D view…載入 3-D 檢視中…3-D ビューを読み込み中…
Fig. 4-8 — A complex sequence needs three axes: sample index $n$, real part and imaginary part. Shown is $x[n]=r^{|n|}e^{j\omega_0 n}$ — the red stems are $x_{re}[n]$ lying in the horizontal $n$–Real plane, the blue stems are $x_{im}[n]$ standing in the vertical $n$–Imag plane. Drag to rotate, scroll to zoom. Tick force real to set $x_{im}\equiv 0$: the whole sequence collapses into the single horizontal plane, which is the case treated below.
圖 4-8 — 複數序列需要三個軸:樣本索引 $n$、實部與虛部。圖中畫的是 $x[n]=r^{|n|}e^{j\omega_0 n}$ —— 紅色的 stem 是躺在水平 $n$–Real 平面上的 $x_{re}[n]$,藍色的 stem 是立在垂直 $n$–Imag 平面上的 $x_{im}[n]$。拖曳可旋轉,滾動可縮放。勾選 force real 會令 $x_{im}\equiv 0$:整條序列塌陷回單一個水平面,也就是底下要討論的情形。
図 4-8 — 複素系列には三つの軸が要る。標本添字 $n$、実部、虚部である。描かれているのは $x[n]=r^{|n|}e^{j\omega_0 n}$ であり、赤い棒は水平な $n$–Real 平面に横たわる $x_{re}[n]$、青い棒は垂直な $n$–Imag 平面に立つ $x_{im}[n]$ である。ドラッグで回転、スクロールで拡大縮小できる。force real にチェックを入れると $x_{im}\equiv 0$ となり、系列全体がただ一つの水平面へつぶれる。これが以下で扱う場合である。

The real-sequence special case實數序列的特例実数系列という特別な場合

Everything above holds for complex $x[n]$. The moment $x[n]$ is pure real the conjugates in the definitions collapse and the table simplifies dramatically, because $x^*[n]=x[n]$:

以上所有結論對複數的 $x[n]$ 都成立。而一旦 $x[n]$ 是純實數,定義裡的共軛就塌陷掉,整張表也大幅簡化,因為 $x^*[n]=x[n]$:

ここまでの内容は複素の $x[n]$ についても成り立つ。$x[n]$ が純粋な実数になった瞬間、定義のなかの共役はつぶれ、$x^*[n]=x[n]$ となるために表は劇的に簡単になる:

Real $x[n]$: conjugate-symmetric becomes plain even/odd 實數 $x[n]$:共軛對稱退化成單純的偶/奇実数の $x[n]$:共役対称は単なる偶・奇になる $$\begin{aligned} x_{cs}[n] &= \tfrac12\bigl(x[n]+x^*[-n]\bigr) = \tfrac12\bigl(x[n]+x[-n]\bigr) \equiv x_{ev}[n], && x_{ev}[n]=x_{ev}[-n]\\[4pt] x_{ca}[n] &= \tfrac12\bigl(x[n]-x^*[-n]\bigr) = \tfrac12\bigl(x[n]-x[-n]\bigr) \equiv x_{od}[n], && x_{od}[n]=-x_{od}[-n] \end{aligned}$$

And since $j\,\mathrm{Im}\{x[n]\}=0$, the row $j\,\mathrm{Im}\{x[n]\}\leftrightarrow X_{ca}(e^{j\omega})$ forces $X_{ca}\equiv 0$: the spectrum of a real sequence has no conjugate-antisymmetric part at all, i.e. $X(e^{j\omega})=X_{cs}(e^{j\omega})=X^{*}(e^{-j\omega})$. Writing $X(e^{j\omega})=X_R(e^{j\omega})+j\,X_I(e^{j\omega})$ with $X_R,X_I$ real, the last two rows of the general table read:

而既然 $j\,\mathrm{Im}\{x[n]\}=0$,$j\,\mathrm{Im}\{x[n]\}\leftrightarrow X_{ca}(e^{j\omega})$ 這一列就強迫 $X_{ca}\equiv 0$:實數序列的頻譜完全沒有共軛反對稱的部分,也就是 $X(e^{j\omega})=X_{cs}(e^{j\omega})=X^{*}(e^{-j\omega})$。把 $X(e^{j\omega})$ 寫成 $X_R(e^{j\omega})+j\,X_I(e^{j\omega})$($X_R$、$X_I$ 皆為實數),一般表的最後兩列就變成:

さらに $j\,\mathrm{Im}\{x[n]\}=0$ であるから、$j\,\mathrm{Im}\{x[n]\}\leftrightarrow X_{ca}(e^{j\omega})$ の行は $X_{ca}\equiv 0$ を強制する。すなわち実数系列のスペクトルには共役反対称な部分がまったく存在せず、$X(e^{j\omega})=X_{cs}(e^{j\omega})=X^{*}(e^{-j\omega})$ となる。$X_R,X_I$ を実数として $X(e^{j\omega})=X_R(e^{j\omega})+j\,X_I(e^{j\omega})$ と書けば、一般の表の最後の二行は次のようになる:

Real $x[n]$DTFTMeaning
$x[n]$$X(e^{j\omega})=X^{*}(e^{-j\omega})$ the whole spectrum is conjugate-symmetric — $X=X_{cs}$
$x_{cs}[n]\equiv x_{ev}[n]$$X_R(e^{j\omega})$ $X_R(e^{j\omega})=X_R(e^{-j\omega})$ — the real part is even
$x_{ca}[n]\equiv x_{od}[n]$$j\,X_I(e^{j\omega})$ $X_I(e^{j\omega})=-X_I(e^{-j\omega})$ — the imaginary part is odd
實數 $x[n]$DTFT意義
$x[n]$$X(e^{j\omega})=X^{*}(e^{-j\omega})$ 整個頻譜都是共軛對稱的 —— $X=X_{cs}$
$x_{cs}[n]\equiv x_{ev}[n]$$X_R(e^{j\omega})$ $X_R(e^{j\omega})=X_R(e^{-j\omega})$ —— 實部是偶函數
$x_{ca}[n]\equiv x_{od}[n]$$j\,X_I(e^{j\omega})$ $X_I(e^{j\omega})=-X_I(e^{-j\omega})$ —— 虛部是奇函數
実数の $x[n]$DTFT意味
$x[n]$$X(e^{j\omega})=X^{*}(e^{-j\omega})$ スペクトル全体が共役対称である — $X=X_{cs}$
$x_{cs}[n]\equiv x_{ev}[n]$$X_R(e^{j\omega})$ $X_R(e^{j\omega})=X_R(e^{-j\omega})$ — 実部は偶関数
$x_{ca}[n]\equiv x_{od}[n]$$j\,X_I(e^{j\omega})$ $X_I(e^{j\omega})=-X_I(e^{-j\omega})$ — 虚部は奇関数

The even half of the sequence is responsible for the entire real part of the spectrum, and the odd half for the entire imaginary part. Two corollaries follow by simply deleting the half that is missing:

序列的偶半部負責整個頻譜的實部,奇半部則負責整個虛部。把缺席的那一半直接刪掉,就得到兩個推論:

系列の偶の半分がスペクトルの実部全体を受けもち、奇の半分が虚部全体を受けもつ。欠けているほうの半分を消すだけで、二つの系が得られる:

Key — the two symmetric cases worth memorizing
重點 —— 值得背起來的兩種對稱情形
要点 — 覚えておく価値のある二つの対称な場合
$$\begin{aligned} x[n]\ \text{real and }\textbf{even}\ (x_{od}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{real and even}\ (X_I\equiv 0)\\[3pt] x[n]\ \text{real and }\textbf{odd}\ (x_{ev}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{purely imaginary and odd}\ (X_R\equiv 0) \end{aligned}$$ The first line is why a symmetric FIR filter can be designed with a purely real $X(e^{j\omega})$ — a zero-phase response — and why the linear-phase filters of Ch. 14 are built around $h[n]=h[M-1-n]$. See Fig. 4-9.$$\begin{aligned} x[n]\ \text{為實數且}\textbf{偶}\ (x_{od}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{為實數且偶}\ (X_I\equiv 0)\\[3pt] x[n]\ \text{為實數且}\textbf{奇}\ (x_{ev}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{為純虛數且奇}\ (X_R\equiv 0) \end{aligned}$$ 第一行說明了為什麼對稱的 FIR 濾波器可以設計出純實數的 $X(e^{j\omega})$ —— 也就是零相位響應 —— 也說明了第 14 章的線性相位濾波器為何都圍繞著 $h[n]=h[M-1-n]$ 來建構。見圖 4-9。$$\begin{aligned} x[n]\ \text{real and }\textbf{even}\ (x_{od}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{real and even}\ (X_I\equiv 0)\\[3pt] x[n]\ \text{real and }\textbf{odd}\ (x_{ev}=0)\quad &\Longleftrightarrow\quad X(e^{j\omega})\ \text{purely imaginary and odd}\ (X_R\equiv 0) \end{aligned}$$ 第一行は、対称な FIR フィルタを純粋に実数の $X(e^{j\omega})$——すなわちゼロ位相応答——で設計できる理由であり、第 14 章の線形位相フィルタがいずれも $h[n]=h[M-1-n]$ を軸に組み立てられている理由でもある。図 4-9 を参照。
Careful — "even" and "conjugate-symmetric" only coincide for real $x[n]$
小心 —— 只有在 $x[n]$ 為實數時,「偶」與「共軛對稱」才是同一回事
注意 — 「偶」と「共役対称」が一致するのは $x[n]$ が実数のときだけである
For a complex sequence, $x_{cs}[n]=\tfrac12(x[n]+x^{*}[-n])$ conjugates as well as reflects, so $x_{cs}$ need not equal $x_{ev}=\tfrac12(x[n]+x[-n])$. The identifications $x_{cs}\equiv x_{ev}$ and $x_{ca}\equiv x_{od}$ used throughout this subsection are valid only because $x[n]$ is real. Likewise $X_{ca}\equiv 0$ is a statement about real sequences, not a general fact.對複數序列而言,$x_{cs}[n]=\tfrac12(x[n]+x^{*}[-n])$ 除了反射還多取了共軛,所以 $x_{cs}$ 不一定等於 $x_{ev}=\tfrac12(x[n]+x[-n])$。本小節通篇使用的 $x_{cs}\equiv x_{ev}$ 與 $x_{ca}\equiv x_{od}$ 這兩個等同,唯有在 $x[n]$ 為實數時才成立。同樣地,$X_{ca}\equiv 0$ 是關於實數序列的敘述,不是一般性的事實。複素系列では $x_{cs}[n]=\tfrac12(x[n]+x^{*}[-n])$ が反転に加えて共役もとるので、$x_{cs}$ は $x_{ev}=\tfrac12(x[n]+x[-n])$ と等しいとは限らない。本小節を通じて用いた同一視 $x_{cs}\equiv x_{ev}$ と $x_{ca}\equiv x_{od}$ が妥当なのは、ひとえに $x[n]$ が実数だからである。同様に $X_{ca}\equiv 0$ も実数系列についての主張であって、一般的な事実ではない。
直觀解釋(點擊展開)
實數序列因為 $x^{*}[n]=x[n]$,定義裡的共軛都可以拿掉:共軛對稱部分 $x_{cs}$ 就退化成單純的偶部 $x_{ev}$,共軛反對稱部分 $x_{ca}$ 就是奇部 $x_{od}$。
又因為 $j\,\mathrm{Im}\{x[n]\}=0$,對應的 $X_{ca}$ 必然為零,所以實數訊號的頻譜「整個都是共軛對稱的」: $X(e^{j\omega})=X^{*}(e^{-j\omega})$。把它拆成實部與虛部,就得到「實部偶、虛部奇」。
再往下推兩個常考的結論:序列如果是實且偶(沒有奇部),虛部就沒有來源,頻譜是實數且偶函數; 如果是實且奇(沒有偶部),實部沒有來源,頻譜是純虛數且奇函數。 線性相位 FIR 濾波器 $h[n]=h[M-1-n]$ 之所以能做到零相位(或純線性相位),根源就在第一條。
注意:$x_{cs}=x_{ev}$ 只在實數序列成立;複數序列的 $x_{cs}$ 會同時反轉與取共軛,兩者並不相同。
2026-09-24T08:08:29.706582 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −4 −3 −2 −1 0 1 2 3 4 n −2 0 2 x[n] real and even −π −π/2 0 π/2 π ω −5 0 5 X real and even (Im ≡ 0) R e   X ( e ) j ω I m   X ( e ) j ω −4 −3 −2 −1 0 1 2 3 4 n −2 0 2 x[n] real and odd −π −π/2 0 π/2 π ω −5 0 5 X imaginary and odd (Re ≡ 0) R e   X ( e ) j ω I m   X ( e ) j ω
Fig. 4-9 — The two corollaries, computed directly from the DTFT sum. Top: the real even sequence $\{1,2,3,2,1\}$ centred at $n=0$ has a spectrum that is real and even — the imaginary part (dashed) is identically zero. Bottom: the real odd sequence $\{-1,-2,0,2,1\}$ has a spectrum that is purely imaginary and odd — the real part is identically zero.
圖 4-9 — 兩個推論,直接由 DTFT 和式算出。上:以 $n=0$ 為中心的實偶序列 $\{1,2,3,2,1\}$,其頻譜為實數且為偶函數 —— 虛部(虛線)恆為零。下:實奇序列 $\{-1,-2,0,2,1\}$,其頻譜為純虛數且為奇函數 —— 實部恆為零。
図 4-9 — 二つの系を、DTFT の和から直接計算したもの。上:$n=0$ を中心とする実偶系列 $\{1,2,3,2,1\}$ のスペクトルは実数かつ偶関数であり——虚部(破線)は恒等的にゼロである。下:実奇系列 $\{-1,-2,0,2,1\}$ のスペクトルは純虚数かつ奇関数であり——実部は恒等的にゼロである。

4.4.3 The convolution theorem4.4.3 卷積定理4.4.3 畳み込み定理

Convolution theorem 卷積定理畳み込み定理 $$y[n] = x[n]\ast h[n] \qquad\Longleftrightarrow\qquad \boxed{\,Y(e^{j\omega}) = X(e^{j\omega})\,H(e^{j\omega})\,}$$

Proof sketch. Take the DTFT of the convolution sum and swap the order of summation:

證明概要。對卷積和取 DTFT,再交換求和順序:

証明の概略。畳み込み和の DTFT をとり、和の順序を入れ替える:

Derivation 推導導出 $$Y(e^{j\omega}) = \sum_n\Bigl(\sum_k x[k]\,h[n-k]\Bigr)e^{-j\omega n} = \sum_k x[k]\,e^{-j\omega k}\sum_m h[m]\,e^{-j\omega m} = X(e^{j\omega})\,H(e^{j\omega}) \quad{\scriptstyle\textcolor{gray}{m=n-k}}$$

Convolution in time becomes multiplication in frequency. This is the practical payoff of the whole chapter: instead of sliding and summing, multiply two spectra pointwise and (if needed) invert. Exercise 3 verifies this numerically in MATLAB — the convolution result and the IDTFT of $X\cdot H$ agree to machine precision.

時域的卷積變成頻域的相乘。這是整章最實用的回報:不必再翻轉平移、逐項相加,只要把兩個頻譜逐點相乘,需要的話再反轉換回去。習題 3 會在 MATLAB 裡用數值驗證這一點 —— 卷積的結果與 $X\cdot H$ 的反 DTFT 一致到機器精度。

時間領域の畳み込みは、周波数領域では乗算になる。これが本章全体の実用的な見返りである。反転して滑らせて足し合わせるかわりに、二つのスペクトルを各点ごとに掛け、必要なら逆変換すればよい。演習 3 ではこれを MATLAB で数値的に検証する——畳み込みの結果と $X\cdot H$ の逆 DTFT は、機械精度まで一致する。

Example 4-C — convolution via the DTFT範例 4-C —— 用 DTFT 做卷積例題 4-C — DTFT による畳み込み

Let $h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$ and $x[n]=\delta[n]-\tfrac12\delta[n-1]$. Find $y[n]=x[n]\ast h[n]$.

令 $h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$、$x[n]=\delta[n]-\tfrac12\delta[n-1]$。求 $y[n]=x[n]\ast h[n]$。

$h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$、$x[n]=\delta[n]-\tfrac12\delta[n-1]$ とする。$y[n]=x[n]\ast h[n]$ を求めよ。

Transform each: $H(e^{j\omega}) = \dfrac{1}{1-\frac12 e^{-j\omega}}$ (Example 4-A), and $X(e^{j\omega}) = 1-\tfrac12 e^{-j\omega}$ (linearity + shift of $\delta$).
各自轉換:$H(e^{j\omega}) = \dfrac{1}{1-\frac12 e^{-j\omega}}$(範例 4-A),以及 $X(e^{j\omega}) = 1-\tfrac12 e^{-j\omega}$(線性+$\delta$ 的位移)。
それぞれを変換する:$H(e^{j\omega}) = \dfrac{1}{1-\frac12 e^{-j\omega}}$(例題 4-A)、および $X(e^{j\omega}) = 1-\tfrac12 e^{-j\omega}$(線形性+$\delta$ のシフト)。
Multiply: $$Y(e^{j\omega}) = \bigl(1-\tfrac12 e^{-j\omega}\bigr)\cdot\frac{1}{1-\frac12 e^{-j\omega}} = 1$$
相乘: $$Y(e^{j\omega}) = \bigl(1-\tfrac12 e^{-j\omega}\bigr)\cdot\frac{1}{1-\frac12 e^{-j\omega}} = 1$$
掛け合わせる: $$Y(e^{j\omega}) = \bigl(1-\tfrac12 e^{-j\omega}\bigr)\cdot\frac{1}{1-\frac12 e^{-j\omega}} = 1$$
Invert by inspection: $y[n]=\delta[n]$. The FIR sequence $x[n]$ is the inverse system of the IIR system $h[n]$ — a cancellation that is nearly invisible in the time domain but trivial in the Fourier domain.
一眼就能反轉換:$y[n]=\delta[n]$。這條 FIR 序列 $x[n]$ 正是 IIR 系統 $h[n]$ 的反系統 —— 這個抵消在時域幾乎看不出來,在傅立葉域卻是一目瞭然。
一目で逆変換できる:$y[n]=\delta[n]$。この FIR 系列 $x[n]$ は IIR システム $h[n]$ の逆システムである——時間領域ではほとんど見えないこの打ち消し合いも、フーリエ領域では自明である。

4.4.4 Modulation and windowing4.4.4 調變與加窗4.4.4 変調と窓かけ

The convolution theorem answers "what does an LTI filter do to a spectrum?". But filtering is not the only thing we do to a sequence — we also multiply two sequences sample by sample: truncating with a window, mixing with a carrier, sampling with an impulse train. None of those is a convolution, so §4.4.3 does not cover them. This subsection supplies the missing half of the pair: what multiplication in time does in frequency.

卷積定理回答的是「LTI 濾波器對頻譜做了什麼?」。但濾波並不是我們對序列做的唯一一件事——我們也會把兩條序列逐個樣本相乘:用窗函數截短、與載波混頻、用脈衝串取樣。這些都不是卷積,所以 §4.4.3 管不到。本小節補上這一對關係缺掉的另一半:時域相乘在頻域會造成什麼。

畳み込み定理は「LTI フィルタはスペクトルに何をするのか」に答えるものである。しかし系列に対して行うのはフィルタリングだけではない。二つの系列を標本ごとに掛け合わせることもある。窓で打ち切る、搬送波と混合する、インパルス列で標本化する、といった操作である。どれも畳み込みではないので §4.4.3 の守備範囲外である。本小節は、この対の欠けたもう半分を補う。すなわち、時間領域での乗算が周波数領域で何をするのかである。

The idea — solve it for one exponential, then superpose
想法 —— 先對單一個指數解,再疊加
着想 — まず一つの指数について解き、それから重ね合わせる

Suppose one of the two factors were a single complex exponential, $x[n]=e^{j\theta n}$. Then we already know the answer: the frequency-shift row of the property table (§4.4.1) says that multiplying by it simply slides the other spectrum,

假設兩個因子之中有一個是單一的複指數 $x[n]=e^{j\theta n}$。那答案我們已經知道了:性質表(§4.4.1)的頻移那一列說,乘上它只不過是把另一個頻譜平移,

二つの因子の一方が単一の複素指数 $x[n]=e^{j\theta n}$ だったとしよう。その場合の答えはすでに分かっている。性質表(§4.4.1)の周波数シフトの行によれば、それを掛けることはもう一方のスペクトルを単にずらすだけである。

$$g[n]\,e^{j\theta n}\;\longleftrightarrow\;G\bigl(e^{j(\omega-\theta)}\bigr).$$

And the inverse DTFT (§4.2.3) says that every sequence is a superposition of such exponentials — a continuous one, with $X(e^{j\theta})\,d\theta/2\pi$ as the weight at frequency $\theta$. So: write $x[n]$ that way, apply the easy shift rule to each exponential separately, and add up the shifted copies of $G$. That "adding up" is exactly the integral derived below.

而反 DTFT(§4.2.3)告訴我們,每一條序列都是這種指數的疊加——而且是連續的疊加,頻率 $\theta$ 處的權重為 $X(e^{j\theta})\,d\theta/2\pi$。所以:把 $x[n]$ 這樣寫出來,對每一個指數分別套用那條簡單的平移規則,再把平移後的各份 $G$ 副本加起來。這個「加起來」正是下面推導出的積分。

そして逆 DTFT(§4.2.3)によれば、あらゆる系列はそうした指数の重ね合わせ——しかも連続的な重ね合わせであり、周波数 $\theta$ での重みは $X(e^{j\theta})\,d\theta/2\pi$ である。そこで $x[n]$ をそのように書き、各指数に例の簡単なシフト則を個別に適用し、ずらされた $G$ の複製を足し上げればよい。その「足し上げ」こそ、以下で導く積分にほかならない。

Derivation — write one factor as its IDTFT推導 —— 把其中一個因子寫成它的反 DTFT導出 — 一方の因子をその逆 DTFT で書く

Derivation 推導導出 $$\begin{aligned} W(e^{j\omega}) &= \sum_{n} \bigl(x[n]\,g[n]\bigr)\,e^{-j\omega n}\\[4pt] &= \sum_{n} \underbrace{\left(\frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\,e^{j\theta n}\,d\theta\right)}_{\textstyle x[n]\ \text{written as its IDTFT}} g[n]\,e^{-j\omega n}\\[4pt] &= \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\;\underbrace{\left[\sum_{n} g[n]\,e^{-j(\omega-\theta)n}\right]}_{\textstyle G\left(e^{j(\omega-\theta)}\right)}\,d\theta \end{aligned}$$

Only two things happen here. First, $x[n]$ is replaced by its IDTFT, which turns it into a weighted continuum of exponentials $e^{j\theta n}$. Second — the one step that needs justification — the order of $\sum_n$ and $\int d\theta$ is swapped; this is legal whenever both transforms converge in the sense of §4.2.4. After the swap, everything that depends on $n$ sits inside the bracket, and that bracket is just the DTFT of $g$ evaluated at the shifted frequency $\omega-\theta$. Each $\theta$ therefore contributes one copy of $G$ centred at $\theta$, weighted by $X(e^{j\theta})$ — precisely the superposition the callout above predicted.

這裡只發生了兩件事。第一,$x[n]$ 被換成它的反 DTFT,於是變成一段加權的連續指數 $e^{j\theta n}$。第二——也是唯一需要說明理由的一步——$\sum_n$ 與 $\int d\theta$ 的順序被交換了;只要兩個轉換都在 §4.2.4 的意義下收斂,這麼做就是合法的。交換之後,所有與 $n$ 有關的東西都落在中括號裡,而那個中括號正是 $g$ 的 DTFT 在平移後頻率 $\omega-\theta$ 處的值。因此每一個 $\theta$ 都貢獻一份以 $\theta$ 為中心、權重為 $X(e^{j\theta})$ 的 $G$ 副本 —— 恰恰就是上面那個提示方塊所預告的疊加。

ここで起きていることは二つだけである。第一に、$x[n]$ がその逆 DTFT に置き換えられ、重みつきの連続な指数 $e^{j\theta n}$ の集まりになる。第二に——正当化を要する唯一の段階だが——$\sum_n$ と $\int d\theta$ の順序が交換される。これは両方の変換が §4.2.4 の意味で収束していれば許される。交換の後、$n$ に依存するものはすべて角括弧の中に収まり、その角括弧はずらされた周波数 $\omega-\theta$ で評価した $g$ の DTFT にほかならない。したがって各 $\theta$ は、$\theta$ を中心とし $X(e^{j\theta})$ の重みをもつ $G$ の複製を一つずつ寄与する——上の囲みが予告したとおりの重ね合わせである。

Modulation / windowing theorem 調變/加窗定理変調/窓かけの定理 $$w[n] = x[n]\,g[n] \qquad\Longleftrightarrow\qquad \boxed{\,W(e^{j\omega}) = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\,G\bigl(e^{j(\omega-\theta)}\bigr)\,d\theta\,}$$
This integral is a convolution — the dual of §4.4.3
這條積分就是一種卷積 —— §4.4.3 的對偶
この積分こそが畳み込みである — §4.4.3 の双対

Compare it with the convolution sum $\sum_k x[k]\,h[n-k]$: one function is held fixed, the other is reversed and slid, and the overlap is accumulated. Here the sliding variable is $\omega$ and the accumulation runs over one period, so it is periodic (circular) convolution, written $X \circledast G$. The two theorems are duals:

拿它和卷積和 $\sum_k x[k]\,h[n-k]$ 對照:一個函數固定不動,另一個被反轉並平移,再把重疊處累加起來。這裡滑動的變數是 $\omega$,而累加只在一個週期上進行,所以它是週期(圓形)卷積,記作 $X \circledast G$。兩條定理互為對偶:

畳み込み和 $\sum_k x[k]\,h[n-k]$ と比べてみよう。一方の関数は固定され、他方は反転されて滑り、重なりが累算される。ここで滑る変数は $\omega$ であり、累算は一周期にわたって行われる。したがってこれは周期(巡回)畳み込みであり、$X \circledast G$ と書く。二つの定理は互いに双対である:

Time domainFrequency domain
$x[n]\ast g[n]$ — convolution$X(e^{j\omega})\,G(e^{j\omega})$ — pointwise product (§4.4.3)
$x[n]\,g[n]$ — pointwise product$\dfrac{1}{2\pi}\,X(e^{j\omega}) \circledast G(e^{j\omega})$ — periodic convolution
時域頻域
$x[n]\ast g[n]$ —— 卷積$X(e^{j\omega})\,G(e^{j\omega})$ —— 逐點相乘(§4.4.3)
$x[n]\,g[n]$ —— 逐點相乘$\dfrac{1}{2\pi}\,X(e^{j\omega}) \circledast G(e^{j\omega})$ —— 週期卷積
時間領域周波数領域
$x[n]\ast g[n]$ — 畳み込み$X(e^{j\omega})\,G(e^{j\omega})$ — 各点ごとの積(§4.4.3)
$x[n]\,g[n]$ — 各点ごとの積$\dfrac{1}{2\pi}\,X(e^{j\omega}) \circledast G(e^{j\omega})$ — 周期畳み込み

The asymmetry — a plain product one way, a $1/2\pi$-scaled periodic convolution the other — comes entirely from the DTFT being a sum in time but an integral over a $2\pi$-periodic frequency axis (§4.2.2, §4.2.5).

這個不對稱——一個方向是單純相乘,另一個方向卻是乘上 $1/2\pi$ 的週期卷積——完全來自 DTFT 在時域是求和、在頻域卻是在一條以 $2\pi$ 為週期的頻率軸上積分(§4.2.2、§4.2.5)。

この非対称性——一方向は単なる積なのに、他方向は $1/2\pi$ 倍の周期畳み込みになる——は、DTFT が時間については和でありながら、周波数については $2\pi$ 周期の軸上の積分であることだけに由来する(§4.2.2、§4.2.5)。

Two exam traps
兩個考試陷阱
二つの試験の罠

1. The $1/2\pi$ is not optional. It enters with the IDTFT in the first line of the derivation, so it rides along into every application. Dropping it inflates the answer by a factor of $2\pi$.

1. 那個 $1/2\pi$ 不是可有可無的。它在推導第一行就跟著反 DTFT 進來,所以會一路帶到每一個應用裡。把它丟掉,答案就會膨脹 $2\pi$ 倍。

1. $1/2\pi$ は省いてよいものではない。これは導出の第一行で逆 DTFT とともに入ってきたものであり、以後すべての応用に同乗していく。落とすと答えが $2\pi$ 倍にふくらむ。

2. The limits are $-\pi$ to $\pi$, not $-\infty$ to $\infty$. Both $X$ and $G$ are $2\pi$-periodic, so integrating over all $\theta$ would diverge. Anything that slides past $+\pi$ re-enters at $-\pi$; this wrap-around is why sidelobes and modulated copies can fold back onto themselves, and it is the same mechanism that produces aliasing in Ch. 6.

2. 積分上下限是 $-\pi$ 到 $\pi$,不是 $-\infty$ 到 $\infty$。$X$ 與 $G$ 都以 $2\pi$ 為週期,所以對所有 $\theta$ 積分會發散。任何滑出 $+\pi$ 的東西都會從 $-\pi$ 繞回來;正是這個繞回,使得旁瓣與調變後的副本可能摺疊到自己身上,而它和第 6 章造成混疊的機制是同一個。

2. 積分範囲は $-\infty$ から $\infty$ ではなく $-\pi$ から $\pi$ である。$X$ も $G$ も $2\pi$ 周期なので、すべての $\theta$ にわたって積分すれば発散する。$+\pi$ を越えて滑り出たものは $-\pi$ から再び入ってくる。この巻き戻りこそ、サイドローブや変調された複製が自分自身の上に折り返されうる理由であり、第 6 章でエイリアシングを生むのと同じ仕組みである。

直觀解釋:為什麼「相乘」會把頻譜抹開(點擊展開)

先看最簡單的情形:$x[n]=e^{j\theta_0 n}$ 只含一個頻率。乘上它,等於把 $g[n]$ 的整個頻譜整團搬到 $\theta_0$,形狀完全不變,只是位置變了。這件事直覺上很好接受 ——調幅廣播就是這樣把語音搬到載波上的。

現在把 $x[n]$ 換成任意序列。IDTFT 告訴我們,它其實是無限多個複指數的加權疊加, 第 $\theta$ 個的權重是 $X(e^{j\theta})\,d\theta/2\pi$。既然乘法是線性的,就可以一個一個處理:

  1. 頻率 $\theta$ 那一份,把 $G$ 搬到 $\theta$,得到 $G(e^{j(\omega-\theta)})$;
  2. 它的權重是 $X(e^{j\theta})$;
  3. 把所有 $\theta$ 的結果加起來 —— 連續的「加起來」就是積分 $\frac{1}{2\pi}\int_{-\pi}^{\pi}$。

所以結論的形狀一點也不神秘:$X$ 有幾個頻率成分,$G$ 就被複製幾份、各自平移再疊加。 如果 $X$ 只有兩根譜線(餘弦),就得到兩份平移副本,這是調變;如果 $X$ 是一個窄但 有寬度的主瓣(矩形窗的 Dirichlet 核),每一根譜線就被那個主瓣塗抹成一團,這是加窗洩漏。 兩者是同一條公式的兩種極端。

Two standard uses兩個標準用途二つの標準的な用途

Almost every appearance of this theorem in the rest of the course is one of two cases, distinguished only by which factor has the narrow spectrum.

本課程後面幾乎每一次用到這條定理,都屬於下面兩種情形之一,差別只在於哪一個因子的頻譜比較窄。

この講義の残りでこの定理が現れる場面は、ほとんどすべて次の二つの場合のいずれかであり、違いはどちらの因子が狭いスペクトルをもつかだけである。

Example 4-D — the general integral collapses to the shift rule範例 4-D —— 一般的積分退化成位移定理例題 4-D — 一般の積分がシフト則に帰着する

Verify the carrier-modulation result directly from the theorem, taking $g[n]=\cos(\omega_0 n)$.

取 $g[n]=\cos(\omega_0 n)$,直接由定理驗證載波調變的結果。

$g[n]=\cos(\omega_0 n)$ として、搬送波変調の結果を定理から直接確かめる。

Its DTFT over one period is a pair of impulses (§4.3.1): $G(e^{j\omega}) = \pi\,\delta(\omega-\omega_0)+\pi\,\delta(\omega+\omega_0)$ for $|\omega|\le\pi$.
它在一個週期上的 DTFT 是一對脈衝(§4.3.1):對 $|\omega|\le\pi$ 有 $G(e^{j\omega}) = \pi\,\delta(\omega-\omega_0)+\pi\,\delta(\omega+\omega_0)$。
その一周期にわたる DTFT は一対のインパルスである(§4.3.1)。すなわち $|\omega|\le\pi$ で $G(e^{j\omega}) = \pi\,\delta(\omega-\omega_0)+\pi\,\delta(\omega+\omega_0)$ である。
Substitute into the theorem: $$W(e^{j\omega}) = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\Bigl[\pi\,\delta(\omega-\theta-\omega_0)+\pi\,\delta(\omega-\theta+\omega_0)\Bigr]\,d\theta$$
代入定理: $$W(e^{j\omega}) = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\Bigl[\pi\,\delta(\omega-\theta-\omega_0)+\pi\,\delta(\omega-\theta+\omega_0)\Bigr]\,d\theta$$
定理に代入する: $$W(e^{j\omega}) = \frac{1}{2\pi}\int_{-\pi}^{\pi} X(e^{j\theta})\Bigl[\pi\,\delta(\omega-\theta-\omega_0)+\pi\,\delta(\omega-\theta+\omega_0)\Bigr]\,d\theta$$
Each impulse sifts out one value of the integrand, at $\theta=\omega-\omega_0$ and at $\theta=\omega+\omega_0$ respectively: $$W(e^{j\omega}) = \tfrac12 X\bigl(e^{j(\omega-\omega_0)}\bigr) + \tfrac12 X\bigl(e^{j(\omega+\omega_0)}\bigr)$$ The $\pi$ from the impulse strengths cancels half of the $1/2\pi$, leaving exactly $\tfrac12$ — a useful check that the $1/2\pi$ was carried through correctly.
每個脈衝各篩出被積函數的一個值,分別在 $\theta=\omega-\omega_0$ 與 $\theta=\omega+\omega_0$ 處: $$W(e^{j\omega}) = \tfrac12 X\bigl(e^{j(\omega-\omega_0)}\bigr) + \tfrac12 X\bigl(e^{j(\omega+\omega_0)}\bigr)$$ 脈衝強度帶來的 $\pi$ 抵消掉一半的 $1/2\pi$,剛好剩下 $\tfrac12$ —— 這正好可以拿來檢查 $1/2\pi$ 有沒有一路帶對,也對應著兩份半高的副本。
各インパルスが被積分関数の値を一つずつふるい出す。それぞれ $\theta=\omega-\omega_0$ と $\theta=\omega+\omega_0$ においてである: $$W(e^{j\omega}) = \tfrac12 X\bigl(e^{j(\omega-\omega_0)}\bigr) + \tfrac12 X\bigl(e^{j(\omega+\omega_0)}\bigr)$$ インパルスの強度に由来する $\pi$ が $1/2\pi$ の半分を打ち消し、ちょうど $\tfrac12$ が残る——$1/2\pi$ を最後まで正しく運べたかどうかの、便利な確認になる。
2026-09-25T07:54:45.028279 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −1.0 −0.5 0.0 0.5 1.0 0.00 0.25 0.50 0.75 1.00 1.25 magnitude + ω 0 − ω 0 ( a )   M o d u l a t i o n :     c o n v o l v e d   w i t h   t w o   i m p u l s e s   ⇒   t w o   h a l f - h e i g h t   c o p i e s   a t   ± G ω 0 | ( ) |     b a s e b a n d G e j ω | ( ) |     a f t e r   [ ] = [ ] c o s X e x n g n ω n j ω 0 −1.0 −0.5 0.0 0.5 1.0 ω π / 0.00 0.25 0.50 0.75 1.00 1.25 magnitude ( b )   W i n d o w i n g :   i m p u l s e s   c o n v o l v e d   w i t h   t h e   D i r i c h l e t   k e r n e l   ⇒   m a i n l o b e   +   s i d e l o b e s | ( ) | ,   c o s i n e   w i n d o w e d   t o   = 2 4 X e M j ω t r u e   s p e c t r u m   o f   c o s   ( t w o   i m p u l s e s ) ω n 1
Fig. 4-9b — The two faces of the modulation theorem. (a) A lowpass baseband spectrum multiplied in time by $\cos\omega_0 n$: convolution with two impulses reproduces it at $\pm\omega_0$ at half height. (b) A pure cosine truncated to $M=24$ samples: its two spectral lines are convolved with the Dirichlet kernel, so each line becomes a mainlobe plus sidelobes.
圖 4-9b — 調變定理的兩張面孔。(a) 低通的基頻頻譜在時域乘上 $\cos\omega_0 n$:與兩個脈衝卷積,把它以半高複製到 $\pm\omega_0$ 處。(b) 純餘弦被截短成 $M=24$ 個樣本:它的兩條譜線與 Dirichlet 核卷積,於是每條譜線都變成一個主瓣加上一堆旁瓣。兩者出自同一條週期卷積公式。
図 4-9b — 変調定理の二つの顔。 (a) 低域通過のベースバンドスペクトルに時間領域で $\cos\omega_0 n$ を掛けた場合:二つのインパルスとの畳み込みにより、半分の高さで $\pm\omega_0$ に再現される。(b) 純粋な余弦を $M=24$ 標本に打ち切った場合:その二本のスペクトル線が Dirichlet 核と畳み込まれ、各線がメインローブとサイドローブに変わる。

Both factors narrow: two sinusoids of different frequency兩個因子都很窄:兩個不同頻率的弦波両方の因子が狭い場合:周波数の異なる二つの正弦波

The two cases above each had one wide and one narrow factor. The remaining case — both factors narrow — is the sharpest test of the theorem, because the right-hand side can be evaluated in closed form and checked against elementary trigonometry. Take $g[n]=\cos\omega_1 n$ and $h[n]=\cos\omega_2 n$ with $\omega_1\neq\omega_2$. Each spectrum is a pair of impulses, so the periodic convolution pairs every impulse of $G$ with every impulse of $H$ — four combinations, at the sum and difference frequencies:

上面兩種情形各有一個寬因子與一個窄因子。剩下的情形——兩個因子都窄——是對這條定理最嚴格的檢驗,因為右式可以算出封閉解,並拿初等三角恆等式來核對。取 $g[n]=\cos\omega_1 n$、$h[n]=\cos\omega_2 n$,且 $\omega_1\neq\omega_2$。兩個頻譜各是一對脈衝,所以週期卷積會把 $G$ 的每個脈衝與 $H$ 的每個脈衝配對——共四種組合,落在和頻與差頻上:

上の二つの場合は、いずれも一方が広く他方が狭い因子であった。残る場合——両方の因子が狭い場合——は、この定理の最も厳しい試金石である。右辺を閉じた形で評価でき、初等三角法と突き合わせられるからである。$\omega_1\neq\omega_2$ として $g[n]=\cos\omega_1 n$、$h[n]=\cos\omega_2 n$ をとる。どちらのスペクトルも一対のインパルスなので、周期畳み込みは $G$ の各インパルスを $H$ の各インパルスと組み合わせる——四通りの組み合わせが和周波数と差周波数に現れる:

Two sinusoids multiplied 兩個弦波相乘二つの正弦波の積 $$\cos\omega_1 n\,\cos\omega_2 n\;\longleftrightarrow\; \frac{\pi}{2}\Bigl[\delta\bigl(\omega-(\omega_2\!-\!\omega_1)\bigr)+\delta\bigl(\omega+(\omega_2\!-\!\omega_1)\bigr) +\delta\bigl(\omega-(\omega_2\!+\!\omega_1)\bigr)+\delta\bigl(\omega+(\omega_2\!+\!\omega_1)\bigr)\Bigr]$$

which is just the product-to-sum identity $\cos A\cos B=\tfrac12\cos(A\!-\!B)+\tfrac12\cos(A\!+\!B)$ seen in the frequency domain — the $\pi/2$ comes from $\pi$ (impulse strength of a cosine) times $\pi$, divided by the $2\pi$ of the theorem. This is the heterodyne principle: multiplying two tones produces neither of the originals, only their sum and difference.

這其實就是積化和差恆等式 $\cos A\cos B=\tfrac12\cos(A\!-\!B)+\tfrac12\cos(A\!+\!B)$ 在頻域裡的樣子 —— 那個 $\pi/2$ 來自 $\pi$(餘弦的脈衝強度)乘以 $\pi$,再除以定理裡的 $2\pi$。這就是外差(heterodyne)原理:兩個單音相乘,輸出既不是原本的任一個頻率,只剩下它們的和頻與差頻。

これは積和公式 $\cos A\cos B=\tfrac12\cos(A\!-\!B)+\tfrac12\cos(A\!+\!B)$ を周波数領域で見たものにすぎない——$\pi/2$ は $\pi$(余弦のインパルス強度)に $\pi$ を掛け、定理の $2\pi$ で割ったものである。これがヘテロダインの原理である。二つの単一音を掛け合わせると、元のどちらの周波数も出てこず、その和と差だけが現れる。

Fig. 4-9c evaluates the right-hand side numerically — a genuine Riemann sum of the convolution integral on a 4096-point grid, not the closed form above — and overlays it on the DTFT of the product computed directly. Panels (a)–(c) use $\omega_1=0.2\pi$, $\omega_2=0.5\pi$, giving peaks at $0.3\pi$ and $0.7\pi$; the two curves agree to $3\times10^{-13}$.

圖 4-9c 以數值方式計算右式——在 4096 點的網格上真正做卷積積分的黎曼和,而不是套用上面的封閉解——再把它疊在直接算出的乘積 DTFT 上。(a)–(c) 各圖取 $\omega_1=0.2\pi$、$\omega_2=0.5\pi$,峰值落在 $0.3\pi$ 與 $0.7\pi$;兩條曲線吻合到 $3\times10^{-13}$。

図 4-9c は右辺を数値的に評価したものである——上の閉じた形ではなく、4096 点の格子上で畳み込み積分のリーマン和を実際に計算し、積の DTFT を直接求めたものに重ねている。パネル (a)–(c) では $\omega_1=0.2\pi$、$\omega_2=0.5\pi$ を用い、ピークは $0.3\pi$ と $0.7\pi$ に現れる。二本の曲線は $3\times10^{-13}$ まで一致する。

Panel (d) — the sum frequency can fold back
(d) 圖 —— 和頻可能摺回來
パネル (d) — 和周波数は折り返されうる

With $\omega_1=0.6\pi$ and $\omega_2=0.7\pi$ the difference lands harmlessly at $0.1\pi$, but the sum is $\omega_1+\omega_2=1.3\pi$, which is outside $[-\pi,\pi]$. Because the convolution is periodic, that component does not vanish and it does not appear at $1.3\pi$ — it re-enters the band at $1.3\pi-2\pi=-0.7\pi$. A student who treats the integral as an ordinary convolution over $(-\infty,\infty)$ will predict a peak that cannot exist.

取 $\omega_1=0.6\pi$、$\omega_2=0.7\pi$,差頻落在無害的 $0.1\pi$,但和頻是 $\omega_1+\omega_2=1.3\pi$,跑出了 $[-\pi,\pi]$。因為卷積是週期的,這個成分不會消失,也不會出現在 $1.3\pi$ —— 它會從 $1.3\pi-2\pi=-0.7\pi$ 重新進入頻帶。把這條積分當成 $(-\infty,\infty)$ 上的普通卷積來看的人,會預測出一個根本不可能存在的峰值。

$\omega_1=0.6\pi$、$\omega_2=0.7\pi$ とすると、差は無害な $0.1\pi$ に落ちるが、和は $\omega_1+\omega_2=1.3\pi$ となり、$[-\pi,\pi]$ の外側である。畳み込みは周期的なので、この成分は消えもしないし $1.3\pi$ に現れもしない——$1.3\pi-2\pi=-0.7\pi$ の位置から帯域内へ戻ってくるのである。この積分を $(-\infty,\infty)$ 上の普通の畳み込みとして扱う学生は、存在しえないピークを予言することになる。

This is the same arithmetic as aliasing (Ch. 6), and it is why a digital mixer needs its sum term to satisfy $\omega_1+\omega_2<\pi$ — otherwise the unwanted sideband folds down on top of the wanted one.

這與混疊(第 6 章)是同一套算術,也是數位混頻器必須讓和頻項滿足 $\omega_1+\omega_2<\pi$ 的原因 —— 否則不要的那個旁波帶就會摺下來壓在要的那一個上面。

これはエイリアシング(第 6 章)とまったく同じ算術であり、ディジタルミキサが和の項について $\omega_1+\omega_2<\pi$ を満たさねばならない理由でもある。さもないと、不要な側波帯が折り返して必要な側波帯の上に重なってしまう。

2026-09-25T08:28:45.838913 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ −1.00 −0.75 −0.50 −0.25 0.00 0.25 0.50 0.75 1.00 −10 0 10 20 30 40 amplitude ( a )   T h e   t w o   f a c t o r s ,   e a c h   w i n d o w e d   t o   = 8 1   s a m p l e s M G e g n ω n ω π ( ) ,     [ ] = c o s ,     = 0 . 2 j ω 1 1 H e h n ω n ω π ( ) ,     [ ] = c o s ,     = 0 . 5 j ω 2 2 −1.00 −0.75 −0.50 −0.25 0.00 0.25 0.50 0.75 1.00 0 10 20 30 amplitude ω ω 2 1 − ω ω 2 1 + ( b )   B o t h   s i d e s   a g r e e :   p e a k s   a t   t h e   d i f f e r e n c e   0 . 3   a n d   t h e   s u m   0 . 7 π π R H S :     ( ) ( ) 2 1 − ( − ) π π π j θ j ω θ ∫ G e H e d θ L H S :     D T F T   o f   [ ] [ ] g n h n −1.00 −0.75 −0.50 −0.25 0.00 0.25 0.50 0.75 1.00 0 0.5 1.0 π / 2 2.0 impulse area ( c )   I d e a l   l i m i t   → ∞ :     f o u r   i m p u l s e s   a t   ± ( − )   a n d   ± ( + ) M ω ω ω ω 2 1 2 1 i m p u l s e s   o f   a r e a   / 2 π −1.00 −0.75 −0.50 −0.25 0.00 0.25 0.50 0.75 1.00 ω π / 0 10 20 30 40 amplitude ω ω π 2 1 − = 0 . 1 ω ω π 1 2 + = 1 . 3 f o l d s   b a c k   t o   − 0 . 7 π ( d )   W h e n   + >   t h e   s u m   t e r m   w r a p s     p e r i o d i c   c o n v o l u t i o n ω ω π 1 2 — R H S ,     = 0 . 6 ,     = 0 . 7 ω π ω π 1 2
Fig. 4-9c — The right-hand side of the modulation theorem when both factors are sinusoids, $\omega_1\neq\omega_2$, each windowed to $M=81$ samples. (a) The two input spectra. (b) The convolution integral evaluated numerically (thick blue) against the DTFT of the product taken directly (dashed red) — they coincide; peaks appear only at the difference $0.3\pi$ and the sum $0.7\pi$, never at $\omega_1$ or $\omega_2$. (c) The $M\to\infty$ limit: four impulses of area $\pi/2$. (d) With $\omega_1=0.6\pi,\ \omega_2=0.7\pi$ the sum $1.3\pi$ wraps to $-0.7\pi$.
圖 4-9c — 當兩個因子都是弦波($\omega_1\neq\omega_2$,各截短成 $M=81$ 個樣本)時,調變定理右式的樣子。(a) 兩個輸入頻譜。(b) 以數值計算的卷積積分(粗藍線)與直接取乘積 DTFT 的結果(紅虛線)—— 兩者完全重合;峰值只出現在差頻 $0.3\pi$ 與和頻 $0.7\pi$,從不出現在 $\omega_1$ 或 $\omega_2$。(c) $M\to\infty$ 的極限:四個面積為 $\pi/2$ 的脈衝。(d) 取 $\omega_1=0.6\pi$、$\omega_2=0.7\pi$ 時,和頻 $1.3\pi$ 繞回到 $-0.7\pi$。
図 4-9c — 両方の因子が正弦波($\omega_1\neq\omega_2$、それぞれ $M=81$ 標本に窓かけ)であるときの変調定理の右辺。 (a) 二つの入力スペクトル。(b) 数値的に評価した畳み込み積分(太い青)と、積の DTFT を直接求めたもの(赤の破線)——両者は重なる。ピークは差の $0.3\pi$ と和の $0.7\pi$ にだけ現れ、$\omega_1$ や $\omega_2$ には決して現れない。(c) $M\to\infty$ の極限:面積 $\pi/2$ の四本のインパルス。(d) $\omega_1=0.6\pi,\ \omega_2=0.7\pi$ とすると、和の $1.3\pi$ は $-0.7\pi$ に巻き戻る。

4.5 Parseval's Relation and the Energy Density Spectrum4.5 Parseval 關係式與能量密度頻譜4.5 パーセバルの関係とエネルギー密度スペクトル

4.5.1 Parseval's relation4.5.1 Parseval 關係式4.5.1 パーセバルの関係

Parseval's relation(能量守恆) Parseval 關係式(能量守恆)パーセバルの関係(エネルギー保存) $$\boxed{\;\mathcal{E}_x=\sum_{n=-\infty}^{\infty} \bigl|x[n]\bigr|^2 = \frac{1}{2\pi}\int_{-\pi}^{\pi} \bigl|X(e^{j\omega})\bigr|^2\,d\omega\;}$$

Energy computed sample-by-sample in time equals energy computed frequency-by-frequency — the DTFT neither creates nor destroys energy, it only reorganizes it. (This is the $g=x$ special case of the general inner-product form in the table of §4.4.1.)

在時域上逐個樣本算出的能量,等於在頻域上逐個頻率算出的能量——DTFT 既不創造也不摧毀能量,它只是把能量重新排列。(這是 §4.4.1 表中一般內積形式在 $g=x$ 時的特例。)

時間領域で標本ごとに計算したエネルギーは、周波数領域で周波数ごとに計算したエネルギーに等しい——DTFT はエネルギーを生みも消しもせず、ただ並べ替えるだけである。(これは §4.4.1 の表にある一般の内積形式の、$g=x$ とした特別な場合である。)

4.5.2 Energy density spectrum and autocorrelation4.5.2 能量密度頻譜與自相關4.5.2 エネルギー密度スペクトルと自己相関

Energy density spectrum(能量密度頻譜) 能量密度頻譜(energy density spectrum)エネルギー密度スペクトル(energy density spectrum) $$S_{xx}(\omega) = \bigl|X(e^{j\omega})\bigr|^2 \qquad\Longrightarrow\qquad \mathcal{E}_x = \frac{1}{2\pi}\int_{-\pi}^{\pi} S_{xx}(\omega)\,d\omega$$

$S_{xx}(\omega)$ tells how the signal's energy is distributed over frequency. It connects back to the time domain through the autocorrelation sequence(自相關序列):

$S_{xx}(\omega)$ 告訴我們訊號的能量如何分布在各頻率上。它透過自相關序列(autocorrelation sequence)連回時域:

$S_{xx}(\omega)$ は、信号のエネルギーが周波数上にどう分布しているかを教えてくれる。それは自己相関系列(autocorrelation sequence)を通じて時間領域へ戻ってくる:

EDS ↔ autocorrelation 能量密度頻譜 ↔ 自相關エネルギー密度スペクトル ↔ 自己相関 $$r_{xx}[\ell] = \sum_{n=-\infty}^{\infty} x[n]\,x^*[n-\ell] = x[\ell]\ast x^*[-\ell] \qquad\Longleftrightarrow\qquad S_{xx}(\omega) = X(e^{j\omega})\,X^*(e^{j\omega}) = \bigl|X(e^{j\omega})\bigr|^2$$

(Derived step by step in Example 4-E below: apply the convolution theorem with $h[n]=x^*[-n]\leftrightarrow X^*(e^{j\omega})$, using the symmetry proved in Exercise 1(c).) The EDS is the DTFT of the autocorrelation — phase information is gone; only energy-vs-frequency remains. Note $r_{xx}[0]=\mathcal{E}_x$, recovering Parseval.

(下面的範例 4-E 會一步步推導:取 $h[n]=x^*[-n]\leftrightarrow X^*(e^{j\omega})$ 套用卷積定理,並用到習題 1(c) 證明的對稱性。)能量密度頻譜就是自相關的 DTFT —— 相位資訊已經不見了,只剩下「能量對頻率」的分布。注意 $r_{xx}[0]=\mathcal{E}_x$,這就還原出 Parseval 關係式。

(下の 例題 4-E で順を追って導出する。演習 1(c) で証明した対称性を用い、$h[n]=x^*[-n]\leftrightarrow X^*(e^{j\omega})$ として畳み込み定理を適用する。)エネルギー密度スペクトルは自己相関の DTFT である——位相の情報は失われ、周波数に対するエネルギーの分布だけが残る。$r_{xx}[0]=\mathcal{E}_x$ であることに注意すれば、パーセバルの関係が取り戻せる。

Why the correlation sum is a convolution為什麼相關和就是一種卷積相関和がじつは畳み込みである理由

The identity $r_{xx}[\ell]=x[\ell]\ast x^*[-\ell]$ above is worth more than one line, because it is the bridge that lets the convolution theorem of §4.4.3 do all the work. The whole derivation is a single substitution followed by a renaming.

上面的恆等式 $r_{xx}[\ell]=x[\ell]\ast x^*[-\ell]$ 值得多花一行以上來說,因為它正是那座橋——有了它,§4.4.3 的卷積定理就能包辦所有工作。整段推導只是一次代換加上一次改名。

上の恒等式 $r_{xx}[\ell]=x[\ell]\ast x^*[-\ell]$ は一行以上の価値がある。これこそ、§4.4.3 の畳み込み定理にすべての仕事を任せられるようにする橋だからである。導出全体は、一度の代入とそれに続く名前の付け替えだけである。

Example 4-E — from the convolution sum to the autocorrelation sum範例 4-E —— 從卷積和走到自相關和例題 4-E — 畳み込み和から自己相関和へ
Step 1 — start from the convolution sum (§4.4.3). For any two sequences, $$y[n] = x[n]\ast h[n] = \sum_{k} x[k]\,h[n-k]$$
第 1 步 —— 從卷積和出發(§4.4.3)。對任意兩條序列, $$y[n] = x[n]\ast h[n] = \sum_{k} x[k]\,h[n-k]$$
第 1 段階 — 畳み込み和から出発する(§4.4.3)。任意の二つの系列について、 $$y[n] = x[n]\ast h[n] = \sum_{k} x[k]\,h[n-k]$$
Step 2 — choose $h$ to be the time-reversed, conjugated $x$. Set $h[n]=x^*[-n]$. The only step that needs care is evaluating $h$ at the argument $n-k$: $$h[n-k] = x^*\bigl[-(n-k)\bigr] = x^*[k-n]$$
第 2 步 —— 把 $h$ 取成 $x$ 的時間反轉共軛。令 $h[n]=x^*[-n]$。唯一需要小心的一步,是把 $h$ 在引數 $n-k$ 處取值: $$h[n-k] = x^*\bigl[-(n-k)\bigr] = x^*[k-n]$$
第 2 段階 — $h$ を $x$ の時間反転かつ共役にとる。$h[n]=x^*[-n]$ と置く。注意を要する唯一の段階は、引数 $n-k$ における $h$ の評価である: $$h[n-k] = x^*\bigl[-(n-k)\bigr] = x^*[k-n]$$
Step 3 — substitute. The convolution sum becomes $$y[n] = x[n]\ast x^*[-n] = \sum_{k} x[k]\,x^*[k-n]$$
第 3 步 —— 代入。卷積和變成 $$y[n] = x[n]\ast x^*[-n] = \sum_{k} x[k]\,x^*[k-n]$$
第 3 段階 — 代入する。畳み込み和は次のようになる $$y[n] = x[n]\ast x^*[-n] = \sum_{k} x[k]\,x^*[k-n]$$
Step 4 — rename the indices. This changes names only, not mathematics: the output index $n$ is really the lag, so call it $\ell$; the summation variable $k$ is a dummy, so call it $n$: $$y[\ell] = \sum_{n} x[n]\,x^*[n-\ell] = r_{xx}[\ell]$$ which is exactly the definition in eq. above.
第 4 步 —— 把指標改名。這一步只改名字,沒有動到數學:輸出指標 $n$ 其實是延遲,所以把它叫做 $\ell$;求和變數 $k$ 是啞指標,所以把它叫做 $n$: $$y[\ell] = \sum_{n} x[n]\,x^*[n-\ell] = r_{xx}[\ell]$$ 這正是上面那條式子裡的定義。
第 4 段階 — 添字の名前を付け替える。これは名前を変えるだけで数学は変わらない。出力の添字 $n$ は実のところラグなので $\ell$ と呼び、和の変数 $k$ はダミーなので $n$ と呼ぶ: $$y[\ell] = \sum_{n} x[n]\,x^*[n-\ell] = r_{xx}[\ell]$$ これはまさに上の式の定義そのものである。
Step 5 — transform, and the payoff. Now that $r_{xx}$ is written as a convolution, the convolution theorem applies directly. The reversed-conjugate sequence transforms as $$\sum_n x^*[-n]\,e^{-j\omega n} \;\overset{m=-n}{=}\; \sum_m x^*[m]\,e^{j\omega m} = \Bigl(\sum_m x[m]\,e^{-j\omega m}\Bigr)^{\!*} = X^*(e^{j\omega})$$ so convolution becomes a product: $$R_{xx}(e^{j\omega}) = X(e^{j\omega})\,X^*(e^{j\omega}) = \bigl|X(e^{j\omega})\bigr|^2 = S_{xx}(\omega)$$
第 5 步 —— 做轉換,收割成果。既然 $r_{xx}$ 已經寫成卷積的形式,卷積定理就能直接套用。反轉共軛後的序列,其轉換為 $$\sum_n x^*[-n]\,e^{-j\omega n} \;\overset{m=-n}{=}\; \sum_m x^*[m]\,e^{j\omega m} = \Bigl(\sum_m x[m]\,e^{-j\omega m}\Bigr)^{\!*} = X^*(e^{j\omega})$$ 於是卷積變成乘積: $$R_{xx}(e^{j\omega}) = X(e^{j\omega})\,X^*(e^{j\omega}) = \bigl|X(e^{j\omega})\bigr|^2 = S_{xx}(\omega)$$
第 5 段階 — 変換し、成果を収穫する。$r_{xx}$ が畳み込みの形に書けたので、畳み込み定理をそのまま適用できる。反転かつ共役をとった系列の変換は $$\sum_n x^*[-n]\,e^{-j\omega n} \;\overset{m=-n}{=}\; \sum_m x^*[m]\,e^{j\omega m} = \Bigl(\sum_m x[m]\,e^{-j\omega m}\Bigr)^{\!*} = X^*(e^{j\omega})$$ となり、畳み込みは積になる: $$R_{xx}(e^{j\omega}) = X(e^{j\omega})\,X^*(e^{j\omega}) = \bigl|X(e^{j\omega})\bigr|^2 = S_{xx}(\omega)$$
The one idea: convolution flips, correlation does not
一句話:卷積會翻轉,相關不會
要するに:畳み込みは反転させるが、相関は反転させない

Everything above hinges on a single asymmetry between the two sums:

上面的一切都建立在兩個和式之間唯一的那個不對稱上:

ここまでのすべては、二つの和のあいだのただ一つの非対称性にかかっている:

OperationSumWhat happens to the second sequence
Convolution$\displaystyle\sum_k x[k]\,h[\ell-k]$reversed, then shifted
Correlation$\displaystyle\sum_n x[n]\,x^*[n-\ell]$shifted only — not reversed
運算和式第二條序列發生了什麼
卷積$\displaystyle\sum_k x[k]\,h[\ell-k]$先反轉,再平移
相關$\displaystyle\sum_n x[n]\,x^*[n-\ell]$只有平移 —— 沒有反轉
演算和二番目の系列に起きること
畳み込み$\displaystyle\sum_k x[k]\,h[\ell-k]$反転してからシフト
相関$\displaystyle\sum_n x[n]\,x^*[n-\ell]$シフトのみ — 反転はしない

Convolution has a reversal built into it that correlation does not want. Feeding it a sequence that is already reversed makes the two reversals cancel, leaving pure sliding. That is the entire content of the identity.

卷積自帶一次反轉,而相關並不需要它。餵給它一條事先已經反轉過的序列,兩次反轉就互相抵消,只剩下純粹的滑動。這就是那個恆等式的全部內容。

畳み込みには反転が組み込まれているが、相関はそれを望まない。あらかじめ反転してある系列を与えてやれば、二度の反転が打ち消し合い、純粋な滑りだけが残る。これがあの恒等式の中身のすべてである。

Tip — real signals, and how to compute it
小技巧 —— 實數訊號,以及實際怎麼算
ヒント — 実数信号の場合と、実際の計算法

For real $x[n]$ the conjugate is invisible and Step 2 simplifies to $h[n]=x[-n]$, with $H(e^{j\omega}) = X(e^{-j\omega}) = X^*(e^{j\omega})$ — the same $|X|^2$ results. The autocorrelation is then real and even, $r_{xx}[-\ell]=r_{xx}[\ell]$, and peaks at $r_{xx}[0]=\mathcal{E}_x$.

對實數的 $x[n]$,共軛不起作用,第 2 步簡化成 $h[n]=x[-n]$,且 $H(e^{j\omega}) = X(e^{-j\omega}) = X^*(e^{j\omega})$ —— 得到的一樣是 $|X|^2$。此時自相關是實數且為偶函數,$r_{xx}[-\ell]=r_{xx}[\ell]$,峰值在 $r_{xx}[0]=\mathcal{E}_x$。

実数の $x[n]$ では共役は見えなくなり、第 2 段階は $h[n]=x[-n]$ に簡単化され、$H(e^{j\omega}) = X(e^{-j\omega}) = X^*(e^{j\omega})$ となる——結果は同じく $|X|^2$ である。このとき自己相関は実数かつ偶関数であり、$r_{xx}[-\ell]=r_{xx}[\ell]$、ピークは $r_{xx}[0]=\mathcal{E}_x$ にある。

The identity is also the fastest way to compute a correlation: reverse and convolve. In MATLAB xcorr(x) and conv(x, fliplr(x)) agree for real x; in NumPy, np.convolve(x, x[::-1]). Both return lags $\ell=-(N\!-\!1)\dots N\!-\!1$. For long sequences you would instead take the FFT, multiply by the conjugate, and transform back — which is Step 5 read from right to left.

這個恆等式也是計算相關最快的方法:先反轉,再卷積。在 MATLAB 裡,對實數的 x,xcorr(x) 與 conv(x, fliplr(x)) 結果一致;在 NumPy 裡則是 np.convolve(x, x[::-1])。兩者回傳的延遲範圍都是 $\ell=-(N\!-\!1)\dots N\!-\!1$。序列很長時,改用 FFT、乘上共軛、再轉回來會更快 —— 那正是把第 5 步從右讀到左。

この恒等式は相関を計算する最速の方法でもある。反転して畳み込めばよい。MATLAB では実数の x について xcorr(x) と conv(x, fliplr(x)) が一致し、NumPy では np.convolve(x, x[::-1]) がそれにあたる。どちらもラグ $\ell=-(N\!-\!1)\dots N\!-\!1$ を返す。長い系列では、かわりに FFT をとり共役を掛けて逆変換するほうがよい——それは第 5 段階を右から左へ読むことにほかならない。

Notation — $\ast$ versus $\circledast$
記號 —— $\ast$ 與 $\circledast$ 的差別
記号 — $\ast$ と $\circledast$ の違い
Many lecture slides write this identity with a circled star, $x[\ell]\circledast x^*[-\ell]$, using it simply to mean ordinary convolution. This guide reserves $\circledast$ for periodic convolution in frequency (§4.4.4) and uses $\ast$ for ordinary linear convolution in time, as here. Same glyph, two different operations in different textbooks — check which one a source means before trusting a formula.許多投影片把這個恆等式寫成帶圈的星號 $x[\ell]\circledast x^*[-\ell]$,而那裡的它只是指一般的卷積。本講義把 $\circledast$ 保留給頻域的週期卷積(§4.4.4),時域一般的線性卷積則像這裡一樣用 $\ast$。同一個符號,在不同教科書裡是兩種不同的運算 —— 相信任何公式之前,先確認出處指的是哪一個。多くの講義スライドはこの恒等式を丸つき星印 $x[\ell]\circledast x^*[-\ell]$ で書くが、そこでは単に通常の畳み込みを意味している。本ガイドは $\circledast$ を周波数領域の周期畳み込み(§4.4.4)のために取っておき、時間領域の通常の線形畳み込みにはここのように $\ast$ を使う。同じ字形が教科書によって二つの異なる演算を指す——公式を信用する前に、その出典がどちらの意味で使っているかを確認すること。
直觀解釋:自相關為什麼等於「自己和翻轉後的自己做卷積」(點擊展開)

自相關在問一件事:把訊號平移 $\ell$ 格之後,和原來的自己有多像? 所以它的動作只有「平移、相乘、相加」三步,沒有翻轉。

但卷積的動作是「翻轉、平移、相乘、相加」——多了一次翻轉。這個翻轉不是誰規定的, 它來自定義式裡的 $h[n-k]$:$k$ 前面是負號,所以 $h$ 是倒著被取用的。

既然卷積一定會翻一次,而我們不想翻,那就先翻一次給它翻:把 $x^*[-n]$ 餵進去, 卷積再翻一次,負負得正,剩下的就是純粹的平移。這就是 Step 2 的全部動機。

記憶口訣:相關 = 先翻再卷(correlation = flip, then convolve)。 而頻域的代價也很直接:翻轉加共軛在頻域就是取共軛,所以乘出來是 $X\cdot X^*=|X|^2$ ——相位全部消失,只剩能量的分佈。這也是為什麼兩個聽起來完全不同、但幅度頻譜相同的 訊號,會有一模一樣的自相關。

The pair in one line — and what it costs一行寫完這組轉換對 —— 以及它的代價この変換対を一行で — そしてその代償

Step 5 is worth stating as a slogan, because that is how it is usually quoted: the magnitude-squared of the spectrum is the DTFT of the autocorrelation. Being a transform pair, it runs in both directions:

第 5 步值得寫成一句口號,因為大家通常就是這樣引用它的:頻譜的振幅平方,就是自相關的 DTFT。既然是一組轉換對,它兩個方向都成立:

第 5 段階は標語として述べておく価値がある。たいていそういう形で引用されるからである。すなわち、スペクトルの振幅の二乗は自己相関の DTFT である。変換対であるから、この関係は両方向に成り立つ:

Autocorrelation ↔ energy density spectrum 自相關 ↔ 能量密度頻譜自己相関 ↔ エネルギー密度スペクトル $$\bigl|X(e^{j\omega})\bigr|^2 = \sum_{\ell=-\infty}^{\infty} r_{xx}[\ell]\,e^{-j\omega\ell} \qquad\Longleftrightarrow\qquad r_{xx}[\ell] = \frac{1}{2\pi}\int_{-\pi}^{\pi}\bigl|X(e^{j\omega})\bigr|^2 e^{j\omega\ell}\,d\omega$$

Autocorrelation and energy density spectrum are not two facts about a signal — they are one object viewed from the two domains.

自相關與能量密度頻譜並不是關於一個訊號的兩件事實 —— 它們是同一個東西從兩個域看過去的樣子。

自己相関とエネルギー密度スペクトルは、ある信号についての二つの事実なのではない——同一の対象を二つの領域から眺めたものである。

Three consequences worth carrying
三個值得記住的推論
携えておく価値のある三つの帰結
  1. Parseval is the zero-lag slice. Put $\ell=0$ in the right-hand form: $r_{xx}[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2d\omega$, and the left-hand definition gives $r_{xx}[0]=\sum_n|x[n]|^2=\mathcal{E}_x$. So §4.5.1 is this theorem evaluated at one point.
  2. The spectrum is real and non-negative, which forces $r_{xx}$ to be conjugate-symmetric and positive semi-definite. Not every sequence is a legal autocorrelation — a candidate whose DTFT dips below zero anywhere cannot be one.
  3. It cannot be inverted. Squaring the magnitude discards $\angle X(e^{j\omega})$ completely, so $r_{xx}\to x[n]$ is impossible without an extra assumption such as minimum phase. This is the whole difficulty of phase retrieval.
  1. Parseval 是零延遲那一個切片。在右式中令 $\ell=0$:$r_{xx}[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2d\omega$,而左式的定義給出 $r_{xx}[0]=\sum_n|x[n]|^2=\mathcal{E}_x$。所以 §4.5.1 只是這條定理在單獨一個點上取值而已。
  2. 這個頻譜是實數且非負的,這就強迫 $r_{xx}$ 必須共軛對稱且半正定。並不是每條序列都能當自相關 —— 只要某個候選序列的 DTFT 在任何一處掉到零以下,它就不可能是自相關。
  3. 它不能反推回去。取振幅平方會把 $\angle X(e^{j\omega})$ 完全丟掉,所以在沒有額外假設(例如最小相位)的情況下,$r_{xx}\to x[n]$ 是做不到的。這正是相位重建(phase retrieval)之所以困難的全部原因。
  1. パーセバルはラグ 0 の断面である。右辺の形で $\ell=0$ と置くと $r_{xx}[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2d\omega$ となり、左辺の定義からは $r_{xx}[0]=\sum_n|x[n]|^2=\mathcal{E}_x$ が得られる。つまり §4.5.1 は、この定理を一点で評価したものである。
  2. このスペクトルは実数かつ非負である。それが $r_{xx}$ に共役対称性と半正定値性を強制する。どんな系列でも自己相関になれるわけではない——DTFT がどこかでゼロを下回る候補は、自己相関ではありえない。
  3. 逆向きには解けない。振幅を二乗すると $\angle X(e^{j\omega})$ が完全に捨てられるので、最小位相などの追加の仮定なしに $r_{xx}\to x[n]$ を行うことは不可能である。これが位相回復の難しさのすべてである。
Example 4-F — two different signals, one autocorrelation範例 4-F —— 兩個不同的訊號,同一個自相關例題 4-F — 異なる二つの信号、同一の自己相関

Consequence 3 sounds abstract until you build a counterexample. Take any sequence $b[n]$ and the two-tap factor $a=[1,\,-0.5]$ together with its reverse $a_r=[-0.5,\,1]$, and form

推論 3 聽起來很抽象,直到你動手造一個反例。取任意序列 $b[n]$,以及兩抽頭的因子 $a=[1,\,-0.5]$ 與它的反轉 $a_r=[-0.5,\,1]$,然後組出

帰結 3 は反例を作ってみるまでは抽象的に響く。任意の系列 $b[n]$ と、二タップの因子 $a=[1,\,-0.5]$ およびその反転 $a_r=[-0.5,\,1]$ をとり、次を作る

$$x[n] = a\ast b, \qquad y[n] = a_r \ast b$$
Reversing a real sequence conjugates its transform, $A_r(e^{j\omega}) = e^{-j\omega}A^*(e^{j\omega})$, so $|A_r| = |A|$ — the magnitude is untouched and only the phase changes.
把實數序列反轉,會使它的轉換取共軛:$A_r(e^{j\omega}) = e^{-j\omega}A^*(e^{j\omega})$,所以 $|A_r| = |A|$ —— 振幅原封不動,只有相位改變。
実数系列を反転するとその変換は共役になり、$A_r(e^{j\omega}) = e^{-j\omega}A^*(e^{j\omega})$ となるので $|A_r| = |A|$ である——振幅はそのままで、変わるのは位相だけである。
Therefore $|Y| = |A_r||B| = |A||B| = |X|$ at every frequency, and by the pair above the two signals must share an autocorrelation: $r_{yy}[\ell] = r_{xx}[\ell]$ for all $\ell$.
因此在每一個頻率上都有 $|Y| = |A_r||B| = |A||B| = |X|$,而由上面那組轉換對可知,這兩個訊號必定共用同一個自相關:對所有 $\ell$ 都有 $r_{yy}[\ell] = r_{xx}[\ell]$。
したがってすべての周波数で $|Y| = |A_r||B| = |A||B| = |X|$ となり、上の変換対により二つの信号は自己相関を共有せざるをえない。すなわちすべての $\ell$ について $r_{yy}[\ell] = r_{xx}[\ell]$ である。
Yet $x[n]$ and $y[n]$ are plainly different sequences — Fig. 4-10(a). Computed numerically, $\max_n|x[n]-y[n]| = 2.01$ while $\max_\ell|r_{xx}[\ell]-r_{yy}[\ell]| = 4\times10^{-16}$. $a$ has its zero inside the unit circle and $a_r$ outside: they are a minimum-phase / maximum-phase pair, the same ambiguity you meet again in Ch. 5.
然而 $x[n]$ 與 $y[n]$ 明明是不同的序列 —— 圖 4-10(a)。數值上算出來,$\max_n|x[n]-y[n]| = 2.01$,而 $\max_\ell|r_{xx}[\ell]-r_{yy}[\ell]| = 4\times10^{-16}$。$a$ 的零點在單位圓內、$a_r$ 的在圓外:它們是一對最小相位/最大相位,正是第 5 章會再遇到的那個不確定性。同一個自相關,對應的訊號不只一個。
それでいて $x[n]$ と $y[n]$ は明らかに別の系列である——図 4-10(a)。数値的に計算すると $\max_n|x[n]-y[n]| = 2.01$ である一方、$\max_\ell|r_{xx}[\ell]-r_{yy}[\ell]| = 4\times10^{-16}$ にすぎない。$a$ は零点を単位円の内側に、$a_r$ は外側にもつ。両者は最小位相/最大位相の対であり、第 5 章で再び出会う同じ不定性である。
2026-09-26T08:46:19.244486 image/svg+xml Matplotlib v3.11.1, https://matplotlib.org/ 0 1 2 3 4 5 6 7 8 n −1 0 1 2 amplitude (a) Two clearly different sequences x n a b a [ ] = ∗ ,     = [ 1 , − 0 . 5 ]     ( m i n   p h a s e ) y n a b a [ ] = ∗ ,     = [ − 0 . 5 , 1 ]     ( m a x   p h a s e ) r r −1.00 −0.75 −0.50 −0.25 0.00 0.25 0.50 0.75 1.00 ω π / 1 2 3 magnitude ( b )   I d e n t i c a l   m a g n i t u d e   s p e c t r a     t h e y   d i f f e r   o n l y   i n   ∠ — X | ( ) | X e j ω | ( ) | Y e j ω −8 −6 −4 −2 0 2 4 6 8 l a g     ℓ −2 0 2 4 amplitude r x x x [ 0 ] = (c) Identical autocorrelations — phase is gone, and it is even r ℓ x x [ ] r ℓ y y [ ]     ( c o i n c i d e s   e x a c t l y )
Fig. 4-10 — Phase is invisible to the autocorrelation. (a) $x=a\ast b$ and $y=a_r\ast b$ are clearly different sequences. (b) Their magnitude spectra coincide to $2\times10^{-15}$. (c) So do their autocorrelations, which peak at $r_{xx}[0]=\mathcal{E}_x$ and are even. Recovering $x$ from $r_{xx}$ alone is therefore impossible.
圖 4-10 — 自相關看不見相位。(a) $x=a\ast b$ 與 $y=a_r\ast b$ 顯然是不同的序列。(b) 它們的振幅頻譜吻合到 $2\times10^{-15}$。(c) 它們的自相關也一樣,都在 $r_{xx}[0]=\mathcal{E}_x$ 處達到峰值且為偶函數。因此只靠 $r_{xx}$ 是不可能還原出 $x$ 的。
図 4-10 — 位相は自己相関からは見えない。 (a) $x=a\ast b$ と $y=a_r\ast b$ は明らかに別の系列である。(b) 両者の振幅スペクトルは $2\times10^{-15}$ まで一致する。(c) 自己相関も同様であり、どちらも $r_{xx}[0]=\mathcal{E}_x$ をピークとする偶関数である。したがって $r_{xx}$ だけから $x$ を復元することは不可能である。
Naming — Wiener–Khinchin
命名 —— Wiener–Khinchin 定理
名称 — ウィーナー–ヒンチンの定理
This pair is usually called the Wiener–Khinchin theorem(維納–辛欽定理). Strictly, that name belongs to the stochastic statement — the power spectral density of a wide-sense-stationary random process is the DTFT of its autocorrelation. What we proved here is the deterministic counterpart for finite-energy signals, which some texts call the autocorrelation theorem to keep the two apart. The algebra is identical; only the objects differ (energy density vs. power density, finite sum vs. expectation).這一對關係通常稱為 Wiener–Khinchin 定理(維納–辛欽定理)。嚴格說來,這個名字屬於隨機版的敘述 —— 廣義平穩隨機過程的功率譜密度是其自相關的 DTFT。我們在這裡證明的是有限能量訊號的確定性對應版本,有些書為了區別而稱之為自相關定理。代數完全一樣,差別只在對象(能量密度 vs 功率密度、有限和 vs 期望值)。この変換対はふつうウィーナー–ヒンチンの定理(Wiener–Khinchin theorem)と呼ばれる。厳密にはこの名は確率的な言明に属する——広義定常確率過程のパワースペクトル密度はその自己相関の DTFT である、というものである。ここで証明したのは有限エネルギー信号についての決定論的な対応物であり、両者を区別するためにこちらを自己相関定理と呼ぶ本もある。代数はまったく同じで、違うのは対象だけである(エネルギー密度か電力密度か、有限和か期待値か)。
Concept — through an LTI system
觀念 —— 通過一個 LTI 系統
概念 — LTI システムを通すと
Since $Y(e^{j\omega})=H(e^{j\omega})X(e^{j\omega})$, energy spectra multiply by the magnitude squared of the frequency response: $$S_{yy}(\omega) = \bigl|H(e^{j\omega})\bigr|^2\,S_{xx}(\omega)$$ The system reshapes the energy distribution by $|H|^2$ — the phase of $H$ does not affect where the energy sits, which is why $|H|$ alone decides "lowpass / highpass / bandpass".因為 $Y(e^{j\omega})=H(e^{j\omega})X(e^{j\omega})$,能量頻譜會乘上頻率響應的振幅平方: $$S_{yy}(\omega) = \bigl|H(e^{j\omega})\bigr|^2\,S_{xx}(\omega)$$ 系統以 $|H|^2$ 重塑能量的分布 —— $H$ 的相位並不影響能量落在哪裡,這就是為什麼單憑 $|H|$ 就能決定一個系統是「低通/高通/帶通」。$Y(e^{j\omega})=H(e^{j\omega})X(e^{j\omega})$ であるから、エネルギースペクトルには周波数応答の振幅の二乗が掛かる: $$S_{yy}(\omega) = \bigl|H(e^{j\omega})\bigr|^2\,S_{xx}(\omega)$$ システムはエネルギーの分布を $|H|^2$ によって作り変える——$H$ の位相はエネルギーがどこに座るかには影響しない。だからこそ「低域通過/高域通過/帯域通過」は $|H|$ だけで決まるのである。

4.6 Magnitude, Phase, and Group Delay4.6 振幅、相位與群延遲4.6 振幅・位相・群遅延

4.6.1 Magnitude–phase representation of the frequency response4.6.1 頻率響應的振幅相位表示法4.6.1 周波数応答の振幅・位相表現

Writing $H(e^{j\omega}) = |H(e^{j\omega})|\,e^{j\theta(\omega)}$ splits the action of an LTI system on each frequency into a gain $|H|$(增益)and a phase shift $\theta(\omega)$(相位移). For the first-order system of Example 4-A:

把 $H(e^{j\omega})$ 寫成 $|H(e^{j\omega})|\,e^{j\theta(\omega)}$,就是把 LTI 系統對每個頻率的作用拆成增益 $|H|$ 與相位移 $\theta(\omega)$。以範例 4-A 的一階系統為例:

$H(e^{j\omega}) = |H(e^{j\omega})|\,e^{j\theta(\omega)}$ と書くことは、LTI システムが各周波数に及ぼす作用を利得 $|H|$(ゲイン)と位相シフト $\theta(\omega)$(位相のずれ)に分けることである。例題 4-A の一次系について:

2026-06-12T22:19:56.755044 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0.75 1.00 1.25 1.50 1.75 2.00 |H(e^jω)| Frequency response of h[n] = (1/2)ⁿ μ[n] −π −π/2 0 π/2 π ω (rad/sample) −0.4 −0.2 0.0 0.2 0.4 arg H(e^jω) (rad)
Fig. 4-11 — Magnitude (top) and phase (bottom) of $H(e^{j\omega}) = 1/(1-\tfrac12 e^{-j\omega})$, i.e. $h[n]=(1/2)^n\mu[n]$. Lowpass: gain 2 at DC, gain 2/3 at $\omega=\pi$; magnitude even, phase odd — as required for a real $h[n]$.
圖 4-11 — $H(e^{j\omega}) = 1/(1-\tfrac12 e^{-j\omega})$(即 $h[n]=(1/2)^n\mu[n]$)的振幅(上)與相位(下)。低通:直流處增益為 2,$\omega=\pi$ 處增益為 2/3;振幅為偶函數、相位為奇函數——這正是實數 $h[n]$ 所要求的。
図 4-11 — $H(e^{j\omega}) = 1/(1-\tfrac12 e^{-j\omega})$、すなわち $h[n]=(1/2)^n\mu[n]$ の振幅(上)と位相(下)。低域通過型であり、直流での利得は 2、$\omega=\pi$ での利得は 2/3 である。振幅は偶関数、位相は奇関数であり——実数の $h[n]$ に対して要求されるとおりである。
Warning — phase is only known modulo $2\pi$
注意 —— 相位只知道到模 $2\pi$ 為止
注意 — 位相は $2\pi$ を法としてしか決まらない
Numerical routines (MATLAB angle, NumPy np.angle) return the principal value $\arg H \in (-\pi,\pi]$, producing artificial $2\pi$ jumps in plots (visible in the Exercise 3 phase plots). The continuous "unwrapped" phase (unwrap) is needed before differentiating to get group delay.數值函式(MATLAB 的 angle、NumPy 的 np.angle)回傳的是主值 $\arg H \in (-\pi,\pi]$,因此圖上會出現人為的 $2\pi$ 跳變(習題 3 的相位圖就看得到)。要微分求群延遲之前,必須先取連續的「解纏」相位(unwrap)。数値ルーチン(MATLAB の angle、NumPy の np.angle)が返すのは主値 $\arg H \in (-\pi,\pi]$ であり、グラフ上に人為的な $2\pi$ の跳びを生む(演習 3 の位相プロットで見られる)。群遅延を得るために微分する前には、連続な「アンラップ」した位相(unwrap)が必要である。

4.6.2 Group delay4.6.2 群延遲4.6.2 群遅延

A pure delay $h[n]=\delta[n-n_0]$ has $H(e^{j\omega})=e^{-j\omega n_0}$ — linear phase with slope $-n_0$. Generalizing, the local slope of the (unwrapped) phase measures how much each narrowband group of frequencies is delayed:

純延遲 $h[n]=\delta[n-n_0]$ 的 $H(e^{j\omega})=e^{-j\omega n_0}$ —— 線性相位,斜率為 $-n_0$。把它推廣:(解纏後)相位的局部斜率,量的正是每一群窄頻成分被延遲了多少:

純粋な遅延 $h[n]=\delta[n-n_0]$ は $H(e^{j\omega})=e^{-j\omega n_0}$ をもつ——傾き $-n_0$ の線形位相である。これを一般化すると、(アンラップした)位相の局所的な傾きが、狭帯域の各周波数群がどれだけ遅れるかを測ることになる:

Group delay(群延遲) 群延遲(group delay)群遅延(group delay) $$\tau_g(\omega) = -\frac{d}{d\omega}\,\theta(\omega) \qquad{\scriptstyle\textcolor{gray}{\theta(\omega)=\text{unwrapped }\arg H(e^{j\omega})}}$$

Interpretation: a narrowband signal centered at $\omega_0$ (a slowly varying envelope on a carrier) comes out with its envelope delayed by $\tau_g(\omega_0)$ samples and its carrier phase shifted by $\theta(\omega_0)$. If $\tau_g$ is constant — linear phase — every group is delayed equally and the waveform shape is preserved; if $\tau_g$ varies with $\omega$, different frequency components arrive at different times and the waveform is dispersed.

解讀:一個以 $\omega_0$ 為中心的窄頻訊號(載波上掛著緩慢變化的包絡),輸出時它的包絡被延遲了 $\tau_g(\omega_0)$ 個樣本,而載波的相位被移了 $\theta(\omega_0)$。若 $\tau_g$ 是常數——線性相位——則每一群都被延遲同樣多,波形的形狀得以保留;若 $\tau_g$ 隨 $\omega$ 改變,不同頻率成分就會在不同時刻抵達,波形因而被色散開來(相位失真)。

解釈:$\omega_0$ を中心とする狭帯域信号(搬送波にゆっくり変化する包絡が乗ったもの)は、その包絡が $\tau_g(\omega_0)$ 標本だけ遅れ、搬送波の位相が $\theta(\omega_0)$ だけずれて出てくる。$\tau_g$ が一定——線形位相——であれば、どの群も等しく遅れるので波形の形は保たれる。$\tau_g$ が $\omega$ とともに変化すれば、異なる周波数成分が異なる時刻に到着し、波形は分散する。

2026-06-12T22:19:56.902735 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0 π/2 π ω −2 −1 0 1 arg H(e^jω) (rad) 5-pt moving average: phase 0 π/2 π ω 0 1 2 3 4 group delay τ(ω) (samples) Group delay comparison MA(5): τ(ω) = 2 IIR, a = 0.8
Fig. 4-12 — Left: phase of the 5-point moving average $H(e^{j\omega})=\frac{1}{5}\sum_{k=0}^{4}e^{-j\omega k}$ — piecewise linear with slope $-2$ ($\pi$ jumps occur where the real Dirichlet factor changes sign). Right: its group delay is exactly $\tau_g=2$ samples at all frequencies (linear phase), while the first-order IIR system $1/(1-0.8e^{-j\omega})$ has frequency-dependent group delay — low frequencies are delayed up to 4 samples, high frequencies barely at all.
圖 4-12 — 左:5 點移動平均 $H(e^{j\omega})=\frac{1}{5}\sum_{k=0}^{4}e^{-j\omega k}$ 的相位——分段線性,斜率為 $-2$(在實數的 Dirichlet 因子變號處出現 $\pi$ 的跳變)。右:它的群延遲在所有頻率上恰好都是 $\tau_g=2$ 個樣本(線性相位);相對地,一階 IIR 系統 $1/(1-0.8e^{-j\omega})$ 的群延遲隨頻率改變——低頻最多被延遲 4 個樣本,高頻則幾乎沒有被延遲,因而造成波形失真。
図 4-12 — 左:5 点移動平均 $H(e^{j\omega})=\frac{1}{5}\sum_{k=0}^{4}e^{-j\omega k}$ の位相——傾き $-2$ の区分線形である(実数の Dirichlet 因子が符号を変える位置で $\pi$ の跳びが起きる)。右:その群遅延はすべての周波数でちょうど $\tau_g=2$ 標本(線形位相)であるのに対し、一次の IIR システム $1/(1-0.8e^{-j\omega})$ の群遅延は周波数に依存する——低い周波数は最大 4 標本遅れ、高い周波数はほとんど遅れない。
Key — linear phase ⇔ constant group delay
重點 —— 線性相位 ⇔ 群延遲為常數
要点 — 線形位相 ⇔ 群遅延が一定
$\theta(\omega) = -\omega n_0 \iff \tau_g(\omega)=n_0$: the system behaves (in phase) like a pure $n_0$-sample delay. Symmetric FIR filters ($h[n]=h[M-1-n]$, like the moving average) achieve this exactly with $n_0=(M-1)/2$; causal IIR filters never can. This is the central selling point of FIR filters in Chapter 14.$\theta(\omega) = -\omega n_0 \iff \tau_g(\omega)=n_0$:這個系統(在相位上)的行為就像一個純粹的 $n_0$ 個樣本延遲。對稱的 FIR 濾波器($h[n]=h[M-1-n]$,例如移動平均)能以 $n_0=(M-1)/2$ 精確做到這一點;因果的 IIR 濾波器則永遠做不到。這正是第 14 章 FIR 濾波器最主要的賣點。$\theta(\omega) = -\omega n_0 \iff \tau_g(\omega)=n_0$:このシステムは(位相の上では)純粋な $n_0$ 標本の遅延のように振る舞う。対称な FIR フィルタ(移動平均のような $h[n]=h[M-1-n]$)は $n_0=(M-1)/2$ でこれを厳密に達成するが、因果的な IIR フィルタには決してできない。これが第 14 章における FIR フィルタの最大の売りである。

4.7 Summary4.7 本章總結4.7 本章のまとめ

The transform pair轉換對変換対
$X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$;  $x[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X(e^{j\omega})e^{j\omega n}d\omega$. Always $2\pi$-periodic; one period suffices. Exists uniformly iff $\sum|x[n]|<\infty$.$X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$; $x[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X(e^{j\omega})e^{j\omega n}d\omega$。恆以 $2\pi$ 為週期;看一個週期就夠。均勻存在的充要條件是 $\sum|x[n]|<\infty$。$X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$;  $x[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}X(e^{j\omega})e^{j\omega n}d\omega$。 常に $2\pi$ 周期であり、一周期あれば十分である。一様に存在するための必要十分条件は $\sum|x[n]|<\infty$ である。
Eigenfunctions & frequency response特徵函數與頻率響應固有関数と周波数応答
$e^{j\omega n}$ in → $H(e^{j\omega})\,e^{j\omega n}$ out. Sinusoid in → same-frequency sinusoid out, scaled by $|H|$, shifted by $\angle H$. $H(e^{j\omega})$ = DTFT of $h[n]$; exists for every stable system.$e^{j\omega n}$ 進 → $H(e^{j\omega})\,e^{j\omega n}$ 出。弦波進 → 同頻率的弦波出,振幅乘 $|H|$、相位移 $\angle H$。$H(e^{j\omega})$ = $h[n]$ 的 DTFT;每一個穩定系統都有。$e^{j\omega n}$ を入れれば → $H(e^{j\omega})\,e^{j\omega n}$ が出る。正弦波を入れれば → 同じ周波数の正弦波が、$|H|$ 倍され $\angle H$ だけ位相をずらして出る。$H(e^{j\omega})$ = $h[n]$ の DTFT であり、安定なシステムには必ず存在する。
Pairs to memorize該背起來的轉換對覚えるべき変換対
$\delta[n]\!\leftrightarrow\!1$;  $\delta[n-n_0]\!\leftrightarrow\!e^{-j\omega n_0}$;  $a^n\mu[n]\!\leftrightarrow\!\frac{1}{1-ae^{-j\omega}}$;  $\mu[n]\!\leftrightarrow\!\frac{1}{1-e^{-j\omega}}+\sum_k\pi\delta(\omega+2\pi k)$;  rect$_M\!\leftrightarrow$ Dirichlet $\frac{\sin(\omega M/2)}{\sin(\omega/2)}$;  $\frac{\sin\omega_c n}{\pi n}\!\leftrightarrow$ ideal LPF.
Theorems定理定理
Shift → linear phase $e^{-j\omega n_0}$; modulation → spectrum shift; convolution → multiplication; multiplication → periodic convolution; real $x[n]$ → conjugate-symmetric $X$ ($|X|$ even, phase odd).位移 → 線性相位 $e^{-j\omega n_0}$;調變 → 頻譜平移;卷積 → 相乘;相乘 → 週期卷積;實數 $x[n]$ → $X$ 共軛對稱($|X|$ 偶、相位奇)。シフト → 線形位相 $e^{-j\omega n_0}$;変調 → スペクトルのシフト;畳み込み → 乗算;乗算 → 周期畳み込み;実数の $x[n]$ → 共役対称な $X$($|X|$ は偶、位相は奇)。
Energy能量エネルギー
Parseval: $\sum|x[n]|^2=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2 d\omega$. EDS $S_{xx}=|X|^2$ = DTFT of autocorrelation $r_{xx}[\ell]$; through a system, $S_{yy}=|H|^2 S_{xx}$.Parseval:$\sum|x[n]|^2=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2 d\omega$。能量密度譜 $S_{xx}=|X|^2$ = 自相關 $r_{xx}[\ell]$ 的 DTFT;通過系統後 $S_{yy}=|H|^2 S_{xx}$。パーセバル:$\sum|x[n]|^2=\frac{1}{2\pi}\int_{-\pi}^{\pi}|X|^2 d\omega$。エネルギー密度スペクトル $S_{xx}=|X|^2$ = 自己相関 $r_{xx}[\ell]$ の DTFT。システムを通すと $S_{yy}=|H|^2 S_{xx}$ となる。
Phase & group delay相位與群延遲位相と群遅延
$\tau_g(\omega)=-d\theta/d\omega$ = envelope delay per frequency group. Linear phase ⇔ constant $\tau_g$ ⇔ shape-preserving delay; symmetric FIR achieves it, causal IIR cannot.$\tau_g(\omega)=-d\theta/d\omega$ = 每一群頻率的包絡延遲。線性相位 ⇔ $\tau_g$ 為常數 ⇔ 延遲不改變波形形狀;對稱 FIR 做得到,因果 IIR 做不到。$\tau_g(\omega)=-d\theta/d\omega$ = 周波数群ごとの包絡の遅延。線形位相 ⇔ $\tau_g$ が一定 ⇔ 形を保つ遅延。対称 FIR はこれを達成でき、因果的 IIR にはできない。

Exercises習題演習問題

All three problems of Homework 4 (ICE503 DSP), with full worked solutions.

作業 4(ICE503 DSP)的全部三題,附完整解答。

宿題 4(ICE503 DSP)の三題すべてを、完全な解答つきで収録する。

Exercise 1 — DTFT symmetry proofs習題 1 — DTFT 對稱性證明演習 1 — DTFT の対称性の証明

Problem: Let $X(e^{j\omega})$ denote the DTFT of $x[n]$, $X(e^{j\omega})=\sum_{n=-\infty}^{\infty}x[n]e^{-j\omega n}$. Prove that

題目:令 $X(e^{j\omega})$ 表示 $x[n]$ 的 DTFT,$X(e^{j\omega})=\sum_{n=-\infty}^{\infty}x[n]e^{-j\omega n}$。試證

問題:$X(e^{j\omega})$ を $x[n]$ の DTFT、すなわち $X(e^{j\omega})=\sum_{n=-\infty}^{\infty}x[n]e^{-j\omega n}$ とする。次を証明せよ。

  1. the DTFT of $x[-n]$ is $X(e^{-j\omega})$;
  2. the DTFT of $x^*[n]$ is $X^*(e^{-j\omega})$;
  3. the DTFT of $x^*[-n]$ is $X^*(e^{j\omega})$;
  4. the DTFT of $\mathrm{Re}\{x[n]\}$ is $X_{cs}(e^{j\omega})$;
  5. the DTFT of $x_{cs}[n]$ is $\mathrm{Re}\{X(e^{j\omega})\}$;
  6. the DTFT of $j\,\mathrm{Im}\{x[n]\}$ is $X_{ca}(e^{j\omega})$;
  7. the DTFT of $x_{ca}[n]$ is $j\,\mathrm{Im}\{X(e^{j\omega})\}$.
  1. $x[-n]$ 的 DTFT 為 $X(e^{-j\omega})$;
  2. $x^*[n]$ 的 DTFT 為 $X^*(e^{-j\omega})$;
  3. $x^*[-n]$ 的 DTFT 為 $X^*(e^{j\omega})$;
  4. $\mathrm{Re}\{x[n]\}$ 的 DTFT 為 $X_{cs}(e^{j\omega})$;
  5. $x_{cs}[n]$ 的 DTFT 為 $\mathrm{Re}\{X(e^{j\omega})\}$;
  6. $j\,\mathrm{Im}\{x[n]\}$ 的 DTFT 為 $X_{ca}(e^{j\omega})$;
  7. $x_{ca}[n]$ 的 DTFT 為 $j\,\mathrm{Im}\{X(e^{j\omega})\}$。
  1. $x[-n]$ の DTFT は $X(e^{-j\omega})$ である。
  2. $x^*[n]$ の DTFT は $X^*(e^{-j\omega})$ である。
  3. $x^*[-n]$ の DTFT は $X^*(e^{j\omega})$ である。
  4. $\mathrm{Re}\{x[n]\}$ の DTFT は $X_{cs}(e^{j\omega})$ である。
  5. $x_{cs}[n]$ の DTFT は $\mathrm{Re}\{X(e^{j\omega})\}$ である。
  6. $j\,\mathrm{Im}\{x[n]\}$ の DTFT は $X_{ca}(e^{j\omega})$ である。
  7. $x_{ca}[n]$ の DTFT は $j\,\mathrm{Im}\{X(e^{j\omega})\}$ である。
Click to reveal solution點擊展開解答クリックして解答を表示

(a) Substitute and change the summation index $m=-n$ (the sum runs over all integers either way):

(a) 代入並把求和指標換成 $m=-n$(兩種寫法都跑遍全部整數):

(a) 代入し、和の添字を $m=-n$ に取り替える(どちらの書き方でも和はすべての整数を走る):

$$\mathcal{F}\{x[-n]\} = \sum_{n=-\infty}^{\infty} x[-n]\,e^{-j\omega n} = \sum_{m=-\infty}^{\infty} x[m]\,e^{-j(-\omega)m} = X(e^{-j\omega})\qquad\blacksquare$$

(b) Conjugate the whole sum, twice (conjugating twice changes nothing), and pull one conjugation outside:

(b) 把整個和式取兩次共軛(取兩次等於沒取),再把其中一次提到外面:

(b) 和全体の共役を二度とり(二度とれば元に戻る)、そのうち一度を外へ括り出す:

$$\mathcal{F}\{x^*[n]\} = \sum_{n} x^*[n]\,e^{-j\omega n} = \Bigl(\sum_{n} x[n]\,e^{+j\omega n}\Bigr)^{\!*} = \Bigl(\sum_{n} x[n]\,e^{-j(-\omega)n}\Bigr)^{\!*} = X^*(e^{-j\omega})\qquad\blacksquare$$

(c) Combine (a) and (b): apply (b) to the sequence $x[-n]$, whose DTFT is $X(e^{-j\omega})$ by (a). Replacing $\omega\to-\omega$ inside the conjugate of (a)'s result:

(c) 把 (a) 與 (b) 合起來:對序列 $x[-n]$ 套用 (b),而由 (a) 知它的 DTFT 是 $X(e^{-j\omega})$。在 (a) 結果的共軛裡把 $\omega\to-\omega$ 代進去:

(c) (a) と (b) を組み合わせる。系列 $x[-n]$ に (b) を適用する。その DTFT は (a) により $X(e^{-j\omega})$ である。(a) の結果の共役の中で $\omega\to-\omega$ と置き換えると:

$$\mathcal{F}\{x^*[-n]\} = \sum_{n} x^*[-n]\,e^{-j\omega n} \;\overset{m=-n}{=}\; \sum_{m} x^*[m]\,e^{j\omega m} = \Bigl(\sum_{m} x[m]\,e^{-j\omega m}\Bigr)^{\!*} = X^*(e^{j\omega})\qquad\blacksquare$$

(d) Write the real part as $\mathrm{Re}\{x[n]\}=\tfrac12\bigl(x[n]+x^*[n]\bigr)$ and use linearity with (b):

(d) 把實部寫成 $\mathrm{Re}\{x[n]\}=\tfrac12\bigl(x[n]+x^*[n]\bigr)$,再配合 (b) 用線性:

(d) 実部を $\mathrm{Re}\{x[n]\}=\tfrac12\bigl(x[n]+x^*[n]\bigr)$ と書き、(b) とあわせて線形性を使う:

$$\mathcal{F}\bigl\{\mathrm{Re}\{x[n]\}\bigr\} = \tfrac12\Bigl(X(e^{j\omega}) + X^*(e^{-j\omega})\Bigr) \;\stackrel{\text{def}}{=}\; X_{cs}(e^{j\omega})\qquad\blacksquare$$

— the conjugate-symmetric part of the spectrum.

—— 也就是頻譜的共軛對稱部分(取實部 ⇒ 頻譜的共軛對稱部分)。

——すなわちスペクトルの共役対称部分である。

(e) Write the conjugate-symmetric part $x_{cs}[n]=\tfrac12\bigl(x[n]+x^*[-n]\bigr)$ and use linearity with (c):

(e) 把共軛對稱部分寫成 $x_{cs}[n]=\tfrac12\bigl(x[n]+x^*[-n]\bigr)$,再配合 (c) 用線性:

(e) 共役対称部分を $x_{cs}[n]=\tfrac12\bigl(x[n]+x^*[-n]\bigr)$ と書き、(c) とあわせて線形性を使う:

$$\mathcal{F}\{x_{cs}[n]\} = \tfrac12\Bigl(X(e^{j\omega}) + X^*(e^{j\omega})\Bigr) = \mathrm{Re}\{X(e^{j\omega})\}\qquad\blacksquare$$

(f) Same as (d) with the other sign, $j\,\mathrm{Im}\{x[n]\}=\tfrac12\bigl(x[n]-x^*[n]\bigr)$:

(f) 與 (d) 相同,只是換個符號:$j\,\mathrm{Im}\{x[n]\}=\tfrac12\bigl(x[n]-x^*[n]\bigr)$:

(f) 符号を変えただけで (d) と同じである。$j\,\mathrm{Im}\{x[n]\}=\tfrac12\bigl(x[n]-x^*[n]\bigr)$:

$$\mathcal{F}\bigl\{j\,\mathrm{Im}\{x[n]\}\bigr\} = \tfrac12\Bigl(X(e^{j\omega}) - X^*(e^{-j\omega})\Bigr) \;\stackrel{\text{def}}{=}\; X_{ca}(e^{j\omega})\qquad\blacksquare$$

(g) Same as (e) with the other sign, $x_{ca}[n]=\tfrac12\bigl(x[n]-x^*[-n]\bigr)$, using (c):

(g) 與 (e) 相同,只是換個符號:$x_{ca}[n]=\tfrac12\bigl(x[n]-x^*[-n]\bigr)$,並用到 (c):

(g) 符号を変えただけで (e) と同じであり、$x_{ca}[n]=\tfrac12\bigl(x[n]-x^*[-n]\bigr)$ として (c) を用いる:

$$\mathcal{F}\{x_{ca}[n]\} = \tfrac12\Bigl(X(e^{j\omega}) - X^*(e^{j\omega})\Bigr) = j\,\mathrm{Im}\{X(e^{j\omega})\}\qquad\blacksquare$$

(The last step is $z-z^{*}=2j\,\mathrm{Im}\{z\}$.)

(最後一步用到 $z-z^{*}=2j\,\mathrm{Im}\{z\}$。)

(最後の段階で $z-z^{*}=2j\,\mathrm{Im}\{z\}$ を使った。)

The four combined parts pair up as duals: (d)/(e) say Re in one domain ↔ conjugate-symmetric part in the other, and (f)/(g) say the same for $j\,$Im ↔ conjugate-antisymmetric part. Setting $x[n]$ real in (b) gives the cornerstone result $X(e^{j\omega})=X^*(e^{-j\omega})$ of §4.4.2; setting $x[n]$ purely imaginary in (b) gives the mirror statement $X(e^{j\omega})=-X^*(e^{-j\omega})$.

這四個組合出來的結果兩兩互為對偶:(d)/(e) 說的是在一個域取實部 ↔ 在另一個域取共軛對稱部分,而 (f)/(g) 則把同一件事講給 $j\,$Im ↔ 共軛反對稱部分 聽。在 (b) 中令 $x[n]$ 為實數,就得到 §4.4.2 的基石結論 $X(e^{j\omega})=X^*(e^{-j\omega})$;令 $x[n]$ 為純虛數,則得到鏡像的敘述 $X(e^{j\omega})=-X^*(e^{-j\omega})$。

組み合わせから得た四つの結果は、二つずつ双対をなす。(d)/(e) は一方の領域の Re ↔ 他方の領域の共役対称部分を述べ、(f)/(g) は同じことを $j\,$Im ↔ 共役反対称部分について述べている。(b) で $x[n]$ を実数とすれば §4.4.2 の礎となる結果 $X(e^{j\omega})=X^*(e^{-j\omega})$ が得られ、$x[n]$ を純虚数とすれば鏡像の主張 $X(e^{j\omega})=-X^*(e^{-j\omega})$ が得られる。

直觀解釋(點擊展開)
七條性質其實只靠兩件事。第一,把求和的索引換成 $m=-n$,時間反轉就變成 $\omega\to-\omega$ (投影片寫的 from summation)。第二,$\bigl(e^{-j\omega}\bigr)^{*}=e^{j\omega}$, 所以對整個和取共軛,等於同時取共軛又把 $\omega$ 翻號。
剩下四條只是把 $\mathrm{Re}\{z\}=\tfrac12(z+z^{*})$、$j\,\mathrm{Im}\{z\}=\tfrac12(z-z^{*})$ 代進去而已:在某個域取實部,就會在另一個域得到共軛對稱部分;取虛部則得到共軛反對稱部分。
最重要的推論是「共軛對稱 ⇔ 訊號為實數」:反轉公式裡把每個 $e^{j\omega n}$ 和它的共軛配成一對, 虛部剛好互相抵消(投影片的 conjugate symmetry cancels Im parts on IDTFT)。 這也是為什麼實數訊號只要畫 $0\le\omega\le\pi$ 就夠了。
Exercise 2 — First-order LTI system in the Fourier domain習題 2 — 傅立葉域中的一階 LTI 系統演習 2 — フーリエ領域における一次の LTI システム

Problem: An LTI system is described by $h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$.

題目:一個 LTI 系統由 $h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$ 描述。

問題:ある LTI システムが $h[n]=\bigl(\tfrac12\bigr)^n\mu[n]$ で記述されている。

  1. Determine the frequency response $H(e^{j\omega})$.
  2. If the input is $x[n]=\delta[n]-4\delta[n-2]$, determine $X(e^{j\omega})$ and the DTFT $Y(e^{j\omega})$ of the output $y[n]=x[n]\ast h[n]$.
  3. If the input is $x[n]=\cos\bigl(\tfrac{\pi n}{5}\bigr)$, determine $X(e^{j\omega})$ and $Y(e^{j\omega})$.
  1. 求頻率響應 $H(e^{j\omega})$。
  2. 若輸入為 $x[n]=\delta[n]-4\delta[n-2]$,求 $X(e^{j\omega})$ 以及輸出 $y[n]=x[n]\ast h[n]$ 的 DTFT $Y(e^{j\omega})$。
  3. 若輸入為 $x[n]=\cos\bigl(\tfrac{\pi n}{5}\bigr)$,求 $X(e^{j\omega})$ 與 $Y(e^{j\omega})$。
  1. 周波数応答 $H(e^{j\omega})$ を求めよ。
  2. 入力が $x[n]=\delta[n]-4\delta[n-2]$ のとき、$X(e^{j\omega})$ と、出力 $y[n]=x[n]\ast h[n]$ の DTFT $Y(e^{j\omega})$ を求めよ。
  3. 入力が $x[n]=\cos\bigl(\tfrac{\pi n}{5}\bigr)$ のとき、$X(e^{j\omega})$ と $Y(e^{j\omega})$ を求めよ。
Click to reveal solution點擊展開解答クリックして解答を表示

(a) Geometric series with ratio $\tfrac12 e^{-j\omega}$ (Example 4-A with $a=\tfrac12$; converges since $|\tfrac12 e^{-j\omega}|=\tfrac12<1$):

(a) 公比為 $\tfrac12 e^{-j\omega}$ 的等比級數(範例 4-A 取 $a=\tfrac12$;因 $|\tfrac12 e^{-j\omega}|=\tfrac12<1$ 而收斂):

(a) 公比 $\tfrac12 e^{-j\omega}$ の等比級数である(例題 4-A で $a=\tfrac12$ とした場合。$|\tfrac12 e^{-j\omega}|=\tfrac12<1$ なので収束する):

$$H(e^{j\omega}) = \sum_{n=0}^{\infty}\Bigl(\tfrac12\Bigr)^n e^{-j\omega n} = \boxed{\dfrac{1}{1-\frac{1}{2}e^{-j\omega}}}$$

(b) By linearity and the time-shift theorem ($\delta[n-n_0]\leftrightarrow e^{-j\omega n_0}$):

(b) 用線性與時移定理($\delta[n-n_0]\leftrightarrow e^{-j\omega n_0}$):

(b) 線形性と時間シフト定理($\delta[n-n_0]\leftrightarrow e^{-j\omega n_0}$)による:

$$X(e^{j\omega}) = 1 - 4e^{-j2\omega}$$

By the convolution theorem, $Y = X\cdot H$:

由卷積定理,$Y = X\cdot H$:

畳み込み定理により $Y = X\cdot H$:

$$Y(e^{j\omega}) = X(e^{j\omega})H(e^{j\omega}) = \boxed{\dfrac{1-4e^{-j2\omega}}{1-\frac{1}{2}e^{-j\omega}}}$$

Cross-check in the time domain: convolving directly, $y[n]=\bigl(\tfrac12\bigr)^n\mu[n]-4\bigl(\tfrac12\bigr)^{n-2}\mu[n-2]$; its DTFT is $\frac{1}{1-\frac12 e^{-j\omega}}-\frac{4e^{-j2\omega}}{1-\frac12 e^{-j\omega}}$ — the same. Note also $1-4e^{-j2\omega}=(1-2e^{-j\omega})(1+2e^{-j\omega})$, so for $n\ge 2$, $y[n]=(\tfrac12)^n(1-16)= -15\,(\tfrac12)^n$, with $y[0]=1$, $y[1]=\tfrac12$.

在時域驗算:直接做卷積得 $y[n]=\bigl(\tfrac12\bigr)^n\mu[n]-4\bigl(\tfrac12\bigr)^{n-2}\mu[n-2]$;它的 DTFT 是 $\frac{1}{1-\frac12 e^{-j\omega}}-\frac{4e^{-j2\omega}}{1-\frac12 e^{-j\omega}}$ —— 完全一樣。另外注意 $1-4e^{-j2\omega}=(1-2e^{-j\omega})(1+2e^{-j\omega})$,所以 $n\ge 2$ 時 $y[n]=(\tfrac12)^n(1-16)= -15\,(\tfrac12)^n$,而 $y[0]=1$、$y[1]=\tfrac12$。

時間領域での突き合わせ:直接畳み込むと $y[n]=\bigl(\tfrac12\bigr)^n\mu[n]-4\bigl(\tfrac12\bigr)^{n-2}\mu[n-2]$ となり、その DTFT は $\frac{1}{1-\frac12 e^{-j\omega}}-\frac{4e^{-j2\omega}}{1-\frac12 e^{-j\omega}}$ で、同じものである。さらに $1-4e^{-j2\omega}=(1-2e^{-j\omega})(1+2e^{-j\omega})$ に注意すれば、$n\ge 2$ では $y[n]=(\tfrac12)^n(1-16)= -15\,(\tfrac12)^n$ であり、$y[0]=1$、$y[1]=\tfrac12$ となる。

(c) The cosine is a power signal — its DTFT exists in the distribution sense (§4.2.4). Using $\cos(\omega_0 n)=\tfrac12(e^{j\omega_0 n}+e^{-j\omega_0 n})$ and $e^{j\omega_0 n}\leftrightarrow 2\pi\delta(\omega-\omega_0)$, with $\omega_0=\pi/5$:

(c) 餘弦是功率訊號——它的 DTFT 只在廣義函數意義下存在(§4.2.4)。用 $\cos(\omega_0 n)=\tfrac12(e^{j\omega_0 n}+e^{-j\omega_0 n})$ 與 $e^{j\omega_0 n}\leftrightarrow 2\pi\delta(\omega-\omega_0)$,取 $\omega_0=\pi/5$:

(c) 余弦は電力信号であり、その DTFT は超関数の意味で存在する(§4.2.4)。$\cos(\omega_0 n)=\tfrac12(e^{j\omega_0 n}+e^{-j\omega_0 n})$ と $e^{j\omega_0 n}\leftrightarrow 2\pi\delta(\omega-\omega_0)$ を用い、$\omega_0=\pi/5$ とすると:

$$X(e^{j\omega}) = \pi\sum_{k=-\infty}^{\infty}\Bigl[\delta\bigl(\omega-\tfrac{\pi}{5}+2\pi k\bigr) +\delta\bigl(\omega+\tfrac{\pi}{5}+2\pi k\bigr)\Bigr] \;\;{\scriptstyle\textcolor{gray}{=\;\pi[\delta(\omega-\frac{\pi}{5})+\delta(\omega+\frac{\pi}{5})]\ \text{on } |\omega|\le\pi}}$$

Multiplying by $H$: the impulses sample $H$ at $\pm\pi/5$ (sifting property):

乘上 $H$:那兩個脈衝會把 $H$ 在 $\pm\pi/5$ 處取樣(篩選性質):

$H$ を掛ける:インパルスが $\pm\pi/5$ で $H$ を標本化する(ふるい分けの性質):

$$Y(e^{j\omega}) = \pi\Bigl[H\bigl(e^{j\pi/5}\bigr)\,\delta\bigl(\omega-\tfrac{\pi}{5}\bigr) + H\bigl(e^{-j\pi/5}\bigr)\,\delta\bigl(\omega+\tfrac{\pi}{5}\bigr)\Bigr], \qquad |\omega|\le\pi$$

Evaluating $H$ at $\omega=\pi/5$: $1-\tfrac12 e^{-j\pi/5} = 1-\tfrac12\cos\tfrac{\pi}{5}+\tfrac{j}{2}\sin\tfrac{\pi}{5} = 0.5955+j0.2939$, so

把 $H$ 在 $\omega=\pi/5$ 處取值:$1-\tfrac12 e^{-j\pi/5} = 1-\tfrac12\cos\tfrac{\pi}{5}+\tfrac{j}{2}\sin\tfrac{\pi}{5} = 0.5955+j0.2939$,所以

$H$ を $\omega=\pi/5$ で評価する: $1-\tfrac12 e^{-j\pi/5} = 1-\tfrac12\cos\tfrac{\pi}{5}+\tfrac{j}{2}\sin\tfrac{\pi}{5} = 0.5955+j0.2939$、したがって

$$\bigl|H(e^{j\pi/5})\bigr| = \frac{1}{|0.5955+j0.2939|} \approx 1.506,\qquad \angle H(e^{j\pi/5}) \approx -0.4585\ \text{rad}$$

and since $h[n]$ is real, $H(e^{-j\pi/5})=H^*(e^{j\pi/5})$. By the eigenfunction property (§4.1.3) the time-domain output is the same-frequency sinusoid

而因為 $h[n]$ 是實數,$H(e^{-j\pi/5})=H^*(e^{j\pi/5})$。由特徵函數性質(§4.1.3),時域的輸出是同頻率的弦波

そして $h[n]$ は実数なので $H(e^{-j\pi/5})=H^*(e^{j\pi/5})$ である。固有関数の性質(§4.1.3)により、時間領域の出力は同じ周波数の正弦波となる

$$y[n] \approx 1.506\,\cos\Bigl(\tfrac{\pi n}{5} - 0.4585\Bigr)$$
Exercise 3 — MATLAB DTFT simulation習題 3 — MATLAB DTFT 模擬演習 3 — MATLAB による DTFT シミュレーション

Problem: An LTI system is described by $h[n]=\bigl(\tfrac13\bigr)^n\mu[n]$ and the input sequence is $x[n]=2\delta[n]-\tfrac23\delta[n-1]$.

題目:一個 LTI 系統由 $h[n]=\bigl(\tfrac13\bigr)^n\mu[n]$ 描述,輸入序列為 $x[n]=2\delta[n]-\tfrac23\delta[n-1]$。

問題:ある LTI システムが $h[n]=\bigl(\tfrac13\bigr)^n\mu[n]$ で記述され、入力系列は $x[n]=2\delta[n]-\tfrac23\delta[n-1]$ である。

  1. Use stem to plot $x[n]$ and $h[n]$ for $0\le n\le 99$ ($x$ in subplot(2,1,1), $h$ in subplot(2,1,2), axes labeled).
  2. Use the definition to calculate the DTFTs $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ and $H(e^{j\omega})=\sum_n h[n]e^{-j\omega n}$ for $\omega = 0:\frac{\pi}{100}:6\pi$.
  3. Calculate $Y(e^{j\omega})=X(e^{j\omega})H(e^{j\omega})$ in the frequency domain; plot magnitude and angle of $X$, $H$, $Y$ in a $3\times2$ subplot grid over $\omega=0:\frac{\pi}{100}:6\pi$.
  4. Compute $y[n]=x[n]\ast h[n]$ by convolution, then compute the IDTFT $\hat{y}[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}Y(e^{j\omega})e^{j\omega n}d\omega$ numerically; stem-plot $y[n]$ and $\hat{y}[n]$ for $0\le n\le 99$.
  1. 用 stem 畫出 $0\le n\le 99$ 的 $x[n]$ 與 $h[n]$($x$ 放在 subplot(2,1,1)、$h$ 放在 subplot(2,1,2),座標軸須標註)。
  2. 用定義計算 $\omega = 0:\frac{\pi}{100}:6\pi$ 上的 DTFT $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ 與 $H(e^{j\omega})=\sum_n h[n]e^{-j\omega n}$。
  3. 在頻域計算 $Y(e^{j\omega})=X(e^{j\omega})H(e^{j\omega})$;在 $3\times2$ 的 subplot 格線中,畫出 $\omega=0:\frac{\pi}{100}:6\pi$ 上 $X$、$H$、$Y$ 的振幅與相位。
  4. 用卷積計算 $y[n]=x[n]\ast h[n]$,再以數值方式計算反 DTFT $\hat{y}[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}Y(e^{j\omega})e^{j\omega n}d\omega$;用 stem 畫出 $0\le n\le 99$ 的 $y[n]$ 與 $\hat{y}[n]$。
  1. stem を用いて $0\le n\le 99$ の範囲で $x[n]$ と $h[n]$ を描け($x$ を subplot(2,1,1)、$h$ を subplot(2,1,2) に置き、軸にラベルを付けること)。
  2. 定義を用いて $\omega = 0:\frac{\pi}{100}:6\pi$ における DTFT $X(e^{j\omega})=\sum_n x[n]e^{-j\omega n}$ と $H(e^{j\omega})=\sum_n h[n]e^{-j\omega n}$ を計算せよ。
  3. 周波数領域で $Y(e^{j\omega})=X(e^{j\omega})H(e^{j\omega})$ を計算し、$\omega=0:\frac{\pi}{100}:6\pi$ にわたる $X$、$H$、$Y$ の振幅と偏角を $3\times2$ の subplot 格子に描け。
  4. 畳み込みによって $y[n]=x[n]\ast h[n]$ を計算し、次に逆 DTFT $\hat{y}[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}Y(e^{j\omega})e^{j\omega n}d\omega$ を数値的に計算せよ。$0\le n\le 99$ の範囲で $y[n]$ と $\hat{y}[n]$ を stem 図に描け。
Click to reveal solution點擊展開解答クリックして解答を表示

Analytical setup(先手算). Closed-form DTFTs (geometric series + shift theorem):

先手算(analytical setup)。封閉形式的 DTFT(等比級數+時移定理):

解析的な準備(まず手計算で)。閉じた形の DTFT(等比級数+シフト定理):

$$X(e^{j\omega}) = 2-\tfrac23 e^{-j\omega},\qquad H(e^{j\omega}) = \frac{1}{1-\frac13 e^{-j\omega}},\qquad Y(e^{j\omega}) = \frac{2-\frac23 e^{-j\omega}}{1-\frac13 e^{-j\omega}}$$

In MATLAB the infinite DTFT sums are simply evaluated by these closed forms. Cleaned-up script (from DSP_HW4_tony.m):

在 MATLAB 裡,無窮長的 DTFT 和式就直接用這些封閉解來算。整理過的程式(取自 DSP_HW4_tony.m):

MATLAB では、無限和である DTFT はこれらの閉じた形でそのまま評価すればよい。整理したスクリプト(DSP_HW4_tony.m より):

clc; clear;
n = 0:99;

% sequences
x = 2*(n==0) - (2/3)*(n==1);     % x[n] = 2*delta[n] - (2/3)*delta[n-1]
h = (1/3).^n;                    % h[n] = (1/3)^n * mu[n], n >= 0

%% (a) stem plots of x[n] and h[n]
figure;
subplot(2,1,1); stem(n, x, 'filled');
xlabel('n'); ylabel('x[n]'); title('x[n]');
subplot(2,1,2); stem(n, h, 'filled');
xlabel('n'); ylabel('h[n]'); title('h[n]');

%% (b) DTFTs by definition (closed-form geometric sums)
omega = 0 : pi/100 : 6*pi;
X = 2 - (2/3)*exp(-1j*omega);            % finite sum: two terms
H = 1 ./ (1 - (1/3)*exp(-1j*omega));     % geometric series, |1/3| < 1

%% (c) frequency-domain product, magnitude / phase plots
Y = X .* H;
figure;
subplot(3,2,1); plot(omega, abs(X));   xlabel('\omega'); ylabel('|X(e^{j\omega})|');
subplot(3,2,2); plot(omega, angle(X)); xlabel('\omega'); ylabel('arg X(e^{j\omega})');
subplot(3,2,3); plot(omega, abs(H));   xlabel('\omega'); ylabel('|H(e^{j\omega})|');
subplot(3,2,4); plot(omega, angle(H)); xlabel('\omega'); ylabel('arg H(e^{j\omega})');
subplot(3,2,5); plot(omega, abs(Y));   xlabel('\omega'); ylabel('|Y(e^{j\omega})|');
subplot(3,2,6); plot(omega, angle(Y)); xlabel('\omega'); ylabel('arg Y(e^{j\omega})');

%% (d) time-domain convolution vs numerical IDTFT
y = conv(x, h);
y = y(1:100);                            % keep 0 <= n <= 99

w = -pi : pi/2000 : pi;                  % IDTFT must integrate ONE period
Yw = (2 - (2/3)*exp(-1j*w)) ./ (1 - (1/3)*exp(-1j*w));
y_hat = zeros(1, length(n));
for k = 1:length(n)
    y_hat(k) = real( trapz(w, Yw .* exp(1j*w*n(k))) / (2*pi) );
end

figure;
subplot(2,1,1); stem(n, y, 'filled');
xlabel('n'); ylabel('y[n]');     title('y[n] = conv(x,h)');
subplot(2,1,2); stem(n, y_hat, 'filled');
xlabel('n'); ylabel('y\^[n]');   title('y\^[n] from IDTFT of Y(e^{j\omega})');

max(abs(y - y_hat))                      % ~1e-16: identical
Warning — bug fixed from the original script
注意 —— 已修正原始程式中的一個錯誤
注意 — 元のスクリプトにあったバグを修正した
The original DSP_HW4_tony.m evaluated the IDTFT integral with trapz(omega, ...) over $0\le\omega\le 6\pi$ — that is three periods, so dividing by $2\pi$ gives $3\,y[n]$, three times too large (and it also used $x[n]=\delta[n]-\tfrac12\delta[n-1]$ instead of the assigned input). The IDTFT must integrate over exactly one period, e.g. $-\pi\le\omega\le\pi$ as in the formula. The script above fixes both.原始的 DSP_HW4_tony.m 用 trapz(omega, ...) 在 $0\le\omega\le 6\pi$ 上計算反 DTFT 積分 —— 那是三個週期,所以除以 $2\pi$ 之後得到的是 $3\,y[n]$,大了三倍(而且它用的輸入是 $x[n]=\delta[n]-\tfrac12\delta[n-1]$,不是題目指定的)。反 DTFT 必須恰好積一個週期,例如公式裡的 $-\pi\le\omega\le\pi$。上面的程式把這兩個問題都修好了。元の DSP_HW4_tony.m は逆 DTFT の積分を trapz(omega, ...) で $0\le\omega\le 6\pi$ にわたって評価していた——これは三周期分なので、$2\pi$ で割ると $3\,y[n]$ となり、三倍大きくなってしまう(しかも課題で指定された入力ではなく $x[n]=\delta[n]-\tfrac12\delta[n-1]$ を使っていた)。逆 DTFT はちょうど一周期、たとえば公式どおり $-\pi\le\omega\le\pi$ にわたって積分しなければならない。上のスクリプトはその両方を直してある。

(a) $x[n]$ has only two nonzero samples ($x[0]=2$, $x[1]=-\tfrac23$); $h[n]$ decays geometrically and is visually zero after $n\approx 10$:

(a) $x[n]$ 只有兩個非零樣本($x[0]=2$、$x[1]=-\tfrac23$);$h[n]$ 以幾何級數衰減,$n\approx 10$ 之後肉眼看來已經是零:

(a) $x[n]$ の非零標本は二つだけであり($x[0]=2$、$x[1]=-\tfrac23$)、$h[n]$ は幾何級数的に減衰して $n\approx 10$ 以降は見た目にはゼロである:

2026-06-12T22:19:57.060242 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0 20 40 60 80 100 n 0 1 2 x[n] x[n] = 2δ[n] − (2/3)δ[n−1] 0 20 40 60 80 100 n 0.00 0.25 0.50 0.75 1.00 h[n] h[n] = (1/3)ⁿ μ[n]
Fig. 4-13 — Exercise 3(a): stem plots of $x[n]=2\delta[n]-\frac{2}{3}\delta[n-1]$ (top) and $h[n]=(1/3)^n\mu[n]$ (bottom), $0\le n\le 99$.
圖 4-13 — 習題 3(a):$x[n]=2\delta[n]-\frac{2}{3}\delta[n-1]$(上)與 $h[n]=(1/3)^n\mu[n]$(下)的 stem 圖,$0\le n\le 99$。
図 4-13 — 演習 3(a):$x[n]=2\delta[n]-\frac{2}{3}\delta[n-1]$(上)と $h[n]=(1/3)^n\mu[n]$(下)の stem 図、$0\le n\le 99$。

(b), (c) The spectra over $0\le\omega\le 6\pi$ show three identical periods — the implicit $2\pi$-periodicity of §4.2.2 made visible. $|H|$ peaks at $\omega=0,2\pi,4\pi,6\pi$ (value $\tfrac{1}{1-1/3}=1.5$): a lowpass response. The phase plots use the principal value, hence the sawtooth-like behavior:

(b)、(c) $0\le\omega\le 6\pi$ 上的頻譜顯示出三個完全相同的週期——把 §4.2.2 那個內建的 $2\pi$ 週期性具體畫了出來。$|H|$ 在 $\omega=0,2\pi,4\pi,6\pi$ 處達到峰值(值為 $\tfrac{1}{1-1/3}=1.5$):這是低通響應。相位圖取的是主值,所以呈現鋸齒狀:

(b)、(c) $0\le\omega\le 6\pi$ にわたるスペクトルには、まったく同じ周期が三つ現れる——§4.2.2 の暗黙の $2\pi$ 周期性を目に見える形にしたものである。$|H|$ は $\omega=0,2\pi,4\pi,6\pi$ でピークをとる(値は $\tfrac{1}{1-1/3}=1.5$)。低域通過の応答である。位相のプロットは主値を用いているので、鋸歯状の振る舞いになる:

2026-06-12T22:19:57.344261 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0 π 2π 3π 4π 5π 6π 1.5 2.0 2.5 |X(e^jω)| 0 π 2π 3π 4π 5π 6π −0.2 0.0 0.2 arg X(e^jω) 0 π 2π 3π 4π 5π 6π 0.8 1.0 1.2 1.4 |H(e^jω)| 0 π 2π 3π 4π 5π 6π −0.2 0.0 0.2 arg H(e^jω) 0 π 2π 3π 4π 5π 6π ω 1.90 1.95 2.00 2.05 2.10 |Y(e^jω)| 0 π 2π 3π 4π 5π 6π ω −5 0 5 arg Y(e^jω) 1e−17
Fig. 4-14 — Exercise 3(c): magnitude (left column) and phase (right column) of $X(e^{j\omega})$, $H(e^{j\omega})$, $Y(e^{j\omega})=XH$ over $\omega = 0:\pi/100:6\pi$. Three identical periods confirm DTFT periodicity. Note $|Y| = 2$ exactly, and $\arg Y$ is pure numerical noise at the $10^{-17}$ level — see part (d): $Y(e^{j\omega})\equiv 2$.
圖 4-14 — 習題 3(c):$\omega = 0:\pi/100:6\pi$ 上 $X(e^{j\omega})$、$H(e^{j\omega})$、$Y(e^{j\omega})=XH$ 的振幅(左欄)與相位(右欄)。三個完全相同的週期印證了 DTFT 的 $2\pi$ 週期性。注意 $|Y|$ 恰好等於 2,而 $\arg Y$ 只是 $10^{-17}$ 等級的數值雜訊 —— 見 (d) 小題:$Y(e^{j\omega})\equiv 2$。
図 4-14 — 演習 3(c):$\omega = 0:\pi/100:6\pi$ にわたる $X(e^{j\omega})$、$H(e^{j\omega})$、$Y(e^{j\omega})=XH$ の振幅(左列)と位相(右列)。まったく同じ周期が三つ現れることが DTFT の周期性を裏づけている。$|Y| = 2$ がちょうど成り立つこと、および $\arg Y$ が $10^{-17}$ レベルの純粋な数値雑音にすぎないことに注意——(d) を参照:$Y(e^{j\omega})\equiv 2$ である。

(d) Convolution in time vs multiplication in frequency followed by the numerical IDTFT — the two stem plots are indistinguishable ($\max_n|y[n]-\hat{y}[n]|\approx 2.9\times10^{-16}$, machine precision), a numerical proof of the convolution theorem:

(d) 時域卷積,對上頻域相乘再做數值反 DTFT —— 兩張 stem 圖看不出任何差別($\max_n|y[n]-\hat{y}[n]|\approx 2.9\times10^{-16}$,已達機器精度),這是卷積定理的數值證明:

(d) 時間領域の畳み込みと、周波数領域での乗算に続く数値的な逆 DTFT——二つの stem 図は見分けがつかない($\max_n|y[n]-\hat{y}[n]|\approx 2.9\times10^{-16}$、機械精度である)。これは畳み込み定理の数値的な証明である:

2026-06-12T22:19:57.615504 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0 20 40 60 80 100 n 0.0 0.5 1.0 1.5 2.0 y[n] y[n] = x[n] ∗ h[n] (conv) 0 20 40 60 80 100 n 0.0 0.5 1.0 1.5 2.0 ŷ[n] ŷ[n] from numerical IDTFT of Y(e^jω)
Fig. 4-15 — Exercise 3(d): $y[n]$ by time-domain convolution (top) and $\hat{y}[n]$ by numerical IDTFT of $Y(e^{j\omega})$ (bottom). Identical to machine precision.
圖 4-15 — 習題 3(d):上為時域卷積算出的 $y[n]$,下為對 $Y(e^{j\omega})$ 做數值反 DTFT 得到的 $\hat{y}[n]$。兩者到機器精度完全一致 —— 卷積定理的數值驗證。
図 4-15 — 演習 3(d):上は時間領域の畳み込みによる $y[n]$、下は $Y(e^{j\omega})$ の数値的な逆 DTFT による $\hat{y}[n]$。機械精度まで一致している。

Analytically: $y[n]=2(\tfrac13)^n\mu[n]-\tfrac23(\tfrac13)^{n-1}\mu[n-1]$, i.e. $y[0]=2$ and $y[n]=0$ for $n\ge1$... check: for $n\ge 1$, $y[n]=2(\tfrac13)^n-\tfrac23(\tfrac13)^{n-1}=2(\tfrac13)^n-2(\tfrac13)^n=0$. Indeed $Y(e^{j\omega})=\frac{2(1-\frac13 e^{-j\omega})}{1-\frac13 e^{-j\omega}}=2$, so $y[n]=2\delta[n]$ — $x[n]$ is (twice) the inverse system of $h[n]$, exactly the structure of Example 4-C. The stem plots confirm it: a single spike of height 2 at $n=0$.

解析上:$y[n]=2(\tfrac13)^n\mu[n]-\tfrac23(\tfrac13)^{n-1}\mu[n-1]$,也就是 $y[0]=2$ 而 $n\ge1$ 時 $y[n]=0$……驗算:$n\ge 1$ 時 $y[n]=2(\tfrac13)^n-\tfrac23(\tfrac13)^{n-1}=2(\tfrac13)^n-2(\tfrac13)^n=0$。確實 $Y(e^{j\omega})=\frac{2(1-\frac13 e^{-j\omega})}{1-\frac13 e^{-j\omega}}=2$,所以 $y[n]=2\delta[n]$ —— $x[n]$ 正是 $h[n]$ 的反系統(再乘 2),結構與範例 4-C 完全相同。stem 圖也印證了這一點:在 $n=0$ 處只有一根高度為 2 的尖峰。

解析的には $y[n]=2(\tfrac13)^n\mu[n]-\tfrac23(\tfrac13)^{n-1}\mu[n-1]$、すなわち $y[0]=2$ で $n\ge1$ では $y[n]=0$ である……確認すると、$n\ge 1$ では $y[n]=2(\tfrac13)^n-\tfrac23(\tfrac13)^{n-1}=2(\tfrac13)^n-2(\tfrac13)^n=0$ となる。実際 $Y(e^{j\omega})=\frac{2(1-\frac13 e^{-j\omega})}{1-\frac13 e^{-j\omega}}=2$ なので $y[n]=2\delta[n]$ である——$x[n]$ は(2 倍した)$h[n]$ の逆システムであり、例題 4-C とまったく同じ構造である。stem 図もそれを裏づけている。$n=0$ に高さ 2 のスパイクが一本あるだけである。