Question Video: Using the Cayley-Hamilton Theorem to Find the Inverse of Three-by-Three Matrices | Nagwa Question Video: Using the Cayley-Hamilton Theorem to Find the Inverse of Three-by-Three Matrices | Nagwa

# Question Video: Using the Cayley-Hamilton Theorem to Find the Inverse of Three-by-Three Matrices Mathematics • Third Year of Secondary School

## Join Nagwa Classes

Using the Cayley-Hamilton theorem, find ๐ดโปยน, if possible, for the matrix ๐ด = [2, 3, 4 and โ5, 5, 6 and 7, 8, 9].

11:48

### Video Transcript

Using the CayleyโHamilton theorem, find the inverse of ๐ด, if possible, for the matrix ๐ด equals two, three, four, negative five, five, six, seven, eight, nine.

So if we want to use the CayleyโHamilton theorem to find inverse for our matrix, then the first thing we need to do is find the characteristic polynomial. So if we want to find the characteristic polynomial of our matrix, then this is gonna be equal to the determinant of ๐ด minus ๐๐ผ, where ๐ผ is the identity matrix. And the identity matrix is a matrix whose top left to bottom right terms diagonally are all one. Then, all the other values are zero. So therefore, we can say that the characteristic polynomial is gonna be equal to the determinant of the matrix two minus ๐ three, four, negative five, five minus ๐, six, seven, eight, nine minus ๐.

And we have those terms in our diagonal because originally we could see that the characteristic polynomial is equal to the determinant of ๐ด minus ๐๐ผ. And ๐๐ผ is gonna be ๐ multiplied by our identity matrix. And our identity matrix only has terms of any value across the diagonal. So therefore, youโre gonna have ๐ multiplied by one for each of those terms. And that just gives us ๐, which we subtract from the original terms. So now, what we need to do is find the determinant of our three-by-three matrix. And weโre gonna use our first row as coefficients to do this. And what weโre gonna do is multiplying out using those.

Itโs worth noting at this point that each column has a different sign. So first column positive, second column negative, third column positive. And what this means in practice is that the sign of the coefficient in the positive columns will remain the same. But in the negative column, it will change. So first of all, what weโre gonna have is two minus ๐. So thatโs our first value in the first row multiplied by the determinant of the submatrix. And thatโs a two-by-two submatrix, which is formed if we delete the column in the row that two minus ๐ are in. And if we do that, we get the submatrix five minus ๐, six, eight, nine minus ๐.

So then, what weโre gonna have is minus three multiplied by the determinant of the submatrix negative five six seven nine minus ๐. And again, we got this by deleting the row in column that the three were in. Itโs also worth noting the sign is negative three because itโs our second column. And then, finally, we have plus four multiplied by the determinant of the submatrix negative five, five minus ๐, seven, eight. Again, we found this exact the same way because we deleted the row in column that the four were in. And we can also see here that the four has a positive sign. Well, great. Well, now, whatโs the next stage? What we need to do now?

So now, what we need to do is find the determinants of our two-by-two submatrices. And to do that, what we do is if we have a matrix ๐, ๐, ๐, ๐ and we want to find the determinant, then we multiply the diagonals, so ๐๐ and ๐๐. And what we do is we subtract ๐๐ from ๐๐. So first of all, weโre gonna have this two minus ๐ multiplied by. Then, weโve got five minus ๐ and multiplied by nine minus ๐. So thatโs like our ๐ and ๐ and then minus 48. And thatโs because six multiplied by eight is 48. So then, next, weโre gonna have minus three multiplied by and we got negative five multiplied by nine minus ๐ and then minus 42. Again, we get that from a cross multiplying. So then, weโve got finally positive four multiplied by. Then, weโve got negative 40 which is our negative five multiplied by eight minus seven multiplied by five minus ๐.

Okay, great. So weโve got to this stage. We can also see that weโve been careful with our coefficients when theyโre positive, negative, and positive throughout. So now, what we need to do is work this out by distributing across our parentheses. And the first thing we need to do is distribute across the parentheses five minus ๐ and nine minus ๐. So what Iโm gonna do is distribute five minus ๐ across that. And what weโre gonna do here is multiply each term in the left-hand parentheses by each term in the right-hand parentheses.

And when we do that, weโre gonna get 45. So thatโs five multiplied by nine minus five ๐, which is five multiplied by negative ๐ minus nine ๐ plus ๐ squared. Be careful here. Youโve got negative ๐ multiplied by negative ๐. That gives us positive ๐, so positive ๐ squared. So now, what weโre gonna do is quickly simplify. And when I do that, I get 45 minus 14๐ plus ๐ squared. And then, what Iโm gonna do is subtract 48 from this. And if we subtract 48 from 45, we get negative three. So therefore, when we have done this, if I rearrange, weโre gonna have ๐ squared minus 14๐ minus three.

