45 5 Inverse of A Matrix
45 5 Inverse of A Matrix
Reciprocal of a Number
-1
-1
Why not 1/A ? Because we don't divide by a Matrix! And anyway 1/8 can also be written 8
And there are other similarities:
(1/8) 8 = 1
A-1 A = I
Identity Matrix
We just mentioned the "Identity Matrix". It is the matrix equivalent of the number "1":
Definition
Here is the definition:
-1
A A-1 = A-1 A = I
Sometimes there is no Inverse at all.
2x2 Matrix
OK, how do we calculate the Inverse?
In other words: swap the positions of a and d, put negatives in front of b and c, and divide
everything by the determinant (ad-bc).
Let us try an example:
XA = B
It would be nice to divide both sides by A (to get X=B/A), but remember we can't divide.
XAA-1 = BA-1
And we know that AA-1 = I, so:
XI = BA-1
We can remove I (for the same reason we could remove "1" from 1x = ab for numbers):
X = BA-1
And we have our answer (assuming we can calculate A-1)
In that example we were very careful to get the multiplications correct, because with
Matrices the order of multiplication matters. AB is almost never equal to BA.
First, let us set up the matrices (be careful to get the rows and columns correct!):
XA = B
So to solve it we need the inverse of "A":
X = BA-1
Order is Important
Say that you are trying to find "X" in this case:
AX = B
This is different to the example above! X is now after A.
With Matrices the order of multiplication usually changes the answer. Do not assume that
AB = BA, it is almost never true.
So how do we solve this one? Using the same method, but put A-1 in front:
A-1AX = A-1B
And we know that A-1A= I, so:
IX = A-1B
We can remove I:
X = A-1B
X = A-1B
So, Matrices are powerful things, but they do need to be set up correctly!
Such a Matrix is called "Singular", which only happens when the determinant is
zero.
And it makes sense ... look at the numbers: the second row is just double the first row, and
does not add any new information.
Imagine in our example above that the prices on the train were exactly, say, 50% higher ...
we wouldn't be any closer to figuring out how many adults and children ... we need
something different.
And the determinant neatly works this out.
Bigger Matrices
The inverse of a 2x2 is easy ... compared to larger matrices (such as a 3x3, 4x4, etc).
For those larger matrices there are two main methods to work out the inverse:
Conclusion
To find the Inverse of a 2x2 Matrix: swap the positions of a and d, put
negatives in front of b and c, and divide everything by the determinant (adbc).