Lesson 4.4 · Vector Spaces
Dimension
A plane has many different bases, but every one of them has exactly two vectors. That number does not depend on which basis you choose, so it measures something intrinsic about the space itself: its dimension. Dimension turns vague phrases like "a line's worth" or "a plane's worth" of solutions into precise numbers.
Every basis has the same size
The whole idea rests on one fact about independence.
Too many vectors are dependent
If a vector space has a basis with vectors, then any set in containing more than vectors is linearly dependent. Consequently, every basis of has exactly vectors.
Here is why. Let be a basis and take vectors in with . Each is a combination of the basis vectors, so write and collect the coefficients into an matrix . Because has more columns than rows, has a nontrivial solution . Then
a nontrivial dependence. For the second claim, if is another basis, it can't have more than vectors (it is independent), and by the same argument with the roles swapped can't have more vectors than . So both have .
Definition
Dimension
If is spanned by a finite set, is finite-dimensional, and its dimension, written , is the number of vectors in any basis of . The dimension of the zero space is defined to be . If is not spanned by any finite set, it is infinite-dimensional.
Counting standard bases gives the dimensions of the familiar spaces:
- (the basis ).
- (the basis has vectors).
- (one matrix with a single in each position).
- The space of all polynomials is infinite-dimensional: any finite set of polynomials has a maximum degree, so it can't span.
Common mistake
is , not . The constant term counts. For example, has the basis , so .
Subspaces of R^3
Dimension sorts the subspaces of cleanly:
- 0-dimensional: only .
- 1-dimensional: spanned by one nonzero vector, so lines through the origin.
- 2-dimensional: spanned by two independent vectors, so planes through the origin.
- 3-dimensional: three independent vectors in span all of .
A subspace of a finite-dimensional space always satisfies , and any independent set in can be extended to a basis of .
The basis theorem
In general you must check both independence and spanning to confirm a basis. Once you know the dimension, one of them is enough.
The basis theorem
Let have dimension .
- Any linearly independent set of exactly vectors in is a basis.
- Any set of exactly vectors that spans is a basis.
For instance, you showed in the previous lesson that three polynomials in were independent. Since , they automatically span .
Dimensions of Nul A and Col A
The bases you built in the last lesson make these dimensions easy to count.
Counting with pivots
For an matrix :
- is the number of free variables in .
- is the number of pivot columns of .
Since every column is either a pivot column or corresponds to a free variable, these two numbers add up to . The next lesson makes this into a theorem.
Worked example: Dimension of a solution set
Find the dimension of .
is for the matrix . There is one pivot and three free variables (), so . Geometrically, is a 3-dimensional "hyperplane" in .
Worked example: Dimension of a parametrized subspace
Find the dimension of the subspace of consisting of all vectors
Split by parameter: with
Three parameters do not guarantee dimension . Here , so can be dropped. The remaining two vectors are independent (neither is a multiple of the other: every multiple of has third entry , and the only multiple of with third entry is the zero vector). So is a basis and .
Tip
When a subspace is described by parameters, the dimension is at most the number of parameters. It equals that number only if the spanning vectors are independent. Row reducing the matrix and counting pivots settles it.
Practice
What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the dimension of , the space of matrices?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the dimension of the subspace of defined by and .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
is a matrix with pivot columns. What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
is a set of polynomials in . Which statement must be true?
Let . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.