Lesson Explainer: Inverse of a Matrix: The Adjoint Method | Nagwa Lesson Explainer: Inverse of a Matrix: The Adjoint Method | Nagwa

Lesson Explainer: Inverse of a Matrix: The Adjoint Method Mathematics • Third Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to find the inverse of 3×3 matrices using the adjoint method.

Let us begin by recalling how to define the inverse of a 2×2 matrix.

Definition: Inverse of a 2 × 2 Matrix

Let 𝐴 be a 2×2 matrix. The inverse of 𝐴 (denoted by 𝐴) is a 2×2 matrix that satisfies 𝐴𝐴=𝐼,𝐴𝐴=𝐼, where 𝐼 is the 2×2 identity matrix. If such a matrix exists, we say that matrix 𝐴 is invertible.

Furthermore, it is in fact possible to derive an exact formula for the inverse, which is as follows.

Formula: Inverse of a 2 × 2 Matrix

Let 𝐴=𝑎𝑏𝑐𝑑 such that det(𝐴)0, where det(𝐴)=𝑎𝑑𝑏𝑐 is the determinant of 𝐴. Then the inverse of 𝐴 is given by 𝐴=1(𝐴)𝑑𝑏𝑐𝑎.det

If det(𝐴)=0, matrix 𝐴 is not invertible.

It stands to reason that if there is such a thing as an inverse for 2×2 matrices, the same must be true for higher-order matrices. As expected, the definition of an inverse of a 2×2 matrix can indeed be extended to include matrices of any order, as follows.

Definition: Inverse of a Matrix

Let 𝐴 be an 𝑛×𝑛 matrix. The inverse of 𝐴 (denoted by 𝐴) is an 𝑛×𝑛 matrix that satisfies 𝐴𝐴=𝐼,𝐴𝐴=𝐼, where 𝐼 is the 𝑛×𝑛 identity matrix. If such a matrix exists, we say that matrix 𝐴 is invertible.

Having said that this extension is possible, it is easier said than done to derive formulas for such matrices or to know if they even exist in the first place. In the 2×2 case, we note that the inverse is obtained by manipulating the entries of the matrix and dividing by the determinant, provided it is not equal to zero. We might wonder whether a similar approach exists for higher-dimensional cases.

As we will find out in this explainer, there does exist a formula for the matrix inverse that generalizes the 2×2 case. In particular, finding the determinant and the steps involved in doing so are a key component of the process. As the primary focus of this explainer is 3×3 matrices, we will be reviewing the method for calculating the determinant of a 3×3 matrix using cofactor expansion. However, since the full method will only be needed later, let us begin with the first step in the process, which is the calculation of minors and cofactors.

Definition: Minors and Cofactors

Let 𝐴=(𝑎) be a matrix of order 3×3. Then, the minor of element 𝑎 (denoted by 𝐴) is the determinant of the 2×2 matrix obtained after removing row 𝑖 and column 𝑗 from 𝐴.

Then, the cofactor of element 𝑎 (denoted by 𝐶) is equal to 𝐶=(1)𝐴, where 𝐴 is the minor of element 𝑎.

So far, we have only seen cofactors used to calculate the determinant of a matrix. However, as it turns out, they are also essential in finding the inverse of a matrix using the adjoint method.

Before we properly explain the adjoint method for finding the inverse, we need to define cofactor matrices.

Definition: Cofactor Matrix

The cofactor matrix of a square matrix 𝐴=(𝑎) is defined by 𝐶=𝐶, where each 𝐶 is the cofactor of entry 𝑎 of 𝐴.

The above definition applies to any square matrix, but in the 3×3 case, this is 𝐶=𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶.

In other words, each entry of the matrix is the cofactor of the corresponding entry in the original matrix.

Although this is a simple formula to state, it can be tricky to calculate in practice, since we have to find the minor and its cofactor for each entry of the cofactor matrix. Let us practice this with an example.

Example 1: Finding the Cofactor Matrix of a 3 × 3 Matrix

