Video Transcript
Use the inverse of a matrix to solve the system of linear equations negative four ๐ฅ minus two ๐ฆ minus nine ๐ง equals negative eight, negative three ๐ฅ minus two ๐ฆ minus six ๐ง equals negative three, and negative ๐ฅ plus ๐ฆ minus six ๐ง equals seven.
Weโre told in the question that weโre going to be solving this using the inverse of a matrix. We also know that we can rewrite a system of linear equations in an equivalent way as a matrix equation. Our matrix equation will have three parts: a coefficient matrix, a variable matrix, and a constant matrix.
The coefficient matrix consists of the coefficients of each variable in the correct order. So the first row of the coefficient matrix will be negative four, negative two, negative nine. The second row of the coefficient matrix will be negative three, negative two, negative six. And the third row of the coefficient matrix will be negative one, one, and negative six. For this particular equation, we have to be careful because although the coefficients of ๐ฅ and ๐ฆ are not visible, they are negative one and one, respectively.
Okay, so letโs move on and consider what goes in the variable matrix. Thatโs going to be our variables for this system of linear equations. And thatโs ๐ฅ, ๐ฆ, and ๐ง. So now letโs fill in the entries for the constant matrix. This will consist of the constants for our system of linear equations, that is, negative eight, negative three, and seven. So here is our system of linear equations but written in an equivalent way as a matrix equation.
The inverse matrix method of solving this is clearly going to involve the matrix inverse, but why? Well, letโs call this coefficient matrix ๐ด, the variable matrix ๐, and the constant matrix ๐ต. So we can represent this matrix equation as ๐ด๐ equals ๐ต. Remember, our goal is to find the entries of the variable matrix, that is, ๐. So in order to solve ๐ด๐ equals ๐ต, remember ๐ด, ๐, and ๐ต are matrices, so we have to do only matrix operations. We start by multiplying from the left the inverse of the coefficient matrix on both sides of the equation. We do this because then on the left-hand side of the equation, we have ๐ด inverse multiplied by ๐ด.
We know that ๐ด inverse multiplied by ๐ด just gives us the identity matrix. We also know that multiplying the identity matrix by another matrix just gives us that matrix. So that is ๐ equals ๐ด inverse ๐ต. Once we get to this stage, weโll be able to multiply ๐ด inverse by ๐ต because weโre going to find what the matrix ๐ด inverse is and we already know the entries of ๐ต because thatโs our constant matrix. So this is the method that weโre going to use. So weโre going to start by finding the inverse of the coefficient matrix.
We can use the adjoint method to obtain the inverse of this matrix if it exists. Recall that a square matrix is invertible if its determinant is nonzero. So letโs begin by finding the determinant of this matrix and making sure that itโs nonzero. Recall that this is how we find the determinant for a three-by-three matrix, where these are the matrix minors obtained by taking the ๐th row and the ๐th column from the matrix ๐ด.
So letโs go ahead and apply this to find the determinant for our coefficient matrix. We start by taking the entry ๐ one one, thatโs negative four. And we multiply it by the determinant of the matrix minor ๐ด one one. The entry in the first row and first column of the matrix ๐ด is negative four. Therefore, the matrix minor ๐ด one one is the matrix negative two, negative six, one, negative six.
So we multiply negative four by the determinant of the matrix negative two, negative six, one, negative six. Then we subtract the entry ๐ one two. That is negative two. And we multiply it by the determinant of the matrix minor ๐ด one two. Since the entry in the first row and second column is here, the matrix minor associated with this entry is negative three, negative six, negative one, and negative six.
And finally, we add the entry ๐ one three. Thatโs the entry negative nine. And the matrix minor associated with it is negative three, negative two, negative one, and one.
So we can now calculate each of these determinants. Taking the first one as an example, we compute this by doing negative two multiplied by negative six. That gives us 12. And then we subtract negative six multiplied by one. That gives us negative six. So this determinant is 12 minus negative six, and that gives us 18. Then we can compute the other two determinants in the same way. Those are 12 and negative five, respectively.
We can then multiply these terms together. Then by adding and subtracting, we find the determinant of the coefficient matrix to be negative three. So because we know that the determinant of this matrix is nonzero, we know that the inverse matrix does exist. So letโs go ahead and find this inverse. Iโm going to clear some space to find the matrix inverse. Letโs remind ourselves of the adjoint method to find the matrix inverse.
Weโre going to use the following three steps to find the inverse of the coefficient matrix ๐ด. Weโll begin by finding its cofactor matrix. And then weโll find the adjoint matrix by transposing the cofactor matrix. Then we multiply the adjoint matrix by the reciprocal of the determinant of ๐ด to obtain the inverse matrix. So weโre going to begin by finding the cofactor matrix. Entries of the cofactor matrix are the determinants of the corresponding matrix minors multiplied by the alternating sign negative one to the power of ๐ add ๐.
So weโre going to compute the determinant of these nine matrix minors, which each have a corresponding sign. We get this corresponding sign from negative one to the power of ๐ add ๐. For example, for this first matrix minor, this gives us negative one to the power of one add one. As this is just negative one squared, that gives us one. But if we look at the matrix minor ๐ด two one, for example, we find the corresponding sign by doing negative one to the power of two add one. That gives us negative one to the third power. And that is negative one, therefore telling us that this one has a negative sign.
So letโs continue now by writing out each of the determinants that we need to find. Letโs begin by finding the matrix minor ๐ด one one. We can do this by crossing off the first row and the first column of our matrix. That leaves us with the matrix negative two, negative six, one, negative six. And that is the matrix minor ๐ด one one. We can then use the same method to find the matrix minor ๐ด one two. We cross off the first row and the second column, and that leaves us with the matrix negative three, negative six, negative one, negative six. Then by the same method, we can find the rest of the matrix minors.
The next step is to then actually calculate each of these determinants. Remember we do this for two-by-two determinants by subtracting the product of the diagonals. For instance, for this first one, we do negative two multiplied by negative six. That gives us 12. Then we subtract negative six multiplied by one. Thatโs negative six. So the determinant of this matrix is 12 minus negative six. And that gives us 18.
Then these determinants that weโve calculated give us the entries for the cofactor matrix. Iโve underlined these values in orange. Now Iโm going to clear these calculations and write out our cofactor matrix, consisting of the entries underlined with orange. So weโve now completed step one using the adjoint method to find the matrix inverse, and thatโs finding the cofactor matrix.
So now we move on to step two. That is, we need to find the adjoint matrix by transposing ๐ถ. Remember that transposing a matrix means that the rows become the columns and the columns become the rows. So thatโs step two done. Weโve transposed the matrix ๐ถ, which has given us the adjoint matrix of ๐ด. We can now move on to the third and final step to find our matrix inverse.
For step three, we multiply this adjoint matrix weโve just found by the reciprocal of the determinant, which we computed earlier. Remember, we found this determinant to be negative three. This final step then gives us the inverse of the matrix ๐ด. We still have a couple more steps that we need to do to finish this question. Going back to the start of our problem, remember we said that we could rewrite this matrix equation as ๐ด๐ equals ๐ต. And in order to find ๐, we would need to multiply from the left the inverse matrix of ๐ด. And because multiplying the inverse of a matrix by the matrix itself just gives us the identity matrix, therefore we can rearrange this matrix equation to give us ๐ equals ๐ด inverse multiplied by ๐ต.
So to find ๐ and therefore the entries ๐ฅ, ๐ฆ, ๐ง, we need to do ๐ด inverse multiplied by ๐ต. So Iโm going to clear some space so that we can do this calculation. So now we can find ๐ by computing this matrix multiplication. We do this in the usual method for matrix multiplication. Letโs now simplify. And from here, we just need to multiply each of the three entries by negative one over three. That gives us 41, negative 24, negative 12. Hence, we found the matrix ๐ฅ, ๐ฆ, ๐ง to be 41, negative 24, negative 12. Therefore, ๐ฅ equals 41, ๐ฆ equals negative 24, and ๐ง equals negative 12.
Notice how we could check this answer by substituting the values we found into the variable matrix and multiplying the coefficient matrix by the variable matrix, which should then give us the constant matrix negative eight, negative three, seven.
As this was a fairly lengthy question, letโs go through the steps we took to find the answer as a quick recap. We started off by writing our system of linear equations as a matrix equation. We then recognized that if we multiplied on the left by the matrix inverse of the coefficient matrix, it would give us the variable matrix. In order to do that, we had to find the matrix inverse of the coefficient matrix using the adjoint method. Then finally, we just had to multiply the inverse we found by the constant matrix to get the variable matrix and therefore the values for ๐ฅ, ๐ฆ, and ๐ง.