Convergence of Fourier Series Solutions

When we solve the heat equation on a rod by separation of variables, we obtain a formal infinite series. This series uses sines or cosines, with coefficients computed from an initial temperature profile. But writing down a series is not the same as knowing it equals anything at all. Does the series actually converge, and if so, to the function we started with? Does it converge fast enough to justify differentiating term by term? This would confirm the series really solves the PDE. These questions separate a formal manipulation from a genuine theorem. This matters because the entire method of Fourier Series Solutions of Boundary Value Problems rests on a promise. The promise is that an arbitrary initial condition can be faithfully reconstructed, and re-differentiated, from its Fourier coefficients. The promise is not automatic. Pointwise convergence of a Fourier series can fail even for continuous functions. Term-by-term differentiation can destroy a perfectly good series. What rescues the theory is a remarkable structural fact. The heat equation itself manufactures the smoothness needed for convergence. It does this through exponentially decaying coefficients e−n2π2α2t/L2e^{-n^2\pi^2\alpha^2 t/L^2} that appear the instant t>0t>0. The big picture has three layers, ordered from weakest to strongest guarantee. Mean-square (or L2L^2) convergence is essentially free. It is guaranteed by completeness of the eigenfunctions, in the sense of Eigenfunction Expansions, for any function of finite energy. Uniform convergence requires more — typically piecewise smoothness and continuity. It gives a series that behaves like a genuine function, term-by-term integrable and continuous. Pointwise convergence sits in between, governed by the Dirichlet–Jordan test. It pins down the value of the series at points of discontinuity. This happens via the famous "average of one-sided limits" rule. This article proves the classical convergence theorems used to justify separation-of-variables solutions. It explains the smoothing mechanism of the heat kernel. This mechanism makes solutions of the heat equation infinitely differentiable for t>0t>0, even from rough data. It also catalogs the exact hypotheses each mode of convergence needs. A counterexample shows what fails when they are dropped.

Key takeaways
  • Fourier series of a function ff converge in mean square (L2L^2) whenever ff has finite energy — no smoothness needed.
  • Pointwise convergence at xx needs local regularity (e.g., piecewise smooth); the sum equals 12[f(x−)+f(x+)]\tfrac12[f(x^-)+f(x^+)].
  • Uniform convergence requires ff continuous, periodic, and piecewise smooth; then the series is a genuine continuous function.
  • Term-by-term differentiation of the solution series is justified for the heat equation because factors e−n2π2α2t/L2e^{-n^2\pi^2\alpha^2t/L^2} crush any polynomial growth in the Fourier coefficients, for every t>0t>0.
  • This exponential smoothing means heat-equation solutions are C∞C^\infty in x,tx,t for t>0t>0, no matter how rough (even merely L2L^2) the initial data is.
  • Wave-equation series lack this decay, so convergence there is more delicate and genuinely limited by the smoothness of the initial data.
  • Key idea: convergence of the series and validity of the PDE solution are separate questions — the second is won by exploiting the smoothing built into the exponential time factors, not by assuming the data is nice.

Where this lives today

The three-tier convergence framework here — mean-square, pointwise, uniform — is the working toolkit anywhere eigenfunction expansions are used to solve linear PDEs: heat conduction, vibrating membranes, quantum mechanical wavefunctions expanded in energy eigenstates, and Sturm–Liouville problems generally, as previewed in Eigenfunction Expansions. The exponential-smoothing argument used for the heat kernel is the prototype for parabolic regularity theory, which shows that solutions of diffusion-type PDEs (including the Black–Scholes equation in mathematical finance, and diffusion models in population biology) are automatically smooth away from the initial time, regardless of how irregular the initial data is. In signal processing, the Dirichlet kernel's poor L1L^1 behavior (responsible for the Gibbs phenomenon) motivates the use of Fejér and other averaging kernels, which are nonnegative and give better-behaved (uniformly convergent) approximations for merely continuous signals — a design principle in digital filtering and in windowing methods for the discrete Fourier transform used throughout numerical analysis and cryptographic hash constructions relying on fast transforms. The question of convergence "how far can you weaken the hypotheses" continues into deep 20th-century analysis: Carleson's theorem (1966) shows L2L^2 data already gives almost-everywhere convergence, a landmark result in harmonic analysis with influence on ergodic theory. Finally, whether a formal series solution actually solves the PDE — the differentiability question resolved here for the heat equation — is the first test case for the broader theory of Well-Posedness of PDE Problems, where existence, uniqueness, and continuous dependence on data are established rigorously.

Ask the tutor: Why doesn't Gibbs phenomenon contradict Dirichlet's pointwise convergence theorem, and how does the Gibbs overshoot behave as we add more terms?