Find the cofactor matrix of 𝐴=758372048.

Answer

Recall that the cofactor matrix is the matrix obtained by finding the cofactor of each corresponding entry of a matrix. Let the given matrix be 𝐴.

To find the cofactors, we first have to find the minors. To do this, for each entry of the matrix, we remove the row and column that it belongs to and take the determinant of the resulting 2×2 matrix. For instance, the minor of entry 𝑎 can be found as follows:

Repeating this process, we get nine different determinants, where each time we have removed the row and column that the corresponding entry belongs to. For the first row, we have 𝐴=||7248||𝐴=||3208||𝐴=||3704||=(7)(8)(2)(4)=(3)(8)0(2)=(3)(4)0(7)=568=240=120=48,=24,=12.

For the second row, we have 𝐴=||5848||𝐴=||7808||𝐴=||7504||=(5)(8)(4)(8)=7(8)0(8)=7(4)0(5)=4032=560=280=8,=56,=28.

For the final row, we have 𝐴=||5872||𝐴=||7832||𝐴=||7537||=(5)(2)(7)(8)=7(2)(3)(8)=7(7)(3)(5)=1056=1424=4915=46,=38,=64.

Now, we need to find the cofactors. Recall that the cofactors can be obtained from the corresponding minors by multiplying them by 1 or 1, according to their position in the following matrix: +++++.

For instance, 𝐶 is in position (1,2), which has a negative sign, which shows us that 𝐶=𝐴. In summary, we have 𝐶=𝐴𝐶=𝐴𝐶=𝐴=48,=24,=12,𝐶=𝐴𝐶=𝐴𝐶=𝐴=8,=56,=28,𝐶=𝐴𝐶=𝐴𝐶=𝐴=46,=38,=64.

Finally, we can put these into a matrix to form the cofactor matrix. This gives us 48241285628463864.

Before we introduce the formula for the inverse of a 3×3 matrix, we must introduce one final concept: the adjoint matrix. We define it as follows.

Definition: Adjoint Matrices

The adjoint of 𝐴 (also known as the adjugate) is the transpose of the cofactor matrix 𝐶; that is, adj(𝐴)=𝐶.

As we can see, once we have calculated the cofactor matrix, it is a simple procedure to obtain the adjoint matrix, since we just have to take the transpose. Let us now consider an example where we have to calculate the adjoint matrix.

Example 2: Finding the Adjoint Matrix of a 3 × 3 Matrix

Find the adjoint matrix of the matrix 𝐴=272979854.

Answer

Recall that the adjoint matrix is the transpose of the cofactor matrix, which is a matrix where each entry is a cofactor of the corresponding entry. Let the given matrix be 𝐴.

To find the cofactors of 𝐴, we first have to find the minors, which we can do by taking each entry of the matrix one by one, removing the rows and columns that they belong to, and taking the determinants of the resulting 2×2 matrices. Let us demonstrate this for the minor of 𝑎:

Let us continue this approach to find each of the nine minors, where each time we remove the row and column that the corresponding entry belongs to. For the first row, we have 𝐴=||7954||𝐴=||9984||𝐴=||9785||=(7)(4)(5)(9)=(9)(4)(8)(9)=(9)5(8)(7)=28+45=3672=4556=73,=36,=101.

For the second row, we have 𝐴=||7254||𝐴=||2284||𝐴=||2785||=(7)(4)52=2(4)(8)2=25(8)(7)=2810=8+16=1056=18,=8,=46.

For the final row, we have 𝐴=||7279||𝐴=||2299||𝐴=||2797||=(7)(9)(7)2=2(9)(9)2=2(7)(9)(7)=63+14=18+18=1463=77,=0,=77.

Now, we can use the minors to find the cofactors. Recall that the cofactors can be obtained from the corresponding minors by multiplying them by 1 or 1, according to their position in the following matrix: +++++.

In summary, we have 𝐶=𝐴𝐶=𝐴𝐶=𝐴=73,=36,=101,𝐶=𝐴𝐶=𝐴𝐶=𝐴=18,=8,=46,𝐶=𝐴𝐶=𝐴𝐶=𝐴=77,=0,=77.

