A.4 Subspaces, Dimension, and The Kernel
Subspaces, Basis, and Dimension
We often find ourselves looking at the set of solutions of a linear equation for some matrix , that is, we are interested in the kernel of . The set of all such solutions has a nice structure: It looks and acts a lot like some euclidean space .
We say that a set of vectors in is a subspace if whenever and are members of and is a scalar, then
are also members of . That is, we can add and multiply by scalars and we still land in . So every linear combination of vectors of is still in . That is really what a subspace is. It is a subset where we can take linear combinations and still end up being in the subset. Consequently the span of a number of vectors is automatically a subspace.If is a subspace and we can find linearly independent vectors in
such that every other vector in is a linear combination of , then the set is called a basis of . In other words, is the span of . We say that has dimension , and we writeJust as a vector in is represented by a -tuple of numbers, so is a vector in a -dimensional subspace of represented by a -tuple of numbers. At least once we have fixed a basis. A different basis would give a different -tuple of numbers for the same vector.
We should reiterate that while is unique (a subspace cannot have two different dimensions), the set of basis vectors is not at all unique. There are lots of different bases for any given subspace. Finding just the right basis for a subspace is a large part of what one does in linear algebra. In fact, that is what we spend a lot of time on in linear differential equations, although at first glance it may not seem like that is what we are doing.
Row and column spaces of a matrix are also examples of subspaces, as they are given as the span of vectors. We can use what we know about rank, row spaces, and column spaces from the previous section to find a basis.
We would have followed the same procedure if we wanted to find the basis of the subspace spanned by
We would have simply formed the matrix with these vectors as columns and repeated the computation above. The subspace is then the column space of .The way the dimensions worked out in the examples is not an accident. Since the number of vectors that we needed to take was always the same as the number of pivots, and the number of pivots is the rank, we get the following result.
Kernel
The set of solutions of a linear equation , the kernel of , is a subspace: If and are solutions, then
So and are solutions. The dimension of the kernel is called the nullity of the matrix.The same sort of idea governs the solutions of linear differential equations. We try to describe the kernel of a linear differential operator, and as it is a subspace, we look for a basis of this kernel. Much of this book is dedicated to finding such bases.
The kernel of a matrix is the same as the kernel of its reduced row echelon form. For a matrix in reduced row echelon form, the kernel is rather easy to find. If a vector is applied to a matrix , then each entry in corresponds to a column of , the column that the entry multiplies. To find the kernel, pick a non-pivot column make a vector that has a in the entry corresponding to this non-pivot column and zeros at all the other entries corresponding to the other non-pivot columns. Then for all the entries corresponding to pivot columns make it precisely the value in the corresponding row of the non-pivot column to make the vector be a solution to . This procedure is best understood by example.
What we did in finding a basis of the kernel is we expressed all solutions of as a linear combination of some given vectors.
The procedure to find the basis of the kernel of a matrix :
- Find the reduced row echelon form of .
- Write down the basis of the kernel as above, one vector for each non-pivot column.
The rank of a matrix is the dimension of the column space, and that is the span on the pivot columns, while the kernel is the span of vectors one for each non-pivot column. So the two numbers must add to the number of columns.
The theorem is immensely useful in applications. It allows one to compute the rank if one knows the nullity and vice versa, without doing any extra work.
Let us consider an example application, a simple version of the so-called Fredholm alternative. A similar result is true for differential equations. Consider
where is a square matrix. There are then two mutually exclusive possibilities:- A nonzero solution to exists.
- The equation has a unique solution for every .
How does the Rank–Nullity theorem come into the picture? Well, if has a nonzero solution to , then the nullity is positive. But then the rank must be less than . It means that the column space of is of dimension less than , so it is a subspace that does not include everything in . So has to contain some vector not in the column space of . In fact, most vectors in are not in the column space of .
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.