Hilbert Spaces

⚡ Key Takeaways

A Hilbert space is a complete inner product space — a vector space equipped with an inner product whose induced metric makes every Cauchy sequence converge. It is the natural setting where geometry (lengths, angles, orthogonality, projection) survives into infinite dimensions, and where Fourier-style expansions converge. Used in quantum mechanics, signal processing, PDEs, and probability. Named for David Hilbert; the abstract axioms were formalized by John von Neumann (1929–1932).

💡 The Core Insight

An inner product imports the full geometry of Euclidean space — orthogonality, the Pythagorean theorem, and orthogonal projection onto closed subspaces — into infinite dimensions. Completeness is the glue that makes infinite expansions x=∑cnenx=\sum c_n e_n actually converge to a point that exists. Together they guarantee a "best approximation" always exists, which is why Hilbert spaces dominate analysis.

Formal Statement

DefinitionInner Product Space

Let HH be a vector space over a field F\mathbb{F} (either R\mathbb{R} or C\mathbb{C}). An inner product is a map ⟨⋅,⋅⟩:H×H→F\langle\cdot,\cdot\rangle: H\times H \to \mathbb{F} satisfying, for all x,y,z∈Hx,y,z\in H and α∈F\alpha\in\mathbb{F}:

1
⟨x,x⟩≥0,⟨x,x⟩=0  ⟺  x=0\quad \langle x,x\rangle \ge 0,\qquad \langle x,x\rangle = 0 \iff x = 0

Derivation hint: positive-definiteness — this is what makes ∥x∥=⟨x,x⟩\|x\|=\sqrt{\langle x,x\rangle} a genuine norm rather than a seminorm.

2
⟨αx+z,y⟩=α⟨x,y⟩+⟨z,y⟩\quad \langle \alpha x + z, y\rangle = \alpha\langle x,y\rangle + \langle z,y\rangle

Derivation hint: linearity in the first argument; combined with [3] this gives conjugate-bilinearity (the physics convention puts the conjugate-linear slot first).

3
⟨x,y⟩=⟨y,x⟩‾\quad \langle x,y\rangle = \overline{\langle y,x\rangle}

Derivation hint: conjugate symmetry; over R\mathbb{R} the bar vanishes and the inner product is symmetric. Setting y=xy=x forces ⟨x,x⟩∈R\langle x,x\rangle\in\mathbb{R}, making [1] meaningful. Here x,y,zx,y,z are vectors, α\alpha a scalar, and   ⋅  ‾\overline{\;\cdot\;} denotes complex conjugation. The induced norm is ∥x∥=⟨x,x⟩\|x\|=\sqrt{\langle x,x\rangle}.

DefinitionHilbert Space

A Hilbert space is an inner product space (H,⟨⋅,⋅⟩)(H,\langle\cdot,\cdot\rangle) that is complete with respect to the metric d(x,y)=∥x−y∥d(x,y)=\|x-y\| — that is, every Cauchy sequence (xn)(x_n) in HH converges to a limit x∈Hx\in H:

4
(∀ε>0 ∃N ∀m,n≥N: ∥xm−xn∥<ε)   ⟹   ∃x∈H: ∥xn−x∥→0\quad \big(\forall \varepsilon>0\ \exists N\ \forall m,n\ge N:\ \|x_m-x_n\|<\varepsilon\big)\ \implies\ \exists x\in H:\ \|x_n-x\|\to 0

Derivation hint: completeness is a topological condition on the metric, not an algebraic one; an incomplete inner product space is called a pre-Hilbert space and its completion is a Hilbert space.

TheoremCauchy–Schwarz Inequality

For all x,yx,y in an inner product space,

5
∣⟨x,y⟩∣≤∥x∥ ∥y∥,\quad |\langle x,y\rangle| \le \|x\|\,\|y\|,

