Let K {\displaystyle {}K} be a field, and let M {\displaystyle {}M} denote an n × n {\displaystyle {}n\times n} -matrix over K {\displaystyle {}K} with entries a i j {\displaystyle {}a_{ij}} . For i ∈ { 1 , … , n } {\displaystyle {}i\in \{1,\ldots ,n\}} , let M i {\displaystyle {}M_{i}} denote the ( n − 1 ) × ( n − 1 ) {\displaystyle {}(n-1)\times (n-1)} -matrix, which arises from M {\displaystyle {}M} , when we remove the first column and the i {\displaystyle {}i} -th row. Then one defines recursively the determinant of M {\displaystyle {}M} by
The determinant is only defined for square matrices. For small n {\displaystyle {}n} , the determinant can be computed easily.
For a 2 × 2 {\displaystyle {}2\times 2} -matrix
we have
For a 3 × 3 {\displaystyle {}3\times 3} -matrix M = ( a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 ) {\displaystyle {}M={\begin{pmatrix}a_{11}&a_{12}&a_{13}\\a_{21}&a_{22}&a_{23}\\a_{31}&a_{32}&a_{33}\end{pmatrix}}} , we have
This is called the rule of Sarrus.
For an upper triangular matrix
identity matrix we get
This follows with a simple induction directly from the recursive definition of the determinant.