what is the difference between minor and cofactor?
Minor of an element of a square matrix is the determinant got by deleting the row and the column in which the element appears. Cofactor of an element of a square matrix is the minor of the element with appropriate sign.