此條目需要
精通或熟悉相关主题的编者 参与及协助编辑。
(2014年6月23日 ) 請邀請 適合的人士改善本条目 。更多的細節與詳情請參见討論頁 。
在數值分析 领域中,吉布斯現象 (Gibbs phenomenon)是傅立葉級數 對具有不連續點 的週期函數 進行近似時出現的振盪 行為。對該函數的
N
{\textstyle N}
項傅立葉級數部分和(由函數傅立葉級數中最低的
N
{\textstyle N}
個正弦波 組成)在不連續點附近會出現明顯的過衝 。即使使用更多的正弦項,這種逼近誤差 也只會收斂到約為跳躍高度 9% 的極限 ,儘管無窮 傅立葉級數 最終仍會幾乎處處收斂 。[ 1]
吉布斯現象最初是由實驗物理學家觀察到的,當時人們認為這是由於測量儀器的缺陷所致,[ 2] 但其實這是一個純粹的數學現象。這種現象也是訊號處理 中常見的振鈴效應 原因之一。該現象以喬賽亞·威拉德·吉布斯 (Josiah Willard Gibbs)的名字命名。
使用5個諧波近似方波
使用25個諧波近似方波
使用125個諧波近似方波
吉布斯現象描述的是函數具有跳躍不連續 時,其傅立葉級數 呈現的行為。可描述如下:
當傅立葉級數加入更多的組成項時,其在跳躍點附近的震盪行為會出現第一次超越,逼近跳躍高度約 9%,而這種震盪並不會消失,只會越來越接近跳躍點,使得震盪的積分趨近於零。
在跳躍點處,傅立葉級數的值是該函數在該點左右極限的平均值。
右側的三張圖片展示了一個方波 的吉布斯現象(方波的峰峰值為
c
{\textstyle c}
,範圍從
−
c
/
2
{\textstyle -c/2}
到
c
/
2
{\textstyle c/2}
,週期為
L
{\textstyle L}
),其
N
{\textstyle N}
項傅立葉級數部分和為:
2
c
π
(
sin
(
ω
x
)
+
1
3
sin
(
3
ω
x
)
+
⋯
+
1
2
N
−
1
sin
(
(
2
N
−
1
)
ω
x
)
)
{\displaystyle {\frac {2c}{\pi }}\left(\sin(\omega x)+{\frac {1}{3}}\sin(3\omega x)+\cdots +{\frac {1}{2N-1}}\sin((2N-1)\omega x)\right)}
其中
ω
=
2
π
/
L
{\textstyle \omega =2\pi /L}
。更精確地說,該方波函數
f
(
x
)
{\textstyle f(x)}
在區間
2
n
(
L
/
2
)
{\textstyle 2n(L/2)}
到
(
2
n
+
1
)
(
L
/
2
)
{\textstyle (2n+1)(L/2)}
間等於
c
2
{\displaystyle {\tfrac {c}{2}}}
,而在
(
2
n
+
1
)
(
L
/
2
)
{\textstyle (2n+1)(L/2)}
到
(
2
n
+
2
)
(
L
/
2
)
{\textstyle (2n+2)(L/2)}
間等於
−
c
2
{\textstyle -{\tfrac {c}{2}}}
,對於每個整數
n
{\textstyle n}
成立;因此該方波在每個
L
/
2
{\textstyle L/2}
的整數倍處都有跳躍不連續,跳躍高度為
c
{\textstyle c}
。
隨著加入更多的正弦項(即增加
N
{\textstyle N}
),部分傅立葉級數的誤差會收斂到一個固定高度。但由於誤差的寬度會不斷縮小,因此其面積,也就是誤差的能量,會趨近於 0。[ 3] 對方波的分析 顯示,誤差超過了方波由零到頂的高度
c
2
{\displaystyle {\tfrac {c}{2}}}
,其超出量為:
c
π
∫
0
π
sin
(
t
)
t
d
t
−
c
2
=
c
⋅
(
0.089489872236
…
)
.
{\displaystyle {\frac {c}{\pi }}\int _{0}^{\pi }{\frac {\sin(t)}{t}}\ dt-{\frac {c}{2}}=c\cdot (0.089489872236\dots ).}
(A243268 )
即約為跳躍總高度
c
{\textstyle c}
的 9%。更一般地,對於任何具有跳躍高度
c
{\textstyle c}
的分段連續可微函數,其
N
{\textstyle N}
項傅立葉級數部分和(當
N
{\textstyle N}
趨於很大時)在跳躍點一側會出現近似
c
⋅
(
0.089489872236
…
)
{\textstyle c\cdot (0.089489872236\dots )}
的超出,在另一側出現等量的低估;因此級數的「總跳躍量」約為原函數的跳躍量多出 18%。在不連續點處,傅立葉級數會收斂到該跳躍的中點 ,這是狄利克雷定理 的結果。[ 4] 該積分量:
∫
0
π
sin
t
t
d
t
=
(
1.851937051982
…
)
=
π
2
+
π
⋅
(
0.089489872236
…
)
{\displaystyle \int _{0}^{\pi }{\frac {\sin t}{t}}\ dt=(1.851937051982\dots )={\frac {\pi }{2}}+\pi \cdot (0.089489872236\dots )}
(A036792 )
有時被稱為Henry Wilbraham–Gibbs 常數」。[ 5]
吉布斯現象最早由Henry Wilbraham在 1848 年的一篇論文中提出和分析。[ 6] 該文在當時未受到重視,直到 1914 年被Heinrich Burkhardt在Klein's encyclopedia中提及。[ 7] 1898 年,阿爾伯特·邁克耳孫 開發了一種能夠計算並重建傅立葉級數的裝置。[ 8] 有一則流傳甚廣的軼事說,當輸入方波的傅立葉係數時,圖形在不連續處會出現震盪。當時由於機器存在製造誤差,邁克耳孫誤以為這些超出是機器的錯誤。事實上,該裝置所產生的圖形解析度並不足以清楚展現吉布斯現象,邁克耳孫本人可能並未注意到此現象,因為他在發表的論文或隨後寄給《自然 》的信件中均未提及。[ 9]
在《自然》雜誌上,邁克耳孫與奧古斯塔斯·樂甫 (A. E. H. Love)關於方波傅立葉級數收斂性的通信激發了喬賽亞·威拉德·吉布斯 的興趣。他於 1898 年發表了一則短文,指出傅立葉級數部分和圖形的極限與部分和的極限圖形之間的重要差異。在他最初的信中並未提及吉布斯現象,並且對極限的描述有誤。1899 年,他發表了修正稿,描述了不連續點處的超出現象(《Nature》,1899 年 4 月 27 日,第 606 頁)。1906 年,馬克西姆·博謝 對該超出進行了詳細的數學分析,並首次使用「吉布斯現象」一詞[ 10] ,從而使該術語廣為人知。[ 9]
1925 年,當Henry Wilbraham的論文重新被注意時,Horatio Scott Carslaw 評論道:「我們仍可以將傅立葉級數(及某些其他級數)的這一特性稱為吉布斯現象;但我們不應再認為這是吉布斯首先發現的。」[ 11]
不嚴謹地說,吉布斯現象反映了以「有限個」連續的正弦波來近似一個「不連續函數」所固有的困難。這裡強調「有限」一詞很重要,因為儘管傅立葉級數的每一個部分和在每個不連續點附近都會有過衝 (overshoot)的情況,無限項的總和在極限下並不會出現這種現象。當項數增加時,超出的波峰會越來越靠近不連續點,因此收斂仍是可能的。
這並不矛盾(即便超出的誤差在極限下收斂到一個非零的高度,而無限總和本身卻沒有超出),因為這些波峰逐漸向不連續點靠近。吉布斯現象因此展現出的是「逐點收斂」(pointwise convergence),而不是「一致收斂」(uniform convergence)。對於分段連續可微(即屬於 C¹ 類)的函數,其傅立葉級數在除跳躍不連續點以外的「每一點」都會收斂到該函數的值。至於跳躍不連續點,無限和會收斂到跳躍點的中點值(即該點左右極限的平均值),這是狄利克雷定理(Dirichlet’s theorem)的結果。[ 4]
吉布斯現象與「函數的平滑度控制其傅立葉係數的衰減速度」這一原理密切相關。愈平滑的函數,其傅立葉係數衰減得愈快(因此收斂得也愈快);而不連續的函數,其傅立葉係數會緩慢衰減(導致收斂變慢)。例如,不連續的方波,其傅立葉係數為
(
1
1
,
0
,
1
3
,
0
,
1
5
,
0
,
1
7
,
0
,
1
9
,
0
,
…
)
{\displaystyle ({\tfrac {1}{1}},{\scriptstyle {\text{0}}},{\tfrac {1}{3}},{\scriptstyle {\text{0}}},{\tfrac {1}{5}},{\scriptstyle {\text{0}}},{\tfrac {1}{7}},{\scriptstyle {\text{0}}},{\tfrac {1}{9}},{\scriptstyle {\text{0}}},\dots )}
,只以
1
n
{\displaystyle {\tfrac {1}{n}}}
的速度衰減;而連續的三角波,其傅立葉係數為
(
1
1
2
,
0
,
−
1
3
2
,
0
,
1
5
2
,
0
,
−
1
7
2
,
0
,
1
9
2
,
0
,
…
)
{\displaystyle ({\tfrac {1}{1^{2}}},{\scriptstyle {\text{0}}},{\tfrac {-1}{3^{2}}},{\scriptstyle {\text{0}}},{\tfrac {1}{5^{2}}},{\scriptstyle {\text{0}}},{\tfrac {-1}{7^{2}}},{\scriptstyle {\text{0}}},{\tfrac {1}{9^{2}}},{\scriptstyle {\text{0}}},\dots )}
,則以
1
n
2
{\displaystyle {\tfrac {1}{n^{2}}}}
的速度快速衰減。
然而這只是對吉布斯現象的部分解釋,因為若傅立葉級數的係數「絕對收斂」,根據魏爾斯特拉斯 M 測試(Weierstrass M-test),其級數將會「一致收斂」,從而不會出現上述的振盪現象。同理,不連續函數也不可能具有絕對收斂的傅立葉係數,因為那樣的函數將是連續函數的「一致極限」,也就是連續的,這將導致矛盾。
由於吉布斯現象是因「過衝」(overshooting)而造成的,因此可以透過使用「非負核函數」來消除這個現象,例如使用 Fejér 核。[ 12] [ 13]
在實際應用中,可以藉由採用較平滑的傅立葉級數求和方法來改善吉布斯現象所帶來的問題,例如 Fejér 求和、Riesz 求和,或是使用 σ-近似(sigma-approximation)。使用連續的小波轉換時,小波吉布斯現象的嚴重程度永遠不會超過傅立葉的吉布斯現象。[ 14] 此外,若使用以 Haar 基底函數 為基礎的 離散小波轉換,則對於具有跳躍不連續的連續資料,吉布斯現象完全不會出現,[ 15] 在離散資料中,大幅變化點附近的吉布斯現象也會被大幅減輕。在小波分析領域,這種情況通常被稱為 Longo 現象(Longo phenomenon)。在多項式插值的應用場景中,可以利用 S-Gibbs 演算法 來緩解吉布斯現象。[ 16]
設
f
:
R
→
R
{\displaystyle f:{\mathbb {R} }\to {\mathbb {R} }}
為一個分段連續可微的函數,並且具有某個正的週期
L
>
0
{\displaystyle L>0}
。假設在某個點
x
0
{\displaystyle x_{0}}
,函數
f
{\displaystyle f}
的左極限
f
(
x
0
−
)
{\displaystyle f(x_{0}^{-})}
與右極限
f
(
x
0
+
)
{\displaystyle f(x_{0}^{+})}
存在差異,跳躍量為非零常數
c
{\displaystyle c}
:
f
(
x
0
+
)
−
f
(
x
0
−
)
=
c
≠
0.
{\displaystyle f(x_{0}^{+})-f(x_{0}^{-})=c\neq 0.}
對每個正整數
N
≥
1
{\displaystyle N\geq 1}
,令
S
N
f
(
x
)
{\displaystyle S_{N}f(x)}
為
N
{\displaystyle N}
次的傅立葉部分和(
S
N
{\displaystyle S_{N}}
可以視為對函數作用的數學算子):
S
N
f
(
x
)
:=
∑
−
N
≤
n
≤
N
f
^
(
n
)
e
i
2
π
n
x
L
=
1
2
a
0
+
∑
n
=
1
N
(
a
n
cos
(
2
π
n
x
L
)
+
b
n
sin
(
2
π
n
x
L
)
)
,
{\displaystyle S_{N}f(x):=\sum _{-N\leq n\leq N}{\widehat {f}}(n)e^{\frac {i2\pi nx}{L}}={\frac {1}{2}}a_{0}+\sum _{n=1}^{N}\left(a_{n}\cos \left({\frac {2\pi nx}{L}}\right)+b_{n}\sin \left({\frac {2\pi nx}{L}}\right)\right),}
其中傅立葉係數
f
^
(
n
)
,
a
n
,
b
n
{\textstyle {\widehat {f}}(n),a_{n},b_{n}}
定義如下:
f
^
(
n
)
:=
1
L
∫
0
L
f
(
x
)
e
−
i
2
π
n
x
L
d
x
{\displaystyle {\widehat {f}}(n):={\frac {1}{L}}\int _{0}^{L}f(x)e^{-{\frac {i2\pi nx}{L}}}\,dx}
a
0
:=
1
L
∫
0
L
f
(
x
)
d
x
{\displaystyle a_{0}:={\frac {1}{L}}\int _{0}^{L}f(x)\ dx}
a
n
:=
2
L
∫
0
L
f
(
x
)
cos
(
2
π
n
x
L
)
d
x
{\displaystyle a_{n}:={\frac {2}{L}}\int _{0}^{L}f(x)\cos \left({\frac {2\pi nx}{L}}\right)\,dx}
b
n
:=
2
L
∫
0
L
f
(
x
)
sin
(
2
π
n
x
L
)
d
x
{\displaystyle b_{n}:={\frac {2}{L}}\int _{0}^{L}f(x)\sin \left({\frac {2\pi nx}{L}}\right)\,dx}
那麼,我們有以下極限性質:
lim
N
→
∞
S
N
f
(
x
0
+
L
2
N
)
=
f
(
x
0
+
)
+
c
⋅
(
0.089489872236
…
)
{\displaystyle \lim _{N\to \infty }S_{N}f\left(x_{0}+{\frac {L}{2N}}\right)=f(x_{0}^{+})+c\cdot (0.089489872236\dots )}
lim
N
→
∞
S
N
f
(
x
0
−
L
2
N
)
=
f
(
x
0
−
)
−
c
⋅
(
0.089489872236
…
)
{\displaystyle \lim _{N\to \infty }S_{N}f\left(x_{0}-{\frac {L}{2N}}\right)=f(x_{0}^{-})-c\cdot (0.089489872236\dots )}
但同時也有:
lim
N
→
∞
S
N
f
(
x
0
)
=
f
(
x
0
−
)
+
f
(
x
0
+
)
2
{\displaystyle \lim _{N\to \infty }S_{N}f(x_{0})={\frac {f(x_{0}^{-})+f(x_{0}^{+})}{2}}}
更一般地說,若
x
N
{\displaystyle x_{N}}
是一個實數數列,當
N
→
∞
{\displaystyle N\to \infty }
時趨近於
x
0
{\displaystyle x_{0}}
,且跳躍
c
{\displaystyle c}
為正數,則有:
lim sup
N
→
∞
S
N
f
(
x
N
)
≤
f
(
x
0
+
)
+
c
⋅
(
0.089489872236
…
)
{\displaystyle \limsup _{N\to \infty }S_{N}f(x_{N})\leq f(x_{0}^{+})+c\cdot (0.089489872236\dots )}
lim inf
N
→
∞
S
N
f
(
x
N
)
≥
f
(
x
0
−
)
−
c
⋅
(
0.089489872236
…
)
{\displaystyle \liminf _{N\to \infty }S_{N}f(x_{N})\geq f(x_{0}^{-})-c\cdot (0.089489872236\dots )}
若跳躍
c
{\displaystyle c}
為負,則上述兩個不等式中需要對調上極限(
lim sup
{\displaystyle \limsup }
)與下極限(
lim inf
{\displaystyle \liminf }
),並對調不等號中的
≤
{\displaystyle \leq }
與
≥
{\displaystyle \geq }
。
設
f
:
R
→
R
{\displaystyle f:{\mathbb {R} }\to {\mathbb {R} }}
為一個具週期性、週期為
L
>
0
{\displaystyle L>0}
的逐段連續可微函數,且此函數在若干處具有跳躍不連續點,記作
x
i
{\displaystyle x_{i}}
,其中
i
=
0
,
1
,
2
,
…
{\displaystyle i=0,1,2,\ldots }
。在每個不連續點處,其垂直跳躍的幅度為
c
i
{\displaystyle c_{i}}
。
那麼,
f
{\displaystyle f}
可以表達為一個連續函數
f
c
{\displaystyle f_{c}}
與一個多階躍函數
f
s
{\displaystyle f_{s}}
的和,其中
f
s
{\displaystyle f_{s}}
是若干階躍函數的總和[ 17] :
f
=
f
c
+
f
s
,
{\displaystyle f=f_{c}+f_{s},}
f
s
=
f
s
1
+
f
s
2
+
f
s
3
+
⋯
,
{\displaystyle f_{s}=f_{s_{1}}+f_{s_{2}}+f_{s_{3}}+\cdots ,}
f
s
i
(
x
)
=
{
0
if
x
≤
x
i
,
c
i
,
if
x
>
x
i
.
{\displaystyle f_{s_{i}}(x)={\begin{cases}0&{\text{if }}x\leq x_{i},\\c_{i},&{\text{if }}x>x_{i}.\end{cases}}}
設
S
N
f
(
x
)
{\displaystyle S_{N}f(x)}
為
f
=
f
c
+
f
s
=
f
c
+
(
f
s
1
+
f
s
2
+
f
s
3
+
…
)
{\displaystyle f=f_{c}+f_{s}=f_{c}+\left(f_{s_{1}}+f_{s_{2}}+f_{s_{3}}+\ldots \right)}
的第
N
{\displaystyle N}
項傅立葉級數部分和,則除了在不連續點
x
i
{\displaystyle x_{i}}
附近外,該級數在所有
x
{\displaystyle x}
點處均收斂良好。在每個不連續點
x
i
{\displaystyle x_{i}}
附近,只有
f
s
i
{\displaystyle f_{s_{i}}}
會呈現出吉布斯現象(最大振盪誤差約為跳躍值
c
i
{\displaystyle c_{i}}
的 9%,可參見方波分析 ),因為在該點附近,其他函數皆為連續(
f
c
{\displaystyle f_{c}}
)或為常零函數(
f
s
j
{\displaystyle f_{s_{j}}}
,其中
j
≠
i
{\displaystyle j\neq i}
)。這便證明了吉布斯現象會在每個跳躍不連續點發生。
sinc函數 是理想低通濾波器 的脈衝響應 。縮放會使該函數變窄,對應地增大其幅度(此圖未顯示),但不會減少其下擺(undershoot)的大小,因為下擺是尾部的積分值。
從訊號處理 的角度來看,吉布斯現象就是低通濾波器 的階躍響應 (step response),其振盪稱為振鈴 或振鈴效應 。對於一個實數域上的信號,截斷其傅立葉變換 ,或對週期信號(等價於定義在圓上的信號)截斷其傅立葉級數,相當於使用一個理想的(也稱「磚牆式」)低通濾波器來濾除高頻分量。這種濾波過程可以表示為將原始信號與濾波器的脈衝響應 (亦稱為捲積核)做捲積 ,而該脈衝響應就是sinc函數 。因此,吉布斯現象可以視為將一個單位階躍函數 (若不要求週期性)或一個方波 (若要求週期性)與 sinc 函數進行捲積的結果:sinc 函數中的振盪造成輸出中的波紋。
正弦積分函數 ,展示了在實數域階躍函數上的吉布斯現象
當與單位階躍函數做捲積時,結果正是 sinc 函數的積分,也就是Si函數 ;對於方波,則較難用簡單方式表述。對於階躍函數,負下擺的大小正是 sinc 函數左尾巴從負無限大積到第一個負零點的積分值:若使用單位取樣週期的標準化 sinc 函數,該值為
∫
−
∞
−
1
sin
(
π
x
)
π
x
,
d
x
.
{\displaystyle \int _{-\infty }^{-1}{\frac {\sin(\pi x)}{\pi x}},dx.}
同理,正的上擺(overshoot)則具有相同大小:可看作是右尾巴的積分,或(等價地)是從負無限大積分至第一個正零點後再減去 1(即非振盪時的理想值)。
上擺與下擺可以這樣理解:捲積核(kernel)通常會被標準化,使其總積分為 1,從而能將常數函數映射為常數函數——否則該濾波器將具有增益 。捲積結果在某一點的值是輸入信號的一組線性組合 ,其係數為核函數的值。
若捲積核為非負(如高斯核 ),則濾波後的信號值會是輸入值的凸組合 (因為係數為非負且總和為 1),因此結果必落於輸入信號的最大值與最小值之間——不會有上擺或下擺。但若捲積核含有負值(如 sinc 函數),則濾波後的信號值將是輸入值的仿射組合,因此可能落在輸入的最小與最大值之外,從而產生上擺與下擺,也就是吉布斯現象。
若進行更長的展開——即在更高的頻率處截斷——這在頻域中相當於加寬磚牆濾波器,在時域中則相當於縮窄 sinc 函數並成比例地增高其幅度,使得在相應點之間的積分值保持不變。這是傅立葉變換的一個普遍性質:在一個域中拉寬,會導致在另一個域中縮窄並增高幅度。這使得 sinc 函數中的振盪變得更窄、更高,而捲積後的濾波結果中振盪的面積雖然變小,但幅度並不會降低:即使截斷於任意有限頻率,所對應的 sinc 函數仍具有不變的尾部積分。這便解釋了為何上擺與下擺的幅度不會消失。
因此,吉布斯現象的特徵可以如此解釋:
下擺是因為脈衝響應具有負的尾部積分,這是因為該函數本身取有負值;
上擺則是對應的對稱補償(整體積分在濾波下保持不變);
振盪的持續性來自於:即使增加截止頻率,脈衝響應變窄,積分卻未減少——因此振盪雖然集中靠近不連續點,但其幅度並未減弱。
以加法合成的方式展示方波的動畫(週期為 1,峰對峰振幅為 2,即從 -1 到 1)。當諧波數增加時,在跳躍不連續點附近可明顯看出吉布斯現象所產生的震盪。
我們考察一個具有週期性
L
{\displaystyle L}
的方波
f
(
x
)
{\displaystyle f(x)}
的第
N
{\displaystyle N}
階傅立葉部分和
S
N
f
(
x
)
{\displaystyle S_{N}f(x)}
,該方波在
x
=
x
0
{\displaystyle x=x_{0}}
處具有一個從
y
=
y
0
{\displaystyle y=y_{0}}
起跳的垂直「完整」跳躍
c
{\displaystyle c}
。由於奇數
N
{\displaystyle N}
的情況類似,我們僅考慮偶數
N
{\displaystyle N}
:
S
N
f
(
x
)
=
(
y
0
+
c
2
)
+
2
c
π
(
sin
(
ω
(
x
−
x
0
)
)
+
1
3
sin
(
3
ω
(
x
−
x
0
)
)
+
⋯
+
1
N
−
1
sin
(
(
N
−
1
)
ω
(
x
−
x
0
)
)
)
{\displaystyle S_{N}f(x)=\left(y_{0}+{\frac {c}{2}}\right)+{\frac {2c}{\pi }}\left(\sin(\omega (x-x_{0}))+{\frac {1}{3}}\sin(3\omega (x-x_{0}))+\cdots +{\frac {1}{N-1}}\sin((N-1)\omega (x-x_{0}))\right)}
其中
ω
=
2
π
L
{\displaystyle \omega ={\frac {2\pi }{L}}}
。(
N
=
2
N
′
{\displaystyle N=2N'}
,
N
′
{\displaystyle N'}
是非零的傅立葉正弦項數,因此某些文獻會用
N
′
{\displaystyle N'}
代替
N
{\displaystyle N}
。)
令
x
=
x
0
{\displaystyle x=x_{0}}
(即不連續點),代入可得:
S
N
f
(
x
0
)
=
(
y
0
+
c
2
)
=
f
(
0
−
)
+
f
(
0
+
)
2
=
y
0
+
(
y
0
+
c
)
2
{\displaystyle S_{N}f(x_{0})=\left(y_{0}+{\frac {c}{2}}\right)={\frac {f(0^{-})+f(0^{+})}{2}}={\frac {y_{0}+(y_{0}+c)}{2}}}
如前所述,傅立葉級數在跳躍點處的值是左右極限的平均值。
接下來,我們透過檢查
S
N
f
(
x
)
{\displaystyle S_{N}f(x)}
的一階與二階導數來找出跳躍點
x
=
x
0
{\displaystyle x=x_{0}}
附近震盪的第一個極大值位置。第一個條件是導數為零,即:
d
d
x
S
N
f
(
x
)
=
2
c
π
(
cos
(
ω
(
x
−
x
0
)
)
+
cos
(
3
ω
(
x
−
x
0
)
)
+
⋯
+
cos
(
(
N
−
1
)
ω
(
x
−
x
0
)
)
)
=
c
π
sin
(
N
ω
(
x
−
x
0
)
)
sin
(
ω
(
x
−
x
0
)
)
=
0
{\displaystyle {\frac {d}{dx}}S_{N}f(x)={\frac {2c}{\pi }}\left(\cos(\omega (x-x_{0}))+\cos(3\omega (x-x_{0}))+\cdots +\cos((N-1)\omega (x-x_{0}))\right)={\frac {c}{\pi }}{\frac {\sin(N\omega (x-x_{0}))}{\sin(\omega (x-x_{0}))}}=0}
第二個等號是利用拉格朗日三角恆等式推得。解此條件得:
x
−
x
0
=
k
π
N
ω
=
k
L
2
N
{\displaystyle x-x_{0}={\frac {k\pi }{N\omega }}={\frac {kL}{2N}}}
,
其中
k
{\displaystyle k}
為整數,須排除使分母為零的
N
ω
{\displaystyle N\omega }
倍數,因此允許的
k
{\displaystyle k}
為
1
,
2
,
…
,
N
ω
−
1
,
N
ω
+
1
,
…
{\displaystyle 1,2,\ldots ,N\omega -1,N\omega +1,\ldots }
,以及其負值。
在
x
−
x
0
=
k
L
/
(
2
N
)
{\displaystyle x-x_{0}=kL/(2N)}
處,
S
N
f
(
x
)
{\displaystyle S_{N}f(x)}
的二階導數為:
d
2
d
x
2
S
N
f
(
x
)
=
c
ω
π
(
N
cos
(
N
ω
(
x
−
x
0
)
)
sin
(
ω
(
x
−
x
0
)
)
−
sin
(
N
ω
(
x
−
x
0
)
)
cos
(
ω
(
x
−
x
0
)
)
sin
2
(
ω
(
x
−
x
0
)
)
)
{\displaystyle {\frac {d^{2}}{dx^{2}}}S_{N}f(x)={\frac {c\omega }{\pi }}\left({\frac {N\cos(N\omega (x-x_{0}))\sin(\omega (x-x_{0}))-\sin(N\omega (x-x_{0}))\cos(\omega (x-x_{0}))}{\sin ^{2}(\omega (x-x_{0}))}}\right)}
d
2
d
x
2
S
N
f
(
x
)
|
x
0
+
k
L
/
(
2
N
)
=
{
2
c
L
N
sin
(
k
π
/
N
)
,
if
k
is even,
2
c
L
−
N
sin
(
k
π
/
N
)
,
if
k
is odd.
{\displaystyle \left.{\frac {d^{2}}{dx^{2}}}S_{N}f(x)\right\vert _{x_{0}+kL/(2N)}={\begin{cases}{\frac {2c}{L}}{\frac {N}{\sin(k\pi /N)}},&{\text{if }}k{\text{ is even,}}\\[4pt]{\frac {2c}{L}}{\frac {-N}{\sin(k\pi /N)}},&{\text{if }}k{\text{ is odd.}}\end{cases}}}
因此,第一個極大值出現在
x
=
x
0
+
L
/
(
2
N
)
{\displaystyle x=x_{0}+L/(2N)}
(即
k
=
1
{\displaystyle k=1}
),此時的函數值為:
S
N
f
(
x
0
+
L
2
N
)
=
(
y
0
+
c
2
)
+
2
c
π
(
sin
(
π
N
)
+
1
3
sin
(
3
π
N
)
+
⋯
+
1
N
−
1
sin
(
(
N
−
1
)
π
N
)
)
{\displaystyle S_{N}f\left(x_{0}+{\frac {L}{2N}}\right)=\left(y_{0}+{\frac {c}{2}}\right)+{\frac {2c}{\pi }}\left(\sin \left({\frac {\pi }{N}}\right)+{\frac {1}{3}}\sin \left({\frac {3\pi }{N}}\right)+\cdots +{\frac {1}{N-1}}\sin \left({\frac {(N-1)\pi }{N}}\right)\right)}
若引入正規化的sinc函數
sinc
(
x
)
=
sin
(
π
x
)
π
x
{\displaystyle \operatorname {sinc} (x)={\frac {\sin(\pi x)}{\pi x}}}
(
x
≠
0
{\displaystyle x\neq 0}
),則上述可寫為:
S
N
f
(
x
0
+
L
2
N
)
=
(
y
0
+
c
2
)
+
c
[
2
N
sinc
(
1
N
)
+
2
N
sinc
(
3
N
)
+
⋯
+
2
N
sinc
(
(
N
−
1
)
N
)
]
{\displaystyle S_{N}f\left(x_{0}+{\frac {L}{2N}}\right)=\left(y_{0}+{\frac {c}{2}}\right)+c\left[{\frac {2}{N}}\operatorname {sinc} \left({\frac {1}{N}}\right)+{\frac {2}{N}}\operatorname {sinc} \left({\frac {3}{N}}\right)+\cdots +{\frac {2}{N}}\operatorname {sinc} \left({\frac {(N-1)}{N}}\right)\right]}
對於充分大的
N
{\displaystyle N}
,括號內的和為黎曼和 ,可近似積分
∫
0
1
sinc
(
x
)
d
x
{\displaystyle \int _{0}^{1}\operatorname {sinc} (x)\ dx}
(實際上是步長為
2
N
{\displaystyle {\tfrac {2}{N}}}
的中間點法則)。由於 sinc 函數是連續的,該和在
N
→
∞
{\displaystyle N\to \infty }
時會趨近於積分值。因此,
lim
N
→
∞
S
N
f
(
x
0
+
L
2
N
)
=
(
y
0
+
c
2
)
+
c
∫
0
1
sinc
(
x
)
d
x
=
(
y
0
+
c
2
)
+
c
π
∫
0
1
sin
(
π
x
)
x
d
x
=
(
y
0
+
c
2
)
+
c
π
∫
0
π
sin
(
t
)
t
d
t
=
y
0
+
c
+
c
⋅
(
0.089489872236
…
)
{\displaystyle {\begin{aligned}\lim _{N\to \infty }S_{N}f\left(x_{0}+{\frac {L}{2N}}\right)&=\left(y_{0}+{\frac {c}{2}}\right)+c\int _{0}^{1}\operatorname {sinc} (x)\,dx\\[8pt]&=\left(y_{0}+{\frac {c}{2}}\right)+{\frac {c}{\pi }}\int _{0}^{1}{\frac {\sin(\pi x)}{x}}\,dx\\[8pt]&=\left(y_{0}+{\frac {c}{2}}\right)+{\frac {c}{\pi }}\int _{0}^{\pi }{\frac {\sin(t)}{t}}\ dt\quad =\quad y_{0}+c+c\cdot (0.089489872236\dots )\end{aligned}}}
這就是前一節所提及的結果。類似的計算可得:
lim
N
→
∞
S
N
f
(
x
0
−
L
2
N
)
=
y
0
−
c
⋅
(
0.089489872236
…
)
{\displaystyle \lim _{N\to \infty }S_{N}f\left(x_{0}-{\frac {L}{2N}}\right)=y_{0}-c\cdot (0.089489872236\dots )}
吉布斯現象在應用中往往是不受歡迎的,因為它會造成失真,如因過衝與下衝產生的削波,以及由震盪產生的振鈴失真 。在低通濾波器 的應用中,可透過改變濾波器設計來減少或消除這些效應。
在核磁共振成像 (MRI)中,當相鄰區域的訊號強度差異很大時,吉布斯現象會造成偽影。這在脊髓 MRI 中尤為常見,有時可能會誤認為是脊髓空洞症 。
在圖像的離散傅立葉轉換 中,吉布斯現象會以十字型的偽影圖樣出現,[ 18] 這是因為多數圖像(如顯微圖 或照片)在上下或左右邊界處存在明顯不連續。當傅立葉轉換強制使用週期性邊界條件時,這種跳躍不連續在頻域中會以軸向的頻率連續分佈形式表現出來,即在傅立葉頻譜中形成一個十字圖樣。
儘管本文主要探討的是在時間域中用部分傅立葉級數重建不連續訊號所造成的失真,但在傅立葉反變換與正變換結構對稱的情況下,這種問題在頻率域中同樣存在。例如,理想化的磚牆濾波器 與矩形函數 在頻率域中具有不連續性,因此在時間域中其精確表示必然需要無限脈衝響應 的sinc濾波器 。若使用有限脈衝響應 ,會在截止頻率 附近導致頻率響應中的吉布斯震盪。不過可以透過窗函數 對有限脈衝響應濾波器進行加窗處理來減少震盪(代價是過渡帶會變寬)。[ 19]
^ H. S. Carslaw. Chapter IX . Introduction to the theory of Fourier's series and integrals Third. New York: Dover Publications Inc. 1930.
^ Vretblad 2000 第4.7節。
^ 6.7: Gibbs Phenomena . Engineering LibreTexts. 2020-05-24 [2022-03-03 ] (英语) .
^ 4.0 4.1 M. Pinsky. Introduction to Fourier Analysis and Wavelets . United states of America: Brooks/Cole. 2002: 27 .
^ Steven R. Finch, Mathematical Constants , Cambridge University Press, 2003, Section 4.1 Gibbs-Wilbraham constant, p. 249.
^ Wilbraham, Henry (1848) "On a certain periodic function" , The Cambridge and Dublin Mathematical Journal , 3 : 198–201.
^ Encyklopädie der Mathematischen Wissenschaften mit Einschluss ihrer Anwendungen (PDF) . II T. 1 H 1. Wiesbaden: Vieweg+Teubner Verlag. 1914: 1049 [14 September 2016] .
^ Hammack, Bill; Kranz, Steve; Carpenter, Bruce. Albert Michelson's Harmonic Analyzer: A Visual Tour of a Nineteenth Century Machine that Performs Fourier Analysis . Articulate Noise Books. 2014-10-29 [14 September 2016] . ISBN 9780983966173 (英语) .
^ 9.0 9.1 Hewitt, Edwin; Hewitt, Robert E. The Gibbs-Wilbraham phenomenon: An episode in Fourier analysis. Archive for History of Exact Sciences. 1979, 21 (2): 129–160. S2CID 119355426 . doi:10.1007/BF00330404 .
^ Bôcher, Maxime (April 1906) "Introduction to the theory of Fourier's series" , Annals of Mathematics , second series, 7 (3) : 81–152. 吉布斯現象見第 123–132 頁;吉布斯的貢獻見第 129 頁。
^ Carslaw, H. S. A historical note on Gibbs' phenomenon in Fourier's series and integrals . Bulletin of the American Mathematical Society. 1 October 1925, 31 (8): 420–424 [14 September 2016] . ISSN 0002-9904 . doi:10.1090/s0002-9904-1925-04081-1 (英语) .
^ Gottlieb, David; Shu, Chi-Wang. On the Gibbs Phenomenon and Its Resolution . SIAM Review. January 1997, 39 (4): 644–668. Bibcode:1997SIAMR..39..644G . ISSN 0036-1445 . doi:10.1137/S0036144596301390 (英语) .
^ Gottlieb, Sigal; Jung, Jae-Hun; Kim, Saeja. A Review of David Gottlieb's Work on the Resolution of the Gibbs Phenomenon . Communications in Computational Physics. March 2011, 9 (3): 497–519. Bibcode:2011CCoPh...9..497G . ISSN 1815-2406 . doi:10.4208/cicp.301109.170510s (英语) .
^ Rasmussen, Henrik O. "The Wavelet Gibbs Phenomenon". In Wavelets, Fractals and Fourier Transforms , Eds M. Farge et al., Clarendon Press, Oxford, 1993.
^ Kelly, Susan E. Gibbs Phenomenon for Wavelets (PDF) . Applied and Computational Harmonic Analysis. 1995, (3) [2012-03-31 ] . (原始内容 (PDF) 存档于2013-09-09).
^ De Marchi, Stefano; Marchetti, Francesco; Perracchione, Emma; Poggiali, Davide. Polynomial interpolation via mapped bases without resampling. J. Comput. Appl. Math. 2020, 364 : 112347. ISSN 0377-0427 . S2CID 199688130 . doi:10.1016/j.cam.2019.112347 .
^ Fay, Temple H.; Kloppers, P. Hendrik. The Gibbs' phenomenon . International Journal of Mathematical Education in Science and Technology. 2001, 32 (1): 73–89. doi:10.1080/00207390117151 .
^ R. Hovden, Y. Jiang, H.L. Xin, L.F. Kourkoutis. Periodic Artifact Reduction in Fourier Transforms of Full Field Atomic Resolution Images. Microscopy and Microanalysis. 2015, 21 (2): 436–441. doi:10.1017/S1431927614014639 .
^ Gibbs phenomenon | RecordingBlogs . www.recordingblogs.com. [2022-03-05 ] .
Michelson, A. A.; Stratton, S. W., A new harmonic analyser, Philosophical Magazine, 1898, 5 (45): 85–91
Zygmund, Antoni. Trigonometric Series 2nd. Cambridge University Press. 1959. 第1卷 , 第2卷
Paul J. Nahin, 《Dr. Euler's Fabulous Formula》,Princeton University Press,2006年,第4章,第4節。
Vretblad, Anders, Fourier Analysis and its Applications, Graduate Texts in Mathematics 223 , New York: Springer Publishing: 93, 2000, ISBN 978-0-387-00836-3