Linear Algebra and Its Applications, Exercise 2.3.23

Exercise 2.3.23. Let v_1 through v_9 be vectors in \mathbf{R}^7. Answer the following questions:

a) Are the nine vectors linearly independent? Not linearly independent? Might be linearly independent?

b) Do the nine vectors span \mathbf{R}^7? Not span \mathbf{R}^7? Might span \mathbf{R}^7?

c) Suppose the nine vectors are the columns of a matrix A. Does Ax = b have a solution? Not have a solution? Might have a solution?

Answer: a) We cannot have a set of 9 linearly independent vectors in a space like \mathbf{R}^7 that has dimension 7. So the vectors are not linearly independent.

b) The vectors might or might not span \mathbf{R}^7. For example, consider the set of vectors (1, 0, 0, 0, 0, 0, 0)(2, 0, 0, 0, 0, 0, 0), through (9, 0, 0, 0, 0, 0, 0). The nine vectors do not span \mathbf{R}^7 but rather span a subspace of dimension 1.

c) The matrix A would have nine columns but only seven rows, and would correspond to a system of seven linear equations with nine unknowns. This system could not have more than seven basic variables and thus would have at least two free variables. Since the free variables can take on any value the system Ax = 0 is guaranteed to have a solution (and in fact would have an infinite number of them) but the system Ax = b might or might not have a solution depending on the value of b.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.22

Exercise 2.3.22. Given a vector space V of dimension 7 and a subspace W of V of dimension 4, state whether the following are true or false:

1) You can create a basis for V by adding three vectors to any set of vectors that is a basis for W.

2) You can create a basis for W by removing three vectors from any set of vectors that is a basis for V.

Answer: 1) True. Suppose w_1, w_2, w_3, and w_4 are a basis for W. Per 2L (page 86) any linearly independent set in V can be extended to a basis for V by adding more vectors if necessary. The four vectors w_1 through w_4 are already linearly independent (since they are a basis) and hence can be extended by adding additional vectors to form a basis for V.

More specifically, we can find three vectors v_1, v_2, and v_3 such that a) the three vectors are not in W (and hence are linearly independent of w_1 through w_4), and b) the three vectors are linearly independent of each other. The resulting seven vectors are linearly independent. Since the dimension of V is 7 these seven linearly independent vectors must be a basis for V. (See exercise 2.3.15.)

2) False. Consider the vectors v_1 = (1, 0, 0, 0, 0, 0, 0) through v_7 = (0, 0, 0, 0, 0, 0, 1) with v_i having a one in the i^{th} position and zeros elsewhere. These vectors are linearly independent and span V and hence are a basis for it.

Now suppose W is the subspace of all vectors of the form (a, a, b, b, c, c, d). The vectors v_1 through v_6 are not in the subspace W and hence cannot be part of a basis for it. Thus it is not possible to remove three vectors from the basis set v_1 through v_7 and form a basis for W.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.21

Exercise 2.3.21. Suppose A is a 64 by 17 matrix and has rank 11. How many independent vectors are solutions to the system Ax = 0? What about the system A^Ty = 0?

Answer: If the rank of A is 11 then performing elimination on A produces an matrix U with 11 pivots and thus 11 basic variables. Since U (like A) has 17 columns this means that there are 17 – 11 or 6 free variables that can be set to arbitrary values in solving the system Ax = 0. The nullspace of A (i.e., the set of all vectors satisfying Ax = 0) therefore has dimension 6, and any basis for the nullspace has 6 linearly independent vectors each of which satisfy Ax = 0.

Since A is 64 by 17 the matrix A^T is 17 by 64. The original matrix A had 11 pivots and 11 linearly independent rows. The rows of A become columns in A^T and thus A^T has 11 linearly independent columns and also has rank 11. Since A^T has 64 columns there are 64 – 11 or 53 free variables when considering the system A^Ty = 0. The nullspace of A^T (i.e., the set of all vectors satisfying A^Ty = 0) therefore has dimension 53, and any basis for the nullspace has 53 linearly independent vectors each of which satisfy A^Ty = 0.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.20

Exercise 2.3.20.Consider the set of all 2 by 2 matrices that have the sum of their rows equal to the sum of their columns. What is a basis for this subspace? Consider the analogous set of 3 by 3 matrices with equal row and column sums. List five linearly independent matrices from this set.

Answer: Any 2 by 2 matrix A in the set will have the form

A = \begin{bmatrix} a&b \\ b&a \end{bmatrix}

with the sum of every row and every column being a+b. Any such matrix A can be represented as a linear combination of two matrices as follows:

A = a \begin{bmatrix} 1&0 \\ 0&1 \end{bmatrix} + b \begin{bmatrix} 0&1 \\ 1&0 \end{bmatrix}

Since the two matrices are linearly independent and span the subspace they are a basis for the subspace.

The following five matrices are linearly independent members of the analogous set for 3 by 3 matrices:

\begin{bmatrix} 1&0&0 \\ 0&1&0 \\ 0&0&1 \end{bmatrix} \quad \begin{bmatrix} 0&1&0 \\ 0&0&1 \\ 1&0&0 \end{bmatrix} \quad \begin{bmatrix} 0&0&1 \\ 1&0&0 \\ 0&1&0 \end{bmatrix}

\begin{bmatrix} 0&1&0 \\ 1&0&0 \\ 0&0&1 \end{bmatrix} \quad \begin{bmatrix} 1&0&0 \\ 0&0&1 \\ 0&1&0 \end{bmatrix}

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.19

Exercise 2.3.19. Suppose A is an m by n matrix, with n columns taken from \mathbf{R}^m. What is the rank of A if its column vectors are linearly independent? What is the rank of A if its column vectors span \mathbf{R}^m? What is the rank of A if its column vectors are a basis for \mathbf{R}^m?

Answer: If the n column vectors of A are linearly independent then there must be a pivot in every one of the n columns, so that the rank r = n.

If the n columns of A span \mathbf{R}^m then we must have n \ge m. There can be no more than m linearly independent vectors in \mathbf{R}^m so out of the n columns of A only m columns can have pivots. Therefore the rank r = m.

If the n columns of A are a basis for \mathbf{R}^m then they are linearly independent, which means the rank r = n, and they also span \mathbf{R}^m so we must also have r = m. We thus have r = m = n.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.18

Exercise 2.3.18. Indicate whether the following statements are true or false:

a) given a matrix A whose columns are linearly independent, the system Ax = b has one and only solution for any right-hand side b

b) if A is a 5 by 7 matrix then the columns of A cannot be linearly independent

Answer: a) False. If A has fewer columns than rows then the system Ax = b has more equations than unknowns and may not have a solution. For example, if

A = \begin{bmatrix} 1&0 \\ 0&1 \\ 0&1 \end{bmatrix} \quad \rm and \quad b = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}

corresponding to the system

\setlength\arraycolsep{0.2em}\begin{array}{rcrcl}x_1&&&=&0 \\ &&x_2&=&0 \\ &&x_2&=&1 \end{array}

then the columns of A are linearly independent but the system Ax = b has no solution since the second and the third equations result in a contradiction.

b) True. If A is a 5 by 7 matrix then it has seven columns, each of which is an element of \mathbf{R}^5. But it is impossible to have more than five linearly independent vectors in \mathbf{R}^5 so the columns of A must be linearly dependent.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment

Linear Algebra and Its Applications, Exercise 2.3.17

Exercise 2.3.17. Suppose that V and W are subspaces of \mathbf{R}^5, each with dimension 3. Show that V and W must have at least one vector in common other than the zero vector.

Answer: Since V and W each have dimension 3 their respective bases each contain three vectors. Let v_1, v_2, and v_3 be a basis for V and w_1, w_2, and w_3 be a basis for W.

Now consider the combined set of six vectors. Since we have six vectors in a vector space of dimension 5 the combined set of vectors is linearly dependent, with at least one vector expressible as a linear combination of the other five vectors. Without loss of generality assume that w_3 is dependent on the other five vectors, so that we have

w_3 = c_1v_1 + c_2v_2 + c_3v_3 + c_4w_1 + c_5w_2

for some set of weights c_1 through c_5. We can rearrange the above equation as follows:

c_1v_1 + c_2v_2 + c_3v_3 = -c_4w_1 - c_5w_2 + w_3

Now consider the vector u = c_1v_1 + c_2v_2 + c_3v_3. Since u is a linear combination of the basis vectors v_1, v_2, and v_3 it is in the subspace V. But from the above equation we also have u = -c_4w_1 - c_5w_2 + w_3 so that u is a linear combination of the basis vectors w_1, w_2, and w_3 and thus is also in the subspace W.

So u is a member of both V and W. Now suppose u = 0. We then have -c_4w_1 - c_5w_2 + w_3 = 0 or w_3 = c_4w_1 + c_5w_2 so that w_3 is a linear combination of w_1 and w_2 and the set of vectors w_1, w_2, and w_3 is linearly dependent. But this contradicts the assumption that w_1, w_2, and w_3 form a basis for W and are thus linearly independent. Since the assumption u = 0 leads to a contradiction we conclude that u \ne 0.

We have thus shown that there must exist a nonzero vector u that is a member of both V and W.

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.

Posted in linear algebra | Leave a comment