Fourier Series — Advanced Treatment

⚡ Key Takeaways

Fourier series represent a periodic function ff as an infinite sum of sines and cosines (equivalently, complex exponentials). Key result: under mild conditions, f(x)=∑ncneinxf(x) = \sum_{n} c_n e^{inx} where the coefficients cnc_n are integrals of ff against e−inxe^{-inx}, and convergence holds in the L2L^2 sense (Parseval) and pointwise where ff is nice. Applies to signal processing, PDEs (heat/wave), harmonic analysis, number theory. Originated with Joseph Fourier (1807–1822) studying heat conduction; rigorous foundations by Dirichlet, Riemann, Lebesgue, Fejér, Carleson.

💡 The Core Insight

The complex exponentials {en(x)=einx}n∈Z\{e_n(x) = e^{inx}\}_{n\in\mathbb{Z}} form a complete orthonormal basis of the Hilbert space L2[−π,π]L^2[-\pi,\pi] (normalized by 12π∫\tfrac{1}{2\pi}\int). Expanding ff in this basis is exactly projecting a vector onto orthonormal axes — except the space is infinite-dimensional. Everything else (decay of coefficients ↔\leftrightarrow smoothness, Parseval ↔\leftrightarrow Pythagoras, convolution ↔\leftrightarrow multiplication) follows from this single geometric fact.

Formal Statement

DefinitionFourier Coefficients and Series

Let f:R→Cf:\mathbb{R}\to\mathbb{C} be 2π2\pi-periodic and integrable on [−π,π][-\pi,\pi]. Its complex Fourier coefficients are

1
f^(n)=cn=12π∫−ππf(x) e−inx dx,n∈Z.\quad \hat{f}(n) = c_n = \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x)\, e^{-inx}\, dx, \qquad n\in\mathbb{Z}.

Derivation hint: project ff onto ene_n using the inner product ⟨f,g⟩=12π∫−ππfgˉ dx\langle f,g\rangle = \frac{1}{2\pi}\int_{-\pi}^{\pi} f\bar g\,dx; orthonormality ⟨em,en⟩=δmn\langle e_m,e_n\rangle=\delta_{mn} isolates the nn-th coefficient. The Fourier series of ff is the formal sum

2
f(x)∼∑n=−∞∞cn einx.\quad f(x) \sim \sum_{n=-\infty}^{\infty} c_n\, e^{inx}.

Derivation hint: the symbol ∼\sim ("is associated with") avoids asserting convergence until proven; it becomes == under conditions specified below. The real form uses an,bna_n,b_n:

3
f(x)∼a02+∑n=1∞(ancos⁡nx+bnsin⁡nx),\quad f(x) \sim \frac{a_0}{2} + \sum_{n=1}^{\infty}\left( a_n\cos nx + b_n\sin nx\right),
4
an=1π∫−ππf(x)cos⁡nx dx,bn=1π∫−ππf(x)sin⁡nx dx.\quad a_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\cos nx\, dx,\qquad b_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\sin nx\, dx.

Derivation hint: substitute e±inx=cos⁡nx±isin⁡nxe^{\pm inx}=\cos nx \pm i\sin nx into [2]; collect terms to get an=cn+c−na_n = c_n + c_{-n}, bn=i(cn−c−n)b_n = i(c_n - c_{-n}).

Symbols: cn,f^(n)c_n,\hat f(n) = complex coefficient; an,bna_n,b_n = real cosine/sine coefficients; nn = harmonic index (frequency); einxe^{inx} = the nn-th harmonic of angular frequency nn.

DefinitionPartial Sums and Dirichlet Kernel

The NN-th partial sum and its integral representation are

5
SNf(x)=∑n=−NNcneinx=12π∫−ππf(x−t) DN(t) dt,\quad S_N f(x) = \sum_{n=-N}^{N} c_n e^{inx} = \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x-t)\, D_N(t)\, dt,

