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