matrix operations: determinant

13
Matrix Operations: Determinant

Upload: others

Post on 05-Jan-2022

24 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Matrix Operations: Determinant

Matrix Operations: Determinant

Page 2: Matrix Operations: Determinant

Determinants

β€’ Determinants are only applicable for square matrices.

β€’ Determinant of the square matrix 𝐴 is denoted as:

det(𝐴) or 𝐴

β€’ Recall that the absolute value of the determinant of a 2 Γ— 2 matrix is equal to the area of parallelogram of the rows of that matrix.

β€’ Similarly, the absolute value of the determinant of a 3 Γ— 3 matrix is equal to the volume of parallelepiped of the rows of that matrix.

β€’ Therefore, the absolute value of the determinant of a 𝑛 Γ— 𝑛 matrix is equal to the n-dimensional volume, constructed by the rows of that matrix.

Page 3: Matrix Operations: Determinant

Determinant of a 2 Γ— 2 matrix

β€’ Recall that:

𝐴 =π‘Ž11 π‘Ž12π‘Ž21 π‘Ž22

, 𝐴 =π‘Ž11 π‘Ž12π‘Ž21 π‘Ž22

= π‘Ž11π‘Ž22 βˆ’ π‘Ž12π‘Ž21.

𝒂1

𝒂2

π’‚πŸπ’‚πŸ

Page 4: Matrix Operations: Determinant

Determinant of a 3 Γ— 3 matrix

β€’ Also recall the determinant for a 3 Γ—3 matrix:

β€’ 𝑅 =

π‘Ÿ11 π‘Ÿ12 π‘Ÿ13π‘Ÿ21 π‘Ÿ22 π‘Ÿ23π‘Ÿ31 π‘Ÿ32 π‘Ÿ33

β€’ If the row vectors are linearlydependent, then the determinantis zero, and the matrix is NOT invertible.β€’ Notice if the row vectors arelinearly dependent the volumewill be zero, as the vectors lie on a plane on a line.

𝒓1𝒓2𝒓3

Page 5: Matrix Operations: Determinant

Determinant of a 3 Γ— 3 matrixβ€’ To compute the determinant of a 3 Γ— 3 matrix,.

β€’ The first element in the top row is multiplied with the determinant of the sub-matrix resulting from removing the (first) row and the (first) column corresponding to that element from the matrix.

β€’ The negate of second element in the top row is multiplied with the determinant of the sub-matrix resulting from removing the (first) row and the (second) column corresponding to that element from the matrix.

β€’ The third element in the top row is multiplied with the determinant of the sub-matrix resulting from removing the (first) row and the (third) column corresponding to that element from the matrix.

β€’ 𝑅 =

π‘Ÿ11 π‘Ÿ12 π‘Ÿ13π‘Ÿ21 π‘Ÿ22 π‘Ÿ23π‘Ÿ31 π‘Ÿ32 π‘Ÿ33

= π‘Ÿ11π‘Ÿ22 π‘Ÿ23π‘Ÿ32 π‘Ÿ33

βˆ’ π‘Ÿ12π‘Ÿ21 π‘Ÿ23π‘Ÿ31 π‘Ÿ33

+ π‘Ÿ13π‘Ÿ21 π‘Ÿ22π‘Ÿ31 π‘Ÿ32

=

π‘Ÿ11 π‘Ÿ22π‘Ÿ33 βˆ’ π‘Ÿ23π‘Ÿ32 βˆ’ π‘Ÿ12 π‘Ÿ21π‘Ÿ33 βˆ’ π‘Ÿ23π‘Ÿ31 + π‘Ÿ13 π‘Ÿ21π‘Ÿ32 βˆ’ π‘Ÿ22π‘Ÿ31

Page 6: Matrix Operations: Determinant

Determinant of a 3 Γ— 3 matrix / Cofactor

β€’ In the determinant of a 3 Γ— 3 matrix, we multiplied the first row elements in their corresponding cofactors.

β€’ The cofactor of the element 𝑖, 𝑗 of 𝑛 Γ— 𝑛 matrix 𝐴 is:𝐢𝑖𝑗 = (βˆ’1)𝑖+𝑗det𝑀𝑖𝑗

β€’ Where 𝑀𝑖𝑗 is submatrix after removing row 𝑖 and column 𝑗.β€’ Determinant of 𝐴 is:

det𝐴 = π‘Žπ‘–1𝐢𝑖1 + π‘Žπ‘–2𝐢𝑖2 +β‹―+ π‘Žπ‘–π‘›πΆπ‘–π‘›β€’ In the above formula the row 𝑖 could be any row of 𝐴 and it is not

