Linear Algebra/Vector Spaces and Linear Systems

Linear Algebra
 ← Dimension Vector Spaces and Linear Systems Combining Subspaces →

We will now reconsider linear systems and Gauss' method, aided by the tools and terms of this chapter. We will make three points.

For the first point, recall the first chapter's Linear Combination Lemma and its corollary: if two matrices are related by row operations ${\displaystyle A\longrightarrow \cdots \longrightarrow B}$ then each row of ${\displaystyle B}$ is a linear combination of the rows of ${\displaystyle A}$. That is, Gauss' method works by taking linear combinations of rows. Therefore, the right setting in which to study row operations in general, and Gauss' method in particular, is the following vector space.

Definition 3.1

The row space of a matrix is the span of the set of its rows. The row rank is the dimension of the row space, the number of linearly independent rows.

Example 3.2

If

${\displaystyle A={\begin{pmatrix}2&3\\4&6\end{pmatrix}}}$

then ${\displaystyle {\mathop {\mbox{Rowspace}}}(A)}$ is this subspace of the space of two-component row vectors.

${\displaystyle \{c_{1}\cdot {\begin{pmatrix}2&3\end{pmatrix}}+c_{2}\cdot {\begin{pmatrix}4&6\end{pmatrix}}\,{\big |}\,c_{1},c_{2}\in \mathbb {R} \}}$

The linear dependence of the second on the first is obvious and so we can simplify this description to ${\displaystyle \{c\cdot {\begin{pmatrix}2&3\end{pmatrix}}\,{\big |}\,c\in \mathbb {R} \}}$.

Lemma 3.3

If the matrices ${\displaystyle A}$ and ${\displaystyle B}$ are related by a row operation

${\displaystyle A{\xrightarrow[{}]{\rho _{i}\leftrightarrow \rho _{j}}}B\quad {\text{or}}\quad A{\xrightarrow[{}]{k\rho _{i}}}B\quad {\text{or}}\quad A{\xrightarrow[{}]{k\rho _{i}+\rho _{j}}}B}$

(for ${\displaystyle i\neq j}$ and ${\displaystyle k\neq 0}$) then their row spaces are equal. Hence, row-equivalent matrices have the same row space, and hence also, the same row rank.

Proof

By the Linear Combination Lemma's corollary, each row of ${\displaystyle B}$ is in the row space of ${\displaystyle A}$. Further, ${\displaystyle {\mathop {\mbox{Rowspace}}}(B)\subseteq {\mathop {\mbox{Rowspace}}}(A)}$ because a member of the set ${\displaystyle {\mathop {\mbox{Rowspace}}}(B)}$ is a linear combination of the rows of ${\displaystyle B}$, which means it is a combination of a combination of the rows of ${\displaystyle A}$, and hence, by the Linear Combination Lemma, is also a member of ${\displaystyle {\mathop {\mbox{Rowspace}}}(A)}$.

For the other containment, recall that row operations are reversible: ${\displaystyle A\longrightarrow B}$ if and only if ${\displaystyle B\longrightarrow A}$. With that, ${\displaystyle {\mathop {\mbox{Rowspace}}}(A)\subseteq {\mathop {\mbox{Rowspace}}}(B)}$ also follows from the prior paragraph, and so the two sets are equal.

Thus, row operations leave the row space unchanged. But of course, Gauss' method performs the row operations systematically, with a specific goal in mind, echelon form.

Lemma 3.4

The nonzero rows of an echelon form matrix make up a linearly independent set.

Proof

A result in the first chapter, Lemma One.III.2.5, states that in an echelon form matrix, no nonzero row is a linear combination of the other rows. This is a restatement of that result into new terminology.

Thus, in the language of this chapter, Gaussian reduction works by eliminating linear dependences among rows, leaving the span unchanged, until no nontrivial linear relationships remain (among the nonzero rows). That is, Gauss' method produces a basis for the row space.

Example 3.5

From any matrix, we can produce a basis for the row space by performing Gauss' method and taking the nonzero rows of the resulting echelon form matrix. For instance,

