One method for computing the determinant is called cofactor expansion.

If is an matrix, with , we define the minor of - denoted - to be the matrix derived from by deleting the row and column.
For the above matrix , compute and .

To define the determinant in the framework of cofactors, one proceeds with an inductive or recursive definition. In such a definition, we give an explicit formula in the case ; then prior to defining the determinant for matirices, we assume that the determinant has already been given for matrices. Note that if we are given an matrix , all of its minors will be of dimensions , for which we can assume the determinant has already been defined. For indices , define the cofactor of to be Then

This is sometimes also referred to as cofactor expansion along the first row.

More generally, cofactor expansion can be easily applied to an arbitrary matrix to recover the usual expression for the determinant in that case.

The following gives an example of how one would use the definition above to compute the determinant of a matrix.

Suppose . Use the above definition and the result of Example 3 above to express in the same manner as done in Example 3.