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].
Harmonic power of a square wave 2026-10-25
A zero-mean square wave of amplitude has total mean-square signal power . Each positive odd Fourier harmonic and its negative-frequency partner contribute , by its exact Fourier coefficients. The fundamental pair therefore accounts for of the total. The sum of contributions above harmonic index decays on the order of , although the discontinuous waveform still requires arbitrarily high harmonics for exact reconstruction.
Past exam of the mathematics course of the University of Cambridge 2005 ib Paper 1 14E Solution Created 2026-09-24 Updated 2026-10-14
The Fourier coefficients satisfy andThus the square wave has Fourier seriesIt equals away from its jump discontinuities, and converges to at the jumps. The assigned endpoint values do not affect its Fourier coefficients.
For the Poisson equation, use separation of variables . The radial equation is . Its bounded solution with zero Dirichlet boundary condition at isIndeed the negative power is excluded at the centre, and the boundary fixes the coefficient of . No resonance at occurs because only odd modes are forced. ThereforeThis is a Poisson equation on a disk with angular forcing. The series converges uniformly on the closed disk: for each term is bounded by a constant times . Its first spatial derivatives also converge uniformly. For instance the radial derivative and times the angular derivative of each term are bounded by constants times ; the harmonic term is smooth in Cartesian coordinates. It defines a function with zero boundary data and the required weak formulation. Applying the Laplacian to finite partial sums gives the Fourier partial sums of , which converge in ; passing to the limit against smooth compactly supported test functions verifies the Poisson equation. It holds classically off the jump rays and the centre, where the forcing is locally constant. It cannot be interpreted as a global classical equation with continuous second derivatives for discontinuous forcing. Uniqueness follows from the zero-boundary Dirichlet energy identity for the difference of two solutions.
Finally orthogonality gives . The radial integral isUniform convergence of and boundedness of justify integration term by term, soThe negative sign also agrees with . The original PDF's radial denominator is ; the converted TeX's is a transcription error.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2004 Paper 2 2 Solution Created 2026-10-18 Updated 2026-10-20
The square wave alternates between a low interval of length five and a high interval of length five; its integral average is three. In the real Fourier series conventionintegration over one period givesandThus only odd harmonics occur:The Dirichlet-Jordan convergence theorem makes the sum equal to the function at its continuity points and to the mean of its one-sided limits at a jump. Consequently the sum is 3 at each of , regardless of any separately assigned values of the original function at those endpoints.
Let denote the capacitor voltage with the same polarity as the applied voltage. By Kirchhoff's voltage law, Ohm's law and ,Solving this first-order differential equation gives the RC low-pass step responseThe capacitor voltage is continuous at switching because an instantaneous finite jump would require an impulsive electric current.
For the square-wave response of an RC low-pass filter, take equal positive and negative half-periods. Let , , and . After the transient, symmetry makes the capacitor voltage alternate between and . Over the positive half-period,Requiring givesThe next half-period is the sign-reversed copy. These exact expressions explain the requested sketches:
- At , . The voltage barely changes in each half-period, so the output is nearly triangular about zero, with extrema about . Its small-signal slope is approximately .
- At , . Clearly curved exponential rises and falls reach only ; the output never settles to either input level.
- At , . The output closely follows the input plateaux at , joined by continuous exponential transitions with time constant .
Use the period-two Fourier series conventionAway from its jumps this square wave is an odd function, so . Its Fourier sine coefficients areOnly odd Fourier harmonics remain. ThereforeThe Fourier series equals away from the jumps; at a jump it gives the midpoint of the one-sided limits by Dirichlet's theorem on Fourier series. The printed definition leaves the values at the integers unspecified. Choosing finite values there consistent with period two changes neither the Fourier coefficients nor these limiting values.
The given square wave agrees almost everywhere with an odd function on ; its assigned value at the single point does not affect any Fourier coefficient. Thus , whileThe Fourier series is thereforeThe Dirichlet convergence theorem for Fourier series applies because the periodic extension is piecewise smooth. It gives at each continuity point and the midpoint at the jumps, including ; it does not reproduce the assigned value there.
At the continuity point , and . ThusNo evaluation at a discontinuity or rearrangement of the conditionally convergent series is involved.
Connect the fourth JK flip-flop with and clock it from , retaining the source's positive-edge convention. Read the four-bit state as . Its state-transition diagram is a single cyclewith one input rising clock edge per arrow; the figure displays every state explicitly.
Each stage halves the preceding triggering frequency. is an ideal square wave with a 50-percent duty cycle at , with wave period and high and low intervals of . Its initial phase depends on the starting state. The figure chooses initial state and a first input rising clock edge at . Actual ripple propagation shifts edge times and creates intermediate transient codes; no device delays were supplied, so the waveform describes settled ideal logic.
The displayed signal is a square wave with levels and , each lasting two seconds. On a representative period it is positive for and negative for .
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.
RC low-pass laboratory 2026-10-18
The University of Colorado Boulder's Lab 3: Filters, §§7.1–7.4, specifies measuring the resistor and capacitor, then driving the assembled RC low-pass filter with a function generator. A two-channel oscilloscope reads actual input and output using high electrical impedance. Sweep the frequency, record the voltage amplitude ratio, and locate . A control compares a cable with a oscilloscope probe on a resistive voltage divider, isolating measurement capacitance before using the probe for the filter. A slow square wave then lets discharge timing estimate the time constant independently. Agreement supports the RC low-pass frequency response; source output impedance, probe loading, and instrument signal bandwidth limit it. These are prescribed measurements, with no measured dataset supplied here.[ref]
The two-channel setup can also test the predicted phase difference directly: for positive frequency , measure the output's time lag between corresponding features of the two sinusoids. For this single-stage model the phase lies between and , so choose the lag within a quarter cycle and calculate . At the cutoff frequency the predicted lag is one eighth of a cycle. This tests the timing part of the frequency response as well as the voltage ratio.
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.
For an equal-duty square wave alternating between with period , the steady periodic capacitor voltage has extrema . A positive half-period maps to , proving the title formula. The negative half-period is its sign-reversed copy. Short periods give a small nearly triangular output; long periods give input-like plateaux with exponential transitions.