We can now form the cofactor matrix, by putting the entries into the following matrix: 𝐶=73361011884677077.

Finally, to find the adjoint matrix, we transpose 𝐶. This means we must rewrite each of the rows as a column of the new matrix. This gives us adj(𝐴)=𝐶=73187736801014677.

Before we proceed to define the formula for the inverse of a matrix, let us first recall the method for finding the determinant of a 3×3 matrix using cofactor expansion.

Definition: Determinants of 3 × 3 Matrices (Cofactor Expansion)

For any fixed 𝑖=1, 2, or 3, the determinant of 𝐴 is equal to det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶, where each 𝐶 is the cofactor of element 𝑎. This is known as the cofactor expansion (or Laplace expansion) along row 𝑖. Alternatively, for any fixed 𝑗=1, 2, or 3, we have det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶.

This is the cofactor expansion along column 𝑗.

With this definition and the prior definitions of the cofactor and adjoint matrices, we are now in a position to write the formula for the inverse of a matrix.

Formula: Inverse of a Matrix

If 𝐴 is an invertible matrix, then its inverse is 𝐴=1(𝐴)(𝐴),detadj where adj(𝐴) is the adjoint of 𝐴 and det(𝐴) is the determinant of 𝐴.

We note that this formula applies to square matrices of any order, although we will only use it to find 3×3 inverses here. It is however possible to show that this formula works for the 2×2 case too. To see this, let us consider the general 2×2 matrix: 𝐴=𝑎𝑏𝑐𝑑.

To find adj(𝐴), we first calculate the cofactor matrix by finding each of the minors. We note that, in this case, finding the minor for each entry is rather trivial, since removing a row and a column from a 2×2 matrix results in a 1×1 matrix, which is just a number. So, the four minors are just the entries in the opposite corners, as shown: 𝐴=𝑑,𝐴=𝑐,𝐴=𝑏,𝐴=𝑎.

To find the cofactor matrix, we reverse the signs of 𝐴=𝑐 and 𝐴=𝑏, to get the following matrix: 𝐶=𝑑𝑐𝑏𝑎.

Finally, we obtain adj(𝐴) by taking the transpose of 𝐶, to get adj(𝐴)=𝑑𝑏𝑐𝑎.

Putting this into the above formula, we have 𝐴=1(𝐴)𝑑𝑏𝑐𝑎.det

Since this is the same as the formula for the 2×2 inverse we already had, we can therefore see that the two formulas are consistent.

It is important to note that 𝐴 is invertible if and only if the determinant is nonzero. This means that whenever we have to find the inverse of a matrix, we should always start by computing the determinant. If it is nonzero, then we can proceed; otherwise, we must conclude that the matrix is singular (i.e., has no inverse).

Let us test our ability to find the inverse of 3×3 matrices.

Example 3: Checking Whether a 3 × 3 Matrix Is Singular and Finding Its Inverse If Possible

Determine whether the matrix 123021267 has an inverse by finding whether the determinant is nonzero. If the determinant is nonzero, find the inverse using the inverse formula involving the cofactor matrix.

Answer

The first part of the question requires us to check whether the determinant is nonzero. Naturally, this can be done by computing the determinant directly. However, we can also use the properties of determinants to help us calculate the determinant more easily and in some cases show that it must be zero.

Recall that if we add a scalar multiple of one row to another row, the value of the determinant does not change. Thus, let us add 2 times row 1 to row 3. We have chosen to do this because it will result in the bottom-left entry becoming zero. This gives us ||||123021267||||=||||123021021||||.

Now, ordinarily, we would continue computing the determinant by using cofactor expansion on the first column. However, at this stage, it is important to realize that the second and third rows are both (0,2,1). Let us recall another property of determinants, which is that if two rows of a matrix are equal, the determinant is zero. Since that is the case here, we no longer need to proceed with the rest of the calculation because the property tells us that it is zero.

