3.2 Computing the Inverse of a Matrix

Definition of Inverse


By definition, the inverse matrix A-1 A to the negative 1 power undoes the effects of the matrix A A. The cumulative effect of applying A-1 A to the negative 1 power after A A is the identity matrix 1 1:

A-1⁢A=1≡[10⋯01] A to the negative 1 power A equals 1 is identical to the 3 by 3 matrix Row 1: Column 1, 1 Column 2, blank Column 3, 0 Row 2: Column 1, blank Column 2, dot dot dot Column 3, blank Row 3: Column 1, 0 Column 2, blank Column 3, 1

The identity matrix ones on the diagonal and zeros everywhere else corresponds to the identity transformation: T1⁡(x→)=1⁢x→=x→ T sub 1 of open paren x right arrow close paren equals 1 x right arrow equals x right arrow, for all x→ x right arrow

Using row operations


One approach for computing the inverse is to use the Gauss-Jordan elimination procedure. Start by creating an array containing the entries of the matrix A A on the left side and the identity matrix on the right side:

[12103901] the 2 by 4 matrix Row 1: Column 1, 1 Column 2, 2 Column 3, 1 Column 4, 0 Row 2: Column 1, 3 Column 2, 9 Column 3, 0 Column 4, 1

Now we perform the Gauss-Jordan elimination procedure on this array.

The first row operation is to subtract three times the first row from the second row: R2←R2-3⁢R1 R sub 2 left arrow R sub 2 minus 3 R sub 1. We obtain:

[121003-31] the 2 by 4 matrix Row 1: Column 1, 1 Column 2, 2 Column 3, 1 Column 4, 0 Row 2: Column 1, 0 Column 2, 3 Column 3, negative 3 Column 4, 1

The second row operation is divide the second row by 3 3: R2←13⁢R2 R sub 2 left arrow one third R sub 2

[121001-113] the 2 by 4 matrix Row 1: Column 1, 1 Column 2, 2 Column 3, 1 Column 4, 0 Row 2: Column 1, 0 Column 2, 1 Column 3, negative 1 Column 4, one third

The third row operation is R1←R1-2⁢R2 R sub 1 left arrow R sub 1 minus 2 R sub 2

[103-2301-113] the 2 by 4 matrix Row 1: Column 1, 1 Column 2, 0 Column 3, 3 Column 4, negative two thirds Row 2: Column 1, 0 Column 2, 1 Column 3, negative 1 Column 4, one third

The array is now in reduced row echelon form RREF. The inverse matrix appears on the right side of the array.

Observe that the sequence of row operations we used to solve the specific system of equations in A⁢x→=b→ A x right arrow equals b right arrow in the previous section are the same as the row operations we used in this section to find the inverse matrix. Indeed, in both cases the combined effect of the three row operations is to "undo" the effects of A A. The right side of the 2×4 2 times 4 array is simply a convenient way to record this sequence of operations and thus obtain A-1 A to the negative 1 power.

Using elementary matrices


Every row operation we perform on a matrix is equivalent to a left-multiplication by an elementary matrix. There are three types of elementary matrices in correspondence with the three types of row operations:

Rα:R1←R1+m⁢R2⇔Eα=[1m01] R sub alpha colon R sub 1 left arrow R sub 1 plus m R sub 2 left right double arrow E sub alpha equals the 2 by 2 matrix Row 1: 1 m Row 2: 0 1

Rβ:R1↔R2⇔Eβ=[1001] R sub beta colon R sub 1 left right arrow R sub 2 left right double arrow E sub beta equals the 2 by 2 matrix Row 1: 1 0 Row 2: 0 1

Rγ:R1←m⁢R1⇔Eγ=[m001] R sub gamma colon R sub 1 left arrow m R sub 1 left right double arrow E sub gamma equals the 2 by 2 matrix Row 1: m 0 Row 2: 0 1

Let's revisit the row operations we used to find A-1 A to the negative 1 power in the above section representing each row operation as an elementary matrix multiplication.

The first row operation R2←R2-3⁢R1 R sub 2 left arrow R sub 2 minus 3 R sub 1 corresponds to a multiplication by the elementary matrix E1 E sub 1:

E1⁢A=[10-31]⁢[1239]=[1203] E sub 1 A equals the 2 by 2 matrix Row 1: 1 0 Row 2: negative 3 1 times the 2 by 2 matrix Row 1: 1 2 Row 2: 3 9 equals the 2 by 2 matrix Row 1: 1 2 Row 2: 0 3

The second row operation R2←13⁢R2 R sub 2 left arrow one third R sub 2 corresponds to a matrix E2 E sub 2:

E2⁢(E1⁢A)=[10013]⁢[1203]=[1201] E sub 2 times open paren E sub 1 A close paren equals the 2 by 2 matrix Row 1: 1 0 Row 2: 0 one third times the 2 by 2 matrix Row 1: 1 2 Row 2: 0 3 equals the 2 by 2 matrix Row 1: 1 2 Row 2: 0 1

The final step, R1←R1-2⁢R2 R sub 1 left arrow R sub 1 minus 2 R sub 2, corresponds to the matrix E3 E sub 3:

E3⁢(E2⁢E1⁢A)=[1-201]⁢[1201]=[1001] E sub 3 times open paren E sub 2 E sub 1 A close paren equals the 2 by 2 matrix Row 1: 1 negative 2 Row 2: 0 1 times the 2 by 2 matrix Row 1: 1 2 Row 2: 0 1 equals the 2 by 2 matrix Row 1: 1 0 Row 2: 0 1

Note that E3⁢E2⁢E1⁢A=1 E sub 3 E sub 2 E sub 1 A equals 1, so the product E3⁢E2⁢E1 E sub 3 E sub 2 E sub 1 must be equal to A-1 A to the negative 1 power:

A-1=E3⁢E2⁢E1=[1-201]⁢[10013]⁢[10-31]=[3-23-113] A to the negative 1 power equals E sub 3 E sub 2 E sub 1 equals the 2 by 2 matrix Row 1: 1 negative 2 Row 2: 0 1 times the 2 by 2 matrix Row 1: 1 0 Row 2: 0 one third times the 2 by 2 matrix Row 1: 1 0 Row 2: negative 3 1 equals the 2 by 2 matrix Row 1: 3 negative two thirds Row 2: negative 1 one third

The elementary matrix approach teaches us that every invertible matrix can be decomposed as the product of elementary matrices. Since we know A-1=E3⁢E2⁢E1 A to the negative 1 power equals E sub 3 E sub 2 E sub 1 then A=(A-1)-1=(E3⁢E2⁢E1)-1=E1-1⁢E2-1⁢E3-1 A equals A to the negative 1 power to the negative 1 power equals open paren E sub 3 E sub 2 E sub 1 close paren to the negative 1 power equals E sub 1 to the negative 1 power E sub 2 to the negative 1 power E sub 3 to the negative 1 power


More Cheat Sheets ->