A matrices cofactor usually denoted by is the matrix minor for the row and the column with an additional alternating sign term
The cofactor can be defined as
Where denotes the matrix minor for the row and the column