necessarily the first row.β€’ In fact it need not be a row. It can be any column j. β€’ (So in order to compute the determinant, it is always wise to choose the

row or a column that has most number of zeroes and compute the cofactor of only its non-zero elements.)

Page 7: Matrix Operations: Determinant

Determinant properties

β€’ The determinant of identity matrix is 1.𝐼 = 1

β€’ The determinant changes sign when two rows are exchanged.𝑐 π‘‘π‘Ž 𝑏

= βˆ’π‘Ž 𝑏𝑐 𝑑

β€’ The determinant is a linear function of each row separately.π‘‘π‘Ž 𝑑𝑏𝑐 𝑑

= π‘‘π‘Ž 𝑏𝑐 𝑑

π‘Ž + π‘Žβ€² 𝑏 + 𝑏′

𝑐 𝑑=

π‘Ž 𝑏𝑐 𝑑

+π‘Žβ€² 𝑏′

𝑐 𝑑

Page 8: Matrix Operations: Determinant

Determinant properties

β€’ If one row is a scalar multiple of another row then det(𝐴) = 0

π‘Ž π‘π‘‘π‘Ž 𝑑𝑏

= 0π‘Ž 𝑏 𝑐𝑑 𝑒 π‘“π‘‘π‘Ž 𝑑𝑏 𝑑𝑐

= 0

π‘Ž 𝑏 𝑐𝑑 𝑒 𝑓

π‘Ž + 𝑑 𝑏 + 𝑒 𝑐 + 𝑓= 0,

π‘Ž 𝑏 𝑐𝑑 𝑒 𝑓

2π‘Ž + 𝑑 2𝑏 + 𝑒 2𝑐 + 𝑓= 0

π‘Ž 𝑏 𝑐𝑑 𝑒 𝑓

2π‘Ž + 5𝑑 2𝑏 + 5𝑒 2𝑐 + 5𝑓= 0

Page 9: Matrix Operations: Determinant

Determinant properties

β€’ Row reduction does not change the determinant of π΄π‘Ž 𝑏

𝑐 βˆ’ π›Ύπ‘Ž 𝑑 βˆ’ 𝛾𝑏=

π‘Ž 𝑏𝑐 𝑑

𝛾 is a non-zero scalar

β€’ A matrix with a row of zeros has det(𝐴) = 0π‘Ž 𝑏0 0

= 0

Page 10: Matrix Operations: Determinant

Determinant properties

β€’ If 𝐴 is a triangular then the determinant is the product of diagonal elements.

π‘Ž 𝑏0 𝑑

= π‘Žπ‘‘,π‘Ž 0𝑐 𝑑

= π‘Žπ‘‘

This is also applicable for diagonal matrices:π‘Ž 0 00 𝑏 00 0 𝑐

= π‘Žπ‘π‘

β€’ If 𝐴 is singular (columns or rows are linearly dependent) det(𝐴) = 0

β€’ 𝐴𝐡 = 𝐴 𝐡

β€’ 𝐴𝑇 = 𝐴

Page 11: Matrix Operations: Determinant

Rank of Matrix

β€’ Let π‘š = min π‘Ÿπ‘œπ‘€, π‘π‘œπ‘™π‘’π‘šπ‘›

β€’ Rank of matrix is the size of the largest square sub-matrix with non-zero determinant.

β€’ Matrix is full-ranked, if its rank = m.

β€’ Matrix is rank-deficient, if its rank < m.

β€’ It is not possible to have matrix’s rank > m.

Page 12: Matrix Operations: Determinant

Sub-Matrix

β€’ In order to find the rank of matrix we should find the largest quaresub-matrix with non-zero determinant.

β€’ For making a sub-matrix we are allowed to remove rows or columns of a matrix

β€’ Example: A is a 5 Γ— 3 matrix

β€’ Removing two rows of Aπ‘Ÿπ‘œπ‘€1π‘Ÿπ‘œπ‘€2π‘Ÿπ‘œπ‘€3π‘Ÿπ‘œπ‘€4π‘Ÿπ‘œπ‘€5

=π‘Ÿπ‘œπ‘€2π‘Ÿπ‘œπ‘€4π‘Ÿπ‘œπ‘€5

Page 13: Matrix Operations: Determinant

Matrix Rank

β€’ Example: Find the rank of matrix A

𝐴 =0 1 21 2 12 7 8

Row 1 and Row 2 of matrix A are linearly independent. However Row 3 is a linear combination of Row 1 and 2.

π‘Ÿπ‘œπ‘€3 = 3 Γ— π‘Ÿπ‘œπ‘€1 + 2 Γ— π‘Ÿπ‘œπ‘€2

So A only have two independent row vectors. Now let remove third row and first column of A then we have a 2 Γ— 2 matrix which determinant is not zero.

1 22 1

β‰  0

So rank of A is 2.