Minors and 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}. $$
For any $I=1,2,\ldots n$ of an $n\times n$ matrix $A$, the determinant of $A$ can be expanded along column $I$ as $$ \det A = \sum_{J_I=1}^n A_{J_I I} \Delta_{J_I I} $$ or along row $I$ as $$ \det A = \sum_{J_I=1}^n A_{IJ_I} \Delta_{IJ_I}. $$
For an $n\times n$ matrix $A$ and row indices $i\neq I$, $$ \sum_{k=1}^n A_{ik} \Delta_{Ik} = 0. $$ Similarly for column indices $j\neq J$, $$ \sum_{k=1}^n A_{kj} \Delta_{kJ} = 0. $$