with equality if and only if xx and yy are linearly dependent. Derivation hint: for λ=⟨x,y⟩/∥y∥2\lambda = \langle x,y\rangle/\|y\|^2, expand 0≤∥x−λy∥20\le \|x-\lambda y\|^2 and simplify.

TheoremParallelogram Law

A normed space is an inner product space iff its norm satisfies

6
∥x+y∥2+∥x−y∥2=2∥x∥2+2∥y∥2.\quad \|x+y\|^2 + \|x-y\|^2 = 2\|x\|^2 + 2\|y\|^2.

Derivation hint: expand both sides using ∥u∥2=⟨u,u⟩\|u\|^2=\langle u,u\rangle; the cross terms cancel. The converse (Jordan–von Neumann) recovers ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle via the polarization identity.

TheoremRiesz Representation Theorem

Every continuous linear functional f:H→Ff: H\to\mathbb{F} on a Hilbert space is represented by a unique yf∈Hy_f\in H:

7
f(x)=⟨x,yf⟩for all x∈H,∥f∥=∥yf∥.\quad f(x) = \langle x, y_f\rangle\quad\text{for all }x\in H,\qquad \|f\| = \|y_f\|.

Derivation hint: if f≡0f\equiv 0 take yf=0y_f=0; otherwise project onto (ker⁡f)⊥(\ker f)^\perp, which is one-dimensional, and scale.

Why It Holds / Derivation

ProofCauchy–Schwarz via the Projection Trick

1. If y=0y=0 both sides are 00; assume y≠0y\neq 0. 2. For any scalar λ\lambda, positivity [1] gives

8
0≤∥x−λy∥2=∥x∥2−λ‾⟨x,y⟩−λ⟨x,y⟩‾+∣λ∣2∥y∥2.\quad 0 \le \|x-\lambda y\|^2 = \|x\|^2 - \overline\lambda\langle x,y\rangle - \lambda\overline{\langle x,y\rangle} + |\lambda|^2\|y\|^2.

Derivation hint: expand ⟨x−λy,x−λy⟩\langle x-\lambda y, x-\lambda y\rangle using linearity [2] and conjugate symmetry [3]. 3. Choose λ=⟨x,y⟩/∥y∥2\lambda = \langle x,y\rangle/\|y\|^2 to minimize the right side (this is the projection of xx onto yy). 4. Substituting yields

9
0≤∥x∥2−∣⟨x,y⟩∣2∥y∥2,\quad 0 \le \|x\|^2 - \frac{|\langle x,y\rangle|^2}{\|y\|^2},

Derivation hint: the two cross terms combine to −2∣⟨x,y⟩∣2/∥y∥2-2|\langle x,y\rangle|^2/\|y\|^2 and the last term contributes +∣⟨x,y⟩∣2/∥y∥2+|\langle x,y\rangle|^2/\|y\|^2. 5. Rearranging gives ∣⟨x,y⟩∣2≤∥x∥2∥y∥2|\langle x,y\rangle|^2 \le \|x\|^2\|y\|^2; take square roots. Equality forces x−λy=0x-\lambda y=0, i.e. linear dependence. ■\blacksquare

∎
ProofHilbert Projection Theorem (existence of best approximation)

Let C⊆HC\subseteq H be nonempty, closed, and convex, and x∈Hx\in H. We show a unique nearest point p∈Cp\in C exists. 1. Let d=inf⁡c∈C∥x−c∥d=\inf_{c\in C}\|x-c\| and pick cn∈Cc_n\in C with ∥x−cn∥2→d2\|x-c_n\|^2 \to d^2. 2. Apply the parallelogram law [6] to u=x−cmu=x-c_m and v=x−cnv=x-c_n:

10
∥cm−cn∥2=2∥x−cm∥2+2∥x−cn∥2−4∥x−cm+cn2∥2.\quad \|c_m-c_n\|^2 = 2\|x-c_m\|^2 + 2\|x-c_n\|^2 - 4\Big\|x-\tfrac{c_m+c_n}{2}\Big\|^2.