${\displaystyle {\begin{array}{rcl}{\begin{pmatrix}1&3&1\\1&4&1\\2&0&5\end{pmatrix}}&{\xrightarrow[{-2\rho _{1}+\rho _{3}}]{-\rho _{1}+\rho _{2}}}\;{\xrightarrow[{}]{6\rho _{2}+\rho _{3}}}&{\begin{pmatrix}1&3&1\\0&1&0\\0&0&3\end{pmatrix}}\end{array}}}$

produces the basis ${\displaystyle \langle {\begin{pmatrix}1&3&1\end{pmatrix}},{\begin{pmatrix}0&1&0\end{pmatrix}},{\begin{pmatrix}0&0&3\end{pmatrix}}\rangle }$ for the row space. This is a basis for the row space of both the starting and ending matrices, since the two row spaces are equal.

Using this technique, we can also find bases for spans not directly involving row vectors.

Definition 3.6

The column space of a matrix is the span of the set of its columns. The column rank is the dimension of the column space, the number of linearly independent columns.

Our interest in column spaces stems from our study of linear systems. An example is that this system

${\displaystyle {\begin{array}{*{3}{rc}r}c_{1}&+&3c_{2}&+&7c_{3}&=&d_{1}\\2c_{1}&+&3c_{2}&+&8c_{3}&=&d_{2}\\&&c_{2}&+&2c_{3}&=&d_{3}\\4c_{1}&&&+&4c_{3}&=&d_{4}\end{array}}}$

has a solution if and only if the vector of ${\displaystyle d}$'s is a linear combination of the other column vectors,

${\displaystyle c_{1}{\begin{pmatrix}1\\2\\0\\4\end{pmatrix}}+c_{2}{\begin{pmatrix}3\\3\\1\\0\end{pmatrix}}+c_{3}{\begin{pmatrix}7\\8\\2\\4\end{pmatrix}}={\begin{pmatrix}d_{1}\\d_{2}\\d_{3}\\d_{4}\end{pmatrix}}}$

meaning that the vector of ${\displaystyle d}$'s is in the column space of the matrix of coefficients.

Example 3.7

Given this matrix,

${\displaystyle {\begin{pmatrix}1&3&7\\2&3&8\\0&1&2\\4&0&4\end{pmatrix}}}$

to get a basis for the column space, temporarily turn the columns into rows and reduce.

${\displaystyle {\begin{array}{rcl}{\begin{pmatrix}1&2&0&4\\3&3&1&0\\7&8&2&4\end{pmatrix}}&{\xrightarrow[{-7\rho _{1}+\rho _{3}}]{-3\rho _{1}+\rho _{2}}}\;{\xrightarrow[{}]{-2\rho _{2}+\rho _{3}}}&{\begin{pmatrix}1&2&0&4\\0&-3&1&-12\\0&0&0&0\end{pmatrix}}\end{array}}}$

Now turn the rows back to columns.

${\displaystyle \langle {\begin{pmatrix}1\\2\\0\\4\end{pmatrix}},{\begin{pmatrix}0\\-3\\1\\-12\end{pmatrix}}\rangle }$

The result is a basis for the column space of the given matrix.

Definition 3.8

The transpose of a matrix is the result of interchanging the rows and columns of that matrix. That is, column ${\displaystyle j}$ of the matrix ${\displaystyle A}$ is row ${\displaystyle j}$ of ${\displaystyle {{A}^{\rm {trans}}}}$, and vice versa.

So the instructions for the prior example are "transpose, reduce, and transpose back".

We can even, at the price of tolerating the as-yet-vague idea of vector spaces being "the same", use Gauss' method to find bases for spans in other types of vector spaces.

Example 3.9

To get a basis for the span of ${\displaystyle \{x^{2}+x^{4},2x^{2}+3x^{4},-x^{2}-3x^{4}\}}$ in the space ${\displaystyle {\mathcal {P}}_{4}}$, think of these three polynomials as "the same" as the row vectors ${\displaystyle {\begin{pmatrix}0&0&1&0&1\end{pmatrix}}}$, ${\displaystyle {\begin{pmatrix}0&0&2&0&3\end{pmatrix}}}$, and ${\displaystyle {\begin{pmatrix}0&0&-1&0&-3\end{pmatrix}}}$, apply Gauss' method