where the Dirichlet kernel is

6
DN(t)=∑n=−NNeint=sin⁡ ⁣((N+12)t)sin⁡(t/2).\quad D_N(t) = \sum_{n=-N}^{N} e^{int} = \frac{\sin\!\big((N+\tfrac12)t\big)}{\sin(t/2)}.

Derivation hint: insert [1] into the sum [5], swap sum and integral, recognize ∑ein(x−t)=DN(x−t)\sum e^{in(x-t)} = D_N(x-t); the closed form is a geometric series ∑−NNrn\sum_{-N}^{N} r^n with r=eitr=e^{it}.

TheoremParseval / Plancherel Identity

For f∈L2[−π,π]f\in L^2[-\pi,\pi],

7
12π∫−ππ∣f(x)∣2 dx=∑n=−∞∞∣cn∣2.\quad \frac{1}{2\pi}\int_{-\pi}^{\pi}|f(x)|^2\,dx = \sum_{n=-\infty}^{\infty}|c_n|^2.

Derivation hint: this is the Pythagorean theorem in L2L^2; completeness of {en}\{e_n\} upgrades Bessel's inequality ∑∣cn∣2≤∥f∥2\sum|c_n|^2 \le \|f\|^2 to equality. In particular the map f↦(cn)f\mapsto(c_n) is an isometry L2[−π,π]→ℓ2(Z)L^2[-\pi,\pi]\to \ell^2(\mathbb{Z}), and SNf→fS_N f \to f in L2L^2-norm for every square-integrable ff.

TheoremDirichlet Pointwise Convergence

If ff is 2π2\pi-periodic, piecewise continuous, and has left/right derivatives at x0x_0, then

8
lim⁡N→∞SNf(x0)=f(x0+)+f(x0−)2.\quad \lim_{N\to\infty} S_N f(x_0) = \frac{f(x_0^+) + f(x_0^-)}{2}.

Derivation hint: write SNf(x0)−f(x0+)+f(x0−)2S_N f(x_0) - \frac{f(x_0^+)+f(x_0^-)}{2} as an integral against DND_N; split into [−δ,δ][-\delta,\delta] and the rest; apply the Riemann–Lebesgue lemma after dividing by sin⁡(t/2)\sin(t/2) (the local-integrability "Dini condition" makes the quotient integrable). At points of continuity this gives SNf(x0)→f(x0)S_N f(x_0)\to f(x_0).

Why It Holds / Derivation

ProofOrthogonality and the Coefficient Formula

Step 1 — Inner product and orthonormality. Define ⟨f,g⟩=12π∫−ππfgˉ dx\langle f,g\rangle = \frac{1}{2\pi}\int_{-\pi}^{\pi} f\bar g\,dx. Compute for m≠nm\ne n:

⟨em,en⟩=12π∫−ππei(m−n)xdx=12π⋅ei(m−n)xi(m−n)∣−ππ=0,\langle e_m, e_n\rangle = \frac{1}{2\pi}\int_{-\pi}^{\pi} e^{i(m-n)x}dx = \frac{1}{2\pi}\cdot\frac{e^{i(m-n)x}}{i(m-n)}\Big|_{-\pi}^{\pi} = 0,

since ei(m−n)π=e−i(m−n)πe^{i(m-n)\pi}=e^{-i(m-n)\pi}. For m=nm=n the integrand is 11, giving ⟨en,en⟩=1\langle e_n,e_n\rangle=1. Thus ⟨em,en⟩=δmn\langle e_m,e_n\rangle = \delta_{mn}.

Step 2 — Extract coefficients. Assuming f=∑kckekf=\sum_k c_k e_k converges nicely, take inner product with ene_n:

⟨f,en⟩=∑kck⟨ek,en⟩=cn.\langle f, e_n\rangle = \sum_k c_k\langle e_k, e_n\rangle = c_n.

