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

1 Answer
Feb 11, 2016

#A^(-1) = ( (3/8, 1/8, -1/4),(-1/8, -3/8, 3/4),( -1/4, 1/4, 1/2) )#

Explanation:

You can take your matrix #A# and put the identity matrix #I# next to it:

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

Your goal is to transform the matrix at the left side into the identity matrix.
If you perform the same operations on the identity matrix at your right side, you will get the inverse matrix at the right.

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

Let's start.

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

... swap rows #I# and #III# (reason: it's easier to have a #1# than a #3# in the first column, first row):

# rArr ( (1, 1, 1, |, 0, 0, 1),(1, -1, 2, |, 0, 1, 0),(3, 1, 0, |, 1, 0, 0) )#

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

# rArr ( (1, 1, 1, |, 0, 0, 1),(color(blue)(0), color(blue)(-2), color(blue)(1), |, color(blue)(0), color(blue)(1), color(blue)(-1)),(3, 1, 0, |, 1, 0, 0) )#

... eliminate the #3# in the first column, third row by computing #(-3)*I + III -> color(orange)(III)#:

# rArr ( (1, 1, 1, |, 0, 0, 1),(0, -2, 1, |, 0, 1, -1),(color(orange)(0), color(orange)(-2), color(orange)(-3), |, color(orange)(1), color(orange)(0), color(orange)(-3)) )#

... eliminate the #-2# in the second column, third row by computing #(-1)*II + III -> color(green)(III)#:

# rArr ( (1, 1, 1, |, 0, 0, 1),(0, -2, 1, |, 0, 1, -1),(color(green)(0), color(green)(0), color(green)(-4), |, color(green)(1), color(green)(-1), color(green)(-2)) )#

... create a #1# in the third row, third column by multiplying #(-1/4) * III -> color(red)(III)#

# rArr ( (1, 1, 1, |, 0, 0, 1),(0, -2, 1, |, 0, 1, -1),(color(red)(0), color(red)(0), color(red)(1), |, color(red)(-1/4), color(red)(1/4), color(red)(1/2)) )#

The third row is ready. Now, let's take care of the second row:
First of all, create a #1# in the second row, second column by computing #(-1/2)*II -> color(gray)(II)#:

# rArr ( (1, 1, 1, |, 0, 0, 1),(color(gray)(0), color(gray)(1), color(gray)(-1/2), |, color(gray)(0), color(gray)(-1/2), color(gray)(1/2)),(0, 0, 1, |, -1/4, 1/4, 1/2) )#

... eliminate the #-1/2# in the second row, third column by computing #1/2 * III + II -> color(purple)(II)#:

# rArr ( (1, 1, 1, |, 0, 0, 1),(color(purple)(0), color(purple)(1), color(purple)(0), |, color(purple)(-1/8), color(purple)(-3/8), color(purple)(3/4)),(0, 0, 1, |, -1/4, 1/4, 1/2) )#

The second row is now also ready. There are two more operations left to take care of the first row:
... eliminate the #1# in the first row, second column by computing #(-1)*II + I -> color(brown)(I)#:

# rArr ( (color(brown)(1), color(brown)(0), color(brown)(1), |, color(brown)(1/8), color(brown)(3/8), color(brown)(1/4)),(0, 1, 0, |, -1/8, -3/8, 3/4),(0, 0, 1, |, -1/4, 1/4, 1/2) )#

Last but not least, eliminate the #1# in the first rown, third column by computing #(-1) * III + I -> color(lightgreen)(I)#:

# rArr ( (color(lightgreen)(1), color(lightgreen)(0), color(lightgreen)(0), |, color(lightgreen)(3/8), color(lightgreen)(1/8), color(lightgreen)(-1/4)),(0, 1, 0, |, -1/8, -3/8, 3/4),(0, 0, 1, |, -1/4, 1/4, 1/2) )#

Thus, the result of the computation is

# ( (1, 0, 0, |, 3/8, 1/8, -1/4),(0, 1, 0, |, -1/8, -3/8, 3/4),(0, 0, 1, |, -1/4, 1/4, 1/2) )#,

and the inverse matrix is:

#A^(-1) = ( (3/8, 1/8, -1/4),(-1/8, -3/8, 3/4),( -1/4, 1/4, 1/2) )#.

To validate the result, you can compute #A * A^(-1)# or #A^(-1) * A#. Both computations should have the identity matrix #I# as a result.