${\displaystyle {\begin{array}{rcl}{\begin{pmatrix}0&0&1&0&1\\0&0&2&0&3\\0&0&-1&0&-3\end{pmatrix}}&{\xrightarrow[{\rho _{1}+\rho _{3}}]{-2\rho _{1}+\rho _{2}}}\;{\xrightarrow[{}]{2\rho _{2}+\rho _{3}}}&{\begin{pmatrix}0&0&1&0&1\\0&0&0&0&1\\0&0&0&0&0\end{pmatrix}}\end{array}}}$

and translate back to get the basis ${\displaystyle \langle x^{2}+x^{4},x^{4}\rangle }$. (As mentioned earlier, we will make the phrase "the same" precise at the start of the next chapter.)

Thus, our first point in this subsection is that the tools of this chapter give us a more conceptual understanding of Gaussian reduction.

For the second point of this subsection, consider the effect on the column space of this row reduction.

${\displaystyle {\begin{array}{rcl}{\begin{pmatrix}1&2\\2&4\end{pmatrix}}&{\xrightarrow[{}]{-2\rho _{1}+\rho _{2}}}&{\begin{pmatrix}1&2\\0&0\end{pmatrix}}\end{array}}}$

The column space of the left-hand matrix contains vectors with a second component that is nonzero. But the column space of the right-hand matrix is different because it contains only vectors whose second component is zero. It is this knowledge that row operations can change the column space that makes next result surprising.

Lemma 3.10

Row operations do not change the column rank.

Proof

Restated, if ${\displaystyle A}$ reduces to ${\displaystyle B}$ then the column rank of ${\displaystyle B}$ equals the column rank of ${\displaystyle A}$.

We will be done if we can show that row operations do not affect linear relationships among columns (e.g., if the fifth column is twice the second plus the fourth before a row operation then that relationship still holds afterwards), because the column rank is just the size of the largest set of unrelated columns. But this is exactly the first theorem of this book: in a relationship among columns,

${\displaystyle c_{1}\cdot {\begin{pmatrix}a_{1,1}\\a_{2,1}\\\vdots \\a_{m,1}\end{pmatrix}}+\dots +c_{n}\cdot {\begin{pmatrix}a_{1,n}\\a_{2,n}\\\vdots \\a_{m,n}\end{pmatrix}}={\begin{pmatrix}0\\0\\\vdots \\0\end{pmatrix}}}$

row operations leave unchanged the set of solutions ${\displaystyle (c_{1},\ldots ,c_{n})}$.

Another way, besides the prior result, to state that Gauss' method has something to say about the column space as well as about the row space is to consider again Gauss-Jordan reduction. Recall that it ends with the reduced echelon form of a matrix, as here.

${\displaystyle {\begin{array}{rcl}{\begin{pmatrix}1&3&1&6\\2&6&3&16\\1&3&1&6\end{pmatrix}}&{\xrightarrow[{}]{}}\;\cdots \;{\xrightarrow[{}]{}}&{\begin{pmatrix}1&3&0&2\\0&0&1&4\\0&0&0&0\end{pmatrix}}\end{array}}}$

Consider the row space and the column space of this result. Our first point made above says that a basis for the row space is easy to get: simply collect together all of the rows with leading entries. However, because this is a reduced echelon form matrix, a basis for the column space is just as easy: take the columns containing the leading entries, that is, ${\displaystyle \langle {\vec {e}}_{1},{\vec {e}}_{2}\rangle }$. (Linear independence is obvious. The other columns are in the span of this set, since they all have a third component of zero.) Thus, for a reduced echelon form matrix, bases for the row and column spaces can be found in essentially the same way— by taking the parts of the matrix, the rows or columns, containing the leading entries.

Theorem 3.11

The row rank and column rank of a matrix are equal.

Proof