Derivation hint: this is [6] rearranged; the midpoint cm+cn2∈C\tfrac{c_m+c_n}{2}\in C by convexity, so its distance from xx is ≥d\ge d. 3. Hence ∥cm−cn∥2≤2∥x−cm∥2+2∥x−cn∥2−4d2→0\|c_m-c_n\|^2 \le 2\|x-c_m\|^2 + 2\|x-c_n\|^2 - 4d^2 \to 0, so (cn)(c_n) is Cauchy. 4. By completeness [4], cn→pc_n\to p, and since CC is closed, p∈Cp\in C with ∥x−p∥=d\|x-p\|=d. 5. Uniqueness: if p,p′p,p' both attain dd, step 2 with cm=p,cn=p′c_m=p, c_n=p' forces ∥p−p′∥=0\|p-p'\|=0. ■\blacksquare This is precisely where completeness is indispensable: without it the minimizing sequence need not converge inside the space.

∎
JV
John von Neumann
1903–1957

Von Neumann gave Hilbert spaces their modern axiomatic definition in 1929 and used them to put quantum mechanics on rigorous mathematical footing in his 1932 Mathematical Foundations of Quantum Mechanics. He unified Heisenberg's matrix mechanics and Schrödinger's wave mechanics by showing both are representations of operators on the same abstract separable Hilbert space — the matrices act on ℓ2\ell^2, the wavefunctions live in L2L^2, and these spaces are isomorphic. His spectral theorem for unbounded self-adjoint operators is the backbone of observables and measurement in quantum theory.

Building Intuition

🧠 Intuition

Think of a Hilbert space as Rn\mathbb{R}^n with infinitely many axes that you are allowed to use — provided your coordinates are "square-summable" so the vector has finite length. The inner product measures how much two vectors point in the same direction; orthogonality (⟨x,y⟩=0\langle x,y\rangle=0) means they share no direction at all. Any vector can be split into a part inside a closed subspace and a part perpendicular to it (orthogonal projection), exactly as a shadow on a wall plus the perpendicular gap. Completeness is the promise that if you keep adding more and more orthogonal pieces and the tail energy shrinks, the infinite sum genuinely lands on a vector that exists in the space — no points are "missing." This is why Fourier series of a function converge to something, and Hilbert space tells you that something is the original function.

Figure
Orthogonal projection of x onto a closed subspace M: the nearest point p and the perpendicular residual x−p
M (closed subspace) x p = proj_M x x − p ⊥ M 0

Worked Examples

ExampleBest approximation in ℓ2\ell^2

Given: In ℓ2\ell^2, let x=(1,12,13,14,… )x=(1,\tfrac12,\tfrac13,\tfrac14,\dots) (entries 1/n1/n, which is square-summable since ∑1/n2=π2/6\sum 1/n^2 = \pi^2/6). Let M=span⁡‾{e1,e2}M=\overline{\operatorname{span}}\{e_1,e_2\}, the closed subspace of sequences supported on the first two coordinates. Find the orthogonal projection pp and the residual norm.

Steps: 1. Projection onto coordinate axes just keeps those coordinates:

11
p=⟨x,e1⟩e1+⟨x,e2⟩e2=1⋅e1+12⋅e2=(1,12,0,0,… ).\quad p = \langle x,e_1\rangle e_1 + \langle x,e_2\rangle e_2 = 1\cdot e_1 + \tfrac12\cdot e_2 = (1,\tfrac12,0,0,\dots).

Derivation hint: {e1,e2}\{e_1,e_2\} is orthonormal, so proj⁡Mx=∑k⟨x,ek⟩ek\operatorname{proj}_M x = \sum_k \langle x,e_k\rangle e_k. 2. Residual x−p=(0,0,13,14,… )x-p = (0,0,\tfrac13,\tfrac14,\dots). 3. Residual energy:

