How do you find the inverse of #A=##((1, 1, 1, 0), (1, 1, 0, -1), (0, 1, 0, 1), (0, 1, 1, 0))#?

1 Answer
Mar 2, 2016

# A^(-1) = ( (1, 0, 0, -1), (-1/2, 1/2, 1/2, 1/2), (1/2, -1/2, -1/2, 1/2), (1/2, -1/2, 1/2, -1/2) )#

Explanation:

You can compute the inverse by writing the identity matrix #I# at the right side of your matrix #A#, like this:

#( (1, 1, 1, 0, |, 1, 0, 0, 0), (1, 1, 0, -1, |, 0, 1, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 1, 1, 0, |, 0, 0, 0, 1) )#

Afterwards you need to perform transformations (adding rows, multiplying rows with a scalar number or swapping two rows) to transform the matrix at the left side to the identity matrix.
If you perform exactly the same operations at the right side, you will gain the inverse matrix #A^(-1)# at the right side:

#(A | I ) -> (I | A^(-1))#

Let me show you how to do it in this case:

#( (1, 1, 1, 0, |, 1, 0, 0, 0), (1, 1, 0, -1, |, 0, 1, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 1, 1, 0, |, 0, 0, 0, 1) )#

It is already nice that you have a #1# in the first row, first column, and zeroes in the first column, third and fourth rows.

Eliminate the #1# in the first column, second row by performing
#(-1)*I + II -> color(blue)(II)#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (color(blue)(0), color(blue)(0), color(blue)(-1), color(blue)(-1), |, color(blue)(-1), color(blue)(1), color(blue)(0), color(blue)(0)), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 1, 1, 0, |, 0, 0, 0, 1) )#

The first column is already finished. Let's concentrate on the second:

Swap the rows #II# and #III# in order to have a #1# in the second column, second row:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 0, -1, -1, |, -1, 1, 0, 0), (0, 1, 1, 0, |, 0, 0, 0, 1) )#

Eliminate the #1# in the second column, fourth row by computing #(-1)*II + IV -> color(orange)(IV)#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 0, -1, -1, |, -1, 1, 0, 0), (color(orange)(0),color(orange)(0), color(orange)(1), color(orange)(-1), |, color(orange)(0), color(orange)(0), color(orange)(-1), color(orange)(1)) )#

Swap the rows #III# and #IV# in order to have a #1# in the third column, third row:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 0, 1, -1, |, 0, 0, -1, 1), (0, 0, -1, -1, |, -1, 1, 0, 0) )#

Eliminate the #-1# in the third column, fourth row by computing #III + IV -> IV#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 0, 1, -1, |, 0, 0, -1, 1), (0, 0, 0, -2, |, -1, 1, -1, 1) )#

Generate a #1# in the fourth column, fourth row by computing #(-1/2) * IV -> color(red)(IV)#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (0, 0, 1, -1, |, 0, 0, -1, 1), (color(red)(0), color(red)(0), color(red)(0), color(red)(1), |, color(red)(1/2), color(red)(-1/2), color(red)(1/2), color(red)(-1/2)) )#

Now, the diagonal of the left matrix and all the elements below the diagonal are ready.
The next step would be eliminating all the non-zero values above the diagonal.

Eliminate the #-1# in the third row, fourth column by computing #IV + III -> color(violet)(III)#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (0, 1, 0, 1, |, 0, 0, 1, 0), (color(violet)(0), color(violet)(0), color(violet)(1), color(violet)(0), |, color(violet)(1/2), color(violet)(-1/2), color(violet)(-1/2), color(violet)(1/2)), (0, 0, 0, 1, |, 1/2, -1/2, 1/2, -1/2) )#

Eliminate the #1# in the second row, fourth column by computing #(-1)*IV + II -> color(green)(II)#:

#=> ( (1, 1, 1, 0, |, 1, 0, 0, 0), (color(green)(0), color(green)(1), color(green)(0), color(green)(0), |, color(green)(-1/2), color(green)(1/2), color(green)(1/2), color(green)(1/2)), (0, 0, 1, 0, |, 1/2, -1/2, -1/2, 1/2), (0, 0, 0, 1, |, 1/2, -1/2, 1/2, -1/2) )#

Eliminate the #1# in the first row, third column by computing #(-1)*III + I -> color(turquoise)(I)#:

#=> ( (color(turquoise)(1), color(turquoise)(1), color(turquoise)(0), color(turquoise)(0), |, color(turquoise)(1/2), color(turquoise)(1/2), color(turquoise)(1/2), color(turquoise)(-1/2)), (0, 1, 0, 0, |, -1/2, 1/2, 1/2, 1/2), (0, 0, 1, 0, |, 1/2, -1/2, -1/2, 1/2), (0, 0, 0, 1, |, 1/2, -1/2, 1/2, -1/2) )#

And the last step: eliminate the #1# in the first row, second column by computing #(-1)*II + I -> color(brown)(I)#:

#=> ( (color(brown)(1), color(brown)(0), color(brown)(0), color(brown)(0), |, color(brown)(1), color(brown)(0), color(brown)(0), color(brown)(-1)), (0, 1, 0, 0, |, -1/2, 1/2, 1/2, 1/2), (0, 0, 1, 0, |, 1/2, -1/2, -1/2, 1/2), (0, 0, 0, 1, |, 1/2, -1/2, 1/2, -1/2) )#

Thus, your inverse matrix is

# A^(-1) = ( (1, 0, 0, -1), (-1/2, 1/2, 1/2, 1/2), (1/2, -1/2, -1/2, 1/2), (1/2, -1/2, 1/2, -1/2) )#

You can check if the computation was correct by computing #A * A^(-1)# or #A^(-1) * A#. In both cases, the identity matrix #I# should be the result.