4.2Rank–nullity
A linear map collapses to and reaches . In Section 2.6 we measured the two separately; with dimension available we can compare them. The answer is the rank–nullity theorem: if is finite-dimensional, then
Informally, each of the independent directions in is either collapsed by or carried over to . For a matrix, the statement is that every column is either a pivot column or a free column.
We follow the lecture’s route. Restricting a map to a subspace (Section 4.2.1) lets us compute (Section 4.2.3), and counting free columns then proves rank–nullity for matrices. A second proof, which extends a basis of , works directly for every linear map (Section 4.2.4). The rest of the section draws consequences. Among them are the fact that the rank of a matrix of a linear map does not depend on the bases, which closes a question left open in Section 3.5, and dimension counting, a way to prove that vectors with some property exist without finding them. We end with an application outside the course, error-correcting codes over .
Throughout, and are vector spaces over a field .
4.2.1Restriction
Restricting a function keeps its rule and shrinks its set of inputs. We have already written for the set of values of on a subset (Proposition 2.1.16, Proposition 2.6.15). Here is the definition behind the notation.
Definition 4.2.1 (Restriction). Let be a function and let . The restriction of to is the function
Only the domain changes. The target is still , even when every value of happens to lie in some smaller set. The image of the restriction,
is the set of values of on , which Section 2.1.4 wrote as ; from now on we always write . (For any function ,
- (a)Let , , be the projection onto the -axis, and let . Then sends . It is injective, although is not, and its image is the -axis, all of . Restricted to the -axis instead, becomes the zero map.
- (b)Let , . It is surjective. Its restriction to the -axis is still surjective (and now injective as well), but its restriction to the line is the zero map, which is not surjective.
The lecture records the general behavior.
- (a)If is injective, then is injective for every .
- (b)If and are functions, then
. - (c)If and is a subspace of , then and
. In particular, is injective if and only if .
Uses. Definition 4.2.1 (Restriction), Definition 1.4.1 (Subspace), Definition 2.1.1 (Linear map), Definition 2.6.5 (Kernel), Theorem 2.6.11 (Injectivity is decided at )
Techniques. Fix an arbitrary element and chase it (Technique 1.3.13)
(a) If and
(b) By definition,
For linear maps this is Proposition 2.6.15(b), whose proof did not use linearity.
(c) By Definition 1.4.1, is a vector space with the operations of . For and , the vectors and lie in , and
because is linear. So is linear (Definition 2.1.1). Its kernel is
Part (a) and Example 4.2.2(b) are the lecture’s remarks that restriction preserves injectivity but not surjectivity. Shrinking the domain removes inputs, which can remove coincidences of values but can also remove values. Part (b) says that the composite uses only on the part of that reaches.
Exercise 4.2.4. Let
- (a)Let . Find and .
- (b)Let . Find and .
- (c)Find a subspace such that is injective and .
Uses. Proposition 4.2.3 (Properties of restriction), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Example 2.1.9 (Maps of polynomials)
Over ,
(a) A polynomial is constant only if , so , and by Proposition 4.2.3(c). By Proposition 2.1.16(a),
(b) Here , which is , and
(c) Let
Restriction is a small idea that we will use constantly, so we name it.
Technique 4.2.5 (Restrict to a subspace). To study a linear map on part of its domain, restrict it. For a subspace of , the map is linear, its kernel is , and its image is the set of values of on (Proposition 4.2.3). Everything known about linear maps then applies to , which is often better behaved than : it can be injective when is not, and its domain is smaller. The most common entry point is the identity
Reach for it when a composite is involved, when a hypothesis concerns only part of (an image, a kernel, a subspace that maps into itself), or when is injective on a subspace you care about. The canonical example is the proof of Theorem 4.2.7, which restricts to . Later the same move bounds the rank of a product (Section 4.3) and turns an operator into a smaller operator on an invariant subspace (Section 7.2).
Used in 22 places and 3 practice exercises
Proposition 4.2.6, Theorem 4.2.7, Proposition 4.2.15, Proposition 4.2.26, Exercise 4.2.44, Exercise 4.2.52, Exercise 4.2.53, Proposition 4.3.1, Theorem 4.3.3, Proposition 4.3.5, Proposition 4.6.29, Exercise 4.6.52, Exercise 4.8.7, Exercise 4.8.10, Exercise 4.8.11, Problem 4.2, Problem 4.18, Corollary 6.6.22, Proposition 7.6.10, Proposition 7.6.12, Theorem 7.6.31, Notation 8.3.10; 3 practice exercises.
4.2.2Injective maps preserve dimension
An injective linear map loses nothing, so it should not lower dimension. The lecture proves this by pushing a basis forward, which we already did in Proposition 2.6.22.
- (a)If is finite-dimensional and is injective, then is finite-dimensional and . More precisely, for every basis of , the list is a basis of .
- (b)If is a finite-dimensional subspace of with , then
.
Uses. Proposition 2.6.22 (Testing injectivity and surjectivity on a basis), Proposition 4.2.3 (Properties of restriction), Definition 4.1.5 (Dimension)
Techniques. Restrict to a subspace (Technique 4.2.5)
(a) Let be a basis of , of length . By Proposition 2.6.22(d), spans , and it is a basis of because is injective. So is finite-dimensional, and is the length of , which is .
(b) By Proposition 4.2.3(c), is injective. Applying (a) to it gives
Without injectivity, still spans , so is finite-dimensional with (Corollary 4.1.11(a)), and equality holds only if the spanning list is a basis, that is, only if is injective.
4.2.3The image of a matrix
We now compute . The lecture’s strategy has three steps:
- write , where and is invertible;
- show that the pivot columns of form a basis of , which is easy because they are standard basis vectors;
- slide this basis along , which is injective, to get a basis of .
The last step lands on the pivot columns of itself, because times a column of is the corresponding column of .
Theorem 4.2.7 (The image of ). Let have columns , let , and let be the pivot columns of . Then is a basis of . In particular,
Proof (through the reduced form, by restriction).
Uses. Theorem 3.3.10 (), Lemma 3.3.16 (Reading the columns of a matrix in RREF), Proposition 3.3.8 (Properties of the output), Proposition 2.6.18 (The column space is spanned by the columns), Corollary 1.3.19 (Equal spans), Theorem 2.4.2 (The matrix of a composite), Proposition 2.5.4 (Left inverses give uniqueness), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Definition 2.4.1 (Matrix product)
Techniques. Restrict to a subspace (Technique 4.2.5), Reduce to RREF (Technique 3.3.22)
Let be invertible with (Theorem 3.3.10), so that .
The reduced matrix. By Lemma 3.3.16(b), the pivot columns of are , which are linearly independent. By Proposition 3.3.8, rows of are zero, so every column of lies in . Since are themselves columns of , Corollary 1.3.19 and Proposition 2.6.18 give
and is a basis of .
Sliding by . By Theorem 2.4.2,
The map is injective, because is a left inverse of it:
So is a basis of , and
The second proof skips and uses the description of pivot columns from Section 3.3.4, which never mentions the algorithm.
Proof (by sifting the columns).
Uses. Corollary 3.3.19 (Pivot columns, intrinsically), Corollary 1.5.13 (Independence, one entry at a time), Corollary 1.3.19 (Equal spans), Proposition 2.6.18 (The column space is spanned by the columns), Proposition 1.6.2 (Bases are independent spanning lists)
Let
Independent. Let . By Corollary 3.3.19(a), is not a linear combination of . Since
Spanning. Each pivot column is an entry of , and by Corollary 3.3.19(b) each free column is a linear combination of pivot columns. So every column of lies in , and every entry of is a column of . By Corollary 1.3.19 and Proposition 2.6.18,
So is a basis of (Proposition 1.6.2), of length . □
The first proof does the easy case and transports the answer along an injective map. The second is the sifting procedure of Section 1.6.3 applied to the columns of : scanning left to right and keeping each column that is not a combination of the earlier ones keeps exactly the pivot columns. Both rest on one fact, that row operations do not change the linear relations among the columns (Corollary 3.2.17). The first proof uses it through ; the second uses it through Corollary 3.3.19, which was proved from it.
The theorem names columns of , not of , and the distinction matters.
For the kernel, the free columns do the same job. Theorem 3.4.9 writes every vector of as a combination of the basic solutions, one for each free column, and Remark 3.4.11 observed that they form a basis. So the reduced form gives bases of both subspaces at once.
Example 4.2.9 (Bases for the kernel and the image). Let
The pivot columns are and the free columns are , so .
Image. By Theorem 4.2.7, columns and of form a basis of :
a plane in . (It does not contain the pivot column of :
Kernel. Copying the free columns of into Definition 3.4.8, the basic solutions are
and they form a basis of . Each one records how a free column is built from pivot columns: says , and says .
So and , one for each pivot column and one for each free column, and is the number of columns.
Exercise 4.2.10. Let
- (a)Find a basis of consisting of columns of , and a basis of .
- (b)Is in ?
Uses. Theorem 4.2.7 (The image of ), Remark 3.4.11 (A basis of the kernel), Definition 3.4.8 (Basic solutions)
(a) Adding times row to row gives rows , , . Adding times row to row and times row to row gives
The pivot columns are and , so by Theorem 4.2.7 the columns and of form a basis of . The free columns are and , and the basic solutions are and , a basis of (Remark 3.4.11). Check: and
(b) No. If
4.2.4Rank–nullity
Intuition (Lost plus reached). Take . Both columns lie on the line , so flattens the plane onto that line:
There is more to see. Any line through other than meets the kernel only in , so is injective, and it maps onto the image line. So the plane consists of the directions kills, together with a line that carries faithfully onto . In general, is made of together with further directions on which is injective; those are carried to independent directions that fill out , and counting gives
(a)Let . Then
(b)Let be finite-dimensional and let . Then is finite-dimensional, and
In (a), is the number of columns, the dimension of the domain ; the number of rows plays no role. In (b), only is assumed finite-dimensional, and may be any vector space. The first proof is the lecture’s: it counts pivots for matrices and transfers the count to arbitrary maps with coordinates.
Proof (by counting pivots).
Uses. Proposition 3.5.2 (First properties of rank), Remark 3.4.11 (A basis of the kernel), Theorem 4.2.7 (The image of ), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Definition 1.6.23 (Finite-dimensional), Proposition 2.6.20 (Kernel and image in coordinates), Proposition 1.6.19 (Coordinates respect linear combinations), Proposition 1.6.16 (The coordinate map is a bijection), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Proposition 4.1.21 (Dimensions of subspaces)
Techniques. Reduce to RREF (Technique 3.3.22), Translate between maps and matrices (Technique 2.3.27)
(a) Let . By Proposition 3.5.2(b), has exactly free columns, and by Remark 3.4.11 the basic solutions, one for each free column, form a basis of . So , and
(b) Let and let be a basis of . By Proposition 2.1.16(a), spans , so is finite-dimensional (Definition 1.6.23). Let . If , then and both sides are ; if , then and . So assume , and let be a basis of . The function
is with its target shrunk to . It is linear, it is surjective, and . Let
Since is surjective, so is , by Proposition 2.6.20(c). So and by Theorem 4.2.7. By the same proposition, the coordinate map sends onto . That map is linear and injective (Proposition 1.6.19, Proposition 1.6.16), so its restriction to the subspace is an injective linear map with image (Proposition 4.2.3). Since is finite-dimensional (Proposition 4.1.21(a)), Proposition 4.2.6(a) gives
□
The second proof is the one in LADR. It never chooses coordinates, and it explains the formula rather than verifying it: it finds the directions of the intuition above inside .
Proof (by extending a basis of the kernel).
Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.16 (Extending to a basis), Theorem 1.5.5 (Independence is decided at zero), Proposition 1.6.2 (Bases are independent spanning lists), Definition 2.6.5 (Kernel), Theorem 4.2.7 (The image of )
Techniques. Extend a basis of a subspace (Technique 4.1.18)
We prove (b). Then (a) follows by applying (b) to , since (Theorem 4.2.7).
By Proposition 4.1.21(a), the subspace of is finite-dimensional; let be a basis of it. By Theorem 4.1.16, it extends to a basis
of , where . We claim that
Spanning. Let , say , and write
So the vectors , which lie in , span it.
Independent. Suppose
is a linear relation among the vectors of a basis of , so all its coefficients are (Theorem 1.5.5). In particular . □
In the language of Section 4.2.1, the second proof sets
Intuition (Comparing the proofs). The pivot-counting proof is a computation. Row reduction sorts the columns of into pivot columns and free columns; the free ones index a basis of the kernel, and the pivot ones are a basis of the image. For matrices, the theorem is then the observation that every column is one or the other. The proof produces explicit bases, which is what we want in examples. Its weakness is that it only sees matrices: for an abstract we had to choose bases, and the real content of (b) moved into the transfer step, which says that coordinates do not change the dimensions of kernels and images.
The basis-extension proof never mentions matrices and works for every whose domain is finite-dimensional. It shows why the formula holds: is built from and a subspace on which is injective, and carries onto without loss. Its price is a choice of , which the quotient proof removes. When computing, count pivots. When proving something about an abstract map, extend a basis of the kernel.
The bases in the second proof are adapted to . If is finite-dimensional, extend the independent list
Exercise 4.2.13. Let ,
- (a)Find .
- (b)Show that
, without solving .
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Proposition 1.6.2 (Bases are independent spanning lists)
Techniques. Dimension counting (Technique 4.2.24)
(a) means , , and , that is, . So
(b) Let
since the third entry of the right side is . The two vectors lie in and are independent (look at the first entries, then the second), so they form a basis of and . By Proposition 4.1.21(b), applied in , . Every step is valid over every field.
4.2.5The rank of a linear map
Rank–nullity suggests measuring a linear map by the dimensions of its kernel and image. Remark 3.5.17 promised an intrinsic definition of rank; here it is.
Definition 4.2.14 (Rank and nullity of a linear map). Let . If is finite-dimensional, the rank of is
If is finite-dimensional, the nullity of is
When is finite-dimensional both are defined (Theorem 4.2.11, Proposition 4.1.21), and rank–nullity reads
which is where the theorem’s name comes from. For a matrix,
For a map between finite-dimensional spaces, we can also compute the rank of any of its matrices. The lecture’s observation is that the answer does not depend on which matrix we pick.
Proposition 4.2.15 (Rank through any matrix). Let and be nonzero finite-dimensional spaces, with bases and , let , and let . Then
In particular, does not depend on the choice of and .
Uses. Proposition 2.6.20 (Kernel and image in coordinates), Proposition 1.6.19 (Coordinates respect linear combinations), Proposition 1.6.16 (The coordinate map is a bijection), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Theorem 4.2.7 (The image of )
Techniques. Translate between maps and matrices (Technique 2.3.27), Restrict to a subspace (Technique 4.2.5)
By Proposition 2.6.20, the coordinate map sends onto . It is linear and injective on all of (Proposition 1.6.19, Proposition 1.6.16), so its restriction to is an injective linear map with image (Proposition 4.2.3). The space is finite-dimensional (Theorem 4.2.11), so Proposition 4.2.6(a) and Theorem 4.2.7 give
In the same way, restricts to an injective linear map from onto , so
This settles Remark 3.5.17. Once the change-of-basis formula of Section 4.5 expresses two matrices of through each other by invertible factors, the proposition also shows that such factors do not change the rank; Section 4.3 proves that directly.
Example 4.2.16 (One map, two matrices). Let with
whose columns and are multiples of the nonzero vector , not both ; so its rank is . Let . By Example 2.6.7(d), every vector of is a combination of and , so is a basis (Corollary 4.1.11(b)). In this basis and , so
The two matrices look different, but both have rank .
Uses. Proposition 4.2.15 (Rank through any matrix), Definition 2.3.1 (Matrix of a linear map), Theorem 4.2.11 (Rank–nullity)
The columns of are , , and :
Over , subtracting row from rows and gives rows and , and subtracting twice the new row from row leaves . There are three pivots, so . By Proposition 4.2.15, , and by Theorem 4.2.11.
Over , , so . Rows and agree, and subtracting row from rows and gives . So and . The basic solution is , which is ; indeed takes the values , , and at , , and . Over , a nonzero polynomial can vanish at every point of the field.
4.2.6Consequences
Rank–nullity turns statements about vectors into statements about numbers. This subsection collects the consequences that the course uses.
Injective, surjective, bijective
For a map between finite sets of the same size, injective and surjective are equivalent. Dimension plays the role of size.
- (i) is injective.
- (ii) is surjective.
- (iii) is bijective.
Uses. Theorem 4.2.11 (Rank–nullity), Theorem 2.6.11 (Injectivity is decided at ), Proposition 4.1.21 (Dimensions of subspaces), Definition 2.6.3 (Bijective)
Techniques. Dimension counting (Technique 4.2.24)
So for maps between spaces of the same finite dimension, uniqueness gives existence, which extends Technique 3.4.21 from square matrices to linear maps: to show that is solvable for every , it suffices to show that only for .
The finite dimension is essential. On , multiplication by is injective but not surjective, and in characteristic differentiation is surjective but not injective (Example 2.6.4(e)).
Dimension obstructions
- (a)
, and . - (b)If is injective, then . So if , no linear map is injective.
- (c)If is surjective, then . So if , no linear map is surjective.
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Theorem 2.6.11 (Injectivity is decided at )
Techniques. Dimension counting (Technique 4.2.24)
(a) Since is a subspace of , (Proposition 4.1.21(a)). By Theorem 4.2.11,
(b) If is injective, then (Theorem 2.6.11), so
(c) If is surjective, then , and by (a). □
For with , (b) and (c) are the “moreover” parts of Theorem 3.5.12 and Theorem 3.5.13: an injective has , and a surjective one has . Now they hold for all linear maps. Part (b) is the precise sense in which a bigger space cannot be fitted into a smaller one. As sets, and are in bijection, but no injective map is linear.
Exercise 4.2.22. For each item, give an example or show that none exists.
- (a)An injective linear map .
- (b)A surjective linear map .
- (c)A linear map with
. - (d)A linear map with .
Uses. Corollary 4.2.21 (Dimension obstructions), Example 4.1.7 (Dimensions of the standard spaces)
(a) None. By Example 4.1.7,
(b)
(c) None. By Corollary 4.2.21(a), every linear map has , while
(d)
Linear systems, revisited
Rank–nullity gives a second view of Corollary 3.4.19, and it says how many parameters a description of a solution set needs.
- (a)
. In particular, if , then has a nontrivial solution. - (b)Suppose has a solution , and that its solution set is
for some . Then , with equality if and only if is linearly independent. - (c)Conversely, if
are linearly independent and , then the solution set of is for every solution .
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 3.5.2 (First properties of rank), Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 4.1.11 (Spanning lists are long), Theorem 4.1.10 (Independent lists are short), Proposition 1.6.2 (Bases are independent spanning lists)
Techniques. Dimension counting (Technique 4.2.24)
(a) By Theorem 4.2.11(a),
(b) By Proposition 3.1.19, the solution set is . For , the vector is a solution if and only if , and also if and only if
(c) An independent list in of length is a basis of (Theorem 4.1.10(b)), so its span is , and the solution set is by Proposition 3.1.19. □
Part (a) is Corollary 3.4.19(a) from the other side. There, more columns than pivots forced a free variable. Here, the image has room for at most of the dimensions of , so the kernel must absorb at least of them. Part (b) says that the number of parameters in a description of the solutions is at least , however the description was found, and part (c) is the quick completeness test promised in Remark 3.4.12: independent solutions of the homogeneous system always span its solution space. Over a field with elements, a consistent system has solutions (Corollary 3.4.14(b)).
Dimension counting
Rank–nullity and the bounds of Section 4.1 prove that certain vectors exist without exhibiting them. That is worth a name.
Technique 4.2.24 (Dimension counting). To show that a subspace is nonzero, that two subspaces are equal, or that a linear map is injective or surjective, compute dimensions instead of vectors. The tools are rank–nullity, which ties to ; Proposition 4.1.21(b), which turns one containment and equal dimensions into equality; and Theorem 4.1.10, which makes long lists dependent. A typical argument computes whichever of and is easier and reads off the other. Often the image is easy because it obviously contains a basis of the target, or the kernel is easy because a structural reason (degrees, a top coefficient) forces it to be small.
Reach for it when a direct computation would mean solving equations you would rather not solve, or when you need a nonzero vector with some properties (in an intersection, in a kernel) and only its existence matters. The canonical example is that two -dimensional subspaces of meet in a nonzero vector (Proposition 4.2.26, Example 4.2.27). Later the same counting gives the rank inequalities (Section 4.3), the dimension formula for sums (Section 4.4), the bounds on eigenspaces (Section 7.4), and the min–max principles (Section 12.3).
Used in 78 places and 11 practice exercises
Exercise 4.2.13, Corollary 4.2.18, Corollary 4.2.21, Corollary 4.2.23, Proposition 4.2.26, Exercise 4.2.39, Exercise 4.2.40, Exercise 4.2.42, Exercise 4.2.46, Exercise 4.2.47, Exercise 4.2.49, Exercise 4.2.50, Exercise 4.2.51, Exercise 4.2.52, Proposition 4.3.1, Theorem 4.3.3, Proposition 4.3.5, Proposition 4.3.20, Proposition 4.3.23, Exercise 4.3.30, Exercise 4.3.31, Exercise 4.3.42, Theorem 4.4.13, Theorem 4.4.19, Proposition 4.4.21, Exercise 4.4.23, Theorem 4.4.27, Exercise 4.4.34, Exercise 4.4.40, Exercise 4.4.45, Exercise 4.4.46, Exercise 4.4.48, Exercise 4.4.49, Exercise 4.4.50, Theorem 4.5.6, Exercise 4.5.41, Theorem 4.6.5, Corollary 4.6.10, Proposition 4.6.11, Theorem 4.6.27, Exercise 4.6.38, Exercise 4.6.47, Exercise 4.6.48, Exercise 4.6.54, Theorem 4.7.8, Exercise 4.7.52, Exercise 4.8.4, Exercise 4.8.6, Exercise 4.8.7, Exercise 4.8.8, Exercise 4.8.9, Problem 4.1, Problem 4.5, Problem 4.6, Problem 4.8, Problem 4.9, Problem 4.11, Problem 4.16, Problem 4.17, Corollary 6.4.25, Theorem 6.4.26, Exercise 6.5.45, Corollary 6.6.22, Exercise 6.6.43, Problem 6.10, Theorem 7.1.14, Exercise 7.1.57, Exercise 7.2.45, Exercise 7.2.46, Exercise 7.2.50, Theorem 7.4.16, Theorem 7.4.30, Proposition 7.5.8, Proposition 7.6.12, Exercise 7.7.9, Problem 7.2, Problem 7.3, Problem 7.12; 11 practice exercises.
The simplest instance: one nonzero linear condition cuts the dimension by exactly one.
Example 4.2.25 (Kernels of linear functionals). Let be finite-dimensional, and let be linear and not the zero map. Then is a nonzero subspace of , so (Proposition 4.1.21(b), as ), and by rank–nullity
For instance:
- (a)For with , the solutions of
form a subspace of of dimension . - (b)The trace-zero matrices form a subspace of of dimension , since is linear (Proposition 2.4.27) and .
- (c)For , the polynomials with form a subspace of dimension , since evaluation at is linear (Example 2.1.9) and sends to .
In Section 4.1, (b) and (c) needed an explicit basis or a squeeze (Exercise 4.1.43, Exercise 4.1.24). Here we only had to check that the functional is not zero.
The next proposition is the canonical example of the technique. In , two planes through always share a line, since . In they need not:
Proposition 4.2.26 (Subspaces that must meet). Let be finite-dimensional, and let and be subspaces of . Then
In particular, if , then .
To make the count precise, we build a linear map whose kernel records . The first proof uses both subspaces symmetrically.
Proof (with a difference map).
Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.2.11 (Rank–nullity), Corollary 4.2.21 (Dimension obstructions), Theorem 1.5.5 (Independence is decided at zero), Proposition 4.2.6 (Injective maps preserve dimension), Theorem 2.6.11 (Injectivity is decided at )
Techniques. Dimension counting (Technique 4.2.24)
Let . By Proposition 4.1.21(a), and are finite-dimensional; let and be bases. Write elements of as with and , and define
It is linear, since each coordinate enters linearly. By Theorem 4.2.11 and Corollary 4.2.21(a),
Define by
as desired. □
The second proof describes by linear equations and restricts them to .
Proof (by restricting a map that kills ).
Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.16 (Extending to a basis), Theorem 2.2.1 (Linear maps are determined by a basis), Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Corollary 4.2.21 (Dimension obstructions)
Techniques. Restrict to a subspace (Technique 4.2.5), Extend a basis of a subspace (Technique 4.1.18), Dimension counting (Technique 4.2.24)
Let and . Let be a basis of (Proposition 4.1.21(a)), and extend it to a basis
By Proposition 4.2.3(c), is linear with kernel . By Theorem 4.2.11 and Corollary 4.2.21(a),
Rearranging gives
The first proof gives more if we look closer. The image of is , and maps onto , so rank–nullity for is an equation,
- (a)Two -dimensional subspaces of meet in at least a line, since . The bound is attained by and , which meet in , and the intersection can be larger (take ). In , two -dimensional subspaces need not share a nonzero vector:
. (b)The polynomials with form a -dimensional subspace , with basis . So by Proposition 4.2.26, every -dimensional subspace of the -dimensional space contains a nonzero with . For
, writing , the conditions are and , solved by :
Dimension counting also proves existence statements about polynomials, sometimes with a formula as a by-product.
Example 4.2.28 (Sums of powers). Let , and let
(Theorem 2.2.1). By the binomial theorem in ,
Kernel. Constants are in . Conversely, if , then for all , so
Image. By rank–nullity,
So for every nonzero polynomial , the sum is a polynomial in of degree at most .
For , some has , and subtracting its constant term (which lies in ) we may take
and gives , , , that is,
The dimension count guaranteed in advance that this linear system for had a solution.
Linear maps on spaces of matrices
Spaces of matrices are vector spaces of known dimension, so maps between them are natural targets for dimension counting.
Technique 4.2.29 (Study a linear map on a space of matrices). Many questions about matrices ask which satisfy a linear condition, such as , , or , or which matrices can be written in a given linear form, such as . Treat , or whatever the expression is, as a linear map on (or ), a space of dimension (or ) by Example 4.1.7. The first kind of question asks for its kernel and the second for its image, and rank–nullity relates the two. So an easy description of the kernel gives the dimension of an image that is hard to describe, and with one easy containment the dimension often identifies the image completely.
Reach for it when a matrix equation is linear in the unknown matrix. The canonical example is Example 4.2.30. The trace argument that when in (Technique 2.4.29) is an instance: the image of lies in the trace-zero matrices. Later instances are Sylvester equations (Section 10.3) and transposition as an operator with eigenvalues (Section 7.4).
Used in 10 places and 2 practice exercises
Exercise 4.2.41, Exercise 4.2.43, Exercise 4.5.48, Problem 4.4, Exercise 7.3.55, Exercise 7.4.41, Exercise 7.5.44, Exercise 7.5.45, Exercise 7.7.11, Problem 7.13; 2 practice exercises.
Example 4.2.30 (Commutators with a diagonal matrix). Let
Kernel. means
Image. Every has zero diagonal, since its entry is
Here we could also have solved for directly,
4.2.7Application: error-correcting codes Beyond 21-242
Coding theory is not part of 21-242. This subsection uses only rank–nullity and arithmetic in .
Suppose we send blocks of bits over a channel that occasionally flips a bit. Sending each bit three times and taking a majority vote corrects any single flipped bit, at the cost of bits per block. Hamming found a way to correct any single flipped bit in a block using bits. The construction is a kernel, and rank–nullity is what makes the numbers work.
We work in , where , so subtraction and addition agree.
Since for codewords , and , the minimum distance is also the smallest distance between two different codewords. The distance satisfies the triangle inequality
A convenient way to specify a code is as a kernel. If , then is a linear code of length , the codewords are the vectors that pass the parity checks given by the rows of , and is a parity-check matrix of . By rank–nullity,
Example 4.2.32 (The Hamming code). Let be the matrix whose th column is the binary expansion of , highest digit on top:
Columns are , so the columns span , and
Listing the rows of from the bottom up already gives the reduced form,
with pivot columns and free columns . By Theorem 3.4.9, a codeword is determined by its free coordinates, which are arbitrary, and the others are
So to encode a message , put it in positions and fill in the parity bits in positions . The message becomes the codeword .
The columns of are nonzero and pairwise distinct, and that is what makes the code correct errors.
Uses. Definition 2.3.8 (Matrix–vector product), Definition 4.2.31 (Linear codes)
For the Hamming code the bound is attained:
- (a)The syndrome equals . So determines , and .
- (b) is the only codeword at distance at most from .
Uses. Proposition 4.2.33 (Distinct columns give distance three), Definition 4.2.31 (Linear codes), Definition 2.6.5 (Kernel)
(a) Since ,
(b)
For the Hamming code, is the binary expansion of by construction. □
For example, suppose is sent and is received. Its syndrome is the sum of the columns at the s of , which is
The numbers fit exactly. The sets
Exercises
Uses. Theorem 4.2.7 (The image of ), Remark 3.4.11 (A basis of the kernel), Theorem 4.2.11 (Rank–nullity)
Adding times row to row gives
with pivot columns and free columns . By Theorem 4.2.7, columns and of , and , form a basis of . The basic solutions are and , a basis of (Remark 3.4.11). Check:
Uses. Theorem 4.2.11 (Rank–nullity), Remark 3.4.11 (A basis of the kernel), Corollary 3.3.19 (Pivot columns, intrinsically)
Over . Swap rows and and scale the new row by , giving . Adding times it to row gives . Swap this into row and scale by ; clearing column and then column (with the pivot row ) gives
So , by Theorem 4.2.11, and the basic solution is a basis of .
Over . Reducing the entries, . Swap rows and ; adding times the new row to row gives
So and , with basic solutions
If has integer entries and over , then every entry of is the integer , so it is modulo as well. That is why , read in , is the second basic solution. The converse fails because a combination of the columns can be a nonzero integer vector divisible by : , so is in the kernel over but not over . (By Corollary 3.3.19, column is free over precisely because there.)
Uses. Example 4.1.7 (Dimensions of the standard spaces), Theorem 4.2.11 (Rank–nullity), Theorem 4.2.7 (The image of )
Exercise 4.2.38. Prove or disprove. All spaces are finite-dimensional.
- (a)Every has .
- (b)If is surjective and , then .
- (c)There is an injective linear map .
- (d)If have the same kernel, then they have the same image.
- (e)If satisfies , then is even.
Uses. Corollary 4.2.21 (Dimension obstructions), Theorem 4.2.11 (Rank–nullity), Example 4.1.7 (Dimensions of the standard spaces)
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)
(a) True, by Corollary 4.2.21(a): .
(b) True. , so
(c) False.
(d) False. Let and on . Both have kernel , but and . (They do have images of the same dimension, by rank–nullity.)
(e) True. By Theorem 4.2.11,
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 1.5.24 (Distinct degrees), Theorem 4.1.10 (Independent lists are short), Example 2.1.9 (Maps of polynomials)
Techniques. Dimension counting (Technique 4.2.24)
is linear, as evaluation and the formal derivative are (Example 2.1.9). Since and , the image contains a basis of , so is surjective, and by Theorem 4.2.11.
Now has derivative , and
Uses. Example 2.1.9 (Maps of polynomials), Proposition 1.1.17 (No zero divisors), Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Proposition 1.6.7 (Standard bases)
Techniques. Dimension counting (Technique 4.2.24)
For
and these monomials are independent, being part of the standard basis (Proposition 1.6.7). So
Let
For and :
Exercise 4.2.41. Let and
- (a)Show that is the space of symmetric matrices and that .
- (b)If in , show that is the space of skew-symmetric matrices.
- (c)If in , show that is the space of symmetric matrices with zero diagonal. In particular, over the image is a proper subspace of the symmetric matrices, although every value of is symmetric.
Uses. Definition 2.4.21 (Transpose), Exercise 4.1.46, Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces)
Techniques. Study a linear map on a space of matrices (Technique 4.2.29)
Since
(a) if and only if , so is the space of symmetric matrices, and by Exercise 4.1.46(a). By Theorem 4.2.11,
(b) Since , we have
(c) Suppose , so . By the computation in (b), every value of satisfies , so it is symmetric, and its entry is . So , the symmetric matrices with zero diagonal. A matrix in equals , and these matrices are independent (the entry of a combination, for , is the coefficient of ). So
Exercise 4.2.42. Let , and let be the set of matrices all of whose row sums and column sums are .
- (a)Show that . (Consider the map sending to its row sums followed by its column sums.)
- (b)Show that the matrices
, for , form a basis of .
Uses. Theorem 4.2.11 (Rank–nullity), Example 4.2.25 (Kernels of linear functionals), Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.10 (Independent lists are short), Lemma 2.4.24 (Matrix units)
Techniques. Dimension counting (Technique 4.2.24)
(a) is linear, since row and column sums are, and . Let
Conversely, let with
For , the only entry of row of that can be nonzero is ; row has sum
(b) Let
Uses. Definition 2.4.1 (Matrix product), Theorem 4.2.11 (Rank–nullity), Proposition 2.4.14 (Algebra of matrices), Theorem 1.5.5 (Independence is decided at zero), Proposition 1.6.2 (Bases are independent spanning lists)
Techniques. Study a linear map on a space of matrices (Technique 4.2.29)
is linear by Proposition 2.4.14. By Definition 2.4.1, column of is , where is column of . So if and only if for every .
Let
Exercise 4.2.44. Let .
- (a)Let be a finite-dimensional subspace of . Show that
. - (b)Let be finite-dimensional. Show that there is a subspace of with and , and that every such has .
- (c)For ,
, give two different subspaces as in (b).
Uses. Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Theorem 1.5.5 (Independence is decided at zero)
Techniques. Restrict to a subspace (Technique 4.2.5)
(a) By Proposition 4.2.3(c), has kernel . By Theorem 4.2.11 applied to it,
(b) By Theorem 4.2.11, is finite-dimensional; let be a basis, , and choose with . Let
If is any subspace with these two properties, it is finite-dimensional because is, and (a) gives
(c) means and , so
Exercise 4.2.45. Find the error in the following argument, show that its claim is false, and repair it.
Claim. Let be finite-dimensional, , and let be a basis of such that
Proof. By rank–nullity,
Uses. Theorem 4.2.11 (Rank–nullity), Theorem 4.1.10 (Independent lists are short), Corollary 1.5.17 (Sublists), Corollary 4.1.11 (Spanning lists are long)
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)
The error. Theorem 4.1.10(b), applied in the vector space , needs an independent list of vectors of . The proof never shows that lie in , and they need not.
Counterexample. Let , , with the basis , of and . Then is a basis of , but , so is not in .
Repair. The claim holds if we also assume ; then the proof above is correct. Without that assumption we can modify the . For , , so
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Theorem 2.2.1 (Linear maps are determined by a basis), Proposition 2.1.16 (Linear maps preserve spans and linear relations)
Techniques. Dimension counting (Technique 4.2.24)
Only if. If , then for all , so . By Proposition 4.1.21(a) and Theorem 4.2.11,
If. Suppose . By Theorem 2.2.1 there is with for (these indices are at most ) and for every other . By Proposition 2.1.16(a),
Exercise 4.2.47. Let be any field, and let ,
- (a)Show that is bijective. So for any prescribed values and slopes at and there is exactly one polynomial of degree at most with them.
- (b)Find the with
and .
Uses. Corollary 4.2.18 (Injective if and only if surjective), Theorem 2.6.11 (Injectivity is decided at ), Example 2.1.9 (Maps of polynomials)
Techniques. Uniqueness gives existence (Technique 3.4.21), Dimension counting (Technique 4.2.24)
(a) is linear since evaluation and the formal derivative are (Example 2.1.9). For
If , then , , and . Subtracting twice the third equation from the fourth gives , and then . So , and is injective (Theorem 2.6.11). Both spaces have dimension , so is bijective by Corollary 4.2.18. No step divided by anything, so this holds over every field.
(b) We need , , and . Subtracting twice the first of the last two from the second gives , so , and . Check: , vanishes at and .
Uses. Example 4.2.28 (Sums of powers)
Using
Setting this equal to : ; gives ; gives ; and gives . So
By the telescoping identity of Example 4.2.28,
Exercise 4.2.49. Let be finite-dimensional with .
(a)Let be subspaces of . Show that
- (b)Let . Deduce that any subspaces of of dimension have a nonzero vector in common.
- (c)Show that subspaces of dimension need not have one.
Uses. Proposition 4.2.26 (Subspaces that must meet), Proposition 1.4.16 (Intersections of subspaces), Example 4.2.25 (Kernels of linear functionals)
Techniques. Dimension counting (Technique 4.2.24)
(a) By induction on . For the claim is . Suppose it holds for , and let , a subspace (Proposition 1.4.16). By Proposition 4.2.26 and the inductive hypothesis,
which is the claim for .
(b) With subspaces of dimension , the bound is
(c) Choose a basis and identify with by coordinates. The subspace
- (i);
- (ii);
- (iii);
- (iv);
- (v).
Uses. Exercise 2.6.39, Proposition 2.6.15 (Kernels and images of composites), Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces)
Techniques. Dimension counting (Technique 4.2.24), Proving TFAE (Technique 2.7.1)
By Exercise 2.6.39(c), (i) (ii) and (iv) (v). It remains to connect (ii), (iii), and (iv).
(ii) (iii). By Proposition 2.6.15(a), . By Proposition 4.1.21(b), applied in , they are equal if and only if
(iii) (iv). By Proposition 2.6.15(b), , so by Proposition 4.1.21(b) they are equal if and only if .
Infinite dimensions. Let be differentiation on . Every polynomial is a derivative, so and
Exercise 4.2.51. Let be finite-dimensional with , and let .
- (a)Show that for some with .
- (b)Show that if , then for every . Deduce that .
- (c)Deduce that
and . In particular, for every , .
Uses. Proposition 2.6.15 (Kernels and images of composites), Proposition 4.1.21 (Dimensions of subspaces), Exercise 2.6.39, Theorem 4.2.11 (Rank–nullity), Theorem 2.4.2 (The matrix of a composite)
Techniques. Extremal choice and minimal counterexamples (Technique 1.5.9), Dimension counting (Technique 4.2.24)
For all , , since (Proposition 2.6.15(a)).
(a) Suppose, to the contrary, that for every . A proper subspace has strictly smaller dimension (Proposition 4.1.21(b)), so
(b) We show by induction on that ; the case is the hypothesis. Suppose , and let . Then , so
(c) Let . By (b),
With the direct sums of Section 4.4, (c) says . This is Fitting’s decomposition, the starting point of Section 10.1.
Exercise 4.2.52. Let be finite-dimensional with , let , and for let
- (a)Show that
. (Restrict to .) - (b)Deduce that .
- (c)Suppose for some . Show that , so that
.
Uses. Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Proposition 2.6.15 (Kernels and images of composites), Proposition 4.1.21 (Dimensions of subspaces)
Techniques. Restrict to a subspace (Technique 4.2.5), Dimension counting (Technique 4.2.24)
(a) Let
(b) Since , (Proposition 2.6.15(b)). So
(c) If , then , and , so the sum telescopes:
using (b). Hence , and
For this is the bound of Exercise 4.2.46. For the shift on of Section 4.1.7, ; how the can decrease is what Section 10.3 classifies.
Exercise 4.2.53. Let and .
- (a)Show that maps injectively into .
- (b)Deduce that
. - (c)Deduce that is invertible if and only if is.
Uses. Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Proposition 4.1.21 (Dimensions of subspaces), Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.14 (Third Fundamental Theorem, completed), Remark 3.5.7 (Inverses of and inverses of ), Proposition 2.4.14 (Algebra of matrices)
Techniques. Restrict to a subspace (Technique 4.2.5)
(a) Let , so . Then
so
(b) By (a) and Proposition 4.2.6(b),
(c) For a square matrix , if and only if (Theorem 3.5.12), if and only if is invertible (Theorem 3.5.14), if and only if is invertible (Remark 3.5.7). By (b),
Replacing by for a scalar shows
Exercise 4.2.54. Let be a subspace of in which every nonzero matrix is invertible.
- (a)Show that .
- (b)Show that
is such a subspace of with . - (c)Find such a subspace of of dimension .
Uses. Corollary 4.2.21 (Dimension obstructions), Theorem 2.6.11 (Injectivity is decided at ), Definition 2.5.12 (Invertible)
(a) The map , , is linear. If and , then is invertible, so
(b) with , and are independent, so . For ,
and the product in the other order is the same, so has inverse , since . (This is in disguise.)
(c) Let and
Exercise 4.2.55. For , let
- (a)Let be a subspace of with , and let
. Show that is a subspace of dimension . - (b)(Eventown.) A town has residents, who form clubs. Every club has an even number of members, every two clubs have an even number of members in common, and no two clubs have exactly the same members. Show that there are at most clubs, and that this many is possible.
Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.19 (Extending linear maps and separating vectors), Theorem 1.5.5 (Independence is decided at zero), Proposition 4.1.34 (Size of a vector space over a finite field)
The product is linear in each argument:
(a) Let be a basis of and define by
We show that is surjective. If not, is a subspace of missing some vector , and by Proposition 4.1.19(b) there is a linear with and on . Writing , we have
Taking shows that the th entry of is , for every . So with not all , contradicting the independence of the (Theorem 1.5.5). Hence , and by Theorem 4.2.11, .
(b) Number the residents , and for a club let have in the positions of the members and elsewhere. Then counts the common members modulo , so it is for any two clubs , including (each club has an even number of members). Let be the span of all the . By linearity in each argument, for all , so . With , (a) gives , so , and as is an integer, . Different clubs have different vectors , all in , so the number of clubs is at most (Proposition 4.1.34).
For the construction, let and take as clubs all unions of some of the pairs
Exercise 4.2.56. Let , , and let be a matrix whose columns are the nonzero vectors of , in some order. Let , the Hamming code of length .
- (a)Show that is an code.
- (b)Show that its minimum distance is .
- (c)Show that every is within distance of exactly one codeword.
Uses. Theorem 4.2.11 (Rank–nullity), Corollary 2.6.24 (The columns decide), Theorem 4.2.7 (The image of ), Proposition 4.2.33 (Distinct columns give distance three), Theorem 4.2.34 (Syndrome decoding)
(a) The vectors are among the columns, so the columns span , is surjective (Corollary 2.6.24), and
(b) The columns are nonzero and pairwise distinct, so every nonzero codeword has weight at least (Proposition 4.2.33). Since , the vectors , , and are three different columns, in positions say, and their sum is . So the vector with s in positions is a codeword of weight .
(c) Existence. If , then is a codeword. Otherwise is a nonzero vector of , hence equal to some column , and
Uniqueness. If are both within distance of , then by the triangle inequality, so is a codeword of weight at most , and it is by (b).
So is perfect: codewords, each with words within distance , account for all words.
Exercise 4.2.57. Use the Hamming code of Example 4.2.32.
- (a)Encode the message .
- (b)Decode the received words and , assuming each has at most one flipped bit.
- (c)The codeword is sent, and bits and are flipped. What does syndrome decoding return?
Uses. Example 4.2.32 (The Hamming code), Theorem 4.2.34 (Syndrome decoding)
(a) With
(b) The word has s in positions , so its syndrome is
(c) The received word has syndrome , binary for , so the decoder flips bit and returns . That is a codeword (Section 4.2.7), but not the one sent. The code corrects one error; two errors can be mistaken for one error at a third position, since the minimum distance is only .
More practice
The practice bank has 32 exercises on this section’s topics.