TL;DR
A Hilbert space is a set of vectors where you can add vectors, scale them, measure their length, and measure the angle between them. The measuring is done by an inner product, which generalises the dot product. The space also has to be complete: any sequence of vectors that is settling down must settle onto a vector that is still in the space.
Hilbert spaces are the right setting for functions, signals and quantum states, where the vectors have infinitely many coordinates. Geometry still works there, so the familiar tools of projections and right angles carry over.
Where you'll see it: in quantum mechanics, where every state of a system is a unit vector in a Hilbert space, and in Fourier analysis, where a signal is written as a sum of orthogonal waves.
Intuition
Geometry without coordinates
In the plane, a vector is an arrow. You can measure its length, you can ask whether two arrows are perpendicular, and you can drop a perpendicular from one arrow onto another. The Dot Product gives you all of this through coordinates: , and the Vector Norm is .
Now consider a function, such as on the interval from 0 to . You can think of it as a vector with infinitely many coordinates, one for each value of . Its "length" should be the square root of the integral of , and the "angle" between two functions should come from the integral of their product. The geometry you already know still applies, as long as the space is set up correctly.
A Hilbert space is exactly that: a space of vectors, possibly infinite-dimensional, where length and angle are defined and where the space has no holes. Lengths and angles are what let you do geometry. Completeness is what guarantees that the geometry does not break at the edges.
Why the "no holes" part matters
Take the sequence . Every term is a rational number, and the sequence closes in on . If you only allowed rational numbers, that limit would not exist inside your world. The rationals have holes. The real numbers fill them.
Vector spaces have the same problem. A sequence of polynomials can converge to something that is not a polynomial. A Hilbert space fills those holes, so every convergent sequence has a limit inside the space. That is why projections, which need limits, are guaranteed to exist.
- e^x
- degree-2 Taylor polynomial
The math
A vector space over or with a map such that, for all and scalars :
- Linearity in the second slot: . (This is the physics convention, used throughout this lesson; mathematicians often put the linearity in the first slot instead.)
- Conjugate symmetry: , where the bar means complex conjugate. For real spaces this is plain symmetry.
- Positive definiteness: , with equality only when .
Every inner product defines a norm and a notion of angle:
Two vectors are orthogonal when . Orthogonality is the algebraic version of a right angle.
The Cauchy–Schwarz inequality
For any two vectors in an inner product space,
This is what makes the angle formula well defined: the right-hand side of the cosine formula always lies between and . It also gives the triangle inequality , so the norm really behaves like a length.
Completeness
A sequence is Cauchy when its terms get close to each other: for every there is an such that whenever . In a complete space every Cauchy sequence converges to a point of the space.
A complete inner product space: an inner product space in which every Cauchy sequence converges to an element of the space.
Finite-dimensional inner product spaces, such as with the dot product, are always complete. The interesting cases are infinite-dimensional, where completeness is a real condition.
Orthogonal projection
Let be a closed subspace of a Hilbert space (closed meaning it contains its own limits). For every there is a unique decomposition
The vector is the point of closest to , and by the Pythagorean theorem. Completeness is what makes the closest point exist. Without it, the infimum of distances might never be reached.
Two standard examples of Hilbert spaces
The space consists of sequences of complex numbers with , and the inner product is
The space consists of functions on with , with inner product
The Riesz–Fischer theorem, proved in 1907, says that is complete. That completeness is the reason functions can be treated as vectors in the first place.
Worked examples
Let and for (both real).
- Check that is in : , which is finite, so and .
- Compute , so .
- Compute the inner product using with : .
- Check Cauchy–Schwarz: and . Since , the inequality holds.
Interpretation: the two sequences point in fairly similar directions. The cosine of the angle between them is , a little under 21 degrees.
Let and .
- Norm of : , so .
- Norm of : , so .
- Inner product: .
- Cosine of the angle: , so .
Interpretation: the constant function and the line are 30 degrees apart in the geometry of , even though they are not arrows you can draw. The projection of onto the constant function is , which is the best constant approximation to in the least-squares sense.
Let and let be the plane spanned by and .
- The projection onto keeps the first two coordinates: .
- The residual is , and , so .
- Pythagoras: , and .
The same steps work in or once the subspace is closed, which is the content of the projection theorem.
Tradeoffs and failure modes
Hilbert spaces are the right tool when you need lengths, angles and projections. They are the wrong tool when your space has no natural inner product, or when the natural norm is not one that comes from an inner product.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Measuring errors with the largest deviation (max norm) | The max norm comes from no inner product, so right angles and projections are not available | Work in a Banach space (a complete normed space), which has a norm but no angles |
| Forgetting that the subspace must be closed | The closest point may not exist, so the projection is not defined | Take the closure of the subspace first |
| Mixing up finite and infinite cases | Intuition from fails in infinite dimensions, for example closed unit balls are not compact | Check each theorem's hypotheses before reusing a picture |
| Assuming every subspace is closed | A dense subspace such as the polynomials in is not closed | Use the closure, which is all of in this case |
| Forgetting complex conjugation | The inner product is not symmetric for complex vectors, and the squared modulus $ | \langle e, \psi\rangle |
The main alternative when angles are not needed is a Banach space: a complete normed space. Hilbert spaces are a special case in which the norm comes from an inner product, and that extra structure is what gives you orthogonal projections.
History
David Hilbert studied infinite systems of linear equations and integral equations between 1904 and 1910. He worked with infinitely many variables and treated them as points of a space with a notion of distance. His lectures collected in 1912 laid much of the groundwork.
Erhard Schmidt and Frigyes Riesz developed the geometry of these spaces in the years that followed. The completeness of was established by Riesz and by Ernst Sigismund Fischer, independently, in 1907.
The name "Hilbert space" was given in the late 1920s by John von Neumann. Physicists needed a setting for the new quantum mechanics of the 1920s, in which states are vectors and observable quantities are operators. Von Neumann's 1932 book on the mathematical foundations of quantum mechanics made the Hilbert space the standard language for the subject. It caught on because the same tools worked for both infinite-dimensional function spaces and the finite-dimensional spaces that physicists used for spin.
Check yourself
QuestionRecall: what two properties must an inner product have so that the norm is a real, non-negative length?Show answer
It must be positive definite: , with equality only for . This makes the square root real and zero only at the zero vector. It must also be conjugate symmetric, , which forces to be real. Together with linearity in the second slot, these are the axioms of an inner product.
QuestionCompute in for and , and find .Show answer
. Also , so . As a check, Cauchy–Schwarz needs , and .
QuestionWhy does the orthogonal projection onto a subspace need to be closed?Show answer
The projection of is the point of closest to . Existence of a closest point requires that the distances for have a minimiser, and the minimising sequence must converge to a point that lies in . If is not closed, the limit can fall outside , and then no closest point exists inside . Completeness of the whole space makes the limit exist, and closedness of makes it lie in .
QuestionA qubit is in the state in the basis , . What is the probability of measuring ? What is the probability of measuring ?Show answer
First check that the state is normalised: . The Born rule says the probability of outcome is . Here , so . Also , so . The probabilities add to 1, as they must for a normalised state in an orthonormal basis.