12
∥x−p∥2=∑n=3∞1n2=π26−1−14=π26−54.\quad \|x-p\|^2 = \sum_{n=3}^\infty \frac1{n^2} = \frac{\pi^2}{6} - 1 - \frac14 = \frac{\pi^2}{6} - \frac54.

Derivation hint: total energy ∑1/n2=π2/6\sum 1/n^2 = \pi^2/6 minus the captured terms 12+(1/2)21^2+(1/2)^2.

Answer: p=(1,12,0,0,… ),∥x−p∥=π26−54≈0.3434\boxed{p=(1,\tfrac12,0,0,\dots),\quad \|x-p\| = \sqrt{\tfrac{\pi^2}{6}-\tfrac54}\approx 0.3434} (dimensionless).

:::example[Fourier coefficients in L2[−π,π]L^2[-\pi,\pi]] Given: In the real Hilbert space L2[−π,π]L^2[-\pi,\pi] with ⟨f,g⟩=∫−ππfg dt\langle f,g\rangle=\int_{-\pi}^{\pi} f g\,dt, expand f(t)=tf(t)=t in the orthogonal system {sin⁡(nt)}n≥1\{\sin(nt)\}_{n\ge1}. Compute the coefficient cnc_n and verify Parseval numerically through n=3n=3.

Steps: 1. Norm of basis function: ∥sin⁡(nt)∥2=∫−ππsin⁡2(nt) dt=π\|\sin(nt)\|^2 = \int_{-\pi}^\pi \sin^2(nt)\,dt = \pi. 2. Coefficient (the orthonormal version uses sin⁡(nt)/π\sin(nt)/\sqrt\pi):

13
cn=⟨t,sin⁡nt⟩∥sin⁡nt∥2=1π∫−ππtsin⁡(nt) dt=2(−1)n+1n.\quad c_n = \frac{\langle t,\sin nt\rangle}{\|\sin nt\|^2} = \frac1\pi\int_{-\pi}^\pi t\sin(nt)\,dt = \frac{2(-1)^{n+1}}{n}.

Derivation hint: integrate by parts; the cos⁡\cos boundary term gives −2πcos⁡(nπ)/n=2π(−1)n+1/n-2\pi\cos(n\pi)/n = 2\pi(-1)^{n+1}/n, then divide by π\pi. 3. Parseval: ∥f∥2=∫−ππt2 dt=2π33≈20.67\|f\|^2 = \int_{-\pi}^\pi t^2\,dt = \tfrac{2\pi^3}{3}\approx 20.67. The expansion gives ∑ncn2 π=π∑n4n2\sum_n c_n^2\,\pi = \pi\sum_n \tfrac{4}{n^2}.

14
π∑n=1∞4n2=4π⋅π26=2π33.\quad \pi\sum_{n=1}^\infty \frac{4}{n^2} = 4\pi\cdot\frac{\pi^2}{6} = \frac{2\pi^3}{3}.

Derivation hint: ∑1/n2=π2/6\sum 1/n^2=\pi^2/6; the partial sum through n=3n=3 gives 4π(1+14+19)=4π(1.361)≈17.104\pi(1+\tfrac14+\tfrac19)=4\pi(1.361)\approx17.10, climbing toward 20.6720.67.

Answer: cn=2(−1)n+1n\boxed{c_n = \dfrac{2(-1)^{n+1}}{n}}; Parseval's identity confirms ∥f∥2=2π33\|f\|^2 = \tfrac{2\pi^3}{3}, with partial sums converging to it.

Common Misconceptions

⚠️ Common mistake

Completeness is not optional, and not every inner product space has it. The space C[0,1]C[0,1] of continuous functions with the L2L^2 inner product is an inner product space but is not a Hilbert space — Cauchy sequences of continuous functions can converge (in L2L^2) to discontinuous limits outside the space. Its completion is L2[0,1]L^2[0,1], which is a Hilbert space. Also beware: a "basis" of a Hilbert space (an orthonormal basis / Schauder basis) is generally not a Hamel (algebraic) basis — infinite-dimensional Hilbert spaces have uncountable Hamel bases, but separable ones have countable orthonormal bases where convergence is in norm, not finite sums.

