Lecture 7: Rank, Linear Maps, and Change of Basis
These notes are interactive: click a section title to open it, click any dotted term to unfold its exact definition or statement in place, click ▸ Proof to expand a proof, and try the exercises — answers are checked instantly.
7.1 Bases for the null space, column space, and row space
Lecture 6 attached three subspaces to every matrix. One row reduction produces a basis of each of them, and the recipe is short: the pivot columns of for the column space, the nonzero rows of an echelon form for the row space, and the vectors of the parametric vector form for the null space. The one subtle point is that row operations change the column space but not the relations among the columns; that is why the basis of is taken from itself.
Let be obtained from the matrix by a sequence of row operations. Then . Consequently, for all scalars , where and are the columns of and . In particular a set of columns of is independent if and only if the corresponding columns of are, and is a combination of certain other columns of , with certain weights, if and only if is the same combination of the corresponding columns of .
By Lecture 4, where is a product of elementary matrices, which is invertible by the lemma on elementary matrices. If then , and if then . By the column view the two displayed equations say and .
□The pivot columns of form a basis of .
Let be the reduced echelon form of , with pivots. Its pivot columns are (each pivot is and the only nonzero entry of its column), so they are independent. Every other column of has zeros in rows , which are zero rows, so it is a combination of . By the lemma, the same two statements hold for the corresponding columns of : the pivot columns of are independent, and every other column of is a combination of them. Removing the other columns one at a time does not change the span, by Lecture 6, so the pivot columns of span .
□Row operations usually change the column space. In Lecture 6's example, every vector of satisfies , while every column of the reduced echelon form has third entry ; the two column spaces are different planes in . The echelon form tells us which columns to take; the columns themselves come from .
If is obtained from by row operations, then .
This is the remark of Lecture 6 on row operations: a replacement leaves the span of the rows unchanged by the proposition on replacing a vector, a swap only reorders the rows, and a scaling by can be undone by scaling by .
□The nonzero rows of any echelon form of (written as columns) form a basis of .
By the lemma, , which is spanned by the nonzero rows of (zero rows add nothing). To see that they are independent, suppose . In the column of the pivot of , the rows below have zeros (the staircase shape), so that entry of the combination is times the pivot; hence . Then look at the pivot column of , whose entries in rows are zero, to get ; and so on, down to .
□Solve by row reduction and write the solution in parametric vector form, with one vector for each free variable. These vectors form a basis of . In particular is the number of free variables, and when there are none.
The vectors span by construction. The vector belonging to the free variable has entry in position , and the vectors belonging to the other free variables have entry in position . So in a combination equal to , entry shows that the weight of the vector of is , for every free variable .
□Let Starting from , which happens to be the reduced echelon form. The pivots are in columns .
Column space. By the theorem, columns of form a basis: Column of is , so by the lemma ; check: Similarly .
Row space. By the theorem, the three nonzero rows of form a basis: , , , and .
Null space. The free variables are and , and gives , , : by the theorem.
Let have reduced echelon form . Which columns form a basis of ?
Pivot columns, taken from itself (the theorem and the remark).
For the matrix of the previous exercise, column of equals . What is ?
Column of the reduced form is , the same combination of its pivot columns; by the lemma the relation holds in .
7.2 Rank and the rank theorem
The example just computed shows a pattern: three pivots, a column space of dimension , a row space of dimension , and a null space of dimension . All three dimensions are read off the single number of pivots. This is the rank theorem, and it says something that is not at all obvious from the definitions: the columns and the rows of any matrix span spaces of the same dimension, even though these spaces live in different and .
The rank of a matrix is the dimension of its column space: . The dimension of is sometimes called the nullity of .
Let be an matrix whose echelon form has pivots. Then Consequently , and .
By the column-space basis there are pivot columns in a basis of ; by the row-space basis there are nonzero rows in a basis of ; and by the null-space basis together with the counting rule of Lecture 2, a basis of has one vector per free variable, that is, vectors. Since , we get . Finally, each pivot uses its own row and its own column, so and .
□For the matrix of the three-bases example, and , and .
The theorem also answers questions without any computation.
- A matrix has a null space of dimension . Then , so is a -dimensional subspace of , which is all of by Lecture 6: the system is consistent for every .
- A matrix has rank at most , so its null space has dimension at least ; it can never be a line.
- A matrix has rank at most , so its columns span at most a -dimensional subspace of , and some systems are inconsistent.
Every matrix has exactly one reduced row echelon form.
Let and be reduced echelon forms of . By the lemma on column relations, applied to and to , a linear relation holds among columns of if and only if it holds among the same columns of , if and only if it holds among the same columns of .
In a reduced echelon form, column is a pivot column exactly when it is not a combination of the columns before it: a pivot column with its pivot in row has a in row , while all earlier columns are zero in rows ; and a non-pivot column is a combination of the pivot columns before it, as in the proof of the column-space theorem. This property is a statement about column relations, so and have the same pivot columns , which in both matrices are , in this order.
A non-pivot column of is . The same relation then holds in , so , and likewise . The pivot columns of are independent, so by unique representation for all . Hence every column of equals the corresponding column of , and .
□Lecture 2 took the uniqueness of the reduced echelon form on faith, which is why the number of pivots, and hence the rank, is a property of and not of the way we reduce it. The theorem proves it, and the rank theorem gives a second reason: the number of pivots of any echelon form equals .
For an matrix the following are equivalent to the invertibility of , and so to every condition of Lecture 4's theorem and to :
- ;
- ;
- ;
- ;
- the columns of form a basis of .
By the rank theorem, each of (1)–(4) says that an echelon form of has pivots (for (3) and (4), use part (3) of Lecture 6's theorem: an -dimensional subspace of is ), which is condition (3) of the invertibility theorem. Condition (5) is Lecture 6's theorem on bases of .
□A matrix has rank . What is the dimension of its null space?
.
What is the rank of ?
Row is twice row ; after and there are two nonzero rows, and , in echelon form.
7.3 Linear maps between vector spaces
Lecture 3 defined linear maps from to . The definition makes sense between any two vector spaces, and many familiar operations turn out to be linear: differentiating a polynomial, transposing a matrix, evaluating a function at a point. The same questions apply to all of them (which vectors go to , which outputs are reached), and the rank theorem has a version for maps. A linear map is also economical to describe: its values on a basis determine it completely.
Let and be vector spaces. A function is a linear map (or linear transformation) if for all and , As in Lecture 3, it follows that , and .
- Differentiation , , is linear: and , the sum and constant-multiple rules of calculus. For example .
- Transpose , , is linear: and .
- Evaluation , , is linear, because and at each .
- Coordinates. For a basis of with vectors, is a linear map , by Lecture 6.
For a linear map , the kernel and the image of are For these are and , as in Lecture 6.
is a subspace of , is a subspace of , and is injective if and only if .
puts in both. If , then and . For the image, and are again outputs. Finally, if is injective and , then ; conversely, if and , then , so .
□Let be finite-dimensional and linear. Then
Choose a basis of and extend it to a basis of , by Lecture 6; so . We show that is a basis of , which gives .
Spanning. Every can be written uniquely as by unique representation. Since is linear and for every , So every output of is a combination of .
Independence. If , then , so and for some . Then is a relation among the vectors of a basis of , so all .
□For , is the set of constant polynomials (derivative ), of dimension , and , since every is the derivative of . Indeed . So is surjective but not injective, which is the reason an antiderivative is only determined ``up to a constant''.
Let be a basis of , and let be any vectors of . Then there is exactly one linear map with for , namely
At most one. A linear map with must send to , and every vector of has this form.
At least one. By unique representation, each determines its coordinates , so the displayed formula defines a function ; it satisfies (coordinates ). It is linear because coordinates are, by Lecture 6: if and have coordinates and , then has coordinates , and ; scalar multiples are handled the same way.
□Let be the line through the origin in in the direction of , and let , which is perpendicular to (the slopes and multiply to ). Since , these form a basis. By the theorem there is exactly one linear map with it is the reflection across , which fixes the vectors along and reverses those perpendicular to it. We find its standard matrix in Section 5.
A bijective linear map is called an isomorphism. The coordinate map of a space with a basis of vectors is an isomorphism : it is linear, and bijective by unique representation. This is the precise sense in which every -dimensional space ``looks like'' : like , and like .
The trace , , is linear and surjective. What is ?
The rank theorem for maps: , and the image is .
Which map is linear?
The second sends to . For the third, scaling by scales the output by .
7.4 The matrix of a linear map
Lecture 3 showed that a linear map is a matrix, by recording the images of the standard basis vectors as columns. An abstract space has no standard basis, but once we choose bases of and , coordinates turn vectors into columns of numbers and the same recipe produces a matrix. The matrix depends on the bases chosen; how it depends on them is the subject of the last section.
Let be linear, let be a basis of and a basis of . The matrix of relative to and is the matrix whose -th column is the coordinate vector of . When and we write .
With the notation of the definition, for every , and is the only matrix with this property.
Let , so and . Taking coordinates, which is linear, , and by the column view this is the matrix times . If a matrix also has the property, take , whose coordinate vector is : the -th column of is .
□The theorem says that the two routes in the diagram give the same result: apply and then take coordinates, or take coordinates and then multiply by . For and with their standard bases, coordinates change nothing, and is the matrix of Lecture 3.
Take with the standard bases and . Since , , , , For , and the product is , the coordinates of . The matrix has rank and a null space of dimension , matching the kernel and image of .
Consider the evaluation map , , of the examples of linear maps. Use the standard basis of and the standard basis of , relative to which every vector of is its own coordinate vector. Evaluating the three basis polynomials at , so the Vandermonde matrix of Lecture 5, with determinant . So is invertible, and is bijective: for any three numbers there is exactly one with , , , and its coordinate vector , the list of its coefficients, is .
Let and be linear, and let , , be bases of , , . Then
For every , applying the theorem twice, . So the product has the property that characterizes , and by the uniqueness part of the theorem it is that matrix.
□With , and .
By the theorem, exactly when , and the coordinate vectors of the outputs are exactly the vectors , , that is, . Coordinates are linear and bijective, and they preserve independence by Lecture 6, so they carry a basis of to a basis of and a basis of to a basis of .
□Let be the linear map , which substitutes for ; for example . Use the standard basis of . What is the entry in row , column of ?
Column holds the coordinates of .
Let be differentiation, with the basis used on both sides. What is the rank of ?
; the image of is .
7.5 Change of basis and similar matrices
The same vector has different coordinates in different bases, and the same linear map has different matrices. A good choice of basis can make the matrix very simple: the reflection of Section 3 is in a basis adapted to its line, but has fractions in the standard basis. This section shows how coordinates and matrices change when the basis changes. The answer is a single invertible matrix , and for a map from a space to itself the new matrix is . Matrices related in this way are called similar; they are different descriptions of one linear map.
Let and be two bases of the same space . The change-of-basis matrix from to is the matrix whose columns are the -coordinates of the vectors of . It is the matrix of the identity map .
For every , . The matrix is invertible, and .
The first statement is the theorem on coordinates of the output for the identity map. By the composition theorem, , since the identity map sends each to itself, with coordinate vector ; likewise in the other order.
□Let , let be the standard basis of (the columns of , see Lecture 3), and let be any basis. Every is its own coordinate vector relative to : . In particular , so : the basis vectors as columns. The theorem says and , as found in Lecture 6's coordinates example.
Let be linear, let and be bases of , and let . Then More generally, for , bases of and of , where and .
Write and apply the composition theorem with the bases : and by the theorem on changing coordinates. The general statement is proved the same way, with .
□Return to the reflection across the line . Relative to its matrix is read off from and : To get the standard matrix , apply the theorem with the roles and : with , we have , so Check: . Finding directly would have needed some geometry; in the basis adapted to the line, the matrix could be written down at sight.
Two matrices and are similar if for some invertible matrix .
If , let and let be the basis of formed by the columns of , so that . By the theorem, . So similar matrices are the matrices of one linear map relative to two bases. Conversely, the matrices of one map relative to any two bases are similar.
If , then
- ;
- ;
- for every number ;
- for every .
(1) By the product rule and the rule for inverses, . (2) By the remark both are matrices of the same map , and by the proposition on rank both ranks equal . (3) ; apply (1). (4) , since each inner cancels.
□Let and take the basis , . Then so the map simply stretches by along and by along . With , As the theorem predicts, , and Powers become easy: , for example
The matrices and have the same determinant, the same rank and the same polynomial , yet they are not similar: for every invertible . The quantities of the theorem can prove that two matrices are not similar (if they differ), but not that they are.
For and as in the example, what is the entry of ? (Use , or multiply directly.)
; row of is , and . Directly: .
Which pair of matrices is not similar?
Similar matrices have equal determinants: . The second pair is related by (reordering the basis), and the third is the example.
The last example found a basis in which a matrix becomes diagonal, and the diagonal entries and were the roots of , a polynomial that by the theorem does not depend on the basis. Vectors such as and , which a matrix only stretches, are eigenvectors, and the stretching factors are eigenvalues. Finding them, and deciding when a basis of eigenvectors exists, is the subject of what follows.
Index of statements
- Lemma 7.1 (Row operations keep column relations)
- Theorem 7.2 (A basis of the column space)
- Remark 7.3 (Take the columns from , not from its echelon form)
- Lemma 7.4 (Row operations keep the row space)
- Theorem 7.5 (A basis of the row space)
- Theorem 7.6 (A basis of the null space)
- Example 7.7 (Three bases from one row reduction)
- Definition 7.8 (Rank)
- Theorem 7.9 (The rank theorem)
- Example 7.10 (The rank theorem at work)
- Theorem 7.11 (The reduced echelon form is unique)
- Remark 7.12 (A promise kept)
- Theorem 7.13 (The invertibility theorem, continued)
- Definition 7.14 (Linear map)
- Example 7.15 (Linear maps beyond )
- Definition 7.16 (Kernel and image)
- Proposition 7.17 (Kernel, image, and injectivity)
- Theorem 7.18 (The rank theorem for linear maps)
- Example 7.19 (Kernel and image of differentiation)
- Theorem 7.20 (A linear map is determined by its values on a basis)
- Example 7.21 (A reflection, defined on a basis)
- Remark 7.22 (Isomorphisms)
- Definition 7.23 (Matrix of a linear map relative to bases)
- Theorem 7.24 (Coordinates of the output)
- Remark 7.25 (The picture behind the theorem)
- Example 7.26 (The matrix of differentiation)
- Example 7.27 (Evaluation and the Vandermonde matrix)
- Theorem 7.28 (Composition is multiplication)
- Proposition 7.29 (The rank of a map is the rank of its matrix)
- Definition 7.30 (Change-of-basis matrix)
- Theorem 7.31 (Changing coordinates)
- Example 7.32 (Bases of )
- Theorem 7.33 (How the matrix of a map changes)
- Example 7.34 (The matrix of a reflection)
- Definition 7.35 (Similar matrices)
- Remark 7.36 (Similar matrices describe one map)
- Theorem 7.37 (What similar matrices share)
- Example 7.38 (A matrix similar to a diagonal one)
- Remark 7.39 (Shared numbers do not guarantee similarity)
- Remark 7.40 (Looking ahead)