Parseval's Identity

Energy is conserved — 1π∫−ππ∣f∣2=a022+∑(an2+bn2)\frac1\pi\int_{-\pi}^{\pi} |f|^2 = \frac{a_0^2}{2} + \sum (a_n^2 + b_n^2). Watch the fraction of energy captured by the first NN modes.

1π∫−ππ∣f∣2=a022+∑n=1∞(an2+bn2)\frac1\pi\int_{-\pi}^{\pi} |f|^2 = \frac{a_0^2}{2} + \sum_{n=1}^{\infty}(a_n^2 + b_n^2)

Examples & Exercises

Verify Parseval's identity for the square wave f(x)=sgn⁡(x)f(x) = \operatorname{sgn}(x) (on [−π,π][-\pi, \pi]): first check numerically in the scene that SNS_N approaches 2, then prove rigorously from the Basel problem ∑n≥11n2=π26\sum_{n\ge 1} \frac{1}{n^2} = \frac{\pi^2}{6} that ∑odd n16π2n2=2\sum_{\text{odd } n} \frac{16}{\pi^2 n^2} = 2.

1π∫−ππf2=2=∑odd n16π2n2,∑odd n1n2=π28\frac{1}{\pi}\int_{-\pi}^{\pi} f^2 = 2 = \sum_{\text{odd } n} \frac{16}{\pi^2 n^2}, \qquad \sum_{\text{odd } n} \frac{1}{n^2} = \frac{\pi^2}{8}
Square wave, N=40N = 40: S40=∑odd n≤4016π2n2≈1.9798S_{40} = \sum_{\text{odd } n \le 40} \frac{16}{\pi^2 n^2} \approx 1.9798 — about 99% of the target 2.
Show proof
  1. Since f2=1f^2 = 1, the L2L^2 norm is 1π∫−ππf2 dx=2ππ=2\frac{1}{\pi}\int_{-\pi}^{\pi} f^2\,dx = \frac{2\pi}{\pi} = 2. As ff is odd, an=0a_n = 0, and bn=1π∫−ππf(x)sin⁡(nx) dx=2π∫0πsin⁡(nx) dx=2(1−(−1)n)nπb_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\sin(nx)\,dx = \frac{2}{\pi}\int_0^{\pi} \sin(nx)\,dx = \frac{2(1 - (-1)^n)}{n\pi} — 4nπ\frac{4}{n\pi} for odd nn, 0 for even nn.
  2. Hence Parseval's right side is a022+∑n≥1bn2=∑odd n16π2n2=16π2∑odd n1n2\frac{a_0^2}{2} + \sum_{n\ge 1} b_n^2 = \sum_{\text{odd } n} \frac{16}{\pi^2 n^2} = \frac{16}{\pi^2}\sum_{\text{odd } n} \frac{1}{n^2}. From the Basel problem ∑n≥11n2=π26\sum_{n\ge 1} \frac{1}{n^2} = \frac{\pi^2}{6}; the even terms alone give ∑k≥11(2k)2=14⋅π26=π224\sum_{k\ge 1} \frac{1}{(2k)^2} = \frac{1}{4}\cdot\frac{\pi^2}{6} = \frac{\pi^2}{24}, so the odd terms sum to π26−π224=π28\frac{\pi^2}{6} - \frac{\pi^2}{24} = \frac{\pi^2}{8}.
  3. Substituting gives 16π2⋅π28=2\frac{16}{\pi^2}\cdot\frac{\pi^2}{8} = 2 — exactly the L2L^2 norm 2 on the left. Parseval's identity is proved in this example. The scene's bars pressing against 2 at N=40N = 40 are the partial sums of this infinite series.

Using the orthogonality of the trigonometric system, expand ∥f−SN∥22≥0\|f - S_N\|_2^2 \ge 0 to prove completely Bessel's inequality a022+∑n=1N(an2+bn2)≤1π∫−ππf2\frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2) \le \frac{1}{\pi}\int_{-\pi}^{\pi} f^2 (the finite core of Parseval).

