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=1Nβcos((2kβ1)x). View the cosine sum through complex exponentials: βk=1Nβcos((2kβ1)x)=ββk=1Nβei(2kβ1)x.
It is a geometric series: βk=1Nβei(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 Ο2βSi(Ο)β1.17898, marking the step that passes the limit Nββ under the integral as the analysis step.
Also prove Si(t)=β«0tβusinuβdu attains its global maximum at t=Ο. (Complete except for the honestly marked analysis step)
SNβ(x)=Ο2ββ«02Nxβ2Nsin(t/2N)sintβdt
analysisΒ stepβΟ2ββ«02Nxβtsintβdt
Siβ²(t)=tsintβ>0onΒ (0,Ο)
N=12: measured peak β1.17956 against the theoretical limit Ο2βSi(Ο)β1.17898 β error under 0.0006.Show proof
Since SNβ(0)=0, we have SNβ(x)=β«0xβSNβ²β(u)du. Substituting the previous problem's identity gives SNβ(x)=Ο2ββ«0xβsinusin(2Nu)βdu; the change of variables t=2Nu (dt=2Ndu) yields SNβ(x)=Ο2ββ«02Nxβ2Nsin(t/2N)sintβdt β pure algebra so far.
Substitute the peak first, before taking any limit: put xNβ=x1β=2NΟβ, so 2NxNβ=Ο is fixed and SNβ(xNβ)=Ο2ββ«0Οβ2Nsin(t/2N)sintβdt β the domain is now the fixed interval (0,Ο], independent of N. For each fixed t, 2Nsin(t/2N)βt (since sinvβΌv), so the integrand converges pointwise to tsintβ.
β Here β exactly once β we use analysis, applying dominated convergence on the fixed domain (0,Ο]: for tβ(0,Ο], v=2Ntββ[0,2Οβ] and sinvβ₯Ο2vβ yields 2Nsin(t/2N)β₯Ο2tβ, i.e. 2Nsin(t/2N)tββ€2Οβ.
Hence β2Nsin(t/2N)sintββ=2Nsin(t/2N)tββ βtsintβββ€2Οββtsintβββ€2Οβ, and the dominating function 2Οββtsintββ (with βtsintβββ€1) is integrable on the finite interval (0,Ο]. Dominated convergence gives SNβ(xNβ)βΟ2ββ«0Οβtsintβdt=Ο2βSi(Ο)β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 β«Οtβusinuβdu into lobes Lkβ=β«kΟ(k+1)Οβusinuβdu (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)
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 Ο2βSi(Ο)β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 Ο2βSi(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 Ο2βSi(Ο)β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 Ο2βSi(Ο) β analysis catching up to prove the constant the numerics had already seen.