Take the 3 by 3 matrix with columns , and , where each tuple stands for a column vector. The second column is twice the first, so the outputs cannot fill all of . Which plane do they fill, and how can we find such a plane when the dependence is harder to see? This lesson finds bases for the column space and the row space of a matrix by elimination, shows that the two spaces always have the same dimension, and uses that number, the rank, to factor the matrix.
Key terms
Column space
Definition Let be a real matrix with columns . The column space of is the span of its columns,
The two descriptions agree because . Each column has entries, so is a subspace of , the output space of . The system has a solution exactly when lies in .
In plain words The column space is the set of all outputs the matrix can produce. Each output is a combination of the columns, weighted by the entries of the input.
Example Write the matrix from the opening as
In each column the third entry is the sum of the first two, so every output lies in the plane of . The columns and are not parallel, so they span a two-dimensional subspace of that plane, which is therefore the whole plane. Thus is the plane . The target is not in it, since , so the system has no solution.
Row space
Definition The row space of a real matrix is the span of its rows, where each row is identified with the vector of that has the same entries. Equivalently , a subspace of , the input space of . Row operations do not change the row space, because each new row is a combination of the old rows and each operation can be undone. The nonzero rows of any echelon form of are linearly independent, since in a zero combination of them the pivot columns, read from left to right, force each coefficient to be zero in turn. So those nonzero rows form a basis of .
In plain words The row space collects every combination of the rows. It lives in the input space, so its vectors have one entry for each column of , even when the matrix is square and the input and output spaces are both .
Example For , the operations and come first. Then , and give the reduced row echelon form .
So has basis , . It consists of the vectors , the plane in . All three rows of are nonzero, but row 3 is row 1 plus row 2, so counting the nonzero rows of itself would overstate the dimension.
Pivot columns of the original matrix
Definition Let be a real matrix and an echelon form of . The columns of with the same indices as the pivot columns of form a basis of . The reason is that for an invertible matrix , the product of the elementary matrices of the row operations, so exactly when . Hence the columns of and the columns of satisfy the same linear relations. In the pivot columns are independent and every other column is a combination of them, so the same holds for the columns of . The pivot columns of itself need not lie in , because row operations can change the column space.
In plain words Let the echelon form tell you which columns to keep, then take those columns from the original matrix. Row operations keep the relations among the columns but can change the columns themselves.
Example The reduced form of has pivots in columns 1 and 3, so the first and third columns of , namely and , form a basis of . The second column is twice the first in and in alike. The pivot columns of are and , and neither lies in . For instance, the third entry of is , not the sum of its first two entries. The column space of is the plane , a different plane.
Rank
Definition The rank of a real matrix is the dimension of its column space,
Since the pivot columns of form a basis of , the rank equals the number of pivots in any echelon form of . Each pivot uses its own row and its own column, so .
In plain words The rank counts the independent directions among the outputs. It is the number of columns you really need once the redundant ones are dropped.
Example The matrix has two pivots, so and its outputs fill a plane rather than all of . The zero matrix has rank , and the identity matrix has rank .
Equality of row rank and column rank
Definition The row rank of a real matrix is , and its column rank is . For every such matrix the two are equal,
Both numbers equal the number of pivots in an echelon form of , so the row rank and the column rank are the same number, the rank. Proof. Reduce to an echelon form with pivots. The pivot columns of form a basis of , and the nonzero rows of the echelon form, one for each pivot, form a basis of . Both bases have vectors. The proof uses two different facts, that row operations keep the row space itself and that they keep the linear relations among the columns. Since , it follows that .
In plain words The largest number of independent rows of a matrix equals the largest number of independent columns, even when the rows and the columns have different lengths and the two spaces are different.
Example Let
Its two rows are independent, and its first two columns are and of , so the row rank and the column rank are both . Yet , while consists of the vectors , the plane in . Equal dimensions do not make two spaces equal, and here the spaces do not even lie in the same .
Rank factorization
Definition Let be a real matrix of rank . A rank factorization of is a product
where is with linearly independent columns and is with linearly independent rows. One always exists. Take for the pivot columns of , in order, and for the nonzero rows of the reduced row echelon form of . Column of then lists the coefficients that write column of as a combination of the columns of . In every rank factorization the columns of form a basis of and the rows of form a basis of .
In plain words The matrix keeps a basis of the outputs, and records how to rebuild every column from that basis. Applying becomes two steps. First turns the input into weights, then combines its columns with those weights.
Example For the pivot columns are columns 1 and 3, and the nonzero rows of are and , so
The columns of are , and . They say that the columns of are the first column of , twice the first column of , and the second column of . For the input the first step gives , and the second gives
which is . The rows of confirm it directly, since , and .
Check yourself
- A real 3 by 5 matrix has rank . In which spaces do and lie, and what is the largest possible value of ?
Show the answer
Each column has entries, so is a subspace of . Each row has entries, so is a subspace of . There are only three rows to hold pivots, so . The value does occur, for example when the first three columns of are , and , so the largest possible rank is . In particular the row space is never all of .
- A student reduces the matrix below to reduced row echelon form and offers its pivot columns and as a basis of . Explain the error and give a correct basis.
Show the answer
The operation gives the row , and then gives a zero row. The reduced form has rows , and , with pivots in columns 1 and 2. Those positions are right, but they select columns of itself, here and , and these form a basis of . Every combination of them has the form , so every vector in satisfies . The vector gives and gives , so neither is in at all. The rank is .
- Find the rank of the matrix below, a basis of its column space, a basis of its row space and a rank factorization.
Show the answer
The operations and come first, then and .
The pivots are in columns 1 and 3, so . A basis of in is , , the first and third columns of . A basis of in is , . A rank factorization is
As a check, the last column of says that column 4 of is , which is correct.