0≤∥f−SN∥22=∥f∥22−(a022+∑n=1N(an2+bn2))0 \le \|f - S_N\|_2^2 = \|f\|_2^2 - \left(\frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2)\right)
Sawtooth, N=20N = 20: S20=∑n≤204n2≈6.38S_{20} = \sum_{n\le 20} \frac{4}{n^2} \approx 6.38 sits below the L2L^2 norm 2π23≈6.5797\frac{2\pi^2}{3} \approx 6.5797 — Bessel's inequality itself.
Show proof
  1. With the inner product ⟨g,h⟩=1π∫−ππg(x)h(x) dx\langle g, h\rangle = \frac{1}{\pi}\int_{-\pi}^{\pi} g(x)h(x)\,dx, the trigonometric system {1/2,cos⁡(nx),sin⁡(nx)}\{1/\sqrt{2}, \cos(nx), \sin(nx)\} is orthonormal. Writing the Fourier partial sum as SN=a02+∑n=1N(ancos⁡(nx)+bnsin⁡(nx))S_N = \frac{a_0}{2} + \sum_{n=1}^{N}(a_n\cos(nx) + b_n\sin(nx)), we get ∥f−SN∥22=⟨f−SN,f−SN⟩=∥f∥22−2⟨f,SN⟩+∥SN∥22\|f - S_N\|_2^2 = \langle f - S_N, f - S_N\rangle = \|f\|_2^2 - 2\langle f, S_N\rangle + \|S_N\|_2^2 — always nonnegative.
  2. The coefficient definitions are exactly ⟨f,cos⁡(nx)⟩=an\langle f, \cos(nx)\rangle = a_n, ⟨f,sin⁡(nx)⟩=bn\langle f, \sin(nx)\rangle = b_n, ⟨f,1⟩=a0\langle f, 1\rangle = a_0, so ⟨f,SN⟩=a022+∑n=1N(an2+bn2)\langle f, S_N\rangle = \frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2). By orthogonality, ∥SN∥22=a022+∑n=1N(an2+bn2)\|S_N\|_2^2 = \frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2) as well (every cross term is 0).
  3. Substituting gives 0≤∥f−SN∥22=∥f∥22−2EN+EN=∥f∥22−EN0 \le \|f - S_N\|_2^2 = \|f\|_2^2 - 2E_N + E_N = \|f\|_2^2 - E_N (with EN=a022+∑n=1N(an2+bn2)E_N = \frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2)) — i.e. EN≤∥f∥22E_N \le \|f\|_2^2. That is Bessel's inequality, and why the scene's bars never cross the dashed line. The N→∞N \to \infty limit is Parseval's identity (problem 3 below).

Prove that if Parseval's identity a022+∑n≥1(an2+bn2)=∥f∥22\frac{a_0^2}{2} + \sum_{n\ge 1}(a_n^2 + b_n^2) = \|f\|_2^2 holds, then the Fourier partial sums SNS_N converge to ff in L2L^2. Mention the completeness (density of trigonometric polynomials) only as the bridge — that step is idea-level.

∥f−SN∥22=∥f∥22−(a022+∑n=1N(an2+bn2))  →N→∞  0\|f - S_N\|_2^2 = \|f\|_2^2 - \left(\frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2)\right) \;\xrightarrow[N \to \infty]{}\; 0
Parabola, N=12N = 12: the energy enters as 1/n41/n^4, so S12S_{12} already captures over 99.99% of the L2L^2 norm 2π45≈38.96\frac{2\pi^4}{5} \approx 38.96 — L2L^2 convergence happening before your eyes.
Show proof
  1. Problem 2's expansion is an identity, not just an inequality: keeping ∥f−SN∥22\|f - S_N\|_2^2 instead of replacing it by 00 gives ∥f−SN∥22=∥f∥22−EN\|f - S_N\|_2^2 = \|f\|_2^2 - E_N (with EN=a022+∑n=1N(an2+bn2)E_N = \frac{a_0^2}{2} + \sum_{n=1}^{N}(a_n^2 + b_n^2)) — the cross terms vanish by orthogonality, so this holds exactly.
  2. Parseval's identity says EN→∥f∥22E_N \to \|f\|_2^2 as N→∞N \to \infty. Hence ∥f−SN∥22=∥f∥22−EN→0\|f - S_N\|_2^2 = \|f\|_2^2 - E_N \to 0 — i.e. SN→fS_N \to f in L2L^2. That one step, from inequality to equality, is the whole argument: the implication itself is completely proved.
  3. The bridge (idea level): Parseval's identity itself needs the trigonometric system to be "complete" — finite trigonometric polynomials must approximate ff in L2L^2 to any accuracy. That density follows from the Weierstrass approximation theorem for continuous functions plus density of continuous functions in L2L^2; the proof is omitted here. Once the bridge stands, the implication above completes the L2L^2 convergence.

8. Series of Functions & Fourier