Mathwords logoMathwords

Hilbert Space — Definition, Formula & Example

A Hilbert space is a vector space where you can measure lengths and angles with an inner product, and where no limits are missing. It extends the geometry of Rn\mathbb{R}^n (dot products, perpendicular vectors, projections) to spaces that may have infinitely many dimensions.

A Hilbert space is a real or complex vector space HH with an inner product ⟨⋅,⋅⟩\langle \cdot, \cdot \rangle that is complete under the metric d(x,y)=∥x−y∥d(\mathbf{x}, \mathbf{y}) = \|\mathbf{x} - \mathbf{y}\|, where ∥x∥=⟨x,x⟩\|\mathbf{x}\| = \sqrt{\langle \mathbf{x}, \mathbf{x} \rangle}. Complete means that every Cauchy sequence in HH converges to an element of HH.

Key Formula

⟨x,y⟩=∑n=1∞xnyn,∥x∥=⟨x,x⟩\langle \mathbf{x}, \mathbf{y} \rangle = \sum_{n=1}^{\infty} x_n y_n, \qquad \|\mathbf{x}\| = \sqrt{\langle \mathbf{x}, \mathbf{x} \rangle}
Where:
  • x,y\mathbf{x}, \mathbf{y} = Infinite real sequences in ℓ², the standard example of an infinite-dimensional Hilbert space
  • xn,ynx_n, y_n = The n-th terms of the sequences
  • ⟨x,y⟩\langle \mathbf{x}, \mathbf{y} \rangle = The inner product, an infinite version of the dot product
  • ∥x∥\|\mathbf{x}\| = The norm (length) of x, which must be finite for x to belong to ℓ²

Worked Example

Problem: In the Hilbert space ℓ2\ell^2, let x=(1,12,14,18,… )\mathbf{x} = (1, \tfrac{1}{2}, \tfrac{1}{4}, \tfrac{1}{8}, \dots) and y=(1,−12,14,−18,… )\mathbf{y} = (1, -\tfrac{1}{2}, \tfrac{1}{4}, -\tfrac{1}{8}, \dots), so xn=(12)n−1x_n = (\tfrac{1}{2})^{n-1} and yn=(−12)n−1y_n = (-\tfrac{1}{2})^{n-1}. Find ∥x∥\|\mathbf{x}\|, ⟨x,y⟩\langle \mathbf{x}, \mathbf{y} \rangle, and the angle between the two vectors.
Step 1: Square each term of x and sum the geometric series with ratio 1/4. The sum is finite, so x belongs to ℓ². The same sum gives the norm of y, because squaring removes the signs.
∥x∥2=∑n=1∞(14)n−1=11−14=43,∥x∥=∥y∥=23\|\mathbf{x}\|^2 = \sum_{n=1}^{\infty} \left(\tfrac{1}{4}\right)^{n-1} = \frac{1}{1 - \frac{1}{4}} = \frac{4}{3}, \qquad \|\mathbf{x}\| = \|\mathbf{y}\| = \frac{2}{\sqrt{3}}
Step 2: Multiply the terms in matching positions. Each product is (−14)n−1(-\tfrac{1}{4})^{n-1}, which forms a geometric series with ratio −14-\tfrac{1}{4}.
⟨x,y⟩=∑n=1∞(−14)n−1=11+14=45\langle \mathbf{x}, \mathbf{y} \rangle = \sum_{n=1}^{\infty} \left(-\tfrac{1}{4}\right)^{n-1} = \frac{1}{1 + \frac{1}{4}} = \frac{4}{5}
Step 3: Use the same angle formula you would use in the plane. It still works with infinitely many coordinates.
cos⁡θ=⟨x,y⟩∥x∥ ∥y∥=4/54/3=35,θ≈53.13∘\cos\theta = \frac{\langle \mathbf{x}, \mathbf{y} \rangle}{\|\mathbf{x}\|\,\|\mathbf{y}\|} = \frac{4/5}{4/3} = \frac{3}{5}, \qquad \theta \approx 53.13^\circ
Answer: ∥x∥=23\|\mathbf{x}\| = \frac{2}{\sqrt{3}}, ⟨x,y⟩=45\langle \mathbf{x}, \mathbf{y} \rangle = \frac{4}{5}, and the angle between the vectors is θ=arccos⁡35≈53.13∘\theta = \arccos\frac{3}{5} \approx 53.13^\circ. By contrast, (1,1,1,… )(1, 1, 1, \dots) is not in ℓ2\ell^2, because the sum of its squared terms diverges.

Why It Matters

In quantum mechanics, the state of a particle is a unit vector in a Hilbert space, and measurable quantities are operators on that space. Fourier series are expansions in the Hilbert space L2L^2 of square-integrable functions, which is the basis of audio compression and signal processing. You meet Hilbert spaces formally in a functional analysis course or a graduate course in quantum mechanics.

Common Mistakes

Mistake: Assuming every inner product space is a Hilbert space.
Correction: Completeness is a separate requirement. Take the polynomials on [0,1][0, 1] with ⟨f,g⟩=∫01f(t)g(t) dt\langle f, g \rangle = \int_0^1 f(t)g(t)\,dt. The Taylor polynomials of ete^t form a Cauchy sequence, but their limit ete^t is not a polynomial, so this space is not complete. Its completion is the Hilbert space L2[0,1]L^2[0,1].

Related Terms

  • Euclidean Space — The finite-dimensional Hilbert space, using the ordinary dot product
  • Metric Space — Every Hilbert space is a complete metric space
  • Inner Product — Defines lengths and angles in a Hilbert space