physics2u
Depth
PU-104 / L03 · lecture

Bases and the Invariance of Dimension

~6 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)

BEFORE YOU START

You should be comfortable with the definitions of a vector space, linear independence, and spanning sets from the previous lecture. Familiarity with basic set theory notation, particularly cardinality, is assumed.

Why this matters

Dimension is the single most fundamental invariant of a vector space.

In physics, we frequently switch between coordinate systems—Cartesian, spherical, or principal axes—without changing the underlying physical reality. The concept of dimension guarantees that the number of independent degrees of freedom remains constant regardless of the basis chosen. This invariance is the mathematical bedrock that allows us to define matrices, perform change-of-basis operations, and ultimately apply the spectral theorem to self-adjoint operators, which describes observable quantities in quantum mechanics.

The Intuition of Dimension

Imagine a room. To specify the location of a point inside it, you need three numbers: length, width, and height. These three directions are independent; you cannot describe "width" using only "length" and "height." Now, imagine you rotate your coordinate system so that your "x-axis" points diagonally across the floor. You still need exactly three numbers to locate the point. The room has not changed; the number of independent directions required to describe any point within it has not changed. This number is the dimension. It is an intrinsic property of the space itself, not a feature of the specific axes you chose to draw. If a space can be described by two independent directions, it is two-dimensional, no matter how you orient your rulers. This lecture formalizes this intuition by proving that all valid "rulers" (bases) for a finite-dimensional space must have the same number of "ticks" (vectors).

Defining the Dimension

A basis for a vector space \(V\) is a set of vectors that is both linearly independent and spans \(V\). This means every vector in \(V\) can be written uniquely as a linear combination of the basis vectors. The dimension of \(V\), denoted \(\dim V\), is defined as the number of vectors in any basis of \(V\). The critical question is: what if we choose a different basis? Does the number of vectors change? The Invariance of Dimension theorem answers this definitively.

