0% found this document useful (0 votes)
35 views1 page

Inverse of A Matrix

The inverse of a matrix A, written A-1, is similar to the reciprocal of a number. When a matrix is multiplied by its inverse, it results in the identity matrix, just like multiplying a number by its reciprocal results in 1. However, not every matrix has an inverse. For a matrix to have an inverse, it must be square and have a non-zero determinant. The document provides the formula for calculating the inverse of a 2x2 matrix and uses an example to demonstrate calculating the inverse and verifying it results in the identity matrix. It also explains how inverses are used to solve systems of linear equations involving matrices.

Uploaded by

Dosa Csaba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Inverse of A Matrix

The inverse of a matrix A, written A-1, is similar to the reciprocal of a number. When a matrix is multiplied by its inverse, it results in the identity matrix, just like multiplying a number by its reciprocal results in 1. However, not every matrix has an inverse. For a matrix to have an inverse, it must be square and have a non-zero determinant. The document provides the formula for calculating the inverse of a 2x2 matrix and uses an example to demonstrate calculating the inverse and verifying it results in the identity matrix. It also explains how inverses are used to solve systems of linear equations involving matrices.

Uploaded by

Dosa Csaba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Link

Here
We may use Cookies OK

Advanced
Inverse of a Matrix
Please read our Introduction to Matrices first.

What is the Inverse of a Matrix?


Just like a number has a reciprocal ...

8
Reciprocal Reciprocal
1
8
1
Reciprocal of a Number (note: can also be
8
written 8-1)

... a matrix has an inverse :

A
Inverse Inverse
-1
A
Inverse of a Matrix

1
We write A-1 instead of because we don't
A
divide by a matrix!

And there are other similarities:

When we multiply a number by its reciprocal


we get 1:

1
8× =1
8

When we multiply a matrix by its inverse we


get the Identity Matrix (which is like "1" for
matrices):

A × A-1 = I

Same thing when the inverse comes first:

1
×8=1
8
A-1 × A = I

Identity Matrix
We just mentioned the "Identity Matrix". It is the
matrix equivalent of the number "1":

1 0 0
I= 0 1 0
0 0 1

A 3x3 Identity Matrix

It is "square" (has same number of rows as


columns),

It has 1s on the diagonal and 0s everywhere


else.

Its symbol is the capital letter I.

The Identity Matrix can be 2×2 in size, or 3×3, 4×4,


etc ...

Definition
Here is the definition:

The inverse of A is A-1 only when:

AA-1 = A-1A = I

Sometimes there is no inverse at all.

(Note: writing AA-1 means A times A-1)

2x2 Matrix
OK, how do we calculate the inverse?

Well, for a 2x2 matrix the inverse is:

a b −1 1 d −b
=
c d ad−bc −c a

In other words: swap the positions of a and d, put


negatives in front of b and c, and divide
everything by ad−bc .

Note: ad−bc is called the determinant .

Let us try an example:

4 7 −1 1 6 −7
=
2 6 4×6−7×2 −2 4

6 −7
= 1
10 −2 4

0,6 −0,7
=
−0,2 0,4

How do we know this is the right answer?

Remember it must be true that: AA-1 = I

So, let us check to see what happens when we


multiply the matrix by its inverse:

4 7 0,6 −0,7
=
2 6 −0,2 0,4
4×0,6+7×−0,2 4×−0,7+7×0,4
2×0,6+6×−0,2 2×−0,7+6×0,4

2,4−1,4 −2,8+2,8
=
1,2−1,2 −1,4+2,4

1 0
=
0 1

And, hey!, we end up with the Identity Matrix!


So it must be right.

It should also be true that: A-1A = I

Why don't you have a go at multiplying these? See


if you also get the Identity Matrix:

0,6 −0,7 4 7
=
−0,2 0,4 2 6

Why Do We Need an Inverse?


Because with matrices we don't divide! Seriously,
there is no concept of dividing by a matrix.

But we can multiply by an inverse, which


achieves the same thing.

Imagine we can't divide by numbers ...

... and someone asks "How do I share 10


apples with 2 people?"

But we can take the reciprocal of 2 (which is


0,5), so we answer:

10 × 0,5 = 5

They get 5 apples each.

The same thing can be done with matrices:

Say we want to find matrix X, and we know


matrix A and B:

XA = B

It would be nice to divide both sides by A (to


get X=B/A), but remember we can't divide.

But what if we multiply both sides by A-1 ?

XAA-1 = BA-1

And we know that AA-1 = I, so:

XI = BA-1

We can remove I (for the same reason we can


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.

A Real Life Example: Bus and


Train
A group took a
trip on a bus, at
$3 per child and
$3,20 per adult
for a total of
$118,40.

They took the


train back at
$3,50 per child
and $3,60 per
adult for a total
of $135,20.

How many children, and how many adults?

First, let us set up the matrices (be careful to get


the rows and columns correct!):

Child Adult Bus Train Bus Train


x1 x2 3 3.5 118.4 135.2
3.2 3.6 =

This is just like the example above:

XA = B

So to solve it we need the inverse of "A":

3 3,5 −1 1
=
3,2 3,6 3×3,6−3,5×3,2
3,6 −3,5
−3,2 3

−9 8,75
=
8 −7,5

Now we have the inverse we can solve using:

X = BA-1

x1 x2 = 118,4 135,2
−9 8,75
8 −7,5

=
118,4×−9 + 135,2×8 118,4×8,75 + 135,2×−7,5

= 16 22

There were 16 children and 22 adults!

The answer almost appears like magic. But it is


based on good mathematics.

Calculations like that (but using much larger


matrices) help Engineers design buildings, are
used in video games and computer animations to
make things look 3-dimensional, and many other
places.

It is also a way to solve


Systems of Linear Equations .

The calculations are done by computer, but the


people must understand the formulas.

Order is Important

Say that we 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

And we have our answer (assuming we can


calculate A-1)

Why don't we try our bus and train example,


but with the data set up that way around.

It can be done that way, but we must be careful


how we set it up.

This is what it looks like as AX = B:

3 3,2 x1 118,4
=
3,5 3,6 x2 135,2

It looks so neat! I think I prefer it like this.

Also note how the rows and columns are swapped


over
("Transposed") compared to the previous example.

To solve it we need the inverse of "A":

3 3,2 −1 1
=
3,5 3,6 3×3,6−3,2×3,5
3,6 −3,2
−3,5 3

−9 8
=
8,75 −7,5

It is like the inverse we got before, but


Transposed (rows and columns swapped over).

Now we can solve using:

X = A-1B

x1 −9 8 118,4
=
x2 8,75 −7,5 135,2

−9×118,4 + 8×135,2
=
8,75×118,4 − 7,5×135,2

16
=
22

Same answer: 16 children and 22 adults.

So matrices are powerful things, but they do need


to be set up correctly!

The Inverse May Not Exist


First of all, to have an inverse the matrix must be
"square" (same number of rows and columns).

But also the determinant cannot be zero (or we


end up dividing by zero). How about this:

3 4 −1 1 8 −4
=
6 8 3×8−4×6 −6 3

1 8 −4
=
24−24 −6 3

24−24? That equals 0, and 1/0 is undefined.


We cannot go any further! This matrix has no
Inverse.

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.

And the determinant 24−24 lets us know this fact.

(Imagine in our bus and train example that the


prices on the train were all exactly 50% higher than
the bus: so now we can't figure out any differences
between adults and children. There needs to be
something to set them apart.)

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 three main


methods to work out the inverse:

Inverse of a Matrix using Elementary Row


Operations (Gauss-Jordan)

Inverse of a Matrix using Minors, Cofactors


and Adjugate

Use a computer (such as the Matrix


Calculator)

Conclusion
The inverse of A is A-1 only when AA-1 = A-
1A =I
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 (ad-bc).

Sometimes there is no inverse at all

Question 1 Question 2
Question 3 Question 4
Question 5 Question 6
Question 7 Question 8

Multiplying Matrices
Determinant of a Matrix
Matrix Calculator
Algebra Index

Search ○ Index ○ About ○ Contact ○ Cite This Page ○


Privacy
Copyright © 2020 MathsIsFun.com

You might also like