exercise 2.37 matrix algebra