Let \(B = \{ \mathbf{v}_1, \dots, \mathbf{v}_n \}\) be a basis for \(V\). Let \(B' = \{ \mathbf{w}_1, \dots, \mathbf{w}_m \}\) be another basis for \(V\). The theorem states that \(n = m\). This result is profound because it ensures that \(\dim V\) is a well-defined integer. Without this invariance, the concept of dimension would be ambiguous, and the linear algebraic structures we rely on, such as the rank of a matrix or the number of eigenvalues, would lose their meaning.

The Exchange Lemma

The proof of the Invariance of Dimension relies on a powerful tool known as the Exchange Lemma (or Steinitz Exchange Lemma). The lemma states that if \(S\) is a linearly independent set and \(T\) is a spanning set, then \(|S| \leq |T|\). In the context of bases, since a basis is both independent and spanning, we can apply the lemma in both directions.

Suppose \(B\) and \(B'\) are two bases of \(V\). Since \(B\) is independent and \(B'\) spans \(V\), the Exchange Lemma implies \(|B| \leq |B'|\). Conversely, since \(B'\) is independent and \(B\) spans \(V\), the lemma implies \(|B'| \leq |B|\). Combining these two inequalities, we must have \(|B| = |B'|\). This symmetry is the core of the invariance argument. It shows that the size of a basis is not arbitrary but is strictly constrained by the structure of the vector space.

\[ |B| \leq |B'| \quad \text{and} \quad |B'| \leq |B| \implies |B| = |B'| \equiv \dim V \]

Consequences for Linear Maps

The invariance of dimension has immediate consequences for linear maps. If \(T: V \to W\) is a linear map, the dimension of the domain and codomain dictates the possible ranks and nullities of \(T\). The Rank-Nullity Theorem states that \(\dim V = \mathrm{rank}(T) + \mathrm{nullity}(T)\). Because \(\dim V\) is invariant, the sum of the dimensions of the image and the kernel is fixed. This is crucial in physics when analyzing constraints. For example, in a system of coupled oscillators, the number of normal modes (the dimension of the configuration space) is invariant under the choice of generalized coordinates. Whether you use Cartesian coordinates or normal coordinates, the number of independent modes remains the same.

Furthermore, the concept of dimension allows us to define isomorphisms. Two vector spaces are isomorphic if and only if they have the same dimension. This means that, from a purely linear algebraic perspective, all \(n\)-dimensional vector spaces over the same field are structurally identical. This abstraction allows us to transfer results from one physical context to another, provided the dimensions match.

The derivation

◆ DERIVATION EMBED · D-074 · not re-derived here

Invariance of Dimension of a Vector Space

Let \(V\) be a vector space over a field \(\mathbb{F}\) that is spanned by a finite set. Then any two bases of \(V\) are finite and have exactly the same number of elements. Consequently the integer \(\dim V\), defined as the cardinality of any basis, is a well-defined invariant of \(V\) that does not depend on the choice of basis.

\[ |B| = |B'| \equiv \dim V \quad\text{for every pair of bases } B, B'. \]
Open full derivation →
Tier 3 · watch out

A common misconception is that the dimension of a subspace is simply the number of vectors in a spanning set. This is incorrect; the dimension is the number of vectors in a *basis* (a minimal spanning set). If you span a 3D space with 10 vectors, the dimension is still 3, not 10. Always reduce your spanning set to a linearly independent subset to determine the true dimension. Confusing spanning sets with bases leads to overcounting degrees of freedom in physical systems. C

Worked example

Problem. Consider the vector space \(V = \mathbb{R}^3\). Let \(B = \{ \mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3 \}\) be the standard basis, where \(\mathbf{e}_1 = (1,0,0)\), \(\mathbf{e}_2 = (0,1,0)\), and \(\mathbf{e}_3 = (0,0,1)\). Let \(B' = \{ \mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3 \}\) be another basis, where \(\mathbf{u}_1 = (1,1,0)\), \(\mathbf{u}_2 = (1,0,1)\), and \(\mathbf{u}_3 = (0,1,1)\). Verify that \(B'\) is a basis and determine \(\dim V\).

  1. Check linear independence of \(B'\). Form the matrix with columns \(\mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3\) and compute its determinant. If the determinant is non-zero, the vectors are linearly independent.
  2. Since \(B'\) is linearly independent and has 3 vectors in \(\mathbb{R}^3\), it spans \(\mathbb{R}^3\). Thus, \(B'\) is a basis.
  3. By the Invariance of Dimension, since \(B\) is a basis with 3 vectors, \(\dim V = 3\). The number of vectors in \(B'\) must also be 3, which matches our count.
\[ \det \begin{pmatrix} 1 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 1 & 1 \end{pmatrix} = 1(0-1) - 1(1-0) + 0 = -2 \neq 0 \implies \dim V = 3 \]

Units check. Dimension is a pure number (cardinality), so it is dimensionless. The vectors have units of length (if physical), but the count of basis vectors is unitless.

CHECK YOURSELF

Three quick tests

  1. Can a vector space have two different dimensions depending on the basis chosen?
    AnswerNo. The Invariance of Dimension theorem guarantees that all bases have the same cardinality.
  2. If \(V\) is a 2D vector space, can a set of 3 vectors be a basis for \(V\)?
    AnswerNo. A basis must be linearly independent. In a 2D space, any set of 3 vectors is linearly dependent.
  3. What is the dimension of the zero vector space \(\{ \mathbf{0} \}\)?
    AnswerThe dimension is 0. The empty set is the basis, as it spans the zero space and is trivially linearly independent.
PROBLEMS

Problem set for PU-104 →

Each derivation in this unit ends with five graded problems with full solutions.

NOTES

Lecture notes drafted with a local model and checked line by line by the editor; every number in the worked example was recomputed.

Derivations cited: D-074 · Threads: symmetry, waves, matter