Basis, Span, and Dimension
Learning objectives
- Define a basis as a linearly independent spanning set and the dimension as the size of any basis
- Compute the dimension of a subspace via row reduction (number of pivots)
- Express any vector in coordinates relative to a chosen basis
- Recognise that every basis of a finite-dimensional space has the same size
A basis is the most efficient possible description of a vector space, just enough vectors to span it, no redundancy. The miracle of finite-dimensional linear algebra is that every basis of a given space has exactly the same size. That shared number is the dimension, and it is the single most useful invariant of a vector space. With a basis in hand, every vector becomes a tuple of coordinates, and every linear map becomes a matrix, concrete, computable, manipulable.
The definition
A basis for a vector space is a set of vectors that is both linearly independent and spans . The cardinality of any basis is the dimension, denoted . The Replacement Theorem guarantees that every basis has the same size, so dimension is well-defined.
The standard basis of is with the unit vector in the -th coordinate. Hence . But infinitely many other bases exist, for example, is a basis of .
Computing dimension by row reduction
To find a basis for the span of vectors in , place them as rows of a matrix and row-reduce. The non-zero rows after reduction form a basis for the row space, and their count is the dimension of the span. Equivalently, place the vectors as columns and identify the pivot columns, those columns (in their original form) are a basis for the column space.
Coordinates
Given a basis , every vector can be written uniquely as . The scalars are the coordinates of in the basis , written [\mathbf{v}]_B. Changing the basis changes the numerical coordinates but never the abstract vector.
- Principal Component Analysis (PCA): Given high-dimensional data, PCA finds an orthonormal basis aligned with the directions of maximum variance. Projecting onto the top basis vectors reduces dimensionality while keeping most of the information, the workhorse of every data-science toolkit.
- JPEG image compression: The Discrete Cosine Transform changes basis from pixel coordinates to a basis of cosine-frequency functions. Most natural images have small coordinates in the high-frequency directions, so dropping those produces strong compression with little visible loss.
- Quantum mechanics: The eigenbasis of a Hamiltonian operator is the "energy basis", expressing a state in those coordinates makes time evolution diagonal and trivial. Choosing the right basis can turn a hard problem into a one-line answer.
Pause and think: Why is the empty set a basis for the trivial vector space ? Vacuously independent and vacuously spanning, how does this reconcile with the formal definitions, and what does it force to equal?
Try it
- Predict whether is a basis for . Verify by checking the determinant \det \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}.
- Before computing, predict the dimension of the subspace . (One linear constraint cuts dimension by one.) Then find an explicit basis.
- Express in the basis . Predict the coordinates by inspection, then verify by solving the linear system.
- Extend the single vector to a basis of . Predict two additional vectors before computing the determinant of the candidate basis matrix.
- Predict: what is the dimension of the space of all symmetric matrices? Verify by counting independent entries.
A trap to watch for
Students sometimes assume that any vectors in form a basis, "right count, must be a basis". This is false. The set has the right count (two vectors in ) but is dependent and spans only the -axis. Conversely, if you find vectors in that are linearly independent, then they DO automatically span (this is a non-obvious consequence of the dimension theorem). The trap is in only checking the count: you must verify either independence (which then implies spanning) or spanning (which then implies independence).
What you now know
You can identify a basis, compute the dimension of a subspace via row reduction, express vectors in arbitrary coordinates, and extend independent sets to full bases. The next section (§1.5) introduces the determinant, the scalar that summarises whether a square matrix is invertible and by how much it scales volumes.
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed. Cambridge University Press, ch. 1, §1.4.
- Axler, S. (2015). Linear Algebra Done Right (3rd ed.). Springer, ch. 2 (bases, dimension).
- Strang, G. (2016). Introduction to Linear Algebra (5th ed.). Wellesley-Cambridge, ch. 3 (vector spaces and subspaces).
- Halmos, P. R. (1958). Finite-Dimensional Vector Spaces (2nd ed.). Van Nostrand, ch. 1 (basis and dimension).
- Hoffman, K., Kunze, R. (1971). Linear Algebra (2nd ed.). Prentice-Hall, ch. 2.