2.7: Finding the Inverse of a Matrix
( \newcommand{\kernel}{\mathrm{null}\,}\)
In Example 2.6.1, we were given A−1 and asked to verify that this matrix was in fact the inverse of A. In this section, we explore how to find A−1.
Let A=[1112]
Let’s solve the first system. Take −1 times the first row and add to the second to get [11101−1]
Now solve the second system, (???) to find z and w. You will find that z=−1 and w=1.
If we take the values found for x,y,z, and w and put them into our inverse matrix, we see that the inverse is A−1=[xzyw]=[2−1−11]
After taking the time to solve the second system, you may have noticed that exactly the same row operations were used to solve both systems. In each case, the end result was something of the form [I|X] where I is the identity and X gave a column of the inverse. In the above, [xy]
To simplify this procedure, we could have solved both systems at once! To do so, we could have written [11101201]
and row reduced until we obtained [102−101−11]
This exploration motivates the following important algorithm.
Suppose A is an n×n matrix. To find A−1 if it exists, form the augmented n×2n matrix [A|I]
This algorithm shows how to find the inverse if it exists. It will also tell you if A does not have an inverse.
Consider the following example.
Let A=[12210231−1]. Find A−1 if it exists.
Solution
Set up the augmented matrix [A|I]=[12210010201031−1001]
Now we row reduce, with the goal of obtaining the 3×3 identity matrix on the left hand side. First, take −1 times the first row and add to the second followed by −3 times the first row added to the third row. This yields [1221000−20−1100−5−7−301]
It may happen that through this algorithm, you discover that the left hand side cannot be row reduced to the identity matrix. Consider the following example of this situation.
Let A=[122102224]. Find A−1 if it exists.
Solution
Write the augmented matrix [A|I] [122100102010224001]
If the algorithm provides an inverse for the original matrix, it is always possible to check your answer. To do so, use the method demonstrated in Example 2.6.1. Check that the products AA−1 and A−1A both equal the identity matrix. Through this method, you can always be sure that you have calculated A−1 properly!
One way in which the inverse of a matrix is useful is to find the solution of a system of linear equations. Recall from Definition 2.2.4 that we can write a system of equations in matrix form, which is of the form AX=B. Suppose you find the inverse of the matrix A−1. Then you could multiply both sides of this equation on the left by A−1 and simplify to obtain (A−1)AX=A−1B(A−1A)X=A−1BIX=A−1BX=A−1B
We will explore this method of finding the solution to a system in the following example.
Consider the following system of equations. Use the inverse of a suitable matrix to give the solutions to this system. x+z=1x−y+z=3x+y−z=2
Solution
First, we can write the system of equations in matrix form AX=[1011−1111−1][xyz]=[132]=B
The inverse of the matrix A=[1011−1111−1]
Verifying this inverse is left as an exercise.
From here, the solution to the given system (???) is found by [xyz]=A−1B=[0 12 121−101− 12− 12][132]=[ 52−2− 32]
What if the right side, B, of (???) had been [013]? In other words, what would be the solution to [1011−1111−1][xyz]=[013]?
We conclude this section with some important properties of the inverse.
Let A,B, and Ai for i=1,...,k be n×n matrices.
- If A is an invertible matrix, then (AT)−1=(A−1)T
- If A and B are invertible matrices, then AB is invertible and (AB)−1=B−1A−1
- If A1,A2,...,Ak are invertible, then the product A1A2⋯Ak is invertible, and (A1A2⋯Ak)−1=A−1kA−1k−1⋯A−12A−11
Consider the following theorem.
Let A be an n×n matrix and I the usual identity matrix.
- I is invertible and I−1=I
- If A is invertible then so is A−1, and (A−1)−1=A
- If A is invertible then so is Ak, and (Ak)−1=(A−1)k
- If A is invertible and p is a nonzero real number, then pA is invertible and (pA)−1=1pA−1