Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

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 Lx=0L\vec{x} = \vec{0} for some matrix LL, that is, we are interested in the kernel of LL. The set of all such solutions has a nice structure: It looks and acts a lot like some euclidean space Rk{\mathbb R}^k.

We say that a set SS of vectors in Rn{\mathbb R}^n is a subspace if whenever x\vec{x} and y\vec{y} are members of SS and α\alpha is a scalar, then

x+y,andαx\vec{x} + \vec{y}, \qquad \text{and} \qquad \alpha \vec{x} \nonumber

are also members of SS. That is, we can add and multiply by scalars and we still land in SS. So every linear combination of vectors of SS is still in SS. 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 SS is a subspace and we can find kk linearly independent vectors in SS

v1,v2,,vk,\vec{v}_1, \vec{v}_2, \ldots, \vec{v}_k, \nonumber

such that every other vector in SS is a linear combination of v1,v2,,vk\vec{v}_1, \vec{v}_2,\ldots, \vec{v}_k, then the set {v1,v2,,vk}\{ \vec{v}_1, \vec{v}_2, \ldots, \vec{v}_k \} is called a basis of SS. In other words, SS is the span of {v1,v2,,vk}\{ \vec{v}_1, \vec{v}_2, \ldots, \vec{v}_k \}. We say that SS has dimension kk, and we write

dimS=k.\dim S = k. \nonumber

Just as a vector in Rk{\mathbb R}^k is represented by a kk-tuple of numbers, so is a vector in a kk-dimensional subspace of Rn{\mathbb R}^n represented by a kk-tuple of numbers. At least once we have fixed a basis. A different basis would give a different kk-tuple of numbers for the same vector.

We should reiterate that while kk 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 XX spanned by

[123],[246],[357],[468].\begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}, \begin{bmatrix} 2 \\ 4 \\ 6 \end{bmatrix}, \begin{bmatrix} 3 \\ 5 \\ 7 \end{bmatrix}, \begin{bmatrix} 4 \\ 6 \\ 8 \end{bmatrix}. \nonumber

We would have simply formed the matrix AA with these vectors as columns and repeated the computation above. The subspace XX is then the column space of AA.

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 Lx=0L\vec{x} = \vec{0}, the kernel of LL, is a subspace: If x\vec{x} and y\vec{y} are solutions, then

L(x+y)=Lx+Ly=0+0=0,andL(αx)=αLx=α0=0.L(\vec{x}+\vec{y}) = L\vec{x}+L\vec{y} = \vec{0}+\vec{0} = \vec{0}, \qquad \text{and} \qquad L(\alpha \vec{x}) = \alpha L \vec{x} = \alpha \vec{0} = \vec{0}. \nonumber

So x+y\vec{x}+\vec{y} and αx\alpha \vec{x} 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 x\vec{x} is applied to a matrix LL, then each entry in x\vec{x} corresponds to a column of LL, the column that the entry multiplies. To find the kernel, pick a non-pivot column make a vector that has a 1-1 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 Lx=0L \vec{x} = \vec{0}. This procedure is best understood by example.

What we did in finding a basis of the kernel is we expressed all solutions of Lx=0L \vec{x} = \vec{0} as a linear combination of some given vectors.

The procedure to find the basis of the kernel of a matrix LL:

  1. Find the reduced row echelon form of LL.
  2. 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 rr if one knows the nullity kk 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

Ax=b,A \vec{x} = \vec{b}, \nonumber

where AA is a square n×nn \times n matrix. There are then two mutually exclusive possibilities:

  1. A nonzero solution x\vec{x} to Ax=0A \vec{x} = \vec{0} exists.
  2. The equation Ax=bA \vec{x} = \vec{b} has a unique solution x\vec{x} for every b\vec{b}.

How does the Rank–Nullity theorem come into the picture? Well, if AA has a nonzero solution x\vec{x} to Ax=0A \vec{x} = \vec{0}, then the nullity kk is positive. But then the rank r=nkr = n-k must be less than nn. It means that the column space of AA is of dimension less than nn, so it is a subspace that does not include everything in n{\mathbb{R}}^n. So n{\mathbb{R}}^n has to contain some vector b\vec{b} not in the column space of AA. In fact, most vectors in n{\mathbb{R}}^n are not in the column space of AA.

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.