Existence of Orthonormal Bases
Every vector space has a basis, but a bare basis tells you nothing about angles or lengths. If you want to measure distances, project onto subspaces, or diagonalize symmetric matrices, you need something more. You need a basis whose vectors are mutually perpendicular and each have length one. The natural question is whether such a basis always exists. If it does, how do you build one from whatever basis you already have? This matters because orthonormal bases are the coordinate systems in which inner product spaces behave like Euclidean space. Coordinates of a vector become simple inner products. The Pythagorean theorem holds vector-by-vector. Matrices of linear maps with respect to such bases interact beautifully with adjoints and orthogonal projections. Nearly every computational and theoretical tool in this branch of linear algebra — least squares, spectral theorems, Fourier expansions, QR factorization — presupposes that an orthonormal basis exists. It also presupposes that such a basis can be constructed explicitly. The big picture is that existence is not an abstract nonconstructive fact. It is a direct consequence of the Gram-Schmidt Process, which converts any linearly independent list into an orthonormal list. That orthonormal list spans the same subspace as the original. Applying this to an arbitrary basis of a finite-dimensional inner product space yields an orthonormal basis of the whole space. A second, equally important consequence is that any orthonormal list, however short, can be extended to an orthonormal basis of the ambient space. This fact will become the engine behind Orthogonal Complements and later the construction of The Adjoint of a Linear Map. This article states and proves the existence theorem precisely, and proves the extension theorem as a corollary. It works through two concrete non-trivial examples. It also examines exactly where finite-dimensionality is used — and what goes wrong without it.
- Every finite-dimensional inner product space has an orthonormal basis.
- The proof is constructive: apply Gram-Schmidt to any basis.
- Any orthonormal list of vectors extends to an orthonormal basis of the whole space.
- Orthonormal bases make coordinates computable directly as inner products, with no matrix inversion.
- The dimension of the space always equals the length of every orthonormal basis, consistent with ordinary bases.
- Key idea: orthogonality plus normalization can always be manufactured from linear independence, without changing the span.
Where this lives today
Orthonormal bases underlie the QR decomposition used throughout numerical linear algebra to solve least-squares problems stably; the columns of are precisely an orthonormal basis obtained by Gram-Schmidt (or a numerically stabilized variant) applied to the columns of a matrix. In physics, orthonormal bases of eigenstates are the mathematical backbone of quantum mechanics, where physical observables correspond to self-adjoint operators diagonalized in an orthonormal basis. In statistics and machine learning, principal component analysis constructs an orthonormal basis of eigenvectors of a covariance matrix to decorrelate data. In signal processing, orthonormal wavelet and Fourier bases decompose signals into independent frequency or scale components. In cryptography, lattice-based schemes rely on the LLL algorithm, a computational descendant of Gram-Schmidt orthogonalization, to find short, nearly-orthogonal lattice vectors. Across all these settings, the existence theorem is the quiet guarantee that the coordinate system engineers and scientists want to use is always available in principle, before any algorithm is run to actually compute it.
Ask the tutor: How does extending an orthonormal basis of a subspace let us explicitly construct its orthogonal complement?
Let be an inner product space over (where or ), with inner product . A list of vectors is called orthonormal if: 1. for all (pairwise orthogonality), and 2. for all (unit length), where . Equivalently, (the Kronecker delta) for all . An orthonormal list that is also a basis of — that is, it spans — is called an orthonormal basis of .
Intuition
An orthonormal basis is the linear-algebra analogue of a rigid, perpendicular coordinate grid: each axis has been rescaled to unit length, and no axis leans on any other. If a vector's coordinates with respect to an arbitrary basis require solving a linear system to extract, its coordinates with respect to an orthonormal basis are handed to you directly: the -th coordinate of is simply . This is why orthonormal bases are the preferred coordinate systems whenever an inner product is present — they convert the abstract inner product structure into concrete, computable formulas. The existence proof is not merely an abstract compactness or dimension-counting argument. It is completely constructive: start with any basis, and mechanically straighten it out, one vector at a time, using the Gram-Schmidt process. Each step subtracts off the components of a new vector that lie along previously-built orthonormal directions, leaving a vector orthogonal to all of them; then that leftover is rescaled to length one. Because the original list spanned and Gram-Schmidt preserves spans at each stage, the final orthonormal list still spans , and having the right count of vectors, it is a basis.
Theorem statements
Let be a finite-dimensional inner product space over , with . Then has an orthonormal basis .
We use the technique of Gram-Schmidt orthogonalization, which is assumed as prior machinery. Since is finite-dimensional with , has a basis (existence of a basis for a finite-dimensional vector space is a basic fact of linear algebra, established before the introduction of inner products, so invoking it here is not circular). The list is linearly independent, being a basis. By the Gram-Schmidt Process, there exists an orthonormal list in such that for every ,
(Recall the construction: set , and inductively
where because , by linear independence of . The orthonormality of the resulting list at each stage is exactly the content of the Gram-Schmidt process.) Taking gives
the last equality because is a basis of . Thus is a spanning list of length in , and it is orthonormal, hence in particular linearly independent (an orthonormal list is always linearly independent: if , taking the inner product of both sides with gives for every , using ). A linearly independent spanning list is a basis. Therefore is a basis of , and it is orthonormal by construction. This is the desired orthonormal basis.
∎Let be a finite-dimensional inner product space with , and let be an orthonormal list in with . Then there exist vectors such that is an orthonormal basis of .
An orthonormal list is linearly independent (shown in the proof above), so is a linearly independent list of vectors in the -dimensional space . By the basis-extension theorem for finite-dimensional vector spaces (again prior, purely vector-space machinery, not circular here), there exist vectors such that
is a basis of . Now apply the Gram-Schmidt Process to this basis. Because is already orthonormal, the Gram-Schmidt process leaves these first vectors unchanged: at step , the formula
applied to (for ) gives (using orthonormality of , so for ), and , so is returned unchanged. Applying Gram-Schmidt to steps produces vectors so that the full list is orthonormal, and by the theorem above (spans agreeing at each stage, culminating in the full span ) this list is a basis of . Thus is an orthonormal basis of extending the original list.
∎Worked examples
Example 1: A genuinely skewed basis of . Let with the standard inner product . Consider the basis
(Check linear independence: the determinant of the matrix with these rows is , so they are independent, hence a basis of .)
Step 1. , so
Step 2. Compute .
Then , so
Step 3. Compute , and .
Compute componentwise:
Then , so
Verification. Check , , and each has norm (direct computation confirms this). So
is an orthonormal basis of , obtained from the skewed basis , exactly as the theorem guarantees.
Example 2: Extending a single orthonormal vector in , and reading off coordinates. Let with the standard Hermitian inner product , and suppose we are handed the single unit vector
Check . Good, it is a unit vector, so is an orthonormal list of length in the -dimensional space . By the corollary, it extends to an orthonormal basis. First extend to any basis. Take , ; one checks is a basis (the matrix with these as rows is invertible: expanding along the third row, its determinant is times the minor from rows 1,2, columns 1,2, namely ). Now Gram-Schmidt fixes (already unit) and processes :
(Here the Hermitian inner product conjugates the second argument, so .)
Then , so , and
(Check: . Good.) Next, , and
Compute the two correction terms: , and .
Then , , so
So
is an orthonormal basis of extending the original vector. As a payoff, coordinates of any vector are now immediate: for instance the vector has
so the -coefficient of in the expansion is , obtained by a single inner product, with no linear system to solve.
Drop the hypothesis that is finite-dimensional, and consider , the space of all real sequences with only finitely many nonzero terms, equipped with the inner product
(a finite sum in effect, since each has finite support). The standard sequences , form an orthonormal list (pairwise orthogonal, unit norm), and their span is exactly : every element of is a finite linear combination of the , by definition of . So genuinely is a basis (a Hamel/vector-space basis, not merely a "complete orthonormal system" or Hilbert basis) and it is orthonormal. This might look consistent with the theorem, but the theorem's proof method — starting from a finite basis and running Gram-Schmidt in finitely many steps — cannot even get started here, because has no finite basis; . The existence theorem as stated simply does not apply, and indeed nothing goes wrong only because we got lucky with : for a general infinite-dimensional inner product space (for instance an incomplete or non-separable one), no procedure analogous to finite Gram-Schmidt can produce a Hamel-basis that is orthonormal, since orthonormal bases in the vector-space sense typically fail to exist once you demand the list simultaneously be a genuine spanning basis (using only finite linear combinations) and infinite. In practice, the useful infinite-dimensional analogue is a complete orthonormal system (allowing infinite series, e.g. Fourier bases in ), a fundamentally different — and separately developed — notion belonging to the theory of Hilbert spaces, not the finite-dimensional theorem proved above. This is exactly why the theorem's hypothesis restricts to finite-dimensional .
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| finite-dimensional, any field or | Orthonormal basis exists (theorem) | — |
| (zero space) | The empty list is vacuously an orthonormal basis | No unit vectors exist in , so watch degenerate case separately |
| Orthonormal list shorter than | Always extends to an orthonormal basis (corollary) | Extension is not unique; many valid completions exist |
| infinite-dimensional | Gram-Schmidt/finite-basis argument does not apply | Orthonormal Hamel bases generally do not exist; need Hilbert space theory instead |
| Non-orthonormal starting list | Still yields orthonormal basis after Gram-Schmidt | Must apply Gram-Schmidt in a fixed order; different orderings give different orthonormal bases |
The mathematician behind it
Origins · 1 minJørgen Pedersen Gram and how this was discovered
Gram worked as an actuary for the Hafnia insurance company and pursued mathematics largely outside a university appointment, publishing on series expansions, invariant theory, and numerical methods relevant to probability and statistics. His 1883 work on least squares approximation contains the orthogonalization idea that now bears his name, developed independently and somewhat later formalized alongside work by Erhard Schmidt, whose 1907 paper on integral equations gave the process its modern, systematic form used throughout functional analysis and numerical linear algebra.
Does every vector space have an orthonormal basis?
No. Only inner product spaces have orthonormal bases, since the notions of orthogonality and length require an inner product. Furthermore, the theorem proved here is restricted to finite-dimensional inner product spaces. A general vector space without an inner product structure has ordinary (Hamel) bases, guaranteed by Zorn's lemma in the infinite-dimensional case, but there is no meaningful notion of "orthonormal" without first fixing an inner product on the space.
Is the orthonormal basis produced by the theorem unique?
No, and this is worth internalizing. Different orderings of the starting basis fed into Gram-Schmidt typically produce different orthonormal bases, and any orthonormal basis can be modified by an orthogonal or unitary change of basis to produce another one. What is invariant is the number of vectors, always equal to , and various numerical invariants like traces and determinants of operators expressed in any orthonormal basis. Uniqueness only emerges under extra constraints, such as requiring the basis to align with a given flag of nested subspaces or to consist of eigenvectors of a fixed self-adjoint operator.
Why does the proof require starting from a basis rather than any spanning list?
Gram-Schmidt requires the input list to be linearly independent; if the input list merely spans but is not independent, at some step the leftover vector can become zero (because already lies in the span of the previous vectors), and one cannot rescale a zero vector to unit length. Starting from a basis guarantees linear independence throughout, so every constructed in the proof is genuinely nonzero at every stage, keeping the algorithm well-defined.
Does the extension corollary work if m equals n already?
Yes, trivially: if and is already an orthonormal list of length in an -dimensional space, it is already linearly independent by the standard fact that orthonormal lists are linearly independent, hence already a basis (a linearly independent list of length equal to the dimension is automatically a basis). No extension vectors are needed, and the corollary's conclusion holds with the empty extension.
What happens for the zero-dimensional inner product space?
If , the empty list (containing zero vectors) is vacuously orthonormal, since there are no pairs or vectors to check any condition against, and it vacuously spans because the only linear combination of an empty list is the zero vector. So the empty list is the (unique) orthonormal basis in this degenerate case, consistent with .
How does this theorem relate to orthogonal complements and adjoints, covered later?
The existence of orthonormal bases is the essential tool used to construct orthogonal complements explicitly: given a subspace of a finite-dimensional , one builds an orthonormal basis of and extends it (via the corollary above) to an orthonormal basis of ; the added vectors then span the orthogonal complement of . Likewise, The Adjoint of a Linear Map is most concretely defined and computed by writing matrices with respect to orthonormal bases, where the adjoint's matrix is simply the conjugate transpose.
Can this theorem fail if the field is not R or C?
The theorem as proved uses properties of the inner product — in particular that with equality only at , and that norms and square roots of nonnegative reals behave as expected — which is precisely why inner product spaces are only defined over or . Over general fields, there is no compatible notion of a positive-definite inner product with a well-behaved square root, so the entire framework, including this theorem, does not extend beyond and .