Expanding ⟨f,en⟩=12π∫fe−inxdx\langle f,e_n\rangle = \frac{1}{2\pi}\int f e^{-inx}dx recovers [1].

Step 3 — Bessel's inequality. For any NN, the projection SNfS_N f is the closest point in span{e−N,…,eN}\mathrm{span}\{e_{-N},\dots,e_N\} to ff. Since f−SNf⊥enf - S_N f \perp e_n for ∣n∣≤N|n|\le N:

∥f∥2=∥SNf∥2+∥f−SNf∥2≥∥SNf∥2=∑∣n∣≤N∣cn∣2.\|f\|^2 = \|S_N f\|^2 + \|f - S_N f\|^2 \ge \|S_N f\|^2 = \sum_{|n|\le N}|c_n|^2.

Letting N→∞N\to\infty: ∑∣cn∣2≤∥f∥2<∞\sum|c_n|^2 \le \|f\|^2 < \infty. Hence cn→0c_n\to 0 (Riemann–Lebesgue).

Step 4 — Completeness ⇒\Rightarrow Parseval. The key analytic input is that trigonometric polynomials are dense in L2L^2 (proved via Fejér's theorem, below). Density forces ∥f−SNf∥→0\|f - S_N f\|\to 0, so Bessel becomes equality [7]. ■\blacksquare

∎
ProofFejér's Theorem — Cesàro Sums Always Work

The Dirichlet kernel is not positive and not an approximate identity, which is why SNfS_N f can misbehave. The fix: average.

Step 1 — Cesàro means. Define σNf=1N+1∑k=0NSkf=12π∫−ππf(x−t) KN(t) dt\sigma_N f = \frac{1}{N+1}\sum_{k=0}^{N} S_k f = \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x-t)\,K_N(t)\,dt, where the Fejér kernel is

9
KN(t)=1N+1∑k=0NDk(t)=1N+1(sin⁡((N+1)t/2)sin⁡(t/2))2≥0.\quad K_N(t) = \frac{1}{N+1}\sum_{k=0}^{N} D_k(t) = \frac{1}{N+1}\left(\frac{\sin((N+1)t/2)}{\sin(t/2)}\right)^2 \ge 0.

Derivation hint: sum the Dirichlet closed forms using the telescoping identity ∑ksin⁡((k+12)t)=sin⁡2((N+1)t/2)sin⁡(t/2)\sum_k \sin((k+\frac12)t) = \frac{\sin^2((N+1)t/2)}{\sin(t/2)}; positivity is the crucial gain over DND_N.

Step 2 — Approximate identity properties. KN≥0K_N\ge 0, 12π∫KN=1\frac{1}{2\pi}\int K_N = 1, and KNK_N concentrates at 00. For continuous ff, σNf→f\sigma_N f \to f uniformly.

Step 3 — Consequence. Trigonometric polynomials (the σNf\sigma_N f) approximate every continuous function uniformly, hence are dense in L2L^2, completing Step 4 of the previous proof. ■\blacksquare

∎
JF
Joseph Fourier
1768–1830

A French mathematician and physicist who accompanied Napoleon to Egypt and later served as prefect of Isère. In his 1807 memoir and 1822 treatise Théorie analytique de la chaleur, Fourier made the audacious claim that any function — even discontinuous ones with corners — could be written as a sum of sines and cosines, in order to solve the heat equation. His contemporaries (Lagrange, Laplace) objected strenuously; the claim was too broad and his arguments non-rigorous. The 19th century vindicated his physical instinct while sharpening exactly which functions and what kind of convergence. Fourier also discovered the greenhouse effect.

Building Intuition

🧠 Intuition

