Dimension is the number of independent directions in a vector space. For a finite-dimensional vector space, it is the number of vectors in any basis. This definition is valid because all bases of a vector space have the same number of elements.
Dimension turns the qualitative ideas of span and independence into a numerical invariant. It tells us how many coordinates are needed to describe each vector in the space.
22.1 Definition
Let be a vector space. If has a basis with vectors, then is said to have dimension . We write
If no finite basis exists, then is called infinite-dimensional.
The zero vector space
has dimension . Its basis is the empty list. This convention is consistent: no independent direction is needed to describe the zero vector.
22.2 Dimension of
The standard basis of is
There are vectors in this basis. Therefore
For example,
The plane has two independent directions. Ordinary three-dimensional space has three independent directions.
22.3 Dimension Counts Coordinates
If has dimension , then every vector in is described by coordinates after a basis is chosen.
Let
be a basis of . Every vector has a unique expression
The coordinate vector is
Thus an -dimensional vector space behaves like once a basis is fixed.
22.4 Why Dimension Is Well-Defined
The definition of dimension depends on the fact that all bases have the same size. If one basis of had three vectors and another had five, then dimension would be ambiguous.
The dimension theorem states that all bases of a vector space have the same cardinality. In finite-dimensional linear algebra, this follows from the exchange principle: an independent set cannot contain more vectors than a spanning set.
In particular, if
is a basis, then every other basis also contains vectors.
Therefore depends only on the vector space , not on the chosen basis.
22.5 Independent Sets and Spanning Sets
Dimension controls the possible size of independent and spanning sets.
Let
Then:
| Statement | Meaning |
|---|---|
| Any independent set has at most vectors | There are at most independent directions |
| Any spanning set has at least vectors | At least vectors are needed to generate the space |
| Any independent set with vectors is a basis | It already has enough directions |
| Any spanning set with vectors is a basis | It has no room for redundancy |
These facts are among the most useful dimension tests.
22.6 Dimension of Subspaces
If is a subspace of a finite-dimensional vector space , then
A subspace cannot have more independent directions than the space containing it.
For example, if
then the only possible finite dimensions are
The corresponding geometric cases are:
| Dimension | Subspace of |
|---|---|
| 0 | The zero subspace |
| 1 | A line through the origin |
| 2 | A plane through the origin |
| 3 | All of |
22.7 Dimension of a Line
Let
The spanning vector is nonzero. Therefore the one-vector list
is linearly independent.
It spans by definition. Hence it is a basis of , and
Every one-dimensional subspace is a line through the origin.
22.8 Dimension of a Plane
Consider
Solve for :
Then
Thus
These two vectors are not scalar multiples of one another. Hence they are linearly independent.
Therefore they form a basis of , and
A single homogeneous linear equation in , when nonzero, usually defines a plane through the origin.
22.9 Dimension of Polynomial Spaces
Let be the vector space of real polynomials of degree at most .
The list
is a basis of . It contains vectors. Therefore
For example,
The dimension is one more than the maximum degree because the constant term also gives an independent coefficient.
22.10 Dimension of Matrix Spaces
Let be the vector space of all real matrices.
A matrix in this space has entries. Each entry can vary independently. Therefore
For example,
because
has four independent entries.
A standard basis consists of matrices , where has a in position and zeros elsewhere.
22.11 Infinite-Dimensional Spaces
A vector space is infinite-dimensional if no finite list spans it.
The vector space of all real polynomials is infinite-dimensional. The list
spans , but no finite sublist can span all polynomials. A finite list of polynomials has a maximum degree, so it cannot produce polynomials of higher degree.
The vector space of all real-valued functions on is also infinite-dimensional.
In elementary linear algebra, most spaces are finite-dimensional. Infinite-dimensional spaces become central in analysis, Fourier theory, differential equations, and functional analysis.
22.12 Dimension and Coordinates
Dimension is not the number of elements in a vector space. Most vector spaces over contain infinitely many vectors even when their dimension is finite.
For example,
has infinitely many vectors, but
Dimension counts the number of coordinates needed to specify a vector, not the number of vectors in the space.
Similarly, a line through the origin contains infinitely many vectors, but it has dimension .
22.13 Dimension and Linear Systems
Dimension appears naturally in solution sets of homogeneous systems.
Consider
The solution set is the null space of . Its dimension is called the nullity of :
If there are many free variables, the null space has high dimension. If there are no free variables, the null space has dimension .
For a matrix with columns,
This is the rank-nullity theorem. It will be studied in detail later.
22.14 Dimension of Column Space
The column space of a matrix is the span of its columns.
Its dimension is called the rank of :
The rank is the number of independent columns of . It is also the number of pivot columns in a row-reduced form of .
For example, if a matrix has three columns but only two pivot columns, then its column space has dimension .
Thus rank measures the dimension of the output space generated by the matrix.
22.15 Dimension of Row Space
The row space of a matrix is the span of its rows.
The dimension of the row space is also equal to the rank of the matrix. Thus
This equality is not obvious from the definitions because row vectors and column vectors live in different spaces. It is one of the fundamental facts revealed by row reduction.
22.16 Dimension and Isomorphism
Two finite-dimensional vector spaces over the same field are isomorphic exactly when they have the same dimension.
If
then choosing bases identifies both spaces with
Thus they have the same linear structure.
For example, and are isomorphic because both have dimension . The map
is a linear isomorphism.
The objects look different, but their vector space structure is the same.
22.17 Dimension Formula for Sums
If and are finite-dimensional subspaces of , then
This formula corrects double counting. Vectors in the intersection belong to both and , so their dimension is counted twice in .
If
then
In that case, the sum is direct.
22.18 Dimension as Degrees of Freedom
Dimension can be interpreted as the number of degrees of freedom.
For example, the equation
in leaves two free parameters. Hence its solution space has dimension .
The system
usually leaves one free parameter, so its solution space has dimension .
Each independent homogeneous linear equation reduces dimension by one. Dependent equations do not reduce dimension further.
22.19 Common Dimension Values
| Space | Dimension |
|---|---|
| , polynomials of degree at most | |
| A line through the origin in | |
| A plane through the origin in | |
22.20 Summary
Dimension is the number of vectors in a basis. It counts independent directions, coordinates, or degrees of freedom.
The key ideas are:
| Concept | Meaning |
|---|---|
| Dimension | Number of vectors in any basis |
| Finite-dimensional space | Has a finite basis |
| Infinite-dimensional space | Has no finite basis |
| Dimension of subspace | Number of independent directions inside it |
| Rank | Dimension of the column space |
| Nullity | Dimension of the null space |
| Degrees of freedom | Number of independent parameters |
| Isomorphism criterion | Same finite dimension over the same field |
Dimension is one of the main invariants of linear algebra. It tells how large a vector space is in its linear structure, independent of the particular coordinates used to describe it.