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].
Past exam of the mathematical methods I course of the University of Oxford 2014 resit 10 Solution 2026-10-25
Taking the inner product with and using Fourier orthogonality isolates . Since is even, integration by parts givesConsequently the Fourier sine series isThe series converges to at each interior point and in the L2 norm. Its periodic extension has jumps at , where the Fourier series instead converges to the midpoint value zero. The overshoot near those jumps is the Gibbs phenomenon.
Fourier sine partial sums recover the odd linear function inside the interval, with endpoint jump overshoot
. Details. First, the Fourier coefficients of the Fourier cosine series decay as , whereas those of the Fourier sine series are of order . In particular, the absolute convergence bound for the Fourier cosine series gives a uniform tail estimateThus its tail is absolutely controlled using fewer Fourier harmonics. The Fourier sine series does not have an absolutely summable sequence of Fourier coefficients.
Second, the even extension is continuous, so its Fourier cosine series converges uniformly on the closed interval and approximates the nonzero endpoint limits correctly. The odd periodic extension has jumps, producing the Gibbs phenomenon in its Fourier sine series near zero and . Every Fourier sine series partial sum is zero at both endpoints, so by approaching from inside one obtainsHence the Fourier sine series approximation cannot converge uniformly even on the whole open interval, despite pointwise convergence at each interior point. The Fourier cosine series approximation has faster coefficient decay and avoids the persistent errors near the endpoints.
The truncated Fourier cosine series gives the better approximation on the closed interval, in the senses of uniform convergence and the asymptotic L2 norm error. To make the comparison precise, let and retain the frequencies , with the constant term also included in .
The cosine Fourier coefficients are . In fact, absolute convergence gives the uniform tail boundFor the Fourier sine series, every Fourier partial sum satisfies . Thusso there is no uniform convergence to on the closed interval. Its odd extension has jump discontinuities, producing the Gibbs phenomenon near the endpoints; its Fourier coefficients decrease only like .
The advantage persists in the L2 norm, which ignores individual endpoint values. By Parseval's identity and Fourier orthogonality,The nonzero odd cosine coefficients and both parity classes of sine coefficients also give matching lower bounds of these orders by comparison with the corresponding p-series. Hence their L2 norm errors decrease respectively like and . This is a comparison of approximation quality in specified norms, not a claim that one finite sum has smaller error at every individual interior point.
The truncated Fourier cosine series gives the better approximation over the whole closed interval. Its Fourier coefficients obey , so absolute convergence and the tail boundgive uniform convergence. The even periodic extension is continuous; its slope changes only cause corners.
By contrast . The odd periodic extension has a jump at , giving slower coefficient decay and the Gibbs phenomenon near that endpoint. Every truncated Fourier sine series satisfies , soIt therefore cannot converge uniformly to on , although it converges at every point of . This comparison concerns approximation across the interval; it does not assert that the cosine truncation has smaller error at every individual interior point for every .
The Fourier cosine series converges to the continuous even -periodic extension. If represents modulo , its value isIt has value zero at , rises linearly with distance from these points until height , and then stays flat until the next descending ramp. Thus the sketch on has minima at , and plateaux centred at the odd multiples of . Its large partial sums round the corners and closely follow the whole graph.
The Fourier sine series converges, away from the odd multiples of , to the odd -periodic extensionAt every odd multiple of its value is zero, the midpoint of the jump from to . At even multiples of it passes continuously through zero. Thus on every interval it has a negative plateau, a rising linear segment through , and a positive plateau. The jump size is .
Periodic limits and 60-term Fourier partial sums
. Details. The blue curves are the partial sums through . The open endpoint circles and filled zero dots in the lower panel distinguish the one-sided limits from the value of the Fourier sine series at each jump. Near these jumps the partial sums exhibit the Gibbs phenomenon: the oscillations become concentrated in narrower regions as the number of terms grows, while their limiting overshoot remains about times the jump, here about .
Apply a Fourier transform or discrete Fourier transform, retain the desired low-frequency coefficients and attenuate those in the high-frequency noise band with a low-pass filter, then invert. For a real signal, apply matching gains at positive and negative frequencies to preserve Hermitian symmetry.
Parseval identity for Fourier series shows what an ideal coefficient cutoff does: the output mean-square signal power is the sum of the retained squared coefficients, and cannot exceed that of the unfiltered input. Much of the high-frequency noise can be removed, but a finite cutoff also removes genuine square wave harmonics. Its edges become less sharp, and a sharp spectral cutoff can exhibit the Gibbs phenomenon. There is no claim of exact recovery if the noise overlaps the retained band. Noise already folded into low frequencies by aliasing cannot in general be removed merely by discarding the high-frequency bins afterward.
Square wave Created 2026-10-14 Updated 2026-10-18
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.