CounterexampleNot every norm comes from an inner product

Consider R2\mathbb{R}^2 with the sup norm ∥(a,b)∥∞=max⁡(∣a∣,∣b∣)\|(a,b)\|_\infty = \max(|a|,|b|). Take x=(1,0)x=(1,0), y=(0,1)y=(0,1). Then ∥x+y∥∞2+∥x−y∥∞2=1+1=2\|x+y\|_\infty^2 + \|x-y\|_\infty^2 = 1+1 = 2, but 2∥x∥2+2∥y∥2=2+2=42\|x\|^2 + 2\|y\|^2 = 2+2 = 4. The parallelogram law [6] fails, so no inner product induces this norm — (R2,∥⋅∥∞)(\mathbb{R}^2,\|\cdot\|_\infty) is a Banach space but not a Hilbert space. The same holds for every ℓp\ell^p and LpL^p with p≠2p\neq 2: only p=2p=2 is Hilbert.

Connections

connection

Hilbert spaces are the geometrically richest members of the family of Banach Spaces (complete normed spaces); the extra inner-product structure adds orthogonality and self-duality (via Riesz Representation Theorem) that general Banach spaces lack. They are the natural domain of Bounded Linear Operators and the setting for the Spectral Theorem, which diagonalizes self-adjoint operators just as symmetric matrices are diagonalized in Linear Algebra. Convergence of Fourier Series is best understood as orthonormal expansion in L2L^2. The completion construction relates them to Metric Space Completion, and the prototype ℓ2\ell^2 links them to Sequence Spaces.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1900–1910: David Hilbert studies integral equations and the space of square-summable sequences ℓ2\ell^2, introducing infinitely many variables; the geometry is implicit, not yet axiomatized.
- 1907: Frigyes Riesz and Ernst Fischer prove the Riesz–Fischer theorem, establishing that L2L^2 is complete and isomorphic to ℓ2\ell^2 — the first deep "uniqueness" result.
- 1907: Riesz proves the representation theorem for continuous linear functionals on L2L^2.
- 1918: Erhard Schmidt and Riesz develop the geometry of ℓ2\ell^2 — orthogonality, projection — making the Euclidean analogy explicit.
- 1922: Stefan Banach axiomatizes complete normed spaces (Banach spaces) in his thesis, providing the broader framework.
- 1929: John von Neumann gives the first abstract axiomatic definition of "Hilbert space" (complete, separable, infinite-dimensional inner product space) in his work on quantum mechanics.
- 1932: Von Neumann publishes Mathematische Grundlagen der Quantenmechanik, proving the spectral theorem for unbounded self-adjoint operators and unifying matrix and wave mechanics.
- 1934: Jordan and von Neumann prove the parallelogram law characterization — exactly which norms come from inner products.
- 1930s–40s: The separability requirement is dropped; general (possibly non-separable) Hilbert spaces become standard, and the theory of operator algebras (von Neumann algebras) grows out of it.

Subtleties & Limits

open-problem

The invariant subspace problem remains open for separable Hilbert spaces: does every bounded linear operator on an infinite-dimensional separable Hilbert space have a nontrivial closed invariant subspace? Per Enflo (1976/1987) and Charles Read constructed counterexamples on certain Banach spaces, but the Hilbert space case is unresolved — a striking reminder that even in the most structured infinite-dimensional setting, operator theory hides deep mysteries. Related subtleties: in infinite dimensions the closed unit ball is not compact (Riesz's lemma), so existence arguments must use weak compactness or completeness rather than the finite-dimensional Heine–Borel intuition; and bounded operators need not attain their norm.

See Also

Banach Spaces · Inner Product · Riesz Representation Theorem · Spectral Theorem · Orthonormal Basis · L2L^2 Space · Fourier Series · Bounded Linear Operators · Quantum Mechanics