Download presentation
Presentation is loading. Please wait.
Published byHilmar Roy Johansen Modified over 5 years ago
1
Maths for Signals and Systems Linear Algebra in Engineering Lectures 9, Friday 28th October 2016
DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON
2
Determinants The Determinant is a crucial number associated with square matrices only. It is denoted by det ๐ด = ๐ด . These are two different symbols we use for determinants. If a matrix ๐ด is invertible, that means det ๐ด โ 0. Furthermore, det ๐ด โ 0 means that matrix ๐ด is invertible. For a 2ร2 matrix ๐ ๐ ๐ ๐ the determinant is defined as ๐ ๐ ๐ ๐ =๐๐โ๐๐. This formula is explicitly associated with the solution of the system ๐ด๐ฅ=๐ where ๐ด is a 2ร2 matrix.
3
Properties of determinants cont.
det ๐ผ =1. This is easy to show in the case of a 2ร2 matrix using the formula of the previous slide. If we exchange two rows of a matrix the sign of the determinant reverses. Therefore: If we perform an even number of row exchanges the determinant remains the same. If we perform an odd number of row exchanges the determinant changes sign. Hence, the determinant of a permutation matrix is 1 or โ1. =1 and =โ1 as expected.
4
Properties of determinants cont.
3a. If a row is multiplied with a scalar, the determinant is multiplied with that scalar too, i.e., ๐ก๐ ๐ก๐ ๐ ๐ =๐ก ๐ ๐ ๐ ๐ . 3b. ๐+ ๐ โฒ ๐+ ๐ โฒ ๐ ๐ = ๐ ๐ ๐ ๐ + ๐ โฒ ๐ โฒ ๐ ๐ Note that det ๐ด+๐ต โ det ๐ด + det ๐ต I observe โlinearityโ only for a single row. Two equal rows leads to det=0. As mentioned, if I exchange rows the sign of the determinant changes. In that case the matrix is the same and therefore, the determinant should remain the same. Therefore, the determinant must be zero. This is also expected from the fact that the matrix is not invertible.
5
Properties of determinants cont.
5. ๐ ๐ ๐โ๐๐ ๐โ๐๐ = ๐ ๐ ๐ ๐ + ๐ ๐ โ๐๐ โ๐๐ = ๐ ๐ ๐ ๐ โ๐ ๐ ๐ ๐ ๐ = ๐ ๐ ๐ ๐ Therefore, the determinant after elimination remains the same. 6. A row of zeros leads to det=0. This can verified as follows for any matrix: 0 0 ๐ ๐ = 0โ๐ 0โ๐ ๐ ๐ =0 ๐ ๐ ๐ ๐ =0 Consider an upper triangular matrix (โ is a random element) ๐ 1 โ โฆ โ 0 ๐ 2 โฆ โ โฎ 0 โฎ 0 โฑ โฆ โฎ ๐ ๐ = ๐ 1 ๐ 2 โฆ ๐ ๐ I can easily show the above using the following steps: I transform the upper triangular matrix to a diagonal one using elimination. I use property 3a ๐ times. I end up with the determinant ๐=1 ๐ ๐ ๐ detโก(๐ผ) = ๐=1 ๐ ๐ ๐ . The same observations are valid for a lower triangular matrix.
6
Properties of determinants cont.
8. det ๐ด =0 when ๐ด is singular. This is because if ๐ด is singular I get a row of zeros by elimination. Using the same concept I can say that if ๐ด is invertible then det ๐ด โ 0. In general I have ๐ดโ๐โ๐ท, det ๐ด =๐ 1 ๐ 2 โฆ ๐ ๐ =product of pivots. 9. det ๐ด๐ต = det ๐ด det ๐ต det ๐ด โ1 = 1 det ๐ด det ๐ด 2 = [det(๐ด)] 2 det ๐๐ด = ๐ ๐ det(๐ด) where ๐ด:๐ร๐ and ๐ is a scalar. 10. det ๐ด ๐ = det ๐ด . We use the ๐ฟ๐ decomposition of ๐ด, ๐ด=๐ฟ๐. Therefore, ๐ด ๐ = ๐ ๐ ๐ฟ ๐ . ๐ฟ and ๐ฟ ๐ have the same determinant due to the fact that they are triangular matrices (so it is the product of the diagonal elements). The same observation is valid for ๐ and ๐ ๐ . This observation and the property det ๐ด๐ต = det ๐ด det ๐ต yields det ๐ด ๐ = det ๐ด . This property can also be proved by the use of induction.
7
Determinant of a 2ร2 matrix
The goal is to find the determinant of a 2ร2 matrix ๐ ๐ ๐ ๐ using the properties described previously. We know that =1 and =โ1. ๐ ๐ ๐ ๐ = ๐ 0 ๐ ๐ ๐ ๐ ๐ = ๐ 0 ๐ ๐ 0 0 ๐ ๐ ๐ ๐ 0 ๐ = 0+ ๐ 0 0 ๐ ๐ ๐ 0 +0=๐๐ ๐๐ =๐๐โ๐๐ I can realize the above analysis for 3ร3 matrices. I break the determinant of a 2ร2 random matrix into 4 determinants of simpler matrices. In the case of a 3ร3 matrix I break it into 27 determinants. And so on.
8
Determinant of any matrix
For the case of a 2ร2 matrix ๐ ๐ ๐ ๐ we got: ๐ ๐ ๐ ๐ = ๐ 0 ๐ ๐ 0 0 ๐ ๐ ๐ ๐ 0 ๐ =0+ ๐ 0 0 ๐ ๐ ๐ 0 +0 The determinants which survive have strictly one entry from each row and each column. The above is a universal conclusion.
9
Determinant of any matrix cont.
For the case of a 3ร3 matrix ๐ ๐ 12 ๐ ๐ 21 ๐ ๐ 22 ๐ 23 ๐ 32 ๐ we got: ๐ ๐ 12 ๐ ๐ 21 ๐ ๐ 22 ๐ 23 ๐ 32 ๐ = ๐ ๐ ๐ ๐ ๐ 23 ๐ โฆ= ๐ 11 ๐ 22 ๐ 33 โ ๐ 11 ๐ 23 ๐ 32 +โฆ As mentioned the determinants which survive have strictly one entry from each row and each column. Each of these determinants is obtained by the product its non-zero elements with a plus or a minus sign in front. The sign is determined by the number of re-orderings required so that the matrix of interest becomes diagonal. For example the second determinant shown above requires one re-ordering (swap of rows 2 and 3) to become the determinant of a diagonal matrix. One re-ordering implies, as shown previously, negating the sign of the original determinant.
10
Determinant of any matrix cont.
For the case of a 2ร2 matrix the determinant has 2 survived terms. For the case of a 3ร3 matrix the determinant has 6 survived terms. For the case of a 4ร4 matrix the determinant has 24 survived terms. For the case of a ๐ร๐ matrix the determinant has ๐! survived terms. The elements from the first row can be chosen in ๐ different ways. The elements from the second row can be chosen in (๐โ1) different ways. and so onโฆ Problem Find the determinant of the following matrix: (The answer is 0).
11
The general form for the determinant
For the case of a ๐ร๐ matrix the determinant has ๐! terms. det ๐ด = ๐!terms ยฑ ๐ 1๐ ๐ 2๐ ๐ 3๐ โฆ ๐ ๐๐ง ๐,๐,๐,โฆ,๐ง are different columns. In the above summation, half of the terms have a plus and half of them have a minus sign.
12
The general form for the determinant cont.
For the case of a ๐ร๐ matrix, the method of cofactors is a technique which helps us to connect a determinant to determinants of smaller matrices. det ๐ด = ๐!terms ยฑ ๐ 1๐ ๐ 2๐ ๐ 3๐ โฆ ๐ ๐๐ง For a 3ร3 matrix we have det ๐ด = ๐ 11 ( ๐ 22 ๐ 33 โ ๐ 23 ๐ 32 )+โฆ ๐ 22 ๐ 33 โ ๐ 23 ๐ 32 is the determinant of a 2ร2 matrix which is a sub-matrix of the original matrix.
13
Cofactors The cofactor of element ๐ ๐๐ is defined as follows:
๐ถ ๐๐ =ยฑdet ๐โ1 ร ๐โ1 matrix ๐ด ๐๐ ๐ด ๐๐ is the ๐โ1 ร ๐โ1 that is obtained from the original matrix if row ๐ and column ๐ are eliminated. We keep the + if (๐+๐) is even. We keep the โ if (๐+๐) is odd. Cofactor formula along row 1: det ๐ด = ๐ 11 ๐ถ 11 + ๐ 12 ๐ถ 12 +โฆ+๐ 1๐ ๐ถ 1๐ Generalization: Cofactor formula along row ๐: det ๐ด = ๐ ๐1 ๐ถ ๐1 + ๐ ๐2 ๐ถ ๐2 +โฆ+๐ ๐๐ ๐ถ ๐๐ Cofactor formula along column ๐: det ๐ด = ๐ 1๐ ๐ถ 1๐ + ๐ 2๐ ๐ถ 2๐ +โฆ+๐ ๐๐ ๐ถ ๐๐ Cofactor formula along any row or column can be used for the final estimation of the determinant.
14
Estimation of the inverse ๐ด โ1 using cofactors
For a 2ร2 matrix it is quite easy to show that ๐ ๐ ๐ ๐ โ1 = 1 ๐๐โ๐๐ ๐ โ๐ โ๐ ๐ The general formula for the inverse ๐ด โ1 is given by: ๐ด โ1 = 1 det(๐ด) ๐ถ ๐ ๐ด๐ถ ๐ =det(๐ด)โ
๐ผ ๐ถ ๐๐ is the cofactor of ๐ ๐๐ which is a sum of products of ๐โ1 entries. In general ๐ 11 โฆ ๐ 1๐ โฎ โฑ โฎ ๐ ๐1 โฆ ๐ ๐๐ ๐ถ 11 โฆ ๐ถ ๐1 โฎ โฑ โฎ ๐ถ 1๐ โฆ ๐ถ ๐๐ =det(๐ด)โ
๐ผ
15
Solve ๐ด๐ฅ=๐ when ๐ด is square and invertible
The solution of the system ๐ด๐ฅ=๐ when ๐ด is square and invertible can be now obtained from ๐ฅ=๐ด โ1 ๐= 1 det(๐ด) ๐ถ ๐ ๐ ๐ถ ๐ ๐= ๐ถ 11 โฆ ๐ถ ๐1 โฎ โฑ โฎ ๐ถ 1๐ โฆ ๐ถ ๐๐ ๐ 1 โฎ ๐ ๐ Lets find the first element of vector ๐ฅ. This is: ๐ฅ 1 = 1 det ๐ด ๐ 1 ๐ถ 11 + ๐ 2 ๐ถ 21 +โฆ+ ๐ ๐ ๐ถ ๐1 We see that in ๐ 1 ๐ถ 11 + ๐ 2 ๐ถ 21 +โฆ+ ๐ ๐ ๐ถ ๐1 the cofactors used are the same ones that we use when we calculate the determinant of ๐ด using its first column. Therefore, ๐ 1 ๐ถ 11 + ๐ 2 ๐ถ 21 +โฆ+ ๐ ๐ ๐ถ ๐1 =det ๐ต 1 with ๐ต 1 = ๐โฎ last ๐โ1 columns of ๐ด ๐ต 1 is obtained by ๐ด if we replace the first column with ๐. In general, ๐ต ๐ is obtained by ๐ด if we replace the ๐th column with ๐.
16
Solve ๐ด๐ฅ=๐ when ๐ด is square and invertible cont.
Cramerโs rule: The solution of the system ๐ด๐ฅ=๐ with ๐ฅ= ๐ฅ 1 ๐ฅ 2 โฎ ๐ฅ ๐ is given by ๐ฅ ๐ = det( ๐ต ๐ ) det(๐ด) , ๐=1,โฆ,๐. ๐ต ๐ is obtained by ๐ด if we replace the ๐th column with ๐. In practice we must find (๐+1) determinants.
17
Geometrical interpretation of the determinant
Consider ๐ด to be a matrix of size 2ร2. It can be proven that the determinant of ๐ด is the area of the parallelogram with the column vectors of ๐ด as the two of its sides. Consider ๐ด to be a matrix of size 3ร3. It can be proven that the determinant of ๐ด is the volume of the parallelepiped with the column vectors of ๐ด as the three of its sides. This observation is extended to matrices of dimension ๐ร๐ where the determinants are parallelotopes.
18
Geometrical interpretation of the determinant cont.
Take ๐ด=๐ผ. Then the parallelepiped mentioned previously is the unit cube and its volume is 1. Problem: Consider an orthogonal square matrix ๐. Prove that det ๐ =1 or โ1. Solution: ๐ ๐ ๐=๐ผโdet ๐ ๐ ๐ =det ๐ ๐ det ๐ =detโก(๐ผ) =1 But det ๐ ๐ = det ๐ โ ๐ 2 =1โ ๐ =ยฑ1 Take ๐ and double one of its vectors. The determinant doubles as well (property 3a). In that case, the cubeโs volume doubles, i.e., you have two cubes sitting on top of each other. You may download for free a demonstration by Wolfram that illustrates the above observations
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.