First bring the matrix to reduced echelon form. At that point, the row rank equals the number of leading entries since each equals the number of nonzero rows. Also at that point, the number of leading entries equals the column rank because the set of columns containing leading entries consists of some of the ${\displaystyle {\vec {e}}_{i}}$'s from a standard basis, and that set is linearly independent and spans the set of columns. Hence, in the reduced echelon form matrix, the row rank equals the column rank, because each equals the number of leading entries.

But Lemma 3.3 and Lemma 3.10 show that the row rank and column rank are not changed by using row operations to get to reduced echelon form. Thus the row rank and the column rank of the original matrix are also equal.

Definition 3.12

The rank of a matrix is its row rank or column rank.

So our second point in this subsection is that the column space and row space of a matrix have the same dimension. Our third and final point is that the concepts that we've seen arising naturally in the study of vector spaces are exactly the ones that we have studied with linear systems.

Theorem 3.13

For linear systems with ${\displaystyle n}$ unknowns and with matrix of coefficients ${\displaystyle A}$, the statements

1. the rank of ${\displaystyle A}$ is ${\displaystyle r}$
2. the space of solutions of the associated homogeneous system has dimension ${\displaystyle n-r}$

are equivalent.

So if the system has at least one particular solution then for the set of solutions, the number of parameters equals ${\displaystyle n-r}$, the number of variables minus the rank of the matrix of coefficients.

Proof

The rank of ${\displaystyle A}$ is ${\displaystyle r}$ if and only if Gaussian reduction on ${\displaystyle A}$ ends with ${\displaystyle r}$ nonzero rows. That's true if and only if echelon form matrices row equivalent to ${\displaystyle A}$ have ${\displaystyle r}$-many leading variables. That in turn holds if and only if there are ${\displaystyle n-r}$ free variables.

Remark 3.14
(Munkres 1964)

Sometimes that result is mistakenly remembered to say that the general solution of an ${\displaystyle n}$ unknown system of ${\displaystyle m}$ equations uses ${\displaystyle n-m}$ parameters. The number of equations is not the relevant figure, rather, what matters is the number of independent equations (the number of equations in a maximal independent set). Where there are ${\displaystyle r}$ independent equations, the general solution involves ${\displaystyle n-r}$ parameters.

Corollary 3.15

Where the matrix ${\displaystyle A}$ is ${\displaystyle n\!\times \!n}$, the statements

1. the rank of ${\displaystyle A}$ is ${\displaystyle n}$
2. ${\displaystyle A}$ is nonsingular
3. the rows of ${\displaystyle A}$ form a linearly independent set
4. the columns of ${\displaystyle A}$ form a linearly independent set
5. any linear system whose matrix of coefficients is ${\displaystyle A}$ has one and only one solution

are equivalent.

Proof

Clearly ${\displaystyle {\text{(1)}}\iff {\text{(2)}}\iff {\text{(3)}}\iff {\text{(4)}}}$. The last, ${\displaystyle {\text{(4)}}\iff {\text{(5)}}}$, holds because a set of ${\displaystyle n}$ column vectors is linearly independent if and only if it is a basis for ${\displaystyle \mathbb {R} ^{n}}$, but the system

${\displaystyle c_{1}{\begin{pmatrix}a_{1,1}\\a_{2,1}\\\vdots \\a_{m,1}\end{pmatrix}}+\dots +c_{n}{\begin{pmatrix}a_{1,n}\\a_{2,n}\\\vdots \\a_{m,n}\end{pmatrix}}={\begin{pmatrix}d_{1}\\d_{2}\\\vdots \\d_{m}\end{pmatrix}}}$

has a unique solution for all choices of ${\displaystyle d_{1},\dots ,d_{n}\in \mathbb {R} }$ if and only if the vectors of ${\displaystyle a}$'s form a basis.

Exercises

Problem 1

Transpose each.

1. ${\displaystyle {\begin{pmatrix}2&1\\3&1\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}2&1\\1&3\end{pmatrix}}}$
3. ${\displaystyle {\begin{pmatrix}1&4&3\\6&7&8\end{pmatrix}}}$
4. ${\displaystyle {\begin{pmatrix}0\\0\\0\end{pmatrix}}}$
5. ${\displaystyle {\begin{pmatrix}-1&-2\end{pmatrix}}}$
This exercise is recommended for all readers.
Problem 2

