A cofactor of a matrix is an important concept in linear algebra, often used in the calculation of determinants and inverses of matrices. The cofactor of an element in a matrix is computed as follows:
- Minor: For a given element aij in a matrix, first find theminor of that element. The minor of aij, denoted as Mij, is the determinant of the matrix that remains after removing the i-th row and j-th column from the original matrix.
- Cofactor: The cofactor of aij, denoted as Cij, is then obtained by multiplying the minor Mij by (−1)i+j. This factor (−1)i+j accounts for the sign change that depends on the position of the element.

The cofactors for the above matrix is given below:
- C11= (-1)2 (3 - 16) = -13
- C21= (-1)3 (-1 - (-2)) = -1
For example minor of the element a11 matrix
Formula for Cofactor of a Matrix
If we denote the Cofactor using Cij, then the cofactor of any element for
Cij = Mij × (-1)i+j
Where,
- i is the number of rows for the element under consideration,
- j is the number of columns for the element under consideration, and
- Mij is the minor of the element in the ith row and jth column.
How to Find Cofactor of a Matrix?
In order to find a cofactor matrix we need to perform the following steps:
- Step 1: Find the minor of each element of the matrix and make a minor matrix.
- Step 2: Multiply each element in the minor matrix by (-1)i+j.
Thus, we obtain the cofactor matrix.
Let us understand how to find a cofactor matrix using an example:
Example: Find the cofactor matrix of
Solution:
- Step 1: Find the minor of each element and make a minor matrix.
Minor of a11 is calculated by eliminating row 1 and column 1 and taking the determinant of the remaining matrix as follows:
M11= determinant of
\begin{bmatrix} 5 & 6\\ 8 & 9 \end{bmatrix}
M11 = 5(9) - 6(8)
M11 = 45 - 48 = -3Similarly, the minor of element a12 is calculated:
M12 = determinant of
\begin{bmatrix} 4 & 6\\ 7 & 9 \end{bmatrix}
M12 = 4(9) - 6(7)
M12 = 36 - 42 = -6
- Similarly, calculate the minors of all elements to obtain the following minor matrix:
\begin{bmatrix} -3 & -6 & -3\\ -6 & -12 & -6\\ -3 & -6 & -3 \end{bmatrix}
- Step 2: Multiply each element of the minor matrix by (-1)i+j to get the cofactor of that element i.e. Cij
C11 = M11 × (-1)1+1 = M11 = -3
C12 = M12 × (-1)1+2 = -M12 = 6
- Similarly, calculate the other cofactors to obtain the following cofactor matrix:
\begin{bmatrix} -3 & 6 & -3\\ 6 & -12 & 6\\ -3 & 6 & -3 \end{bmatrix}
Cofactor of 2×2 Matrix
Consider a 2×2 matrix as follows:
Then the cofactor matrix of any such matrix is written as:
C = \begin{bmatrix} a & -b\\ -c & d \end{bmatrix}
Cofactor of 3×3 Matrix
Consider a 3×3 matrix as follows:
Then the cofactor matrix of any such matrix is calculated by calculating the cofactors of each of the elements as follows:
Let Mij denote the minor of the element in row i and column j, then in the above matrix:
Similarly, we can calculate the minors of all the elements to get the below minor matrix:
Now cofactor of each element is calculated by multiplying the minor from the minor matrix with -1 raised to the power of the sum of row and column numbers to which that minor belongs as follows:
Let Cij denote the cofactor of minor Mij, then:
C11 = (-1)1+1M11 = M11
C12 = (-1)1+2M12 = -M12
C13 = (-1)1+3M13 = M13
Similarly, after calculating all the cofactors of each element we get the following cofactor matrix:
C= \begin{bmatrix} C_{11} & C_{12} & C_{13}\\ C_{21} & C_{22} & C_{23}\\ C_{31} & C_{32} & C_{33} \end{bmatrix}
Applications of Cofactor of a Matrix
There are various applications of Cofactor Matrix. Some of these applications are:
- Cofactor of the Matrix is used to find the adjoint of the matrix.
- Cofactor Matrix is used in the calculation of determinant of the matrix.
- It is also used to find the inverse of the matrix.
Also Check:
Solved Examples on Cofactor of a Matrix
Example 1. Find the cofactor of a11 in the matrix
Given matrix is
\begin{bmatrix} 1 & 3\\ 5 & 7 \end{bmatrix}
Minor M11 = 7
Cofactor of a11 = 7 × (-1)1+1 = 7
Example 2. Find the cofactor of a12 in the matrix
Given matrix is
\begin{bmatrix} 1&4 & 6\\ 8 & 7 & 9 \\ 4 & 0 & 5 \end{bmatrix}
Minor M12 = determinant of\begin{bmatrix} 8 & 9 \\ 4 & 5 \end{bmatrix}
M1 = 40 - 36 = 4
Cofactor C1 of a12 = M12 × (-1)1+2
C12 = 4 × (-1) = -4
Example 3. What is the cofactor matrix of
Step 1: Find the minor of each element and make a minor matrix.
Minor of a11 is calculated by eliminating the row 1 and column 1 as follows
M11 = 8
Similarly minor of element a12 is calculated by eliminating the row 1 and column 2 as follows:
M12 = 7
Similarly calculate minors of all elements to obtain the following minor matrix:\begin{bmatrix} 8 & 7\\ 6 & 3 \end{bmatrix} Step 2: Multiply each element of the minor matrix by (-1)i+j to get the cofactor of that element i.e. Cij
Cofactor of M11 is calculated as follows:
C11 = M11 × (-1)1+1 = M11 = 8
Cofactor of M12 is calculated as follows:
C12 = M12 × (-1)1+2 = -M12 = -7
Similarly calculate the other cofactors to obtain the following cofactor matrix:\begin{bmatrix} 8 & -7\\ -6 & 3 \end{bmatrix}
Example 4. What is the cofactor matrix of
Step 1: Find the minor of each element and make a minor matrix.
M11 = -4
M12 = -3
Similarly calculate minors of all elements to obtain the following minor matrix:\begin{bmatrix} -4 & -3\\ -6 & 0 \end{bmatrix} Step 2: Multiply each element of the minor matrix by (-1)i+j to get the cofactor of that element i.e. Cij
C11 = M11 × (-1)1+1 = M11 = -4
C12 = M12 × (-1)1+2 = -M12 = -3
Similarly calculate the other cofactors to obtain the following cofactor matrix:\begin{bmatrix} -4 & 3\\ 6 & 0 \end{bmatrix}
Example 5. What is the cofactor matrix of
Step 1: Find the minor of each element and make a minor matrix.
M11 = determinant of\begin{bmatrix} 9 & 2\\ 6 & 0 \end{bmatrix}
M11 = 0 -12 = -12
M12 = determinant of\begin{bmatrix} 7 & 2\\ 1 & 0 \end{bmatrix}
M12 = 0 - 2 = -2
Similarly calculate minors of all elements to obtain the following minor matrix:\begin{bmatrix} -12 & -2 & -33\\ -36 & -6 & 8\\ -46 & -38 & -10 \end{bmatrix} Step2 : Multiply each element of the minor matrix by (-1)i+j to get the cofactor of that element i.e. Cij
C11 = M11 × (-1)1+1 = M11 = -12
C12 = M12 × (-1)1+2 = -M12 = 2
Similarly calculate the other cofactors to obtain the following cofactor matrix:\begin{bmatrix} -12 & 2 & -33\\ 36 & -6 & -8\\ -46 & 38 & -10 \end{bmatrix}
Practice Problems on Cofactor of a Matrix
Problem 1: Find the cofactor of the element in the second row and third column:
Problem 2: Find the cofactor matrix of
Problem 3: Find the cofactor matrix of
Problem 4: Find the cofactor matrix of
Problem 5: Find the cofactor matrix of
Solutions of Practice Problems:
1.
\begin{bmatrix}-100 & 95 & 6 \\62 & -48 & 5 \\-9 & 14 & -6\end{bmatrix}
2.\begin{bmatrix} 5 & 15 & -7\\ -35 & 32 & 49\\ 31 & -44 & -16 \end{bmatrix}
3.\begin{bmatrix} -13 & -40 & 32\\ 3 &20 & -12\\ -2 & -20 & 8 \end{bmatrix}
4.\begin{bmatrix} -1 & -2 & 1\\ 0 & 6 & -1\\ 0 & -1 & 0 \end{bmatrix}
5.\begin{bmatrix} 500 & 14 & 358\\ 18 &188 & -142\\ -142 & 102 & -12 \end{bmatrix}