A reconstructed robot signal can show ringing near an abrupt transition even when additional Fourier coefficients improve its average error. Increasing the number of retained harmonics does not force the largest local overshoot at a jump to vanish. The region of poor agreement can shrink while the peak error approaches a nonzero value. A hypothetical two-level record lets us calculate both quantities rather than judging a reconstruction from one zoom level.
Consider a periodic, dimensionless signal with lower plateau 2 and upper plateau 8. Its period is T = 0.4 seconds. Write phase x = 2 pi t/T. In each period the signal is 8 for 0 < x < pi and 2 for -pi < x < 0. At a jump, assign the midpoint value 5 for the mathematical representation. No physical sensor is claimed to switch instantaneously or to produce these numbers.
NIST's Digital Library of Mathematical Functions gives the odd-harmonic partial sum, its integral form, and the sine-integral limit responsible for Gibbs overshoot. Gilbert Strang's original MIT text derives square-wave coefficients and distinguishes the persistent peak from behavior away from the jump. The calculation here rescales that analytical basis to an independently specified record and compares explicit finite sums, time locations, and error measures.
Define Qn(x) = (4/pi) times the sum, for k from 0 through n-1, of sin((2k+1)x)/(2k+1). The reconstructed signal is Fn(x) = 5 + 3Qn(x). Thus n counts retained odd sine terms; the highest harmonic index is 2n-1. This indexing convention matters because counting all harmonic indices or only nonzero coefficients would otherwise attach different meanings to the same n.
Each finite reconstruction is continuous. At the jump x = 0, every sine term vanishes and Fn equals 5 exactly. Away from the jumps, the infinite series converges to the appropriate plateau. Assigning a different value to the original signal at that single point would not change its integral coefficients. This is a statement about the Fourier representation, not a recovery of an independently measured value at the transition instant.
The first positive peak is particularly easy to locate. Differentiating the finite sum removes the odd denominators. The resulting cosine sum is sin(2nx)/(2 sin x), multiplied by 4/pi. For 0 < x < pi/(2n), this derivative is positive. It changes sign just after x = pi/(2n), so that point is the first local maximum. The peak moves toward the jump in exact inverse proportion to n.
For one retained term, the peak Q1 is 4/pi, approximately 1.273240, giving F1 approximately 8.819719. With two retained terms, Q2 at its first maximum is approximately 1.200422 and F2 is approximately 8.601265. With five terms, the corresponding values are 1.182328 and 8.546985. The initial peaks decrease, but this finite sequence does not establish that the peak eventually reaches the plateau value 8.
Rescale the integral using u = 2nx. At the moving peak, Qn approaches (2/pi) times Si(pi), where Si(pi) is the integral of sin(u)/u from zero to pi, with its removable endpoint assigned the value 1. That limit is approximately 1.178979744. Consequently the limiting upper peak for this record is 5 + 3 times that number, approximately 8.536939233.
The excess of approximately 0.536939 above the upper plateau is 8.949 percent of the full jump size 6. It is also 17.898 percent of the half-jump amplitude 3. Those two percentages describe the same peak with different denominators. Reporting an approximately eighteen-percent overshoot without naming its reference would therefore be ambiguous. The lower-side undershoot has the corresponding symmetric magnitude for this idealized signal.
Convert the peak position back to seconds: t_peak = T/(4n). For n = 20, the first maximum is 0.005 seconds after the jump, and the reconstructed peak is approximately 8.537564. For n = 100, it is 0.001 seconds after the jump, with a peak approximately 8.536964. A plot that samples every several milliseconds can miss the latter peak altogether. A smoother-looking plotted line is not necessarily a smaller continuous peak error.
The retained frequencies also change. At n = 20, the highest harmonic is 39/T = 97.5 Hz; at n = 100, it is 199/T = 497.5 Hz. These are frequencies of the mathematical reconstruction. They do not establish a hardware sample rate, analog bandwidth, antialias filter, or achievable measurement precision. A sampled implementation would need those separate conditions before this continuous series could represent its actual output.
Average error tells another story. Orthogonality gives the period-mean squared error of Fn as 9 times [1 - (8/pi squared) times the sum of 1/(2k+1) squared over the retained terms]. For n = 20, it is approximately 0.0911701; for n = 100, approximately 0.0182377. The error decreases substantially even though the moving peak stays more than half a signal unit above the plateau. Integral error and worst local error answer different questions.
That difference also limits diagnosis. Ringing generated by a finite series does not, on its own, demonstrate an unstable physical plant or a real excursion in the original record. Conversely, a low mean-square reconstruction error cannot certify that every local excursion is negligible. If coefficients are tapered or otherwise changed, the reconstruction becomes a different finite approximation; its height, transition width, and error measures must be evaluated for those actual coefficients.
A useful reconstruction record therefore specifies both plateau levels, the periodic extension, n and its counting convention, time scaling, coefficient values, and the error measure of interest. A discontinuity at the join between the end and beginning of a repeated record can create the same issue even when the interior looks smooth. Checking peak height together with its location and an integral error separates a narrowing transition from a disappearing overshoot.
Sources checked October 24, 2026:
https://dlmf.nist.gov/6.16
https://math.mit.edu/~gs/cse/websections/cse41.pdf
Concept illustration: A wired fixture on a metal worktable beside a waveform display provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.