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

Slides:



Advertisements
Similar presentations
Elementary Linear Algebra Anton & Rorres, 9th Edition
Advertisements

Chapter 6 Eigenvalues and Eigenvectors
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Matrices: Inverse Matrix
3 - 1 Chapter 2B Determinants 2B.1 The Determinant and Evaluation of a Matrix 2B.2 Properties of Determinants 2B.3 Eigenvalues and Application of Determinants.
Lecture 15 Recursive and Iterative Formula for Determinants Shang-Hua Teng.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Matrices and Determinants
Chapter 5 Determinants.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Compiled By Raj G. Tiwari
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
 Row and Reduced Row Echelon  Elementary Matrices.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
1 Chapter 6 – Determinant Outline 6.1 Introduction to Determinants 6.2 Properties of the Determinant 6.3 Geometrical Interpretations of the Determinant;
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Lecture 8 Matrix Inverse and LU Decomposition
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Maths for Signals and Systems Linear Algebra for Engineering Applications Lectures 1-2, Tuesday 13 th October 2014 DR TANIA STATHAKI READER (ASSOCIATE.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Slide INTRODUCTION TO DETERMINANTS Determinants 3.1.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
MATH 1046 Determinants (Section 4.2)
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
MAT 322: LINEAR ALGEBRA.
Determinants 林育崧 蘇育劭.
Matrices and Vector Concepts
7.7 Determinants. Cramer’s Rule
Chapter 7 Matrix Mathematics
Linear Algebra Lecture 19.
Copyright © Cengage Learning. All rights reserved.
Chapter 2 Determinants by Cofactor Expansion
ECON 213 Elements of Mathematics for Economists
Chapter 2 Determinants Basil Hamed
MATRICES MATRIX OPERATIONS.
Matrices.
Chapter 7: Matrices and Systems of Equations and Inequalities
Maths for Signals and Systems Linear Algebra in Engineering Lectures 10-12, Tuesday 1st and Friday 4th November2016 DR TANIA STATHAKI READER (ASSOCIATE.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Maths for Signals and Systems Linear Algebra in Engineering Lectures 16-17, Tuesday 18th November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Mathematics for Signals and Systems
Maths for Signals and Systems Linear Algebra in Engineering Lecture 18, Friday 18th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 6, Friday 21st October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 4-5, Tuesday 18th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 9, Friday 1st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 18, Friday 21st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 19-20, Tuesday 25st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Maths for Signals and Systems Linear Algebra in Engineering Class 1, Friday 28th November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Lecture 8 System of Linear Differential Equations fall semester
Determinant of amatrix:
DETERMINANT MATH 80 - Linear Algebra.
Lecture 8 Matrix Inverse and LU Decomposition
Chapter 2 Determinants.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Chapter 2 Determinants.
Presentation transcript:

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

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.

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 0 0 1 =1 and 0 1 1 0 =−1 as expected.

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.

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.

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.

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 0 0 1 =1 and 0 1 1 0 =−1. 𝑎 𝑏 𝑐 𝑑 = 𝑎 0 𝑐 𝑑 + 0 𝑏 𝑐 𝑑 = 𝑎 0 𝑐 0 + 𝑎 0 0 𝑑 + 0 𝑏 𝑐 0 + 0 𝑏 0 𝑑 = 0+ 𝑎 0 0 𝑑 + 0 𝑏 𝑐 0 +0=𝑎𝑑 1 0 0 1 +𝑏𝑐 0 1 1 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.

Determinant of any matrix For the case of a 2×2 matrix 𝑎 𝑏 𝑐 𝑑 we got: 𝑎 𝑏 𝑐 𝑑 = 𝑎 0 𝑐 0 + 𝑎 0 0 𝑑 + 0 𝑏 𝑐 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.

Determinant of any matrix cont. For the case of a 3×3 matrix 𝑎 11 𝑎 12 𝑎 13 𝑎 21 𝑎 31 𝑎 22 𝑎 23 𝑎 32 𝑎 33 we got: 𝑎 11 𝑎 12 𝑎 13 𝑎 21 𝑎 31 𝑎 22 𝑎 23 𝑎 32 𝑎 33 = 𝑎 11 0 0 0 0 𝑎 22 0 0 𝑎 33 + 𝑎 11 0 0 0 0 0 𝑎 23 𝑎 32 0 +…= 𝑎 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.

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: 0 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 (The answer is 0).

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.

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.

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.

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(𝐴)⋅𝐼

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 𝑏.

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.

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.

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 http://demonstrations.wolfram.com/DeterminantsSeenGeometrically/.