Definition (minors, cofactors)
For an $n\times n$ matrix $A$, define $A^{ij}$ be the $(n-1)\times(n-1)$ matrix in which row $i$ and column $j$ of $A$ are removed, $$ A^{ij} = \pmat{ A_{11} & \ldots & A_{1(j-1)} & A_{1(j+1)} & \ldots & A_{1n} \\ \vdots & & \vdots & \vdots & & \vdots \\ A_{(i-1)1} & \ldots & A_{(i-1)(j-1)} & A_{(i-1)(j+1)} & \ldots & A_{(i-1)n} \\ A_{(i+1)1} & \ldots & A_{(i+1)(j-1)} & A_{(i+1)(j+1)} & \ldots & A_{(i+1)n} \\ \vdots & & \vdots & \vdots & & \vdots \\ A_{n1} & \ldots & A_{n(j-1)} & A_{n(j+1)} & \ldots & A_{nn} \\ }.$$
-
The minor of the $ij$-th element of $A$ is defined as $$ M_{ij} = \det A^{ij}. $$
-
The cofactor of the $ij$-th element of $A$ is defined as $$ \Delta_{ij} = (-1)^{i-j} M_{ij}. $$