Chapter 2 · Section 2.4

Dimension

We've established that every finite-dimensional vector space has a basis. But a vector space can have many different bases. The remarkable fact -- arguably the most important theorem in this chapter -- is that they all have the same length.

Theorem 2.13: Basis Length Does Not Depend on Basis
Any two bases of a finite-dimensional vector space have the same length.
IntuitionThis is why dimension is well-defined. No matter which basis you choose for R3\R^3, you always get 3 vectors. The "size" of a vector space is an intrinsic property, not an artifact of a particular basis.
Proof
Let B1B_1 and B2B_2 be two bases of VV. Since B1B_1 is independent and B2B_2 spans VV, Theorem 2.8 gives ∣B1∣≤∣B2∣|B_1| \leq |B_2|. Since B2B_2 is independent and B1B_1 spans VV, the same theorem gives ∣B2∣≤∣B1∣|B_2| \leq |B_1|. Therefore ∣B1∣=∣B2∣|B_1| = |B_2|.
What this proof is really doingThe proof is elegant: use the theorem that says "independent lists can't be longer than spanning lists" twice, with the roles swapped. Both inequalities together force equality.
◼
Definition 2.14: Dimension
The dimension of a finite-dimensional vector space VV, written dimV\dim V, is the length of any basis of VV.
IntuitionDimension is the number of "degrees of freedom" in the space. Rn\R^n has dimension nn. A plane through the origin in R3\R^3 has dimension 2. A line through the origin has dimension 1. The trivial space {0}\{0\} has dimension 0.

Dimension gives us powerful shortcuts for checking whether a list is a basis:

Theorem 2.15: Dimension and Bases
Suppose VV is finite-dimensional with dimV=n\dim V = n. Then: (a) Any linearly independent list of length nn in VV is a basis. (b) Any spanning list of length nn in VV is a basis.
IntuitionOnce you know the dimension, you only need to check one condition instead of two. nn independent vectors? They must also span. nn vectors that span? They must also be independent. The dimension acts as a constraint.
Using dimension to verify a basis
To show that (1,2,3)(1, 2, 3), (0,1,2)(0, 1, 2), (0,0,1)(0, 0, 1) is a basis for R3\R^3, we only need to check independence (since dimR3=3\dim \R^3 = 3 and the list has length 3). Setting a(1,2,3)+b(0,1,2)+c(0,0,1)=0a(1,2,3) + b(0,1,2) + c(0,0,1) = 0: from the first component a=0a = 0, then from the second b=0b = 0, then from the third c=0c = 0. Independent, so it's a basis.
Theorem 2.16: Dimension of a Subspace
If UU is a subspace of a finite-dimensional vector space VV, then dimU≤dimV\dim U \leq \dim V.
IntuitionA subspace can't be "bigger" than the space it lives in. The dimension of a subspace is at most the dimension of the parent space.
Theorem 2.17: Dimension of a Sum
If U1U_1 and U2U_2 are subspaces of a finite-dimensional vector space, thendim(U1+U2)=dimU1+dimU2−dim(U1∩U2)\dim(U_1 + U_2) = \dim U_1 + \dim U_2 - \dim(U_1 \cap U_2)
IntuitionThis is the inclusion-exclusion formula, but for vector spaces. If two subspaces overlap, you're double-counting the overlap when you add their dimensions. Subtract it once to get the dimension of the sum. Compare with sets: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|.
Dimension formula
Let U1={(x,y,0):x,y∈R}U_1 = \{(x, y, 0) : x, y \in \R\} and U2={(0,y,z):y,z∈R}U_2 = \{(0, y, z) : y, z \in \R\} in R3\R^3. Then U1∩U2={(0,y,0):y∈R}U_1 \cap U_2 = \{(0, y, 0) : y \in \R\}, which has dimension 1. So dim(U1+U2)=2+2−1=3\dim(U_1 + U_2) = 2 + 2 - 1 = 3. Indeed U1+U2=R3U_1 + U_2 = \R^3.
Dimension is one of the most useful concepts in linear algebra. Many proofs reduce to counting dimensions. For example, two subspaces U1U_1 and U2U_2 of a vector space VV satisfy V=U1⊕U2V = U_1 \oplus U_2 if and only if V=U1+U2V = U_1 + U_2 and dimV=dimU1+dimU2\dim V = \dim U_1 + \dim U_2.

Worked Examples

Dimension of polynomial spaces
What is the dimension of Pm(F)\mathcal{P}_m(\F), the space of polynomials of degree at most mm?
SolutionA basis is 1,x,x2,…,xm1, x, x^2, \ldots, x^m. This list has m+1m + 1 elements, so dimPm(F)=m+1\dim \mathcal{P}_m(\F) = m + 1. For example, the space of polynomials of degree at most 2 has dimension 3 (basis: 1,x,x21, x, x^2).

Practice Problems

Problem 1standardCustom
What is the dimension of the subspace U={(x,y,z,w)∈R4:x+y=0 and z−w=0}U = \{(x, y, z, w) \in \R^4 : x + y = 0 \text{ and } z - w = 0\}?
Problem 2basicAxler
If dimV=5\dim V = 5 and you have a linearly independent list of 5 vectors in VV, is it automatically a basis?
Problem 3challengeAxler
Let UU and WW be subspaces of R5\R^5 with dimU=3\dim U = 3 and dimW=4\dim W = 4. What is the smallest possible dimension of U∩WU \cap W?