DefinitionModes of convergence for a Fourier series

Let f:[−L,L]→Rf:[-L,L]\to\mathbb{R} be integrable, extended periodically with period 2L2L, and let

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

and let SN(x)S_N(x) denote the NN-th partial sum.

Mean-square convergence. The series converges to ff in L2(−L,L)L^2(-L,L) if

lim⁡N→∞∫−LL∣f(x)−SN(x)∣2 dx=0.\lim_{N\to\infty}\int_{-L}^{L}\bigl|f(x)-S_N(x)\bigr|^2\,dx = 0.

Pointwise convergence. The series converges pointwise at x0x_0 if lim⁡N→∞SN(x0)\lim_{N\to\infty}S_N(x_0) exists (and one asks separately whether the limit equals f(x0)f(x_0)).

Uniform convergence. The series converges uniformly on [−L,L][-L,L] if

lim⁡N→∞ sup⁡x∈[−L,L]∣f(x)−SN(x)∣=0.\lim_{N\to\infty}\ \sup_{x\in[-L,L]}\bigl|f(x)-S_N(x)\bigr| = 0.

Uniform convergence implies pointwise convergence, which for series of continuous functions implies (via dominated convergence on a finite interval) mean-square convergence; the converses are false in general.

Intuition

Think of a Fourier series as an infinite orchestra: each term ancos⁡(nπx/L)a_n\cos(n\pi x/L) or bnsin⁡(nπx/L)b_n\sin(n\pi x/L) is an instrument playing at frequency nn, and the coefficients tell you the volume assigned to that instrument. Mean-square convergence just says that the total energy left in the unplayed instruments (the tail of the series) shrinks to zero — a statement about aggregate loudness, not about what happens at any single instant xx. This is why it needs almost nothing: Eigenfunction Expansions of any energy-finite signal automatically have vanishing tail energy, by completeness of the trigonometric system. Pointwise convergence is a much more local and delicate question: does the orchestra's output converge to a definite value at this exact moment x0x_0? Gibbs-type oscillations near a jump show that partial sums can overshoot substantially near a discontinuity even while converging in energy nearby. The classical fix is the Dirichlet–Jordan criterion: if ff is piecewise smooth (piecewise C1C^1, with one-sided derivatives existing at jumps), the partial sums converge at every point to the midpoint of the jump — a clean, computable rule. Uniform convergence is the strongest and rarest of the three: it says the maximum error over the whole interval goes to zero, so the partial sums approximate ff uniformly well everywhere at once, and consequently the limit must be continuous. A jump discontinuity is instantly fatal to uniform convergence (partial sums of continuous functions cannot converge uniformly to a discontinuous limit), which is why continuity of ff (with matching periodic boundary values) is essential.

Figure
Three notions of convergence, illustrated by a sawtooth-type function with corner at x=0
x f(x) f(x): piecewise smooth, continuous S_N(x): partial sum, N large corner: uniform conv. OK (f continuous)
TheoremDirichlet–Jordan pointwise convergence theorem

Let f:R→Rf:\mathbb{R}\to\mathbb{R} be periodic with period 2L2L, integrable on [−L,L][-L,L], and piecewise smooth: there is a finite partition −L=x0<x1<⋯<xk=L-L=x_0<x_1<\cdots<x_k=L such that on each open subinterval (xj−1,xj)(x_{j-1},x_j), ff is continuously differentiable and ff, f′f' extend continuously to the closed subinterval. Let SN(x)S_N(x) be the NN-th partial sum of the Fourier series of ff. Then for every x0∈Rx_0\in\mathbb{R},

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

where f(x0±)f(x_0^\pm) denote the one-sided limits of ff at x0x_0 (which exist by piecewise smoothness). In particular, if ff is continuous at x0x_0, the series converges to f(x0)f(x_0). Moreover, if ff is continuous everywhere on R\mathbb{R} (with f(−L)=f(L)f(-L)=f(L) so the periodic extension is continuous) and piecewise smooth, then SN→fS_N \to f uniformly on [−L,L][-L,L].

Proof

We give the classical proof via the Dirichlet kernel, a technique due to Dirichlet and refined by Jordan.

Step 1: The Dirichlet kernel representation. Write the partial sum using the coefficient integrals; by linearity,

SN(x)=12L∫−LLf(t) DN ⁣(π(x−t)L)dt,DN(θ):=1+2∑n=1Ncos⁡(nθ).S_N(x) = \frac{1}{2L}\int_{-L}^{L} f(t)\,D_N\!\left(\frac{\pi(x-t)}{L}\right)dt, \qquad D_N(\theta) := 1 + 2\sum_{n=1}^{N}\cos(n\theta).