Think of a periodic signal as a musical chord. The Fourier coefficients are the recipe: how much of each pure tone (pitch nn) is present, and with what phase. Three guiding pictures: 1. Geometry: L2L^2 is an infinite-dimensional space with perpendicular axes ene_n. Computing cnc_n is dropping a perpendicular onto axis nn; Parseval is "length² = sum of squared components." 2. Smoothness ↔\leftrightarrow decay: A smooth function is built mostly from low frequencies, so cnc_n decays fast. Each derivative multiplies cnc_n by inin, so f∈Ck⇒cn=o(n−k)f\in C^k \Rightarrow c_n = o(n^{-k}). Conversely, jumps force slow ∼1/n\sim 1/n decay. 3. Why averaging (Fejér) helps: SNS_N can overshoot near jumps (Gibbs) because DND_N has large negative lobes that "ring." The Fejér kernel KNK_N is a positive bump — a blunt, honest averaging instrument — so it never overshoots and always converges for continuous data.

Figure
Dirichlet kernel D5D_5 vs. Fejér kernel K5K_5: the negative lobes of DND_N cause Gibbs ringing; KN≥0K_N\ge 0 does not.
t value −π +π D₅ (oscillates, negative lobes) K₅ ≥ 0 (positive bump) D₅ dips below zero → ringing; K₅ stays positive → uniform convergence.

Worked Examples

ExampleSquare Wave — Coefficients, Sum, and Gibbs

Given: the odd 2π2\pi-periodic square wave f(x)=sgn(sin⁡x)f(x) = \mathrm{sgn}(\sin x), i.e. f(x)=+1f(x)=+1 on (0,π)(0,\pi), −1-1 on (−π,0)(-\pi,0).

Step 1 — Symmetry. ff is odd ⇒an=0\Rightarrow a_n = 0 for all nn, and we need only bnb_n.

Step 2 — Compute bnb_n.

bn=1π∫−ππfsin⁡nx dx=2π∫0πsin⁡nx dx=2π⋅1−cos⁡nπn=2π⋅1−(−1)nn.b_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f\sin nx\,dx = \frac{2}{\pi}\int_{0}^{\pi}\sin nx\,dx = \frac{2}{\pi}\cdot\frac{1-\cos n\pi}{n} = \frac{2}{\pi}\cdot\frac{1-(-1)^n}{n}.

So bn=0b_n = 0 for even nn, and bn=4πnb_n = \dfrac{4}{\pi n} for odd nn.

Step 3 — Series.

 f(x)=4π∑k=0∞sin⁡((2k+1)x)2k+1=4π(sin⁡x+13sin⁡3x+15sin⁡5x+⋯ ) \boxed{\,f(x) = \frac{4}{\pi}\sum_{k=0}^{\infty}\frac{\sin\big((2k+1)x\big)}{2k+1} = \frac{4}{\pi}\left(\sin x + \tfrac{1}{3}\sin 3x + \tfrac{1}{5}\sin 5x + \cdots\right)\,}

Step 4 — Check at x=π/2x=\pi/2: the series gives 4π(1−13+15−⋯ )=4π⋅π4=1=f(π/2).\frac{4}{\pi}(1 - \tfrac13 + \tfrac15 - \cdots) = \frac{4}{\pi}\cdot\frac{\pi}{4} = 1 = f(\pi/2). ✓ (Leibniz series for π/4\pi/4.)

Step 5 — Parseval check: 12π∫∣f∣2=1\frac{1}{2\pi}\int|f|^2 = 1 and ∑∣cn∣2=12∑bn2=12⋅16π2∑odd1n2=8π2⋅π28=1.\sum|c_n|^2 = \tfrac12\sum b_n^2 = \tfrac12\cdot\frac{16}{\pi^2}\sum_{\text{odd}}\frac1{n^2} = \frac{8}{\pi^2}\cdot\frac{\pi^2}{8} = 1. ✓

Gibbs: near the jump, SNS_N overshoots ff by ≈8.95%\approx 8.95\% of the jump height (a fixed ≈0.0895×2\approx 0.0895\times 2) regardless of NN.

ExampleParabola — Solving for ζ(2)\zeta(2)