Thus, there is no inverse because the determinant equals zero.

In the previous example, the matrix was singular, so we did not have to go through all the steps of calculating the inverse. This shows that it is always very useful to find the determinant before going to the trouble of finding the adjoint matrix. Let us consider another example where we have to try and find the inverse of a 3×3 matrix.

Example 4: Checking Whether a 3 × 3 Matrix Is Singular and Finding Its Inverse If Possible

Consider the matrix 103101310.

  1. Determine whether the matrix has an inverse by finding whether the determinant is nonzero.
  2. If the determinant is nonzero, find the inverse using the formula for the inverse that involves the cofactor matrix.

Answer

Part 1

The first part of the question asks us to find whether the determinant is nonzero, so let us calculate the determinant. We note that the second column has two zeros, which means it is already in the optimal form for applying the method of cofactor expansion. Recall that the cofactor expansion along column 𝑗 is det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶.

Let the given matrix be 𝐴=(𝑎). Now, if we take 𝑗=2, the calculation simplifies to det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶=0𝐶+0𝐶+1𝐶=𝐶.

Thus, we only need to find 𝐶. To calculate it, we first find the minor of 𝑎 by removing the row and column that 𝑎 is in, and taking the determinant. This gives us

Next, we can find the cofactor by applying the definition 𝐶=(1)𝐴.

Since 𝑖=3, 𝑗=2, and 𝑖+𝑗=5, we have 𝐶=(1)𝐴=(1)(2)=2.

Thus, we have det(𝐴)=2. Since the determinant is nonzero, the matrix has an inverse.

Part 2

Recall that the inverse is given by the formula 𝐴=1(𝐴)(𝐴).detadj

We have already calculated det(𝐴), so let us now calculate the adjoint matrix, which is the transpose of the cofactor matrix.

To find the cofactor matrix, we have to first find the minor in each position of the matrix. For the first row, these minors are 𝐴=||0110||𝐴=||1130||𝐴=||1031||=0011=1031=1130=01=03=10=1,=3,=1.

Continuing with the second and third rows, where we have left out the intermediate steps for brevity, we have 𝐴=||0310||𝐴=||1330||𝐴=||1031||=3,=9,=1,𝐴=||0301||𝐴=||1311||𝐴=||1010||=0,=2,=0.

Now, we can use the minors to find the cofactors. Recall that the cofactors can be obtained from the corresponding minors by multiplying them by 1 or 1, according to their position in the following matrix: +++++.

Doing this for each cofactor and putting them into a matrix, we have 𝐶=131391020.

Now, we can find the adjoint by taking the transpose of this matrix. We do this by rewriting each of the rows of 𝐶 as a column of adj(𝐴). This gives us adj(𝐴)=130392110.

Finally, we use the formula for the inverse, 𝐴=1(𝐴)(𝐴)detadj: 𝐴=12130392110=123203292112120.

At this point, we should be somewhat familiar with the method of finding the inverse of a 3×3 matrix, but we have yet to do anything interesting with the resulting inverse matrix. One key use of the inverse matrix is in solving matrix equations. Consider an equation of the form 𝐴𝑋=𝐵, where 𝐴 and 𝐵 are given 3×3 matrices and 𝑋 is an unknown 3×3 matrix. If 𝐴 is not singular, then the inverse 𝐴 exists, and we can multiply both sides of the equation on the left by 𝐴 to get 𝐴𝐴𝑋=𝐴𝐵𝑋=𝐴𝐵.

Thus, if we find the inverse of 𝐴, we can use it to find the unknown matrix 𝑋 as shown. Let us see a full example of this.

Example 5: Solving a Matrix Equation Using the Inverse of a Matrix

Suppose that 𝐴𝑋=𝐵, where 𝐴=413504332,𝐵=210345276, and 𝑋 is a 3×3 matrix.

  1. Calculate the inverse of 𝐴.
  2. And use it to find 𝑋.

Answer

Part 1

