Determinant
The determinant is a function mapping matrices to real scalars. It characterizes some properties of the matrix and the linear map represented by the matrix.
What actually is the determinant?
Iβve learned it so many times, but Iβve only really learned to apply formulas. Never got a fundamental understanding of how it works.
2025-01-22: hopefully getting the intuition by reading the deep learning textbook.
Thinking about determinants
The absolute value of the determinant can be thought of as a measure of how much a multiplication by the matrix expands or contracts space.
determinant = 0 <β singular matrix <β linearly dependent columns or rows
Matrix Inverse
The inverse is of is equal to Thus, is invertible if and only if
For Matrix
We can just apply a simple formula for determinants and adjugates. Let The determinant of is and the adjugate of is
See below for the more generalized definitions.
For matrix
Cofactor
We need to use the Cofactor expansion to calculate the determinant. Letβs first define cofactor.
Let and let be the matrix obtained from by deleting the ith row and jth column of . The (i, j)-cofactor of , denoted by , is so the cofactor is just a number.
Determinant
Let . For any , we define the determinant of as the cofactor expansion of along ANY row or column of .
Cofactor Matrix and Adjugate
The cofactor matrix of is
The adjugate of is
Example
1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}$$ We compute the determinant: $$\det(A) = 1(1 \cdot 0 - 4 \cdot 6) - 2(0 \cdot 0 - 4 \cdot 5) + 3(0 \cdot 6 - 1 \cdot 5) = 1$$ Compute the cofactor matrix of $A$: $$\text{Cof}(A) = \begin{bmatrix} ei - fh & -(di - fg) & dh - eg \\ -(bi - ch) & ai - cg & -(ah - bg) \\ bf - ce & -(af - cd) & ae - bd \end{bmatrix}$$ So we have that $$\text{Cof}(A) = \begin{bmatrix} (1 \cdot 0 - 4 \cdot 6) & -(0 \cdot 0 - 4 \cdot 5) & (0 \cdot 6 - 1 \cdot 5) \\ -(2 \cdot 0 - 3 \cdot 6) & (1 \cdot 0 - 3 \cdot 5) & -(1 \cdot 6 - 2 \cdot 5) \\ (2 \cdot 4 - 3 \cdot 1) & -(1 \cdot 4 - 3 \cdot 0) & (1 \cdot 1 - 2 \cdot 0) \end{bmatrix} = \begin{bmatrix} -24 & 20 & -5 \\ 18 & -15 & 2 \\ -4 & 5 & -1 \end{bmatrix}$$ Step 3: Transpose the cofactor matrix to get $\text{adj}(A)$\text{adj}(A) = \text{cof}(A)^T = \begin{bmatrix} -24 & 18 & -4 \ 20 & -15 & 5 \ -5 & 2 & -1 \end{bmatrix}$$ Therefore,
-24 & 18 & -4 \\ 20 & -15 & 5 \\ -5 & 2 & -1 \end{bmatrix}$$ ### Properties of determinants Let $A,B \in M_{n\times n}(\mathbb{R})$ and $k \in \mathbb{R}$. $$\det(kA) = k^n \det A$$ $$\det(A^k) = (\det A)^k$$ $$\det(AB) = (\det A)(\det B) = (\det B)(\det A) = \det(BA)$$ $$\det(A^T) = \det(A)$$ > [!danger] Danger > > > $$\det(A+B) \neq \det(A) + \det(B)$$ ### Determinants and Area Somehow the determinant is related to the area? Also volume?? ![[attachments/Pasted image 20211124004027.png]] ### Determinants and Volume Very similar derivation as area. ![[attachments/Pasted image 20211124004000.png]]