Question Video: Solving a System of Three Equation Using the Inverse of a Matrix | Nagwa Question Video: Solving a System of Three Equation Using the Inverse of a Matrix | Nagwa

Question Video: Solving a System of Three Equation Using the Inverse of a Matrix Mathematics

Use the inverse of a matrix to solve the system of linear equations โˆ’4๐‘ฅ โˆ’ 2๐‘ฆ โˆ’ 9๐‘ง = โˆ’8, โˆ’3๐‘ฅ โˆ’ 2๐‘ฆ โˆ’ 6๐‘ง = โˆ’3, and โˆ’๐‘ฅ + ๐‘ฆ โˆ’ 6๐‘ง = 7.

11:10

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 ๐‘ง.

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