Why the bump beside the jump never dies — rescaling by t=2Nx collapses SN onto (2/π)Si(t), and the first peak tends to (2/π)Si(π)≈1.179. The overshoot is about 8.95% of the jump.
SN′(x)=π2sinxsin(2Nx)
peak→π2Si(π)≈1.17898
Examples & Exercises
Differentiate SN(x)=π4∑k=1N2k−1sin((2k−1)x) to prove SN′(x)=π2⋅sinxsin(2Nx). Show the critical points in (0,π) are xm=2Nmπ, with the first peak at x1=2Nπ. (Complete proof)
N=12: the first peak sits at x1=24π≈0.1309 — the derivative identity's zeros pin down the peak positions.Show proof
The sum is finite, so termwise differentiation is legitimate: SN′(x)=π4∑k=1Ncos((2k−1)x). View the cosine sum through complex exponentials: ∑k=1Ncos((2k−1)x)=ℜ∑k=1Nei(2k−1)x.
It is a geometric series: ∑k=1Nei(2k−1)x=eix1−ei2x1−ei2Nx. Factoring, 1−ei2Nx=−2ieiNxsin(Nx) and 1−ei2x=−2ieixsinx, so the ratio is eixsinxeiNxsin(Nx)=ei(N−1)xsinxsin(Nx). Multiplying by the leading eix gives eiNxsinxsin(Nx), whose real part is sinxcos(Nx)sin(Nx)=2sinxsin(2Nx).
Hence SN′(x)=π4⋅2sinxsin(2Nx)=π2⋅sinxsin(2Nx) — the Dirichlet kernel in closed form for the odd frequencies.
On (0,π) we have sinx=0, so critical points come from sin(2Nx)=0: 2Nx=mπ, i.e. xm=2Nmπ for m=1,…,2N−1. On (0,2Nπ) both sin(2Nx)>0 and sinx>0, so SN′(x)>0; starting from SN(0)=0 the sum climbs monotonically to its first maximum (the peak) at x1=2Nπ.
Show the first peak's height tends to π2Si(π)≈1.17898, marking the step that passes the limit N→∞ under the integral as the analysis step. Also prove Si(t)=∫0tusinudu attains its global maximum at t=π. (Complete except for the honestly marked analysis step)
SN(x)=π2∫02Nx2Nsin(t/2N)sintdt
analysis stepπ2∫02Nxtsintdt
Si′(t)=tsint>0on (0,π)
N=12: measured peak ≈1.17956 against the theoretical limit π2Si(π)≈1.17898 — error under 0.0006.Show proof
Since SN(0)=0, we have SN(x)=∫0xSN′(u)du. Substituting the previous problem's identity gives SN(x)=π2∫0xsinusin(2Nu)du; the change of variables t=2Nu (dt=2Ndu) yields SN(x)=π2∫02Nx2Nsin(t/2N)sintdt — pure algebra so far.
For each fixed t, 2Nsin(t/2N)→t (since sinv∼v). ★ Here — exactly once — we use analysis: for x≤2π (in particular at the peak x1=2Nπ), t∈(0,2Nx] gives v=2Nt∈[0,2π], and sinv≥π2v yields 2Nsin(t/2N)≥π2t. So the integrand is dominated by 2π⋅t∣sint∣≤2π. Dominated convergence passes the limit inside: SN(x)→π2∫02Nxtsintdt=π2Si(2Nx).
At the first peak x1=2Nπ we have 2Nx1=π, so the peak height tends to π2Si(π)≈1.17898. Numerical cross-check: it agrees with the Fourier scene's observed GIBBS_PEAK=1.178979744472167 to within 10−9.
Since Si′(t)=tsint>0, Si is strictly increasing on (0,π). For t>π, split the tail ∫πtusinudu into lobes Lk=∫kπ(k+1)πusinudu (k≥1): they alternate in sign, shrink because ∣Lk+1∣=∫kπ(k+1)πv+π∣sinv∣dv<∫kπ(k+1)πv∣sinv∣dv=∣Lk∣, and the first lobe L1<0. Every partial sum of this alternating series is negative (even counts are sums of negative pairs, odd counts add one more negative lobe), so Si(t)<Si(π) for t>π. Hence Si attains its global maximum at t=π, with value ≈1.85194.
Compute that the overshoot is about 8.949% of the jump (size 2), and prove why it never disappears as N→∞. (Complete proof)
2π2Si(π)−1≈0.08948987≈8.949%
SN(2Nt)N→∞π2Si(t)(N-independent limit)
Even at N=12 the overshoot is already 8.949% of the jump — and growing N leaves this fraction untouched.Show proof
The peak height tends to π2Si(π)≈1.17898 while the square wave sits at 1, so the overshoot is 1.17898−1=0.17898. The jump runs from −1 to 1 (size 2), hence the overshoot fraction is 20.17898=0.08948987≈8.949%.
Why it never dies: in the rescaled coordinate t=2Nx the whole curve converges to the N-independent limit function π2Si(t) (previous problem). The first bump has a fixed shape and height in t-coordinates.
Back in the original x-coordinate the t-interval is squeezed by 1/(2N): the bump's width ∼π/N→0 narrows, but its height tends to the constant π2Si(π)−1≈0.179. In one sentence: the bump narrows like 1/N but never shrinks.
This is why the Fourier scene's numerical observation had to be exactly π2Si(π) — analysis catching up to prove the constant the numerics had already seen.