Fourier partial sum Created 2026-09-24 Updated 2026-10-14
A Fourier partial sum retains the modes whose integer frequency multipliers satisfy in a complex Fourier series:For a real function of period , this is equivalently . It is a trigonometric polynomial, even when the original function is discontinuous. For a square wave, retaining nonzero odd sine modes gives ; all even-frequency coefficients are zero. The Gibbs phenomenon illustrates why more retained modes need not reduce the maximum error.
Fourier series Created 2026-09-24 Updated 2026-10-13
A Fourier series describes a periodic function through sines and cosines whose frequencies are integer multiples of one base frequency. These Fourier harmonics give a useful alternative to describing the value at every input: each Fourier coefficient measures how much of one oscillating pattern is present. For a real, integrable function of period , the real form isThe cosine formula includes ; the sine formula uses . Thus is the mean value over a period, not itself. The symbol associates a function with its Fourier coefficients; an equality requires a specified kind of convergence, such as pointwise convergence. For general period , replace by and the coefficient prefactor by . Fourier orthogonality explains why integrating against one mode removes the others. [ref]
https://ocw.mit.edu/courses/res-18-015-topics-in-fourier-analysis-spring-2024/mitres_18_015_s24_lec01.pdf. Daniel Stroock, Basic Theory of Fourier Series: orthogonality and periodic expansions
.For a finite example, takeIts mean is , its real Fourier coefficients are , , , and all other vanish. At , the three contributions add to . The function is already a trigonometric polynomial, so retaining these modes reconstructs it exactly. Here is an angular coordinate in radians; if it instead represents time, a base angular frequency must supply the corresponding units.
The change of viewpoint is useful because many linear problems act separately on these modes. The second derivative maps to and maps in the same way. Consequently a differential equation that is complicated for a whole profile can become a simpler calculation for each Fourier harmonic. A linear time-invariant system similarly has a separate response to each complex exponential. Superposition combines the responses when the relevant sums and operations are justified. [ref]
https://ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter30/section08.html. MIT Calculus with Applications, section 30.8: Fourier series and forced responses
.The infinite case contains a subtlety absent from the finite example. Under pointwise convergence of a piecewise smooth Fourier series, the value at a jump discontinuity is the average of the two one-sided limits. For a square-integrable function, the complex Fourier series instead converges in the norm: the integrated squared error tends to zero. Neither statement says that the error becomes small everywhere at once. A square wave shows the difference vividly through the Gibbs phenomenon.
A historical source for this connection between profiles and modes is Joseph Fourier's 1822 book Théorie analytique de la chaleur. Chapter III develops expansions in sines and cosines while studying the propagation of heat. The heat equation gives a continuing application of this approach. [ref].
Gibbs phenomenon 2026-10-14
The Gibbs phenomenon is the persistent overshoot near a jump discontinuity in ordinary truncated Fourier series. For this square wave, retain nonzero odd modes:As grows, the first peak approaches the jump while its height tends to approximately . This is an excess of about above the upper level , or of the jump size . The narrower region does not imply a vanishing maximum error. At the jump itself every . These observations are compatible with pointwise convergence and convergence but exclude uniform convergence to the discontinuous square wave. [ref]
https://dlmf.nist.gov/6.16. NIST DLMF, section 6.16(i): square-wave overshoot and its limiting height
.For this particular sum, its derivative is away from multiples of , so the first positive peak is exactly at . There,This is a midpoint Riemann sum tending to , where is the sine integral. It gives a short explanation of the nonzero limiting excess.
The phenomenon matters whenever a sharp boundary is represented by a limited set of Fourier harmonics: a visible ripple can be a property of the approximation rather than an oscillation in the original profile. Josiah Willard Gibbs reported the phenomenon in his 1899 letter “Fourier's Series” in Nature, volume 59, page 606. This is a documented historical report, without a claim of first discovery. [ref].
Square wave 2026-10-14
A square wave alternates between two constant levels for equal halves of a period. Choose a -periodic function equal to on and on , with value zero at the jumps. Its odd function symmetry makes the mean and every cosine Fourier coefficient vanish. Directly integrating the two constant pieces givesThus only odd sine Fourier harmonics occur, with amplitudes decreasing like the reciprocal of their frequency multiplier. Every finite Fourier partial sum is smooth, yet their pointwise limit has jumps. At those jumps the Fourier series converges to zero, the midpoint of the two levels, regardless of which value we assign to the original function there.
This example explains how smooth components can encode sharp transitions. Increasing the number of Fourier harmonics narrows the transition region, but also produces the persistent overshoot described by the Gibbs phenomenon. The illustrated square wave and coefficient calculation are mathematical constructions, not measurements of a physical device.