Given: f(x)=x2f(x) = x^2 on [−π,π][-\pi,\pi], extended 2π2\pi-periodically (even function).

Step 1 — a0a_0: a0=1π∫−ππx2 dx=1π⋅2π33=2π23.a_0 = \frac{1}{\pi}\int_{-\pi}^{\pi}x^2\,dx = \frac{1}{\pi}\cdot\frac{2\pi^3}{3} = \frac{2\pi^2}{3}.

Step 2 — ana_n (n≥1n\ge1): integrate by parts twice,

an=2π∫0πx2cos⁡nx dx=2π⋅2π(−1)nn2=4(−1)nn2.a_n = \frac{2}{\pi}\int_0^{\pi}x^2\cos nx\,dx = \frac{2}{\pi}\cdot\frac{2\pi(-1)^n}{n^2} = \frac{4(-1)^n}{n^2}.

(bn=0b_n = 0 by evenness.)

Step 3 — Series:

 x2=π23+4∑n=1∞(−1)nn2cos⁡nx \boxed{\,x^2 = \frac{\pi^2}{3} + 4\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2}\cos nx\,}

Step 4 — Evaluate at x=πx=\pi (a continuity point of the periodic extension, value π2\pi^2):

π2=π23+4∑n=1∞(−1)n(−1)nn2=π23+4∑n=1∞1n2.\pi^2 = \frac{\pi^2}{3} + 4\sum_{n=1}^{\infty}\frac{(-1)^n(-1)^n}{n^2} = \frac{\pi^2}{3} + 4\sum_{n=1}^{\infty}\frac{1}{n^2}.

Solving: ∑n=1∞1n2=π26\sum_{n=1}^\infty \frac{1}{n^2} = \dfrac{\pi^2}{6} — the Basel problem, units dimensionless. ✓

Step 5 — Evaluate at x=0x=0: 0=π23+4∑(−1)nn20 = \frac{\pi^2}{3} + 4\sum\frac{(-1)^n}{n^2} gives ∑(−1)n−1n2=π212\sum\frac{(-1)^{n-1}}{n^2} = \frac{\pi^2}{12}.

Common Misconceptions

⚠️ Common mistake

"Fourier series of a continuous function converges to it everywhere." False. Du Bois-Reymond (1873) constructed a continuous periodic function whose Fourier series diverges at a point. Continuity alone is not enough for pointwise convergence of SNS_N. What is guaranteed: (a) Cesàro sums σNf\sigma_N f converge uniformly (Fejér); (b) SNf→fS_N f \to f in L2L^2; (c) SNf→fS_N f\to f almost everywhere (Carleson). Pointwise everywhere needs extra regularity (Dini/Dirichlet conditions or bounded variation).

⚠️ Common mistake

"You can differentiate a Fourier series term by term." Not always. Term-by-term differentiation multiplies cnc_n by inin, which may destroy convergence. The square wave's series converges, but differentiating gives 4π∑cos⁡((2k+1)x)\frac{4}{\pi}\sum\cos((2k+1)x) which diverges (its "sum" is a Dirac comb, a distribution). Term-by-term integration is much safer — it divides by nn and improves convergence.

CounterexampleA continuous function whose series diverges at 0

One classical construction (lacunary, Fejér–Lebesgue style): build

g(x)=∑k=1∞1k2 Tnk(x),Tn(x)=∑j=1nsin⁡jxj⋅(suitable shift),g(x) = \sum_{k=1}^{\infty} \frac{1}{k^2}\, T_{n_k}(x), \qquad T_n(x) = \sum_{j=1}^{n}\frac{\sin jx}{j}\cdot(\text{suitable shift}),

with rapidly increasing nkn_k. Each block TnkT_{n_k} is a trigonometric polynomial whose partial sums grow like log⁡nk\log n_k at x=0x=0. Choosing nkn_k so that log⁡nkk2→∞\frac{\log n_k}{k^2}\to\infty along a subsequence makes SNg(0)S_N g(0) unbounded, while the 1k2\frac{1}{k^2} weights keep gg uniformly convergent, hence continuous. Moral: uniform convergence of the function's defining series does not control the Dirichlet partial sums.