Decide if the vector is in the row space of the matrix.

1. ${\displaystyle {\begin{pmatrix}2&1\\3&1\end{pmatrix}}}$, ${\displaystyle {\begin{pmatrix}1&0\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}0&1&3\\-1&0&1\\-1&2&7\end{pmatrix}}}$, ${\displaystyle {\begin{pmatrix}1&1&1\end{pmatrix}}}$
This exercise is recommended for all readers.
Problem 3

Decide if the vector is in the column space.

1. ${\displaystyle {\begin{pmatrix}1&1\\1&1\end{pmatrix}}}$, ${\displaystyle {\begin{pmatrix}1\\3\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}1&3&1\\2&0&4\\1&-3&-3\end{pmatrix}}}$, ${\displaystyle {\begin{pmatrix}1\\0\\0\end{pmatrix}}}$
This exercise is recommended for all readers.
Problem 4

Find a basis for the row space of this matrix.

${\displaystyle {\begin{pmatrix}2&0&3&4\\0&1&1&-1\\3&1&0&2\\1&0&-4&-1\end{pmatrix}}}$
This exercise is recommended for all readers.
Problem 5

Find the rank of each matrix.

1. ${\displaystyle {\begin{pmatrix}2&1&3\\1&-1&2\\1&0&3\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}1&-1&2\\3&-3&6\\-2&2&-4\end{pmatrix}}}$
3. ${\displaystyle {\begin{pmatrix}1&3&2\\5&1&1\\6&4&3\end{pmatrix}}}$
4. ${\displaystyle {\begin{pmatrix}0&0&0\\0&0&0\\0&0&0\end{pmatrix}}}$
This exercise is recommended for all readers.
Problem 6

Find a basis for the span of each set.

1. ${\displaystyle \{{\begin{pmatrix}1&3\end{pmatrix}},{\begin{pmatrix}-1&3\end{pmatrix}},{\begin{pmatrix}1&4\end{pmatrix}},{\begin{pmatrix}2&1\end{pmatrix}}\}\subseteq {\mathcal {M}}_{1\!\times \!2}}$
2. ${\displaystyle \{{\begin{pmatrix}1\\2\\1\end{pmatrix}},{\begin{pmatrix}3\\1\\-1\end{pmatrix}},{\begin{pmatrix}1\\-3\\-3\end{pmatrix}}\}\subseteq \mathbb {R} ^{3}}$
3. ${\displaystyle \{1+x,1-x^{2},3+2x-x^{2}\}\subseteq {\mathcal {P}}_{3}}$
4. ${\displaystyle \{{\begin{pmatrix}1&0&1\\3&1&-1\end{pmatrix}},{\begin{pmatrix}1&0&3\\2&1&4\end{pmatrix}},{\begin{pmatrix}-1&0&-5\\-1&-1&-9\end{pmatrix}}\}\subseteq {\mathcal {M}}_{2\!\times \!3}}$
Problem 7

Which matrices have rank zero? Rank one?

This exercise is recommended for all readers.
Problem 8

Given ${\displaystyle a,b,c\in \mathbb {R} }$, what choice of ${\displaystyle d}$ will cause this matrix to have the rank of one?

${\displaystyle {\begin{pmatrix}a&b\\c&d\end{pmatrix}}}$
Problem 9

Find the column rank of this matrix.

${\displaystyle {\begin{pmatrix}1&3&-1&5&0&4\\2&0&1&0&4&1\end{pmatrix}}}$
Problem 10

Show that a linear system with at least one solution has at most one solution if and only if the matrix of coefficients has rank equal to the number of its columns.

This exercise is recommended for all readers.
Problem 11

If a matrix is ${\displaystyle 5\!\times \!9}$, which set must be dependent, its set of rows or its set of columns?

Problem 12

Give an example to show that, despite that they have the same dimension, the row space and column space of a matrix need not be equal. Are they ever equal?

Problem 13

