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

3 Answers
Jan 7, 2017

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

Explanation:

A matrix, #\A#, is invertible if and only if its determinant #|A| != 0#. There are several ways to invert a matrix inclining finding the adjoint, row reduction or even a calculator. I will use the adjoint method, which has several steps;

  • Calculating the Matrix of Minors,
  • Form the Matrix of Cofactors, #cof(A)#
  • Form the adjoint matrix, #adj(A)#
  • Multiply #adj(A)# by #1/|A|# to form the inverse #A^-1#

At some point we need to calculate #|A|#, or #det(A)#, and this can also be used to test if the matrix is actually invertible so I prefer to do this first;

# A=((1, 1, 2), (2, 2, 2), (2, 1, 1)) #,

If we expand about the first row and "strike out" the row and column to form a smaller determinant and alternate signs we get;

# |A| = +(1)|(2, 2), (1, 1)| -(1) |(2, 2), (2, 1)| +(2)|(2, 2), (2, 1)| #
# \ \ \ \ \ = {(2)(1)-(1)(2)} -{(2)(1)-(2)(2)} +2{(2)(1)-(2)(2)} #
# \ \ \ \ \ = 0 - (-2) +2(-2) #
# \ \ \ \ \ = -2 #

As #A!=0 => A # is invertible, so we now calculate the matrix of minors by systematically working through each element in the matrix and "strike out" that row and columns and form the determinant of the remaining elements, as follows:

#M=( ( |(2, 2), (1, 1)|, |(2, 2), (2, 1)|, |(2, 2), (2, 1)| ), ( |(1, 2), (1, 1)|, |(1, 2), (2, 1)|, |(1, 1), (2, 1)| ), ( |(1, 2), (2, 2)|, |(1, 2), (2, 2)|, |(1, 1), (2, 2)| ) )#
#\ \ \ \ = ( (0, -2, -2), (-1, -3, -1), (-2, -2, 0) )#

We now form the matrix of cofactors, #cof(A)#, by taking the above matrix of minors and applying the alternate sign matrix as in

# ( (+, -, +), (-, +, -), (+, -, +) )#

Where we change the sign of those elements with the minus sign to get;

# cof(A)= ( (0, 2, -2), (1, -3, 1), (-2, 2, 0) ) #

Then we form the adjoint matrix by transposing the matrix of cofactors, #cof(A)#, so;

#adj(A) = cof(A)^T#
#\ \ \ \ \ \ \ \ \ \ \ = ( (0, 2, -2), (1, -3, 1), (-2, 2, 0) )^T #
#\ \ \ \ \ \ \ \ \ \ \ = ( (0, 1, -2), (2, -3, 2), (-2, 1, 0) ) #

And then finally we multiply by the reciprocal of the determinant to get:

#A^-1 = 1/|A| adj(A)#
#\ \ \ \ \ \ \ = (-1/2) ( (0, 1, -2), (2, -3, 2), (-2, 1, 0) ) #
#\ \ \ \ \ \ \ = ( (0, -1/2, 1), (-1, 3/2, -1), (1, -1/2, 0) ) #

We can easily check if this is the correct answer as #A A^-1=I#, So
# A A^-1 = ((1, 1, 2), (2, 2, 2), (2, 1, 1)) ((0,-1/2,1), (-1,3/2,-1), (1,-1/2,0)) #
# \ \ \ \ \ \ \ \ \ \ = ( (0-1+2\ \ \ , -1/2+3/2-1\ \ \ , 1-1+0), (-1+3-2,-1+3-1, -2+3-1 ), (1-1+0, 1-1+0, 2-1+0)) #
# \ \ \ \ \ \ \ \ \ \ = ((1, 0, 0), (0, 1, 0), (0, 0, 1)) #
# \ \ \ \ \ \ \ \ \ \ = I # (or sometimes we write #I_3#).

Jan 7, 2017

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

Explanation:

Here's the row reduction way, less to remember.....

#((1, 1, 2), (2, 2, 2), (2, 1, 1) )( (1, 0, 0), (0, 1, 0), (0, 0, 1))#

#R2 to (R2)/2#
#((1, 1, 2), (1, 1, 1), (2, 1, 1) )( (1, 0, 0), (0, 1/2, 0), (0, 0, 1))#

#R2 to R2 - R1, R3 to R3 - 2 R1#
#((1, 1, 2), (0, 0, -1), (0, -1, -3) )( (1, 0, 0), (-1, 1/2, 0), (-2, 0, 1))#

switch R2 and R3

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

#R1 to R1 + 2 R3, R2 to R2 -3 R3#

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

#R1 to R1 + R2, R2 to - R2, R3 to - R##

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

Jan 7, 2017

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

Explanation:

Here's one method:

Given:

#A = ((1, 1, 2),(2, 2, 2),(2, 1, 1))#

Make an augmented matrix by adding three columns containing the entries of a #3xx3# identity matrix:

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

Perform a series of row operations to make the left half of this augmented matrix into an identity matrix.

Subtract row 3 from row 2 to get:

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

Add row 2 to row 3 to get:

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

Divide row 3 by #2# to get:

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

Subtract row 1 from row 3 to get:

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

Subtract row 2 from row 1 to get:

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

Add row 3 to row 1 and row 2 ro get:

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

Multiply row 3 by #-1# to get:

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

Now we can read #A^(-1)# from the right hand #3# columns:

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

One of the advantages of this method is that it works for square matrices of any size.