This follows by substituting the formulas for an,bna_n,b_n into SN(x)=a02+∑n=1N(ancos⁡nπxL+bnsin⁡nπxL)S_N(x)=\frac{a_0}{2}+\sum_{n=1}^N(a_n\cos\frac{n\pi x}{L}+b_n\sin\frac{n\pi x}{L}) and using the cosine addition identity cos⁡nπtLcos⁡nπxL+sin⁡nπtLsin⁡nπxL=cos⁡nπ(x−t)L\cos\frac{n\pi t}{L}\cos\frac{n\pi x}{L}+\sin\frac{n\pi t}{L}\sin\frac{n\pi x}{L}=\cos\frac{n\pi(x-t)}{L}.

Step 2: Closed form of DND_N. Using 2cos⁡θsin⁡(θ/2)=sin⁡(3θ/2)−sin⁡(θ/2)2\cos\theta\sin(\theta/2) = \sin(3\theta/2)-\sin(\theta/2) telescopically,

DN(θ)=sin⁡((N+12)θ)sin⁡(θ/2),θ≠2πm.D_N(\theta) = \frac{\sin\bigl((N+\tfrac12)\theta\bigr)}{\sin(\theta/2)}, \qquad \theta \ne 2\pi m.

Indeed, multiply DN(θ)sin⁡(θ/2)D_N(\theta)\sin(\theta/2) term by term: sin⁡(θ/2)+2∑n=1Ncos⁡(nθ)sin⁡(θ/2)=sin⁡(θ/2)+∑n=1N[sin⁡((n+12)θ)−sin⁡((n−12)θ)]\sin(\theta/2) + 2\sum_{n=1}^N\cos(n\theta)\sin(\theta/2) = \sin(\theta/2)+\sum_{n=1}^N[\sin((n+\tfrac12)\theta)-\sin((n-\tfrac12)\theta)], a telescoping sum collapsing to sin⁡((N+12)θ)\sin((N+\tfrac12)\theta).

Step 3: Normalization of the kernel. Since ∫−LLDN(π(x−t)/L) dt=2L\int_{-L}^{L} D_N(\pi(x-t)/L)\,dt = 2L for all NN (each cosine integrates to 00 over a full period, leaving only the constant term 11), we have

12L∫−LLDN ⁣(π(x−t)L)dt=1.\frac{1}{2L}\int_{-L}^{L} D_N\!\left(\frac{\pi(x-t)}{L}\right) dt = 1.

Hence, changing variables t=x−Lπθt = x-\frac{L}{\pi}\theta and using periodicity of ff and DND_N, we may write, for fixed x0x_0,

SN(x0)−f(x0−)+f(x0+)2=12L∫0L[f(x0+t)−f(x0+)]DN ⁣(πtL)dt+12L∫−L0[f(x0+t)−f(x0−)]DN ⁣(πtL)dt.S_N(x_0) - \frac{f(x_0^-)+f(x_0^+)}{2} = \frac{1}{2L}\int_{0}^{L} \bigl[f(x_0+t)-f(x_0^+)\bigr] D_N\!\left(\frac{\pi t}{L}\right) dt + \frac{1}{2L}\int_{-L}^{0} \bigl[f(x_0+t)-f(x_0^-)\bigr] D_N\!\left(\frac{\pi t}{L}\right) dt.

This uses 12L∫0LDN(πt/L) dt=12L∫−L0DN(πt/L) dt=12\frac{1}{2L}\int_0^L D_N(\pi t/L)\,dt = \frac{1}{2L}\int_{-L}^0 D_N(\pi t/L)\,dt = \tfrac12, which holds because DND_N is even and the full-interval integral is 2L2L.

Step 4: Riemann–Lebesgue for the two half-integrals. Consider the first integral. Define

g(t):=f(x0+t)−f(x0+)sin⁡(πt/(2L)),0<t≤L.g(t) := \frac{f(x_0+t)-f(x_0^+)}{\sin(\pi t/(2L))}, \qquad 0<t\le L.

By piecewise smoothness, f(x0+t)−f(x0+)=f′(x0+) t+o(t)f(x_0+t)-f(x_0^+) = f'(x_0^+)\,t + o(t) as t→0+t\to0^+ (one-sided differentiability at the jump/point, guaranteed by the hypothesis), while sin⁡(πt/(2L))∼πt2L\sin(\pi t/(2L)) \sim \frac{\pi t}{2L}. Hence

lim⁡t→0+g(t)=2Lπf′(x0+),\lim_{t\to0^+} g(t) = \frac{2L}{\pi}f'(x_0^+),