Connections

connection

Fourier series is the periodic/discrete-spectrum member of a family:

  • <a class="wiki-link" href="/wiki/fourier-transform">Fourier Transform</a> — the non-periodic limit (L→∞L\to\infty): sums over nn become integrals over continuous frequency ξ\xi.
  • <span class="wiki-link-missing">Hilbert Space</span> — Parseval is the abstract Pythagorean theorem; {en}\{e_n\} is the canonical complete orthonormal basis, prototype for general orthonormal expansions.
  • <a class="wiki-link" href="/wiki/math-diffeq-sturm-liouville-theory">Sturm–Liouville Theory</a> — sines/cosines are eigenfunctions of −d2/dx2-d^2/dx^2 with periodic boundary conditions; general SL problems give other orthogonal bases (Legendre, Bessel).
  • <span class="wiki-link-missing">Convolution Theorem</span> — convolution on the circle becomes pointwise multiplication of coefficients: f∗g^(n)=f^(n)g^(n)\widehat{f*g}(n) = \hat f(n)\hat g(n).
  • <a class="wiki-link" href="/wiki/distribution-theory">Distribution Theory</a> — the Dirac comb and termwise-differentiated series live here; ∑einx=2π∑kδ(x−2πk)\sum e^{inx} = 2\pi\sum_k\delta(x-2\pi k).
  • <span class="wiki-link-missing">Discrete Fourier Transform</span> — sampling Fourier series at NN points gives the DFT, computed by the FFT.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1748 — Euler & d'Alembert: the vibrating string controversy; trigonometric sums appear but their generality is fiercely disputed.
- 1753 — Daniel Bernoulli: claims all string motions are superpositions of harmonics; Euler and d'Alembert reject the universality of the claim.
- 1807 — Fourier: submits his memoir on heat to the French Academy; the committee (Lagrange, Laplace) is skeptical of the convergence claims.
- 1822 — Fourier: publishes Théorie analytique de la chaleur, the foundational text.
- 1829 — Dirichlet: gives the first rigorous convergence theorem (Dirichlet conditions), founding modern analysis of the question.
- 1854 — Riemann: his Habilitationsschrift on trigonometric series introduces the Riemann integral to handle Fourier coefficients rigorously.
- 1873 — du Bois-Reymond: continuous function with divergent Fourier series — convergence is genuinely subtle.
- 1900–1906 — Fejér & Lebesgue: Fejér's Cesàro-summability theorem (1900) and Lebesgue integration (1902) place the theory on firm modern footing; Bessel/Parseval completed.
- 1966 — Carleson: proves L2L^2 functions converge a.e. (extended to LpL^p, p>1p>1, by Hunt 1968), resolving the Lusin conjecture.

Subtleties & Limits

open-problem

Convergence at the boundary of L1L^1. Carleson's theorem fails for L1L^1: Kolmogorov (1923) built an L1L^1 function whose Fourier series diverges everywhere. The precise frontier — exactly which integrability/regularity conditions force a.e. convergence — involves subtle maximal-function estimates (the Carleson operator) whose sharp constants and multidimensional analogues remain active research. In several variables, the order of summation matters enormously: spherical vs. rectangular partial sums behave very differently, and sharp convergence results for Bochner–Riesz means in dimension ≥2\ge 2 are connected to deep open problems in harmonic analysis (the Bochner–Riesz and restriction conjectures), which intertwine with the Kakeya problem and remain unsolved.

See Also

Fourier Transform · Discrete Fourier Transform · Hilbert Space · Parseval's Theorem · Gibbs Phenomenon · Convolution Theorem · Sturm–Liouville Theory · Heat Equation · Wavelets · Distribution Theory