Review exercise 2.21. Consider an by matrix with the value 1 for every entry. What is the rank of such a matrix? Consider another by matrix equivalent to a checkerboard, with if is even and if is odd. What is the rank of this matrix?

Answer: If each element in the matrix has the value 1 then every column of the matrix is equal to every other column of the matrix, and every row equal to every other row. There is only one column (or row) that is linearly independent (e.g., column 1 or row 1) and thus the rank of the matrix is 1.

For the second matrix, the first and second rows are linearly independent, since the first row has the form and the second row has the form . Every other odd row is equal to the first row: If is odd then is even whenever is even, and is odd whenever is odd; thus we have for all odd and all .

Similarly, every other even row is equal to the second row: If is even then is even whenever is even, and is odd whenever is odd; thus we have for all even and all .

Since the “checkerboard” matrix contains only two linearly independent rows, its rank is 2.

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.