Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

12.7: Finding the Inverse of a Matrix

( \newcommand{\kernel}{\mathrm{null}\,}\)

In Example 2.6.1, we were given A1 and asked to verify that this matrix was in fact the inverse of A. In this section, we explore how to find A1.

Let A=[1112] as in Example 2.6.1. In order to find A1, we need to find a matrix [xzyw] such that [1112][xzyw]=[1001] We can multiply these two matrices, and see that in order for this equation to be true, we must find the solution to the systems of equations, x+y=1x+2y=0 and z+w=0z+2w=1 Writing the augmented matrix for these two systems gives [111120] for the first system and [110121] for the second.

Let’s solve the first system. Take 1 times the first row and add to the second to get [111011] Now take 1 times the second row and add to the first to get [102011] Writing in terms of variables, this says x=2 and y=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 A1=[xzyw]=[2111]

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] the first column of the inverse was obtained by solving the first system and then the second column [zw]

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 [10210111] and read off the inverse as the 2×2 matrix on the right side.

This exploration motivates the following important algorithm.

Algorithm 12.7.1: Matrix Inverse Algorithm

Suppose A is an n×n matrix. To find A1 if it exists, form the augmented n×2n matrix [A|I] If possible do row operations until you obtain an n×2n matrix of the form [I|B] When this has been done, B=A1. In this case, we say that A is invertible. If it is impossible to row reduce to a matrix of the form [I|B], then A has no inverse.

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.

Example 12.7.1: Finding the Inverse

Let A=[122102311]. Find A1 if it exists.

Solution

Set up the augmented matrix [A|I]=[122100102010311001]

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  [122100020110057301] Then take 5 times the second row and add to -2 times the third row. [12210001005500014152] Next take the third row and add to 7 times the first row. This yields [714065201005500014152] Now take 75 times the second row and add to the first row. [70012201005500014152] Finally divide the first row by -7, the second row by -10 and the third row by 14 which yields [100 17 27 27010 12 120001 114 514 17] Notice that the left hand side of this matrix is now the 3×3 identity matrix I3. Therefore, the inverse is the 3×3 matrix on the right hand side, given by [ 17 27 27 12 120 114 514 17]

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.

Example 12.7.2: A Matrix Which Has No Inverse

Let A=[122102224]. Find A1 if it exists.

Solution

Write the augmented matrix [A|I] [122100102010224001] and proceed to do row operations attempting to obtain [I|A1]. Take 1 times the first row and add to the second. Then take 2 times the first row and add to the third row. [122100020110020201] Next add 1 times the second row to the third row. [122100020110000111] At this point, you can see there will be no way to obtain I on the left side of this augmented matrix. Hence, there is no way to complete this algorithm, and therefore the inverse of A does not exist. In this case, we say that A is not invertible.

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 AA1 and A1A both equal the identity matrix. Through this method, you can always be sure that you have calculated A1 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 A1. Then you could multiply both sides of this equation on the left by A1 and simplify to obtain (A1)AX=A1B(A1A)X=A1BIX=A1BX=A1B Therefore we can find X, the solution to the system, by computing X=A1B. Note that once you have found A1, you can easily get the solution for different right hand sides (different B). It is always just A1B.

We will explore this method of finding the solution to a system in the following example.

Example 12.7.3: Using the Inverse to Solve a System of Equations

Consider the following system of equations. Use the inverse of a suitable matrix to give the solutions to this system. x+z=1xy+z=3x+yz=2

Solution

First, we can write the system of equations in matrix form AX=[101111111][xyz]=[132]=B

The inverse of the matrix A=[101111111] is A1=[0 12 121101 12 12]

Verifying this inverse is left as an exercise.

From here, the solution to the given system (???) is found by [xyz]=A1B=[0 12 121101 12 12][132]=[ 522 32]

What if the right side, B, of (???) had been [013]? In other words, what would be the solution to [101111111][xyz]=[013]? By the above discussion, the solution is given by [xyz]=A1B=[0 12 121101 12 12][013]=[212] This illustrates that for a system AX=B where A1 exists, it is easy to find the solution when the vector B is changed.

We conclude this section with some important properties of the inverse.

Theorem 12.7.1: Inverses of Transposes and Products

Let A,B, and Ai for i=1,...,k be n×n matrices.

  1. If A is an invertible matrix, then (AT)1=(A1)T
  2. If A and B are invertible matrices, then AB is invertible and (AB)1=B1A1
  3. If A1,A2,...,Ak are invertible, then the product A1A2Ak is invertible, and (A1A2Ak)1=A1kA1k1A12A11

Consider the following theorem.

Theorem 12.7.2: Properties of the Inverse

Let A be an n×n matrix and I the usual identity matrix.

  1. I is invertible and I1=I
  2. If A is invertible then so is A1, and (A1)1=A
  3. If A is invertible then so is Ak, and (Ak)1=(A1)k
  4. If A is invertible and p is a nonzero real number, then pA is invertible and (pA)1=1pA1

This page titled 12.7: Finding the Inverse of a Matrix is shared under a not declared license and was authored, remixed, and/or curated by Ken Kuttler (Lyryx) .

  • Was this article helpful?

Support Center

How can we help?