Inverse of a Matrix
using Elementary Row Operations

Also called the Gauss-Jordan method

This is a fun way to find the Inverse of a Matrix:

Play around with the rows (adding, multiplying or swapping) until we make Matrix A into the Identity Matrix I
matrix A | I becomes I | A inverse
And by ALSO doing the changes to an Identity Matrix it magically turns into the Inverse!

The "Elementary Row Operations" are simple things like adding rows, multiplying and swapping ... let's see with an example:

Example: find the Inverse of "A":

matrix A

We start with the matrix A, and write it down with an Identity Matrix I next to it:

matrix A augmented
(This is called the "Augmented Matrix")

Identity Matrix

The "Identity Matrix" is the matrix equivalent of the number "1":


I =
100 010 001

A 3x3 Identity Matrix

  • It is "square" (has same number of rows as columns),
  • It has 1s on the diagonal and 0s everywhere else.
  • It's symbol is the capital letter I.

 

Now we do our best to turn "A" (the Matrix on the left) into an Identity Matrix. The goal is to make Matrix A have 1s on the diagonal and 0s elsewhere (an Identity Matrix) ... and the right hand side comes along for the ride, with every operation being done on it as well.

But we can only do these "Elementary Row Operations":

And we must do it to the whole row, like in this example:

matrix row steps

 

Start with A next to I

Let's add row 2 to row 1,

Then divide row 1 by 5

Then take 2 times the first row, and subtract it from the second row,

Multiply second row by -1/2,

Swap the second and third row,

Last, subtract the third row from the second row,

And we are done!

 

And matrix A has been made into an Identity Matrix ...

... and at the same time an Identity Matrix got made into A-1

A−1 =
0.20.20 −0.20.31 0.2−0.30

DONE! Like magic, and just as fun as solving any puzzle.

And note: there is no "right way" to do this, just keep playing around until success!

(Compare this with the answer on Inverse of a Matrix using Minors, Cofactors and Adjugate. Is it the same? Which method do you prefer?)

Larger Matrices

We can do this with larger matrices, for example, try this 4x4 matrix:

matrix B

Start Like this:

matrix B augmented

See if you can do it yourself (I would begin by dividing the first row by 4, but you do it your way).

You can check your answer using the Matrix Calculator (use the "inv(A)" button).

Why it Works

8|1 becomes 1|(1/8)

I like to think of it this way:

And "1/8" is the (multiplicative) inverse of 8

 

Or, more technically:

matrix A | I becomes I | A inverse

The total effect of all the row operations is the same as multiplying by A-1

So A becomes I (because A-1A = I)
And I becomes A-1 (because A-1I = A-1)

 

2613, 2614, 8494, 8495, 8496, 2615, 2616, 8497, 8498, 8499