Show that the set ${\displaystyle \{(1,-1,2,-3),(1,1,2,0),(3,-1,6,-6)\}}$ does not have the same span as ${\displaystyle \{(1,0,1,0),(0,2,0,3)\}}$. What, by the way, is the vector space?

This exercise is recommended for all readers.
Problem 14

Show that this set of column vectors

${\displaystyle \left\{{\begin{pmatrix}d_{1}\\d_{2}\\d_{3}\end{pmatrix}}\,{\big |}\,{\text{there are }}x,y,{\text{ and }}z{\text{ such that }}{\begin{array}{*{3}{rc}r}3x&+&2y&+&4z&=&d_{1}\\x&&&-&z&=&d_{2}\\2x&+&2y&+&5z&=&d_{3}\end{array}}\right\}}$

is a subspace of ${\displaystyle \mathbb {R} ^{3}}$. Find a basis.

Problem 15

Show that the transpose operation is linear:

${\displaystyle {{(rA+sB)}^{\rm {trans}}}=r{{A}^{\rm {trans}}}+s{{B}^{\rm {trans}}}}$

for ${\displaystyle r,s\in \mathbb {R} }$ and ${\displaystyle A,B\in {\mathcal {M}}_{m\!\times \!n}}$.

This exercise is recommended for all readers.
Problem 16

In this subsection we have shown that Gaussian reduction finds a basis for the row space.

1. Show that this basis is not unique— different reductions may yield different bases.
2. Produce matrices with equal row spaces but unequal numbers of rows.
3. Prove that two matrices have equal row spaces if and only if after Gauss-Jordan reduction they have the same nonzero rows.
Problem 17

Why is there not a problem with Remark 3.14 in the case that ${\displaystyle r}$ is bigger than ${\displaystyle n}$?

Problem 18

Show that the row rank of an ${\displaystyle m\!\times \!n}$ matrix is at most ${\displaystyle m}$. Is there a better bound?

This exercise is recommended for all readers.
Problem 19

Show that the rank of a matrix equals the rank of its transpose.

Problem 20

True or false: the column space of a matrix equals the row space of its transpose.

This exercise is recommended for all readers.
Problem 21

We have seen that a row operation may change the column space. Must it?

Problem 22

Prove that a linear system has a solution if and only if that system's matrix of coefficients has the same rank as its augmented matrix.

Problem 23

An ${\displaystyle m\!\times \!n}$ matrix has full row rank if its row rank is ${\displaystyle m}$, and it has full column rank if its column rank is ${\displaystyle n}$.

1. Show that a matrix can have both full row rank and full column rank only if it is square.
2. Prove that the linear system with matrix of coefficients ${\displaystyle A}$ has a solution for any ${\displaystyle d_{1}}$, ..., ${\displaystyle d_{n}}$'s on the right side if and only if ${\displaystyle A}$ has full row rank.
3. Prove that a homogeneous system has a unique solution if and only if its matrix of coefficients ${\displaystyle A}$ has full column rank.
4. Prove that the statement "if a system with matrix of coefficients ${\displaystyle A}$ has any solution then it has a unique solution" holds if and only if ${\displaystyle A}$ has full column rank.
Problem 24

How would the conclusion of Lemma 3.3 change if Gauss' method is changed to allow multiplying a row by zero?

This exercise is recommended for all readers.
Problem 25

What is the relationship between ${\displaystyle {\mathop {\mbox{rank}}}(A)}$ and ${\displaystyle {\mathop {\mbox{rank}}}(-A)}$? Between ${\displaystyle {\mathop {\mbox{rank}}}(A)}$ and ${\displaystyle {\mathop {\mbox{rank}}}(kA)}$? What, if any, is the relationship between ${\displaystyle {\mathop {\mbox{rank}}}(A)}$, ${\displaystyle {\mathop {\mbox{rank}}}(B)}$, and ${\displaystyle {\mathop {\mbox{rank}}}(A+B)}$?

Solutions

References

• Munkres, James R. (1964), Elementary Linear Algebra, Addison-Wesley .
Linear Algebra
 ← Dimension Vector Spaces and Linear Systems Combining Subspaces →