# 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 and swapping them) until you make your Matrix Ainto the Identity Matrix I. |
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 ... but let me show you with an example!

## Example: find the Inverse of "A":

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

(This is called the "Augmented Matrix")

### Identity Matrix

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

A 3x3 Identity Matrix

- It is "square" (has same number of rows as columns),
- It has
**1**s on the diagonal and**0**s 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 **1**s on the diagonal and **0**s 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"**:

**swap**rows**multiply**or divide each element in a a row by a constant- replace a row by
**adding**or subtracting a multiple of another row to it

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

Start with
In this example my first step was to add row 2 to row 1,
then divide row 1 by 5,
Then take 2 times the first row,
Multiply second row by -1/2,
Now 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}**

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 you succeed!**

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

## Larger Matrices

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

Start Like this:

See if you can do it yourself (I would begin by dividing the first row by 4, but it is up to you how you do it).

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

## Why it Works

I like to think of it this way: - if you turned "8" into "1" (by dividing by 8),
- and did the same thing to "1" it would turn into "1/8"
And "1/8" is the (multiplicative) |

Or, more technically: So A = I)^{}And I becomes A (because ^{-1}A^{-1}I = A)^{-1} |