Open In App

Cofactor of a Matrix

Last Updated : 28 Sep, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Cofactor of a Matrix or Cofactor matrix is the matrix formed by the Cofactor of each element of any matrix where cofactor is a number that is obtained by multiplying the minor of the element of any given matrix with -1 raised to the power of the sum of the row and column number to which that element belongs. This matrix formed with the cofactor of each element is called the Cofactor Matrix or Cofactor of Matrix.

Cofactors and Minors are very important concepts in Linear Algebra which further help us find the determinants, adjoint, and inverse of the matrix as well. This article explores all the different aspects of the concept of Cofactor of Matrix including the steps to find cofactor as well as cofactor formula.

What is Cofactor of a Matrix?

A cofactor matrix is a matrix that comprises the cofactors of each element in a matrix. A cofactor is a number obtained when the minor Mij of the element aij is multiplied by the (-1)i+j. i and j represent the row and column of the particular element whose cofactor is being determined. Minor of an element is obtained by eliminating the row and column of that particular element i.e. eliminating row i and column j and then taking the remaining part of the matrix. Then we calculate the determinant of the remaining part which gives us the value of the minor of that particular element. 

Cofactor of a matrix Definition

The cofactor of an element in a matrix is determined by the minor of that element, which is essentially the determinant of the submatrix obtained by removing the row and column containing the element in question.

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.

What is Minor?

A minor of a particular element is obtained by eliminating the row and column of the matrix to which that particular element belongs and then finding the determinant of the remaining part. The matrix formed by combining all the minors is called the minor matrix. For example minor of the element a11 matrix \begin{bmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{bmatrix}       is calculated as:

M_{11} = det\begin{bmatrix} 5 & 6\\ 8 & 9 \end{bmatrix}\\ = 45-48\\ = -3

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 \begin{bmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{bmatrix}

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 = -3

  • Similarly, the minor of element a12 is calculated by eliminating row 1 and column 2 and taking the determinant of the remaining matrix as follows:

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
  • Cofactor of M11 is calculated as follows:

C11 = M11 × (-1)1+1 = M11 = -3

  • Cofactor of M12 is calculated as follows:

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:

A = \begin{bmatrix} a & b\\ c & d \end{bmatrix}

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:

A = \begin{bmatrix} a & b & c\\ d & e&f\\ g&h&i \end{bmatrix}

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:

M_{11} = det \begin{bmatrix} e&f\\ h&i \end{bmatrix}

M_{12} = det \begin{bmatrix} d&f\\ g&i \end{bmatrix}

Similarly, we can calculate the minors of all the elements to get the below minor matrix:

M = \begin{bmatrix} M_{11} & M_{12} & M_{13}\\ M_{21} & M_{22}&M_{23}\\ M_{31}&M_{32}&M_{33} \end{bmatrix}

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:

Related Resources,

Solved Examples on Cofactor of a Matrix

Example 1. Find the cofactor of a11 in the matrix \begin{bmatrix} 1 & 3\\ 5 & 7 \end{bmatrix}

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 a22 in the matrix \begin{bmatrix} 1&4 & 6\\ 8 & 7 & 9 \\ 4 & 0 & 5 \end{bmatrix}

Given matrix is \begin{bmatrix} 1&4 & 6\\ 8 & 7 & 9 \\ 4 & 0 & 5 \end{bmatrix}

Minor M22 = determinant of \begin{bmatrix} 8 & 9 \\ 4 & 5 \end{bmatrix}

M22 = 40 – 36 = 4

Cofactor C22 of a22 = M22 × (-1)2+1

C22 = 4 × (-1) = -4

Example 3. What is the cofactor matrix of \begin{bmatrix} 3 & 6\\ 7 & 8 \end{bmatrix}

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 \begin{bmatrix} 0 & -6\\ -3 & -4 \end{bmatrix}

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 = -4

Similarly minor of element a12 is calculated by eliminating the row 1 and column 2 as follows:

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

Cofactor of M11 is calculated as follows:

C11 = M11 × (-1)1+1 = M11 = -4

Cofactor of M12 is calculated as follows:

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 \begin{bmatrix} 2&4 & 6\\ 7 & 9&2\\ 1& 6 & 0 \end{bmatrix}

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 and taking determinant of remaining matrix as follows:

M11 = determinant of \begin{bmatrix} 9 & 2\\ 6 & 0 \end{bmatrix}

M11 = 0 -12 = -12

Similarly minor of element a12 is calculated by eliminating the row 1 and column 2 and taking determinant of remaining matrix as follows:

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

Cofactor of M11 is calculated as follows:

C11 = M11 × (-1)1+1 = M11 = -12

Cofactor of M12 is calculated as follows:

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: A = \begin{bmatrix} 2 & 3 & 4\\ 6 &6 & 5\\ 7 & 8 & -10 \end{bmatrix}    .

Problem 2: Find the cofactor matrix of A = \begin{bmatrix} 12 & 7 & 4\\ 4 &1 & 5\\ 7 & 0 & 5 \end{bmatrix}    .

Problem 3: Find the cofactor matrix of A = \begin{bmatrix} 4 & 0 & 1\\ 16 &2 & 9\\ 8 & 3 & 7 \end{bmatrix}    .

Problem 4: Find the cofactor matrix of A = \begin{bmatrix} 1 & 0 & 0\\ 1 &0 &1\\ 4& 1 & 6 \end{bmatrix}    .

Problem 5: Find the cofactor matrix of A = \begin{bmatrix} 3 & 5 & 7\\ 9 &11 & -13\\ -17 & 19 & 23 \end{bmatrix}    .

FAQs on Cofactor of a Matrix

1. What is Cofactor of a Matrix?

Cofactor matrix is the matrix formed by the Cofactor of each element of any matrix where cofactor is a number that is obtained by multiplying the minor of the element of any given matrix with -1 raised to the power of the sum of the row and column number to which that element belongs.

2. What is the Formula for the Cofactor of Element?

For any element in ith row and jth column, its cofactor is given by Cij = Mij × (-1)i+j.

3. How do you Find the Cofactor of a Matrix?

To find the cofactor of a matrix, first calculate the determinant of the matrix formed by excluding the row and column of the element for which you want the cofactor. Then, apply the appropriate sign (+/-) based on the element’s position in the matrix.

4. How can we Find Adjoint using Cofactor Matrix?

Adjoint of the matrix is calculated by taking the transpose of the cofactor matrix.

5. What is the Cofactor of 2×2 matrix?

If \begin{bmatrix} a & b\\ c & d \end{bmatrix}       is a 2×2 matrix then its cofactor matrix is \begin{bmatrix} a & -b\\ -c & d \end{bmatrix}

6. What are Some Applications of the Cofactor Matrix?

Cofactor matrix has the following applications:

  • To find the adjoint of the matrix.
  • To calculate determinant of the matrix.
  • To find the inverse of the matrix.

7. What is the minor. How is it different from co-factor of matrix?

The minor of a matrix is the determinant of the matrix formed by excluding the row and column of the element for which you want to find the cofactor, whereas the co-factor is the same as the minor, but its sign is changed based on the position of the element.



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads