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 in the set will have the form

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

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:

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.