Exercise 1.6.6. Invert the following matrices using the Gauss-Jordan method:
Answer: For the first matrix Gauss-Jordan elimination proceeds as follows: We first subtract 1 times the first row from the second row:
This completes the process of forward elimination. We then start reverse elimination by subtracting 1 times the third row from the second row:
This completes reverse elimination. Since the left matrix is now the identity matrix we are done, and we have
For the second matrix we begin forward elimination by subtracting -1/2 times the first row from the second row:
and then multiply -2/3 by the second row and subtract it from the third:
This completes forward elimination, so we begin reverse elimination by multiplying -3/4 by the third row and subtracting it from the second:
We continue by multiplying the second row by -2/3 and subtracting it from the first row:
In the final step we multiply the first row by 1/2, the second row by 2/3, and the third row by 3/4:
For the third matrix we must first do a row exchange to get a nonzero pivot in the first row. We exchange the first row with the third:
This completes forward elimination, so we begin reverse elimination by subtracting 1 times the third row from the second row and 1 times the third row from the first row:
Finally we subtract 1 times the second row from the first row:
This completes elimination and we have
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.