A matrix can send a nonzero input to the zero vector. Each entry of is the dot product of one row of with , so an input that comes out as zero has zero dot product with every row of . This lesson turns that observation into exact statements about all four fundamental subspaces, keeping the input space and the output space of an matrix apart, and shows how their dimensions fit together. Throughout, a tuple such as stands for a column vector, and all vectors are real with the ordinary dot product.
Key terms
Orthogonal complement
Definition Let be a subspace of . The orthogonal complement of , written and read ” perp”, is the set of vectors in the same space that have zero dot product with every vector of ,
It is a subspace of , because it contains and , which is when and lie in . If span , then lies in exactly when for each , since a dot product with a combination of the is the same combination of zeros. The only vector in both and is , because such a vector satisfies . At the extremes, and .
In plain words A vector belongs to when it is perpendicular to all of at once. You never have to test infinitely many vectors, only a spanning list, but every vector in that list has to pass.
Example In let be the plane spanned by and , which is the plane . A vector lies in exactly when
Setting gives , so is the line spanned by . Testing a single combination is not enough. The vector has zero dot product with , but its dot products with and are and , so it is not in .
Null space as the complement of the row space
Definition Let be a real matrix, a map from to . Each row has entries and, written as a column, is a vector of . The row space is the span of these vectors, which equals , so it lies in the input space , and so does . These two subspaces are orthogonal complements,
The reason is that entry of is the dot product of row with . So holds exactly when is perpendicular to every row, which is the same as being perpendicular to their span. The identity holds for every real matrix, square or not, whether or not its rows are independent.
In plain words Each equation of the system says that is perpendicular to one row. Solving the system finds every vector perpendicular to all the rows.
Example Let
The system reads and , the same equations as in the previous example, so is the line in spanned by . The row space is the plane spanned by and , and is perpendicular to both rows. For the matrix the rows , and are vectors of and already span it, so . Having three rows does not make them vectors of , because the ambient space is set by the number of entries in each row.
Left null space as the complement of the column space
Definition The left null space of a real matrix is
The name comes from the equivalent equation , where multiplies from the left, but the vectors are still columns in the output space . The rows of are the columns of , so the previous result applied to gives
an identity between two subspaces of . If and is in , then . So every vector of the left null space gives a linear condition that each attainable output satisfies.
In plain words The left null space holds the directions of the output space that are perpendicular to every possible output. A target with a nonzero dot product against one of them cannot be reached.
Example For the matrix
the columns and span the plane in . The system reads and , so is the line spanned by . The target passes the test, since its dot product with is , and indeed sends to it. The target fails, since its dot product with is , so has no solution.
Complementary dimensions
Definition Let be a real matrix of rank . The row space and the column space both have dimension . Rank-nullity for gives , and rank-nullity for , which also has rank , gives . Hence
The first count takes place in the input space and the second in the output space. For a square matrix both totals are , but the subspaces involved still differ in general, because and need not be equal. More generally, every subspace of satisfies
For this reads . Otherwise, write a basis of with vectors as the rows of a matrix . Its rank is , its null space is by the previous result, and rank-nullity gives .
In plain words A subspace and its orthogonal complement share no nonzero direction, and together they account for every dimension of the space. The input space splits its dimensions between the row space and the null space, and the output space splits its dimensions between the column space and the left null space.
Example The matrix above has rank . In its input space the count is , with row space all of and null space . In its output space the count is , the column plane plus the normal line. For the rank is still , but the roles of the spaces swap. Its input space holds a row plane and a null line, , and its output space is the whole column space, with left null space and count .
Orthogonal decomposition of a space
Definition Let be a subspace of . Every in can be written in exactly one way as
with in and in , and the two pieces are perpendicular. This is written and called an orthogonal direct sum. For existence, put a basis of and a basis of together. A combination of the first list that cancels a combination of the second gives a vector in , so both combinations are zero and all their coefficients vanish. The joined list is therefore independent, and by the dimension count it has vectors, so it is a basis of . For uniqueness, the difference of two such decompositions gives a vector in , which is . Applied to a real matrix ,
It also follows that , because every vector of is perpendicular to all of , so lies inside , and both subspaces have dimension . In particular , so has a solution exactly when is perpendicular to every vector of the left null space.
In plain words Every input splits into a row space part, which alone determines , and a null space part, which sends to zero. Every vector of the output space splits into a reachable part in the column space and a part perpendicular to all outputs.
Example Take with rows and and the input . The null space is the line through , and projecting onto it gives the coefficient . So the null space part is and
The first piece is the first row of , the two pieces have dot product , and both and its row space part are sent to , while the null space part is sent to . In the output space of the target splits the same way into , which satisfies , plus .
Check yourself
- Let be the plane in spanned by and . A student says that lies in because it is perpendicular to . Is that right? Find .
Show the answer
The claim is wrong. The sum is and its dot product with is , but and . These two nonzero dot products cancel in the sum, so is not perpendicular to the whole plane. A vector lies in exactly when and , so is the line spanned by . Its dimension is , as the dimension count requires.
- Find a basis of the null space of the matrix below, check that it is perpendicular to the rows, and give the dimension of each of the four fundamental subspaces.
Show the answer
The system reads and , so is spanned by . Its dot products with the rows are and . The rank is . In the input space the row space has dimension and the null space dimension , and . In the output space the column space has dimension , so it is all of , and the left null space is with dimension , and .
- Let be the matrix with columns and . Find its left null space, and use it to decide for which the system has a solution.
Show the answer
The left null space solves , that is and . Setting gives , a line in , which matches . A solution requires , so . Because the column space is exactly the orthogonal complement of the left null space, this condition is also sufficient, and indeed .