The Gibbs phenomenon was first noticed and analyzed by the English mathematician Henry Wilbraham (1825--1883) in 1848, and rediscovered by an American scientist J. Willard Gibbs (1839--1903) 50 years later. The term "Gibbs phenomenon" was introduced by the American mathematician Maxime Bocher in 1906.
The history of this discovery can be found in an
article by Hewitt&Hewitt. This phenomenon assures that the Fourier series of a
piecewise continuously differentiable periodic function oscillates near the
jump of discontinuity by overshooting and undershooting it by about 9%.
This lack of improvement in the approximations near the discontinuity manifested in the continual presence of the overshoot or undershoot is called the Gibbs phenomenon.
Henry Wilbraham received a BA in 1846 and an
MA in 1849 from Cambridge.
Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to Part V of the course APMA0340
Introduction to Linear Algebra with Mathematica
where the coefficients 𝑎_{n} and b_{n} were defined previously.
The Gibbs
phenomenon is the peculiar manner in which
the Fourier
series of a piecewise continuously differentiable periodic
function behaves at a jump of discontinuity. The partial Fourier sums ripple
near every point of discontinuity in an amount proportional to the finite jump.
So finite Fourier sums (as well as other eigenfunction series) provide an
overshoot/undershoot (or "ringing") occurring
at discontinuities of finite length. Mathematically, it reflects the difference between uniform convergence and pointwise convergence. The Nth partial sum of the Fourier series has large oscillations near the jump, which increases/decreases the maximum/minimum of the partial sum of the function itself. The overshoot does not die out as N increases, but instead approaches a finite limit.
If a function f(x) has a discontinuity at the
point \( x_0 \) of
amount \( c = f(x_0 +0) - f(x_0 -0) , \)
then finite Fourier sums experience overshoot and undershoot in a
neighborhood of the amount \( c\, w , \) where w =
0.0894899… is the Wilbraham constant. These undershoots or overshoots cannot be
eliminated by increasing the number of terms in the finite
Fourier partial sums; actually these finite sums swap the range
a special function that can be evaluated by Mathematica with a one
line build-in command
N[SinIntegral[Pi]]
1.851937051982466
Division by π/2
N[Pi/2]
1.5707963267948966
yields
N[SinIntegral[Pi]/Pi*2]
1.1789797444721672
So the overshoot/undershoot of a finite Fourier series for a function having a
unit jump of discontinuity will exceed the actual value of the function at
that point by the Wilbraham constant
which is evaluated with 20 decimale places by Mathematica as
w = N[(SinIntegral[Pi]/Pi*2 - 1)/2, 20]
0.089489872236083635116
If the function is continuous (actually, its periodic continuation on all real axis), we do not observe the Gibbs phenomenon. The considered examples show that if a function is a piecewise continuous with finite jumps, its Fourier coefficients decay at a rate of 1/k; if a continuous function has corners (not differentiable), then its Fourier coefficients decay at a rate of 1/k^{2}. The more derivatives exist, the faster Fourier coefficients decay. The general case provides the following lemma.
Riemann--Lebesgue lemma:
If a periodic function f of period T is absolutely integrable (so \( \int_{T} \left\vert f(x) \right\vert {\text d}x < \infty , \) then its Fourier coefficients tend to zero.
In the graph shown, the orange curve was calculated with n=10 terms while the blue curve was calculated with n=50 terms. As a result, when the number of terms in the Fourier series is increased, the overshoot and undershoot cannot be removed, but the “ripples” will move closer and closer (horizontally) to the point of discontinuity.
There are four points of discontinuity on the interval [-2,2]; at three of them (x = -2, -1, 2) the given function experiences jump of discontinuity of 1 and at the point x = 0 it has jump of value 2.
At point x = -2, Fourier series has undershoot value of \( 1 - 0.0894899 \approx 0.91051 \) because 0.0894899 ≈ 0.1789797444721675 /2 = 2*Si(π)/π - 1. Correspondingly, at point x = -1, we have overshoot 1 + 0.0894899 ≈ 1.0894899… . At point x = 2, the overshoot will be about 2.0894899 and undershoot will be about 0.91051. However, at point x = 0, the jump of discontinuity is 2; therefore, we expect Gibbs phenomenon at this point to be
\( 1- 1.1789797444721675 \approx - 0.1789797444721675\ldots \) for undershoot;
\( 2+ 0.1789797444721675 \approx 2.1789797444721675\ldots \) for overshoot.
Changing the FourierParameters setting allows control over the limits of integration on the coefficients, and therefore, the base frequency of the series.
Some work will go into calculating what values for parameters will give the proper limits of integration. There is ordinarily no reason to change the first parameter from its default setting, which is 1.
So, at point x = -1 the function experiences a jump of 1 unit
and at the point x = 2 it has a jump of 2 units. Therefore, the
undershoot at point x = -1 will be closed to -w ≈
-0.089489872 (Wilbraham number) and overshoot of 1+w ≈ 1.089489872
as the number of terms in partial Fourier sums approaches infinity.
At another point of discontinuity x = 2, the given function will have
the undershoot of the amount 2w, which will be about 2.82102.
Correspondingly, its overshoot will approach 3.1789797. Upon making a
computational experiment with plotting partial sums in neighborhoods of these
two points, we see that indeed, the predicted overshoots and undershoots are
very closed to the predicted ones.
Since the signum function has a finite jump of 2 at the origin, the overshoot is about 1.18 (which is 2 times the Wilbraham constant) and undershoot is −1.18.
■
B. Kuttner, Note on the Gibbs Phenomenon, Journal of the London Mathematical Society, Volume s1-20, Issue 3, 1 June 1945, Pages 136–139, https://doi.org/10.1112/jlms/s1-20.3.136
A correction has been published: Journal of the London Mathematical Society, Volume s1-20, Issue 4, 1 October 1945, Pages 238, https://doi.org/10.1112/jlms/s1-20.4.238-s
Return to Mathematica page
Return to the main page (APMA0340)
Return to the Part 1 Matrix Algebra
Return to the Part 2 Linear Systems of Ordinary Differential Equations
Return to the Part 3 Non-linear Systems of Ordinary Differential Equations
Return to the Part 4 Numerical Methods
Return to the Part 5 Fourier Series
Return to the Part 6 Partial Differential Equations
Return to the Part 7 Special Functions