So now, what we need to do is to find a part for this term which is multiply this through by two minus ๐. So what Iโm gonna do is distribute this across the parentheses. So if I do this, first of all, weโre gonna get two ๐ squared minus 28๐ minus six then minus ๐ cubed plus 14๐ squared plus three ๐. And if we simplify this, weโre gonna get negative ๐ cubed plus 16๐ squared minus 25๐ minus six. So now, we can move on to our next part.

So then, first of all, for this, what we need to do is distribute negative five across the parentheses nine minus ๐. And when we do this, weโre gonna get negative three multiplied by. And then, weโve got negative 45 and thatโs because negative five multiplied by nine is negative 45 plus five ๐ and thatโs because we got a negative multiplied by a negative minus 42. And then, if we simplify this, we get negative three multiplied by five ๐ minus 87. And then, if we multiply through by negative three, weโre gonna get minus 15๐ plus 261. Okay, great. Letโs move on to the final part.

So for the final part, what we need to do is distribute negative seven across the parentheses first. And when I do this, I get four multiplied by. Then, weโve got negative 40 minus 35 plus seven ๐. Then, if I tidied it up, we get four multiplied by negative 75 plus seven ๐. Then if we distribute the four across the parentheses, weโre gonna get negative 300 plus 28๐. Okay, great. So weโve now finished that stage.

So now, what we can do is simplify the full expression. So first of all, weโve got negative ๐ cubed plus 16๐ squared. And thatโs because theyโre the only cubed and squared terms. Then, weโve got negative 25๐ minus 15๐ plus 28๐, which is gonna give us negative 12๐. And then, finally, weโve got negative six plus 261 minus 300, which will give us negative 45. So great. Now what we found is our characteristic polynomial. So now, what weโre gonna do is use the CayleyโHamilton theorem. And we can see that our characteristic polynomial with the matrix ๐ด substituted in for ๐ is gonna be equal to zero. So therefore, weโre gonna get negative ๐ด cubed plus 16๐ด squared minus 12๐ด minus 45๐ผ equals zero, where ๐ด is our matrix ๐ด and ๐ผ is our identity matrix.

So now, what we do is we take ๐ด out as a factor and add 45๐ผ to each side. When we do that, we get ๐ด multiplied by negative ๐ด squared plus 16๐ด minus 12๐ผ equals 45๐ผ. We have the ๐ผ with the 12 because weโve got a constant term. So we need to include our identity matrix at that point. So then, if we divide through by 45, we get ๐ด multiplied by one over 45 multiplied by negative ๐ด squared plus 16๐ด minus 12๐ผ is all equal to ๐ผ. So therefore, we can say that the inverse of our matrix ๐ด is equal to one over 45 multiplied by negative ๐ด squared plus 16๐ด minus 12๐ผ.

So now, weโre at a stage where we can work out the inverse of our matrix. Well, to work out the inverse for our matrix, what we need to do is work out each part separately. So weโre gonna start with negative ๐ด squared. And Itโs gonna be equal to negative. And then, weโve got the matrix two, three, four, negative five, five, six, seven, eight, nine multiplied by the matrix two, three, four, negative five, five, six, seven, eight, nine. So now, to work out the first term of our matrix, what weโre gonna do is multiply the terms in the first row of our first matrix by the corresponding terms in the first column of our second matrix.

So for the first term, weโd have two multiplied by two plus three multiplied by negative five plus four multiplied by seven. So then, to find the second term, weโd have two multiplied by three plus three multiplied by five plus four multiplied by eight. And thatโs because we moved across the second column. So then, we continue this method until we form the matrix 17, 53, 62, seven, 58, 64, 37, 133, 57. Now, we need to remember that weโve got a negative in front of this because it needs to be negative of this matrix. So what weโre gonna do is multiple each term by negative one. So this returns us to the same matrix, just with every term being negative.

So then, weโve got 16๐ด. And 16๐ด is gonna be equal to 16 multiplied by our matrix ๐ด. So thatโs gonna give us the matrix 32, 48, 64, negative 80, 80, 96, 112, 128, 144. And We got that by multiplying each term by 16. And then, finally, we need to find 12๐ผ, which is just 12 multiplied by our identity matrix, which is gonna give us 12, zero, zero, zero, 12, zero, zero, zero, 12 as our matrix.

So great, we have all our components. And what we need to do here is put it together. So once, we put them all together, we can calculate to find the inverse for our matrix ๐ด. So then, what weโre gonna do is take each of the corresponding terms from our matrices and then use the operations that weโve been given. And so, weโre gonna do that to form the top left term, for example. So in this case, weโve got negative 17 plus 32 minus 12 which will give us three. So then, we carry this on in the same way to find the other missing terms.

So we can say that using the CayleyโHamilton theorem, the inverse of matrix ๐ด if matrix ๐ด is two, three, four, negative five, five, six, seven, eight, nine is one over 45 multiplied by the matrix three, negative five, two, negative 87, 10, 32, 75, negative five, negative 25.

## 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