18.03 Gibbs' Phenomenon: Jeremy Orloff
18.03 Gibbs' Phenomenon: Jeremy Orloff
18.03 Gibbs' Phenomenon: Jeremy Orloff
03 Gibbs’ Phenomenon
Jeremy Orloff
Gibbs’ Phenonemon says that the truncated Fourier series near a jump discontinuity over-
shoots the jump by about 9% of the size of the jump. Thus, for the standard square wave
(which jumps between -1 and 1) the peak value of the truncated Fourier series is about 1.18.
The proof is an elaborate and tricky calculus exercise.
Start with the square wave
4 X sin(nx)
f (x) =
π n
n odd
The trunctated Fourier series is
4 sin(3x) sin((2N − 1)x)
fN (x) = sin(x) + + ... +
π 3 2N − 1
Taking the derivative
0 4
fN (x) = (cos(x) + cos(3x) + . . . + cos((2N − 1)x))
π
0 2 sin(2N x)
Claim: fN (x) = · .
π sin(x)
eix + e−ix eix − e−ix
Proof: Using complex arithmetic: cos(x) = , sin(x) = .
2 2i
!
0 4 e(−2N +1)ix + e(−2N +3)ix + . . . e(2N −3)ix + e(2N −1)ix
⇒ fN (x) = .
π 2
This is a geometric series with ratio e2ix ⇒
1
18.03 Gibbs’ Phenomenon 2
2 π sin(x)
Z
dx, with ∆x = π/N.
π 0 x
Since ∆x → 0 as N → ∞ we get
Z π
2 sin(x)
lim fN (π/2N ) = dx.
N →∞ π 0 x
This series converges very rapidly and after five terms we have the value 1.18 correct to 2
decimal places.
We have seen that as N gets large the maximum value of fN (x) becomes 1.18. That is it
overshoots the correct value by 0.18, which is 9% of the jump from -1 to 1.