#math/linear-algebra #flashcards/linear-algebra
## Diagonal Matrix
The determinant of a `diagonal matrix`^[A diagonal matrix is a matrix whose entries off the main diagonal are all zero.], denoted $\text{diag}\{ a_{1}, \ldots{}, a_{n} \},$
$
\begin{pmatrix}
a_1 & 0 & \cdots & 0 \\
0 & a_2 & \cdots & 0 \\
\vdots & \vdots & \ddots & 0 \\
0 & 0 & \cdots & a_n
\end{pmatrix}
$
Has $\det (\text{diag}\{ a_{1}, \ldots{}, a_{n} \})=a_{1}a_{2}\ldots a_{n}.$ This is easily seen with scalar multiplication of each column vector along with $\det I=1.$
## Triangular Matrix
Similarly, the determinant of a triangular matrix^[A triangular matrix is one that is either Upper Triangular (zeros below the diag) or Lower Triangular (all zeros above the diag).] equals to the product of the diagonal entries,
$\det A=a_{1,1}a_{2,2}\ldots a_{n,n}.$
An intuitive interpretation can be found by applying $(1.4)$ from [[3A2 - Determinant Motivations]] (use column adds to kill non-pivot values while not changing the determinant).
For a triangular matrix, the determinant is equal to %%::%% the product of the diagonal entries.
<!--SR:!fsrs,2026-12-01T00:00:53.886Z,4,10.96433194,2.11121424,2,2,0,0,2026-11-27T00:00:53.886Z-->