Let us begin by calculating the inverse of 𝐴 using the adjoint method. Recall that we have 𝐴=1(𝐴)(𝐴).detadj

Thus, let us first calculate det(𝐴) followed by adj(𝐴) and use them to find the inverse. Now, we can find the inverse of 𝐴 by using cofactor expansion on column 2 (since one entry is already zero). In other words, we use the formula det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶=(1)(1)𝐴+0𝐶+(3)(1)𝐴=𝐴+3𝐴, where 𝐴 and 𝐴 are the minors of 𝑎 and 𝑎 respectively. We can find the minors by removing the corresponding rows and columns from the matrix and taking the determinant of the result. Doing this for both minors, we get

Thus, det(𝐴)=2+31=1. This indeed confirms that the inverse exists (although this is assumed since the question would have not have a unique solution otherwise). Now, we need to find the adjoint of 𝐴. We do this by first computing the minors and then the cofactor matrix. The minors of 𝐴 are as follows: 𝐴=||0432||𝐴=2,𝐴=||5033||=12,=15,𝐴=||1332||𝐴=||4332||𝐴=||4133||=7,=1,=9,𝐴=||1304||𝐴=1,𝐴=||4150||=4,=5.

We can now construct the cofactor matrix, which we can do by multiplying each minor by 1 or 1, according to their position in the following matrix: +++++.

Doing this gets us the following cofactor matrix: 𝐶=12215719415.

Lastly, we can get the adjoint matrix by taking the transpose of the above matrix. This gives us adj(𝐴)=12742111595.

Since the determinant is 1, we have 𝐴=11(𝐴)adj, which means that the inverse is equal to the above matrix: 𝐴=12742111595.

Part 2

Now we have found 𝐴, we can find 𝑋 in the equation 𝐴𝑋=𝐵. If we multiply on the left of both sides of the equation by 𝐴, then we find that 𝐴𝐴𝑋=𝐴𝐵𝑋=𝐴𝐵.

Thus, we just need to perform the matrix multiplication of 𝐴 and 𝐵. Let us demonstrate this for the first entry:

where we have done the calculation 122+(7)3+(4)2=5. Repeating this for the remaining entries, we get 𝑋=12742111595210345276=5121111171615.

For our final example, we will consider a situation where we have to find the inverse of a 3×3 matrix where the entries are variable quantities.

Example 6: Finding the Inverse of a Matrix with Variable Entries Using the Adjoint Method

Find the inverse of the matrix 𝑒𝑡𝑡𝑒𝑡𝑡𝑒𝑡𝑡.cossinsincoscossin

Answer

In this question, it is assumed that the given matrix is invertible, so we do not strictly need to check whether the determinant is nonzero. Nevertheless, it is still necessary to calculate the determinant in order to find the inverse, since it is given by 𝐴=1(𝐴)(𝐴),detadj where det(𝐴) is the determinant and adj(𝐴) is the adjoint matrix (i.e., the transpose of the cofactor matrix). Let the given matrix be 𝐴. Recall that the determinant can be calculated using cofactor expansion along row 𝑖: det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶.

Ordinarily, it is useful to manipulate the matrix so that two out of the three entries in a single row or column are 0. This means we only need to find a single cofactor. However, since we will have to calculate all the cofactors anyway for the cofactor matrix, let us just proceed to use cofactor expansion on the first row.

In order to find the cofactors of row 1, we first have to find the minors. We can do this for each entry by removing the row and column that that entry belongs to and taking the determinant of the resulting 2×2 matrix. For instance, the minor for 𝑎 is

where we have used the Pythagorean trigonometric identity, sincos𝑡+𝑡=1. Continuing with the other two entries, we get 𝐴=|||𝑒𝑡𝑒𝑡|||𝐴=|||𝑒𝑡𝑒𝑡|||=𝑒(𝑡+𝑡),=𝑒(𝑡𝑡).cossinsincossincossincos

From here, recall that 𝐶=(1)𝐴. Thus, we have 𝐶=1,𝐶=𝑒(𝑡+𝑡),𝐶=𝑒(𝑡𝑡).sincossincos

