Presentation is loading. Please wait.

Presentation is loading. Please wait.

Maths for Signals and Systems Linear Algebra in Engineering Lectures 9, Friday 28th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.

Similar presentations


Presentation on theme: "Maths for Signals and Systems Linear Algebra in Engineering Lectures 9, Friday 28th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL."โ€” Presentation transcript:

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


Download ppt "Maths for Signals and Systems Linear Algebra in Engineering Lectures 9, Friday 28th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL."

Similar presentations


Ads by Google