so gg extends to a bounded, piecewise continuous function on [0,L][0,L] (piecewise smoothness of ff on the finitely many subintervals guarantees gg is bounded away from t=0t=0 too, since sin⁡(πt/2L)\sin(\pi t/2L) is bounded away from 00 there). A bounded, integrable function's Fourier coefficients tend to 00; concretely, by the Riemann–Lebesgue lemma (itself proved by approximating gg in L1L^1 by step functions, for which the oscillatory integral against sin⁡((N+12)θ)\sin((N+\tfrac12)\theta) visibly vanishes as N→∞N\to\infty),

∫0Lg(t) sin⁡ ⁣((N+12)πtL)dt  ⟶  0(N→∞).\int_0^L g(t)\,\sin\!\left((N+\tfrac12)\frac{\pi t}{L}\right) dt \;\longrightarrow\; 0 \quad (N\to\infty).

But the first half-integral in Step 3 is exactly 12L∫0Lg(t)sin⁡((N+12)πt/L) dt\frac{1}{2L}\int_0^L g(t)\sin((N+\tfrac12)\pi t/L)\,dt by Step 2's closed form for DND_N. The second half-integral is handled identically using f′(x0−)f'(x_0^-). Both vanish as N→∞N\to\infty.

Step 5: Conclusion. Combining Steps 3–4,

SN(x0)−f(x0−)+f(x0+)2⟶0,S_N(x_0) - \frac{f(x_0^-)+f(x_0^+)}{2} \longrightarrow 0,

which is the claimed pointwise limit. If ff is continuous at x0x_0 then f(x0−)=f(x0+)=f(x0)f(x_0^-)=f(x_0^+)=f(x_0), giving SN(x0)→f(x0)S_N(x_0)\to f(x_0).

Step 6: Uniformity when ff is globally continuous and piecewise smooth. When ff is continuous on all of R\mathbb{R} (periodic, matching endpoints) and piecewise C1C^1, integration by parts on each smooth piece gives, after summing the finitely many boundary terms (which cancel by periodicity and continuity of ff).

an=−Lnπ b~n,bn=Lnπ a~n,a_n = -\frac{L}{n\pi}\,\tilde b_n, \qquad b_n = \frac{L}{n\pi}\,\tilde a_n,

where a~n,b~n\tilde a_n,\tilde b_n are the Fourier coefficients of f′f' (defined piecewise). Since f′f' is piecewise continuous and bounded on a compact period, it is in L2L^2, so by Bessel's inequality (proved directly from orthogonality of the trigonometric system, without reference to this theorem) ∑(a~n2+b~n2)<∞\sum(\tilde a_n^2+\tilde b_n^2) < \infty. By the Cauchy–Schwarz inequality,

∑n=N+1∞(∣an∣+∣bn∣)≤Lπ∑n=N+1∞1n(∣a~n∣+∣b~n∣)≤Lπ(∑n=N+1∞1n2)1/2(∑n=N+1∞(a~n2+b~n2))1/2→0.\sum_{n=N+1}^{\infty} \bigl(|a_n|+|b_n|\bigr) \le \frac{L}{\pi}\sum_{n=N+1}^\infty \frac{1}{n}\bigl(|\tilde a_n|+|\tilde b_n|\bigr) \le \frac{L}{\pi}\left(\sum_{n=N+1}^\infty \frac{1}{n^2}\right)^{1/2}\left(\sum_{n=N+1}^\infty (\tilde a_n^2+\tilde b_n^2)\right)^{1/2} \to 0.

Thus the tail ∑n>N(∣an∣+∣bn∣)→0\sum_{n>N}(|a_n|+|b_n|)\to0, so by the Weierstrass MM-test the series converges uniformly on R\mathbb{R}, and its sum (already known pointwise from Step 5, using continuity of ff) equals ff everywhere. ■\blacksquare

∎

Worked examples

Example 1 — Pointwise convergence at a jump, sawtooth-type data. Let L=πL=\pi and define on (−π,π](-\pi,\pi] the function

f(x)={x+1,−π<x<0,x−1,0≤x<π,f(x) = \begin{cases} x+1, & -\pi < x < 0,\\[2pt] x-1, & 0 \le x < \pi,\end{cases}

extended 2π2\pi-periodically. This is piecewise smooth: on (−π,0)(-\pi,0) and (0,π)(0,\pi) it is linear (hence C1C^1 with derivative 11), and it has a jump discontinuity at x=0x=0 with f(0−)=1f(0^-)=1, f(0+)=−1f(0^+)=-1, and also (by periodicity) a jump at x=±πx=\pm\pi since f(π−)=π−1f(\pi^-)=\pi-1 but f(−π+)=−π+1f(-\pi^+) = -\pi+1. Since f(x)=x+h(x)f(x) = x + h(x) where hh is the odd square-wave-like jump function (h=1h=1 on (−π,0)(-\pi,0), h=−1h=-1 on (0,π)(0,\pi)), and xx is odd while hh is odd, ff is odd, so an=0a_n=0 for all n≥0n\ge0. Compute

bn=1π∫−ππf(x)sin⁡(nx) dx=2π∫0π(x−1)sin⁡(nx) dxb_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\sin(nx)\,dx = \frac{2}{\pi}\int_0^\pi (x-1)\sin(nx)\,dx

(using oddness of fsin⁡(nx)f\sin(nx)... more carefully: ff is odd and sin⁡(nx)\sin(nx) is odd, so f(x)sin⁡(nx)f(x)\sin(nx) is even, giving the factor 2∫0π2\int_0^\pi). Compute directly:

∫0πxsin⁡(nx) dx=[−xcos⁡(nx)n]0π+1n∫0πcos⁡(nx) dx=−πcos⁡(nπ)n+0=π(−1)n+1n,\int_0^\pi x\sin(nx)\,dx = \left[-\frac{x\cos(nx)}{n}\right]_0^\pi + \frac1n\int_0^\pi\cos(nx)\,dx = -\frac{\pi\cos(n\pi)}{n} + 0 = \frac{\pi(-1)^{n+1}}{n},
∫0π(−1)sin⁡(nx) dx=[cos⁡(nx)n]0π=(−1)n−1n.\int_0^\pi (-1)\sin(nx)\,dx = \left[\frac{\cos(nx)}{n}\right]_0^\pi = \frac{(-1)^n - 1}{n}.

So

bn=2π(π(−1)n+1n+(−1)n−1n)=2(−1)n+1n+2[(−1)n−1]nπ.b_n = \frac{2}{\pi}\left(\frac{\pi(-1)^{n+1}}{n} + \frac{(-1)^n-1}{n}\right) = \frac{2(-1)^{n+1}}{n} + \frac{2\bigl[(-1)^n-1\bigr]}{n\pi}.

For odd nn: (−1)n+1=1(-1)^{n+1}=1, (−1)n−1=−2(-1)^n-1=-2, so bn=2n−4nπb_n = \dfrac{2}{n} - \dfrac{4}{n\pi}. For even nn: (−1)n+1=−1(-1)^{n+1}=-1, (−1)n−1=0(-1)^n-1=0, so bn=−2nb_n = -\dfrac{2}{n}. By the Dirichlet–Jordan theorem, at x=0x=0 the series converges to f(0−)+f(0+)2=1+(−1)2=0\frac{f(0^-)+f(0^+)}{2} = \frac{1+(-1)}{2}=0 — matching the fact that every term sin⁡(n⋅0)=0\sin(n\cdot0)=0, so the series trivially sums to 00 there, consistent with the theorem. At a point of continuity such as x=π/2x=\pi/2 (where f(π/2)=π/2−1f(\pi/2)=\pi/2-1, and ff is smooth in a neighborhood since π/2≠0,π\pi/2\ne0,\pi), the theorem guarantees SN(π/2)→f(π/2)=π/2−1≈0.5708S_N(\pi/2)\to f(\pi/2)=\pi/2-1\approx0.5708, and since ff is not globally continuous (jumps at 0,±π0,\pm\pi), the theorem's uniform-convergence clause does not apply — indeed one expects Gibbs overshoot near x=0x=0.

Example 2 — Smoothing by the heat kernel: rough data becomes analytic instantly. Consider the heat equation on a rod of length L=1L=1 with insulated... take the classical Dirichlet problem

ut=α2uxx,0<x<1, t>0,u(0,t)=u(1,t)=0,u_t = \alpha^2 u_{xx}, \quad 0<x<1,\ t>0, \qquad u(0,t)=u(1,t)=0,

with initial data

u(x,0)=f(x)={1,0<x<12,0,12<x<1,u(x,0) = f(x) = \begin{cases} 1, & 0<x<\tfrac12,\\ 0, & \tfrac12<x<1,\end{cases}

a discontinuous step function — about as rough as an L2L^2 function can be while remaining bounded. By separation of variables the formal solution is

u(x,t)=∑n=1∞bn e−n2π2α2tsin⁡(nπx),bn=2∫01/2sin⁡(nπx) dx=2(1−cos⁡(nπ/2))nπ.u(x,t) = \sum_{n=1}^{\infty} b_n\, e^{-n^2\pi^2\alpha^2 t}\sin(n\pi x), \qquad b_n = 2\int_0^{1/2}\sin(n\pi x)\,dx = \frac{2\bigl(1-\cos(n\pi/2)\bigr)}{n\pi}.

Note ∣bn∣≤4nπ|b_n|\le \frac{4}{n\pi}, so the coefficients decay only like 1/n1/n — nowhere near enough for uniform convergence of ∑bnsin⁡(nπx)\sum b_n \sin(n\pi x) itself (consistent with ff being discontinuous, so Theorem's uniform clause cannot hold for the initial data series). Now fix any t0>0t_0>0 and ask about the solution series. Differentiating kk times in xx introduces a factor of at most (nπ)k(n\pi)^k, and differentiating jj times in tt introduces a factor of at most (n2π2α2)j(n^2\pi^2\alpha^2)^j; the general term of any such differentiated series is bounded by

C nk+2j e−n2π2α2t0.C\, n^{k+2j}\, e^{-n^2\pi^2\alpha^2 t_0}.

Since exponential decay in n2n^2 dominates any polynomial growth nk+2jn^{k+2j}, i.e.

lim⁡n→∞nk+2je−n2π2α2t0=0 super-fast (faster than any power of n),\lim_{n\to\infty} n^{k+2j} e^{-n^2\pi^2\alpha^2 t_0} = 0 \text{ super-fast (faster than any power of } n),

the series ∑n∣bn∣ nk+2je−n2π2α2t0\sum_n |b_n|\,n^{k+2j} e^{-n^2\pi^2\alpha^2 t_0} converges absolutely for every k,j≥0k,j\ge 0 and every t0>0t_0>0 (compare to ∑nk+2je−cn2\sum n^{k+2j}e^{-cn^2}, which converges by the ratio test since consecutive ratios →0\to0). By the Weierstrass MM-test, every differentiated series converges uniformly on [0,1]×[t0,∞)[0,1]\times[t_0,\infty) for each t0>0t_0>0, justifying term-by-term differentiation to any order. Hence u(x,t)u(x,t) is C∞C^\infty (indeed real-analytic) in (x,t)(x,t) for t>0t>0, despite ff being discontinuous. This is the smoothing phenomenon: the heat kernel's exponential factors erase all memory of the roughness of the initial data for any positive time. Quantitatively, at t0=0.05t_0=0.05, α=1\alpha=1: the ratio of successive polynomial-times-exponential terms is (n+1n)k+2je−(2n+1)π2t0→0\left(\frac{n+1}{n}\right)^{k+2j} e^{-(2n+1)\pi^2 t_0} \to 0 extremely fast — e.g. for n=10n=10, e−(21)π2(0.05)=e−10.36≈3.16×10−5e^{-(21)\pi^2(0.05)} = e^{-10.36}\approx 3.16\times10^{-5}, already tiny, confirming numerically the qualitative claim.

CounterexampleWhy piecewise smoothness cannot be dropped: a continuous but nowhere-differentiable-type failure of the Dirichlet–Jordan hypothesis

The Dirichlet–Jordan theorem requires ff to be piecewise smooth — merely continuous is not enough for pointwise convergence, and this is not a technicality. There exist continuous, 2π2\pi-periodic functions whose Fourier partial sums diverge at a point. A classical (du Bois-Reymond) construction produces a continuous ff with

lim sup⁡N→∞∣SN(0)∣=∞.\limsup_{N\to\infty} |S_N(0)| = \infty.

Sketch of the mechanism: build ff as a sum f=∑kckcos⁡(nkx)f=\sum_{k} c_k \cos(n_k x) with rapidly growing frequencies nkn_k and carefully tuned amplitudes ck→0c_k \to 0 slowly, chosen so that ff is continuous (the series converges uniformly, since ∑∣ck∣<∞\sum|c_k|<\infty can be arranged) but the associated Dirichlet-kernel integral

SN(0)=12π∫−ππf(t)DN(t) dtS_N(0) = \frac{1}{2\pi}\int_{-\pi}^\pi f(t) D_N(t)\,dt

is engineered to blow up along a subsequence of NN, by exploiting that DND_N itself has L1L^1 norm growing like log⁡N\log N (the Dirichlet kernel is not a nonnegative approximate identity, unlike, say, the Fejér or Gaussian/heat kernel — this is exactly why Cesàro/Abel summation methods, and the heat kernel's smoothing, behave better than raw partial sums). Concretely, one uses

∥DN∥L1(−π,π)=∫−ππ∣sin⁡((N+12)t)sin⁡(t/2)∣dt  ≥  clog⁡N  ⟶  ∞,\|D_N\|_{L^1(-\pi,\pi)} = \int_{-\pi}^{\pi}\left|\frac{\sin((N+\tfrac12)t)}{\sin(t/2)}\right|dt \;\ge\; c\log N \;\longrightarrow\;\infty,

(this divergence follows from splitting the integral into intervals where ∣sin⁡((N+12)t)∣|\sin((N+\tfrac12)t)| is bounded below and summing a harmonic-type series over those intervals). Because the kernel's L1L^1 norm is unbounded, the linear functionals f↦SN(0)f\mapsto S_N(0) are unbounded operators on C[−π,π]C[-\pi,\pi], and the uniform boundedness principle then guarantees some continuous ff for which SN(0)S_N(0) is unbounded. This shows precisely which hypothesis was load-bearing: piecewise smoothness supplied the local Lipschitz-type control (Step 4 of the proof, the existence of one-sided derivatives) that tamed the singular kernel near t=0t=0. Continuity alone does not supply this control, and the conclusion of the Dirichlet–Jordan theorem genuinely fails without it.

Scope, edge cases & common traps

SituationWhat is guaranteedWhat can fail
f∈L2f\in L^2, arbitraryMean-square convergence (Parseval/Bessel)Pointwise value at any specific x0x_0 may not exist
ff piecewise smoothPointwise convergence to 12[f(x0−)+f(x0+)]\frac12[f(x_0^-)+f(x_0^+)] everywhereConvergence need not be uniform if jumps exist (Gibbs phenomenon)
ff continuous + piecewise smooth, periodicUniform convergence on the whole intervalFails if periodic boundary values mismatch (f(−L)≠f(L)f(-L)\ne f(L)) — creates a hidden jump at the endpoints
ff merely continuousNothing pointwise guaranteed (du Bois-Reymond)SN(x0)S_N(x_0) can diverge at specific points
Heat equation solution, any t>0t>0Series and all x,tx,t-derivatives converge uniformly on t≥t0>0t\ge t_0>0; solution is C∞C^\inftyFails at t=0t=0 itself — recovers only the original (possibly rough) ff there
Wave equation solutionConvergence tied directly to smoothness of initial data (no exponential smoothing factor)Term-by-term differentiation can fail if data is only piecewise smooth

The mathematician behind it

Origins · 1 minPeter Gustav Lejeune Dirichlet and how this was discovered
PG
Peter Gustav Lejeune Dirichlet
1805–1859 · Prussia/German states, mathematical analysis

Dirichlet gave the first rigorous conditions under which a Fourier series converges pointwise to the function that generated it, in his 1829 memoir on trigonometric series. He introduced the kernel that bears his name and the technique — isolating the behavior of the partial sum near the point of interest and controlling the rest via oscillation — that underlies essentially every convergence proof for Fourier series since. He also gave the modern definition of a function as an arbitrary correspondence, partly motivated by the need to state exactly which functions his convergence criterion covered.

History
1807
— Fourier claims (without rigorous proof) that arbitrary functions can be expanded in trigonometric series, in his work on heat conduction.
1829
— Dirichlet proves the first rigorous pointwise convergence theorem, for functions with finitely many maxima, minima, and discontinuities.
1854
— Riemann's habilitation work refines the theory of trigonometric series and integration needed to state convergence criteria precisely.
1873
— du Bois-Reymond constructs a continuous function whose Fourier series diverges at a point, showing continuity alone is insufficient.
1966
— Carleson proves that the Fourier series of any L2L^2 function converges almost everywhere, resolving a century-old open problem far beyond the piecewise-smooth setting.
Why is mean-square convergence "easier" than pointwise convergence?

Mean-square convergence is a statement about the integral (energy) of the error f−SNf-S_N, and integrals average out local misbehavior. Even if SN(x)S_N(x) oscillates wildly near a discontinuity (Gibbs phenomenon), the region where the error is large shrinks in width fast enough that its contribution to the total integrated squared error still vanishes. Formally, mean-square convergence for any f∈L2f\in L^2 follows from completeness of the trigonometric system: Bessel's inequality shows the partial sums are the best possible approximations in the L2L^2 norm among trigonometric polynomials of degree NN, and completeness upgrades "best approximation" to "convergent to ff." No pointwise regularity of ff is required at all — this is what makes L2L^2 theory so robust and foundational for Eigenfunction Expansions.

Does uniform convergence of the Fourier series imply we can differentiate term by term?

No — uniform convergence of a series only guarantees the sum is continuous; it says nothing about the convergence of the differentiated series. To differentiate term by term legitimately, you need the differentiated series itself to converge uniformly (a stronger, separate requirement). This is exactly why, in the heat-kernel example, we checked that every differentiated series (in xx and in tt, to any order) converges uniformly for t≥t0>0t\ge t_0>0 — the exponential factors e−n2π2α2t/L2e^{-n^2\pi^2\alpha^2t/L^2} are strong enough to make all of these differentiated series converge uniformly, not just the original one. For the wave equation, lacking this exponential factor, term-by-term differentiation requires the initial data itself to already be sufficiently smooth.

Why does the heat equation "erase" the roughness of initial data but the wave equation does not?

The heat equation's separated solutions carry a factor e−n2π2α2t/L2e^{-n^2\pi^2\alpha^2t/L^2}, which decays super-exponentially in nn for any fixed t>0t>0; this factor can absorb even polynomially growing Fourier coefficients (which occur for very rough, e.g. merely bounded or L2L^2, data), making the solution series and all its derivatives converge uniformly for t≥t0>0t\ge t_0>0. The wave equation's separated solutions instead carry oscillatory factors like cos⁡(nπct/L)\cos(n\pi c t/L), which have constant magnitude 11 — no decay at all. Consequently the wave equation's solution can only be as smooth as its initial data allows; there is no built-in smoothing mechanism, and singularities in the initial data (or its derivative) genuinely propagate along characteristics for all time.

Is piecewise smoothness a necessary condition, or just a convenient sufficient one?

It is a convenient sufficient condition, not strictly necessary — the Dirichlet–Jordan theorem is one classical checkpoint, not the frontier of what's true. Weaker sufficient conditions exist (e.g., bounded variation, due to Jordan's refinement), and much deeper results push far past piecewise smoothness: Carleson's theorem (1966) shows that pointwise almost-everywhere convergence holds for every f∈L2f\in L^2, with no smoothness assumption whatsoever, though the proof is far beyond elementary methods. For undergraduate PDE work, piecewise smoothness is the standard hypothesis because it is easy to check for typical boundary-value data (step functions, triangular pulses, and so on) and it delivers the exact "average of one-sided limits" formula needed to interpret series solutions at jumps.

How does Gibbs phenomenon relate to convergence, and does it violate the Dirichlet–Jordan theorem?

It does not violate the theorem. Gibbs phenomenon describes a fixed-size overshoot (about 9% of the jump size) that appears near a discontinuity in the partial sums SNS_N for every finite NN, but the location of the overshoot moves closer to the discontinuity as N→∞N\to\infty. At any fixed point x0x_0 (including points arbitrarily close to but not equal to the discontinuity), SN(x0)S_N(x_0) still converges to the correct pointwise value as guaranteed by the theorem — the overshoot's peak value does not converge to zero, but its peak's location converges to the jump. This is precisely why pointwise convergence and uniform convergence differ: the theorem gives you the former even in the presence of Gibbs oscillations, but the latter fails exactly because the overshoot never vanishes in the sup-norm.

Why does the proof use the Dirichlet kernel instead of just manipulating the sum directly?

The Dirichlet kernel converts the abstract question "does this infinite sum converge?" into a concrete question about a single, explicit oscillatory integral, whose closed form sin⁡((N+12)θ)/sin⁡(θ/2)\sin((N+\tfrac12)\theta)/\sin(\theta/2) can be analyzed directly via the Riemann–Lebesgue lemma. This is the standard technique for convergence proofs of orthogonal expansions: express the partial sum as convolution against an explicit "summation kernel," then study the kernel's concentration and cancellation properties. The same strategy, with different kernels (Fejér, Poisson, Gauss–Weierstrass/heat kernel), underlies Cesàro summability, Abel summability, and the smoothing estimates used for the heat equation itself.

If the initial data ff is only in L2L^2 (not even continuous), is the heat-equation solution formula still valid for t>0t>0?

Yes, and this is one of the cleanest illustrations of smoothing. Even though the Fourier coefficients of a general L2L^2 function need not decay faster than ℓ2\ell^2-summably (by Bessel/Parseval), multiplying by e−n2π2α2t/L2e^{-n^2\pi^2\alpha^2t/L^2} for any fixed t>0t>0 converts this into coefficients that decay faster than any power of nn, as shown in the worked example. So the solution series converges absolutely and uniformly, together with all its xx- and tt-derivatives, on {(x,t):0≤x≤L, t≥t0}\{(x,t): 0\le x\le L,\ t\ge t_0\} for every t0>0t_0>0. The solution is real-analytic there. Only as t→0+t\to0^+ does the solution's regularity degrade back down to match the (possibly rough) initial data.

Before this

Where this leads