Now, the formula for cofactor expansion along row 1 is det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶.

Using the fact that 𝑎=𝑒, 𝑎=𝑡cos, and 𝑎=𝑡sin, this means that detcossincossinsincoscossincossinsincos(𝐴)=𝑒1+𝑡𝑒(𝑡+𝑡)+𝑡𝑒(𝑡𝑡)=𝑒1+𝑡𝑡+𝑡+𝑡𝑡𝑡=2𝑒.

As expected, the determinant is nonzero. We now need to find the rest of the cofactors by calculating the corresponding minors. For the second and third rows, the minors are 𝐴=|||𝑡𝑡𝑡𝑡|||𝐴=|||𝑒𝑡𝑒𝑡|||𝐴=|||𝑒𝑡𝑒𝑡|||=0,=2𝑒𝑡,=2𝑒𝑡,𝐴=|||𝑡𝑡𝑡𝑡|||𝐴=|||𝑒𝑡𝑒𝑡|||𝐴=|||𝑒𝑡𝑒𝑡|||=1,=𝑒(𝑡𝑡),=𝑒(𝑡+𝑡).cossincossinsinsincoscossincoscossinsincossincoscossincossinsincos

Let us now calculate the cofactors, which we can obtain by multiplying each corresponding minor by 1 or 1, according to their position in the following matrix: +++++.

Computing these cofactors and putting them into a matrix, we have 𝐶=1𝑒(𝑡+𝑡)𝑒(𝑡𝑡)02𝑒𝑡2𝑒𝑡1𝑒(𝑡𝑡)𝑒(𝑡+𝑡).sincossincossincossincossincos

Next, the adjoint matrix can be obtained by taking the transpose of this matrix, which means rewriting the rows as columns. Doing this gives us adjsincossinsincossincoscossincos(𝐴)=101𝑒(𝑡+𝑡)2𝑒𝑡𝑒(𝑡𝑡)𝑒(𝑡𝑡)2𝑒𝑡𝑒(𝑡+𝑡).

Finally, we use the formula 𝐴=1(𝐴)(𝐴)detadj to get 𝐴=12𝑒101𝑒(𝑡+𝑡)2𝑒𝑡𝑒(𝑡𝑡)𝑒(𝑡𝑡)2𝑒𝑡𝑒(𝑡+𝑡)=12𝑒012𝑒12(𝑡+𝑡)𝑡12(𝑡𝑡)12(𝑡𝑡)𝑡12(𝑡+𝑡).sincossinsincossincoscossincossincossinsincossincoscossincos

Let us summarize the key points we have learned during this explainer.

Key Points

  • Let 𝐴=(𝑎) be a matrix of order 3×3. Then, the minor of element 𝑎 (denoted by 𝐴) is the determinant of the 2×2 matrix obtained after removing row 𝑖 and column 𝑗 from 𝐴.
    Then, the cofactor of element 𝑎 (denoted by 𝐶) is equal to 𝐶=(1)𝐴, where 𝐴 is the minor of element 𝑎.
  • If 𝐴 is a square matrix, then its cofactor matrix is defined by 𝐶=𝐶, where each 𝐶 is the cofactor of entry 𝑎 of 𝐴.
  • The adjoint of 𝐴 (also known as the adjugate) is the transpose of the cofactor matrix 𝐶; that is, adj(𝐴)=𝐶.
  • If 𝐴 is an invertible matrix (i.e., det(𝐴)0), then its inverse is 𝐴=1(𝐴)(𝐴),detadj where det(𝐴) is the determinant of 𝐴.
  • Since a matrix is only invertible if the determinant is nonzero, it is important to check whether this is true before attempting to find the inverse using the adjoint method. We can make this process easier by using properties of determinants.
  • Given a matrix equation of the form 𝐴𝑋=𝐵, we can find 𝑋 by multiplying on the left by 𝐴 as follows: 𝐴𝐴𝑋=𝐴𝐵𝑋=𝐴𝐵.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy