noc20-ma54-lec20 - Inverse and the Cramer's Rule

IIT Kanpur July 201
20 followers
2 Video Views·Dec 2, 2023
Inverse and the Cramer's Rule
All right, so recall that in the last class we had learnt what is A, adjoint of A which
are nothing but the transpose of the cofactor matrix and in a hurry I just showed that A
into adjoint of A is determinant of A into I and from there we got the inverse, all right.
So what I would like now to do is that proceed with that idea itself and do something so
that there is a clarity of thought, fine.
So I take the same example, all right, so let us look at the example that we have taken.
We had A which was 1, 2, 3, 2, 3, 1 and 1, 2, 4, we have computed the adjoint of the
matrix, I did it in a hurry so we will do it again in some sense but for a different
matrix and then I want to compute what is X times identity minus A.
So X times identity is this matrix and minus A is at is, so this is nothing but this matrix
is equal to X minus 1, minus 2, minus 3, minus 2, X minus 3, minus 1, minus 1, minus 2, X
minus 4, I want to compute the adjoint of this matrix, what is adjoint of this matrix?
Adjoint of X i minus A is nothing but the first entry is this, so adjoint is going to
be determinant of this matrix, so I have this determinant of this matrix X minus 3, minus
1, minus 2, X minus 4, fine.
Then I have to compute the adjoint of this, all right, this entry, a corresponding entry,
if I want to look at this entry, it is minus 2, minus 1 but I have to put it as, so I am
looking at this part, so I have to put it as a column here because it is a transpose
cofactor transpose, so I have to put it as minus 2, minus 1, fine and then it is minus
1, X minus 4 here, fine. Similarly for this, I have to look at minus 2, minus 1 and X minus
3, minus 2, now the next one, I have to look at this part, so this part gives me, remove
this and remove this, so it is minus 2, minus 3, minus 2, minus 3, minus 2, X minus 4,
then the diagonal, remove this, remove this, X minus 1, minus 3, minus 1, X minus 4, I
hope I am not doing a mistake, fine, this into this, so X minus 1, minus 2, minus 1,
minus 2, when I do the calculation, I will know the mistakes, remove this, remove this,
so it is minus 2, minus 3, X minus 3, minus 1, then this and this, so it is X minus 1,
minus 3, this and this, so it is minus 2, minus 1, it is this and this, so it is X minus
1, minus 2, minus 2, X minus 3, so this I would like you to see that this is nothing
but X square minus 7 X and then plus 12 minus 2 is plus 10, alright, I hope it is correct,
plus 10, fine and so on, fine. What is this entry? This entry is minus 2 X,
alright, so one thing I have forgotten, it is minus 1 to the power i plus j, so it was
plus sign here, there will be minus sign here, plus sign here, minus, plus, minus, plus,
minus, plus, alright, because it is minus 1 to the power i plus j, that has to be taken
care of, I did not take care of, therefore I was getting wrong signs, alright.
So as I said I always do mistakes, so if I look at this part, it will give me minus of
minus 2 times X minus 4, minus 1, which will be minus of minus 2 X plus 8 minus 1, which
is 2 X minus 7, 2 X minus 7, fine. If I look at this part, it is plus sign, so it is 4,
X minus plus, X minus 3, so it is X plus 1, fine.
So I would like you to compute it yourself, so this turns out to be equal to, let me complete
it so that I use it afterwards, 7 X plus 10, 2 X minus 7, X plus 1, 2 X minus 2, X square
minus 5 X, plus 1, 2 X, 3 X minus 7, X plus 5, and X square minus 4 X, minus 1, fine.
So this is the way I write it down, so this is this. Now what is important is, I can go
and write this also equal to, just see it nicely, it is X square, there is no X square
here, there is no X square, so 0 0, 0 X square 0, 0 0 X square.
Let us look at coefficient of X, so coefficient of X comes from, or here I could have written
as, let us see, so coefficient of X comes from minus 7 X, 2 X, X, 2 X, minus 5 X, 2
X, 3 X, X, minus 4 X, plus there is a constant which is 10, minus 7, 1, minus 2, 1, 0, minus
7, 5, minus 1. So this is same as X square times identity, plus X times a matrix which
is minus 7, 2, 1, 2, minus 5, 2, 3, 1, minus 4, plus 10, minus 2, minus 7, minus 7, 1,
5, 1, 0, minus 1. I would like you to see that this matrix,
just let us go back, this matrix is same as adjoint of A, 10, minus 7, 1, so you can say
here, so if you look at here, 10, minus 7, 1 is the constant, minus 2 is a constant,
1 is a constant, 0 is a constant here, minus 7, 5 and minus 1. So I would like you to see
that, I get here, this is as X square identity, plus X times some matrix B, I do not know
what that matrix B, but there is some matrix, plus adjoint of A. Is that okay?
Now let us multiply, so this matrix with X i minus A, I want to multiply X i minus A
with this matrix, X square i, plus X B, plus adjoint of, I want to multiply this, fine.
So what we are doing here is, we are looking at X i minus A, now what is this matrix? This
matrix was adjoint itself, so this was adjoint of X i minus A, so with what we have learnt
that A into adjoint of A is determinant of A into I, so this will give me, it will be
determinant of X i minus A into identity, fine. So we need to compute what is determinant
of this and then do the calculations. Is that okay? Or you can just multiply it here and
see what is happening to you, fine. So whatever the calculations, so this turns out that,
let me calculate the determinant directly now, fine.
So let me compute the determinant of this matrix, so determinant of this matrix is X
minus 1 into X square minus 7 X plus 10, that we looked at, then this plus 2 times minus
2 of this, fine, so minus 2 plus 2, so minus 2 X and minus minus plus 8, this minus 1,
minus 3 times minus 4 plus X minus 3, I hope it is correct. So this is same as X cube minus
7 X square plus 10 X minus X square plus 7 X minus 10 minus 4 X plus 14 minus 4 minus 3,
I think this is wrong, I think, I hope, minus 4, let me just look at, this is plus 4,
then X minus 2, this is plus 4, so it is X plus 1, so X plus 1, so minus 3 X minus 3.
So this is nothing but X cube minus 8 X square, let me check, 10 plus 7 X minus 7 X is 0,
so plus 10 X, fine. And then it should be minus 1, so let us see minus 10 minus 13 plus 1,
so it is plus 1, so this is same as minus of determinant of A, all right, fine.
So I would like you to see that, so this is equal to X cube minus 8 X square plus 10 X minus
determinant of A whole times identity, fine. Now what I would like you to see here is,
that this part, this is an identity in, identity is an identity in X, where the coefficients
are matrices, all right. I have matrix I here, A here, identity B and A, adjoint of A is
again a matrix, here also the, I can think of this as a whole X cube times identity,
so the coefficient of X cube is identity, coefficient of 8 X square is also minus I,
coefficient of 10 X is identity and there is a constant term which is minus determinant
of A. So it is again an identity as far as matrix identity is concerned.
Since it is an identity in matrix, I can replace, so we can replace X by A itself, by A, all
right. So if I do that, then I see here that I am going to get A times, this times A into
something which will be 0 times something which will be 0, fine. So the important thing
here is that, in this expression, since this is an identity in X and the coefficients are
matrices, I am allowed to replace X by the matrix A, fine. And therefore, what I see
is that, this is this, this is the left hand side, what about the right hand side? The
right hand side is A cube minus 8 A square plus 10 A minus determinant of A into identity,
there is no change here because there is no X, so this is equal to this.
So what we are trying to say from here is that A cube minus 8 A square plus 10 A minus
determinant of A times identity is 0, fine. This part is called, what are called the Cayley
Hamilton theorem. It says that, what the Cayley Hamilton theorem says? That every matrix satisfies
its own characteristic polynomial. So in this example, alright, this is the characteristic
polynomial or the same as determinant of X i minus A, alright.
So determinant of X i minus A is called the characteristic polynomial and Cayley Hamilton
theorem says that, every matrix satisfies its own characteristic polynomial. So just
replace X by A, so A cube minus 8 A square plus 10 A minus determinant of A into identity
is 0, this is what it says, alright. Now the important thing to note here is that, I cannot
replace X in this expression. So let us go back here, from where did I get? Here, alright,
so in this expression, if I look at this expression here, alright, cannot replace X by A, this
is not allowed here because A minus 1 does not make sense, alright.
So to make sense of things, from this, I have to go to adjoint of A, rewrite it as a matrix
identity, rewrite it as this, in terms of 3 matrices, alright. In general, if there
are n, I will have to write n matrices and then do the multiplications and so on, is
that okay? So from there, we will get the ideas. Now here, just to spend some time,
I would like you to understand that, why did I get this expression, alright. Because there
also I did not explain you much, so let me explain it here to you.
So how do I get that, X i minus A or A into adjoint of A, adjoint of A is determinant
of A into I, how do I get this? So let me try to make you understand this, in this
example here, alright. So I had this matrix with me, this was A, this is adjoint of A.
So let us look at what exactly we are doing, when I am multiplying this matrix with this,
so I am multiplying X minus 1 with this one, so I will just write it down, so I am multiplying
X minus 1 to this, fine. That is minus 2 times this part, fine. So just let us look
at things, A 11, A 12, A 13, A 21, A 22, A 23, A 31, A 32, A 33, this is my A. Now when
I am looking at the adjoint, fine, what I have is C 11 with a minus plus sign, fine,
then I have got C 12 here with a minus sign, C 13, then I have C 21 with a minus sign,
C 22, C 23, C 31, C 32, C 33. So when I multiply it, the first part is summation, so look at
here, this one, alright, 11, 11, 12, 12, 13, 13. So it is A 1j, C 1j, j equal to 1, 2,
and minus sign is also coming into play, again as usual, so I do mistakes, so there is no minus
here, this is this, because this itself comes with a minus sign, alright. So C ij itself comes with
a minus sign, minus 1 to the power i plus j determinant of this, it itself comes, fine.
So there is no minus sign here. Now this into this part if I look at, this into this, it will
be here, so it will be A 11, 21, 12, 22, 13, 23. So here it is A 1j, but it is not 1, but C 2j,
alright. Similarly the last one will be A 1j, C 3j, fine, C 31, 32, 33. Now question is why
is this 0, why is this 0, alright. So let us look at this what exactly we are doing.
So when I am looking at A 11, C 21, plus A 12, C 22, plus A 13, C 23, I have got the matrix A 11
here, alright, fine, with a minus A 12, I can put here minus here, here, so or I can replace this by
just A 12 and then we will see what exactly we are doing, I have A 13. Now what is C 21? C 21
is nothing but minus 1 to the power 2 plus 1 determinant of remove the second row and remove
the first column, second row and first column I have to remove it. So I am looking at A 11,
A 13, this goes off and this goes off, sorry, 21, so A 12 and this and then A 32, A 33,
so I have got here this, so when I am computing the determinant, this I am not bothered about
for the time being minus sign, just look at this. When I am computing the determinant,
this is supposed to appear here A 12, A 13, A 32, A 33, so this into this part is going to be
this, alright, so what I am saying is this part is this one, fine. Now I want to look at A 12 into
C 22, there is a minus sign, let us not worry about for the time being, A 12 into C 22, C 22
is nothing but C 22 means remove this and remove this, so A 11, A 31, A 11, A 31, A 13 and A 33,
fine. There is a plus sign here minus 1 to the power 2 plus 2, so there is a plus sign here,
fine. So now understand the where does minus and where does the plus come, here I had a minus sign
extra, fine, is that okay, in this I had a minus sign extra. If I look at here, it is C 22 has no
sign but when I want to multiply here, if I write here A 11 and A 31, it will minus A 12 times this
matrix, this matrix, this matrix, this matrix, alright. So there is a minus which is coming
into play, so I could have done here, I could have put a minus sign here somewhere and then
multiplied here minus, I could have multiplied minus here, fine, is that okay and similarly
a minus here not in this but in C 31 minus and look at the whole thing. So what we see is that
when I am computing this, basically I am looking at determinant of this matrix in which there are
two rows are same and therefore the determinant is 0, alright. So the same argument goes here,
here since I am looking at 3, so again this part will get replaced by A 21, A 22, A 23 but the
first two rows will be same and so therefore they will become 0 as such, fine. So the last part
today, alright, what is called the Cramer's rule or I will just remind you of this theorem and then
so A n cross n, then the following statements are equivalent, 1, A is invertible, 2, determinant
of A is not 0, 3, the system Ax is equal to b has a unique solution, alright. So there
are some more conditions, 5 more or 4 more, write them down and complete it, fine.
Now let us come to what is called Cramer's rule, so what we are doing is we are going
to look at solve the system Ax is equal to b and then there is a formula which you need
to look at, so we write what is called the matrix A 1 as I have the matrix b here, fine,
look at the second column, look at 1 here, the second column and so on till the last
column, this is my matrix A 1, matrix A 2 is just write the first column, alright, then
b here, then the third column and so on till the last column, fine.
So the important thing is this is 1, so the first column is replaced by b, 2, so second
column is replaced by b, so in general when I look at A n, it will be first column will
remain till the last but 1, so n minus 1 column will remain, b will come here, fine. So it
says that if determinant of A is not equal to 0, so we know that then Xi is equal to
determinant of A i upon determinant of A, fine, for 1 less than equal to i less than
equal to n and our X is X 1, X 2, X n transpose, our vectors are always column vectors therefore
I need to put a transpose here, fine. So this is what the Cramer's rule says, let us try
to understand Cramer's rule now, fine.
So proof, now we have been given that determinant of A is not 0, implies A is invertible, implies
the RREF of A is identity, implies RREF of A is identity, implies there exist an invertible
matrix P such that P A is identity, fine. So what do you mean by P is identity? It means
that alright, so I have got, so let us look at A 1, I want to compute what is P times
A 1, P times A 1 will be P times A 1 is b, then the second column of A, third column
of A, so on till the last column of A, so we know what is P times A is identity, so
I want to look at P of A 1, so this is same as P times b, P times A of this, P times A
of this, P times A of this, so this is same as P b, what is this? This is supposed to
be the second column of identity, this is the second column of identity, this is the
third column of identity and so on, this is the nth column of identity.
So therefore determinant of P times A 1 will be equal to alright, look at the 1 1 entry
of the 1st entry of P b, is that okay, fine. So let us again understand what we are doing,
so I have P times A is identity, I am looking at the augmented matrix this, fine apply P
to it, what I get here is identity and P of b, fine. Since there is an identity here it
means that X 1 is nothing but the 1st entry of P b, X 2 means 2nd entry, X n is equal
to the nth entry, fine important. Again understand that determinant of A is not 0 implies RREF
of A is identity, it means that there is invertible matrix P such that P of A is identity, so
just multiply P to the augmented matrix I get I and P b and what you know is that since
there is an identity here therefore the system of equation has a unique solution given by
X 1 is equal to the 1st element of P b, X 2 equal to the 2nd element of P b and so on.
So what I see here is that determinant of P of A 1 is also same as 1st element of this,
is that okay. So therefore I get that determinant of P A 1 is this and therefore X 1 is nothing
but this, fine. So what we know is that so P b of 1 is equal to determinant of P of A
1 which is same as determinant of P into determinant of A 1 divided by 1 which is same as determinant
of P into determinant of A 1 divided by determinant of P times A because I gives me determinant
of identity which is same as determinant of P into determinant of A 1 divided by determinant
of P into determinant of A, this part cancels out you get this is equal to determinant of
A 1 upon determinant of A, fine. The same idea you can use to prove that in
general P b of j is equal to determinant of P j, so determinant of A j divided by determinant
of A, fine. The idea being same the only thing is that since you are looking at the jth part
here, alright since you are looking at the jth part here everything will remain same
the jth component here will become P b, fine and since jth component is P b the determinant
of this matrix will be nothing but P b of j, fine, is that okay. So when you look at
P of A j determinant of that it will turn out to be this because everything where else
it is identity, fine and therefore you will get this.
So I would like you to keep track of this mostly we are not going to use Cramer's rule
but you should know it, fine. So this finishes our chapter on system of linear equations
and in the next class what we will look at is what are called vectors the general set
of vectors what we had learnt was recall that whenever we solve a system of equation
we have been able to solve it and then get some relationship between lines, planes and
so on but there was a hidden relationship in vectors.
So we need to understand the vectors in a proper way that is the first thing, second
is solving a system of equation also resulted in trying to understand rows and columns in
the sense that it told us the determinant of A is not 0 means the columns are in certain
sense giving me some information, rows are giving me some set of another set of informations
can I relate those ideas because they are basically looking at columns as vectors, you
can also look at rows as vectors, fine and then build up on those ideas.
So from next class onwards we will not look at system of equations but we will be using
those ideas system of equations ideas will be used again and again to get our results
to look at new ideas, new definitions and so on all the things will be based on solving
the system AX is equal to B unique solution, no solution and infinite number of solutions
they lead us to different ideas what are called linear combination, linear span, fine linear
independence and dependence and so on. So please read it before you come to the next
class.
Thank you.
