Lesson 4.5 · Vector Spaces
Rank
A matrix has columns and rows, and each set spans its own subspace. Remarkably, those two subspaces always have the same dimension, and that single number, the rank, controls how many solutions can have. The Rank Theorem ties it all together in one equation.
The row space
Think of each row of an matrix as a vector in .
Definition
Row space
The row space of , written , is the set of all linear combinations of the rows of . It is a subspace of . Since the rows of are the columns of , .
Row operations interact with the row space very differently than with the column space. Each row operation replaces rows by combinations of rows, so the new rows lie in the old row space. Each operation is also reversible, so the old rows lie in the new row space. Therefore:
Row space and row reduction
If and are row equivalent, then . If is in echelon form, the nonzero rows of form a basis for (and for ).
The nonzero rows of an echelon form are independent because each has a leading entry in a column where all the rows below it have zeros.
Worked example: Bases for all three subspaces
Find bases for , and , where
gives and gives , then gives a zero row:
Row space: the nonzero rows of , namely and .
Column space: pivots are in columns and , so use columns and of : and .
Null space: scale row of by and add it to row to get the reduced form with rows and . So and , giving the basis and .
All three bases have size , and , and , the number of columns.
Common mistake
For the row space you use the rows of the echelon form; for the column space you use the columns of the original matrix. Mixing these up is the most common error here. (The rows of itself also span , but they may be dependent, as the third row of above is the sum of the first two.)
Rank and the Rank Theorem
Definition
Rank
The rank of is the dimension of its column space: .
Both and equal the number of pivots in an echelon form of : the pivot columns give a basis for , and each nonzero row of the echelon form contains exactly one pivot. Meanwhile, each non-pivot column gives one free variable.
The Rank Theorem
For an matrix ,
In words: (pivot columns) + (free columns) = (total columns). The quantity is often called the nullity of .
Two consequences come up constantly:
- , since pivots need distinct rows and distinct columns.
- , because .
Using the Rank Theorem
The theorem lets you answer questions about solutions without doing any row reduction.
Worked example: Information from dimensions alone
(a) A matrix has a 2-dimensional null space. Is consistent for every in ?
. So is a 7-dimensional subspace of , which must be all of . Yes, every equation is consistent.
(b) Can a matrix have a 2-dimensional null space?
That would force . But the rank is at most , the number of rows. So no: the null space of a matrix has dimension at least .
Worked example: Choosing a parameter to control the rank
For what value of does have rank ?
Expanding along the first row,
If , is invertible with rank . If , row is twice row , and row is not a multiple of row , so exactly two rows are independent and the rank is . The answer is .
Rank and invertibility
For a square matrix, the Rank Theorem adds new entries to the Invertible Matrix Theorem. Each of the following is equivalent to being invertible:
- The columns of form a basis of .
- .
- .
- , that is, .
Tip
To sanity-check any rank calculation, add the rank to the number of free variables. If the total isn't the number of columns, something went wrong.
Practice
is a matrix with rank . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the rank of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
is a matrix with . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
is a matrix. What is the smallest possible value of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Can a matrix have a null space of dimension ?
is a matrix, and has a solution for every in . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
is a matrix with . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For what value of does have rank ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.