Energy is conserved — π1∫−ππ∣f∣2=2a02+∑(an2+bn2). Watch the fraction of energy captured by the first N modes.
π1∫−ππ∣f∣2=2a02+n=1∑∞(an2+bn2)
Examples & Exercises
Verify Parseval's identity for the square wave f(x)=sgn(x) (on [−π,π]): first check numerically in the scene that SN approaches 2, then prove rigorously from the Basel problem ∑n≥1n21=6π2 that ∑odd nπ2n216=2.
π1∫−ππf2=2=odd n∑π2n216,odd n∑n21=8π2
Square wave, N=40: S40=∑odd n≤40π2n216≈1.9798 — about 99% of the target 2.Show proof
Since f2=1, the L2 norm is π1∫−ππf2dx=π2π=2. As f is odd, an=0, and bn=π1∫−ππf(x)sin(nx)dx=π2∫0πsin(nx)dx=nπ2(1−(−1)n) — nπ4 for odd n, 0 for even n.
Hence Parseval's right side is 2a02+∑n≥1bn2=∑odd nπ2n216=π216∑odd nn21. From the Basel problem ∑n≥1n21=6π2; the even terms alone give ∑k≥1(2k)21=41⋅6π2=24π2, so the odd terms sum to 6π2−24π2=8π2.
Substituting gives π216⋅8π2=2 — exactly the L2 norm 2 on the left. Parseval's identity is proved in this example. The scene's bars pressing against 2 at N=40 are the partial sums of this infinite series.
Using the orthogonality of the trigonometric system, expand ∥f−SN∥22≥0 to prove completely Bessel's inequality 2a02+∑n=1N(an2+bn2)≤π1∫−ππf2 (the finite core of Parseval).
With the inner product ⟨g,h⟩=π1∫−ππg(x)h(x)dx, the trigonometric system {1/2,cos(nx),sin(nx)} is orthonormal. Writing the Fourier partial sum as SN=2a0+∑n=1N(ancos(nx)+bnsin(nx)), we get ∥f−SN∥22=⟨f−SN,f−SN⟩=∥f∥22−2⟨f,SN⟩+∥SN∥22 — always nonnegative.
The coefficient definitions are exactly ⟨f,cos(nx)⟩=an, ⟨f,sin(nx)⟩=bn, ⟨f,1⟩=a0, so ⟨f,SN⟩=2a02+∑n=1N(an2+bn2). By orthogonality, ∥SN∥22=2a02+∑n=1N(an2+bn2) as well (every cross term is 0).
Substituting gives 0≤∥f−SN∥22=∥f∥22−2EN+EN=∥f∥22−EN (with EN=2a02+∑n=1N(an2+bn2)) — i.e. EN≤∥f∥22. That is Bessel's inequality, and why the scene's bars never cross the dashed line. The N→∞ limit is Parseval's identity (problem 3 below).
Prove that if Parseval's identity 2a02+∑n≥1(an2+bn2)=∥f∥22 holds, then the Fourier partial sums SN converge to f in L2. Mention the completeness (density of trigonometric polynomials) only as the bridge — that step is idea-level.
∥f−SN∥22=∥f∥22−(2a02+n=1∑N(an2+bn2))N→∞0
Parabola, N=12: the energy enters as 1/n4, so S12 already captures over 99.99% of the L2 norm 52π4≈38.96 — L2 convergence happening before your eyes.Show proof
Problem 2's expansion is an identity, not just an inequality: keeping ∥f−SN∥22 instead of replacing it by 0 gives ∥f−SN∥22=∥f∥22−EN (with EN=2a02+∑n=1N(an2+bn2)) — the cross terms vanish by orthogonality, so this holds exactly.
Parseval's identity says EN→∥f∥22 as N→∞. Hence ∥f−SN∥22=∥f∥22−EN→0 — i.e. SN→f in L2. That one step, from inequality to equality, is the whole argument: the implication itself is completely proved.
The bridge (idea level): Parseval's identity itself needs the trigonometric system to be "complete" — finite trigonometric polynomials must approximate f in L2 to any accuracy. That density follows from the Weierstrass approximation theorem for continuous functions plus density of continuous functions in L2; the proof is omitted here. Once the bridge stands, the implication above completes the L2 convergence.