BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon122 Learners

Last updated on October 24, 2025

Cofactor Matrix

Professor Greenline Explaining Math Concepts

The cofactor of a matrix is evaluated by arranging the cofactor of all elements in a matrix. It is also given by the product of the minor of an element to (-1) to the power of the sum of the element's positional values. In this article, we will learn about the cofactor matrix, how to find it, and its real-life applications in more detail.

Cofactor Matrix for US Students
Professor Greenline from BrightChamps

What is the Cofactor Matrix?

A matrix formed using the cofactors of its elements is called a cofactor matrix.

 

  • To find the cofactor of an element, we need to multiply its minor \((M^{ij}) \ by \ (-1)^{(i + j)}\).

 

  • Here, i and j are the positional values, that is, the row number and column number of that element. 

 

  • If the minor of an element is Mij, its cofactor ( Cij ) is:

    \(C^{ij} = (-1)^{(i + j)} × M^{ij}\)

 

To obtain the cofactor matrix, we first find the minor of each element in the original matrix. Then, we use those minors to calculate the cofactors.


 

 

For the minor matrix (M), calculate the minor for each element of the original matrix -

 

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

 

​​\(\ Cofactor \ Matrix = \begin{bmatrix} +M_{11} & -M_{12} & +M_{13} \\ -M_{21} & +M_{22} & -M_{23} \\ +M_{31} & -M_{32} &+M_{33} \end{bmatrix}\)

 

\(\ Cofactor \ Matrix = \begin{bmatrix} C_{11} & C_{12} & C_{13} \\ C_{21} & C_{22} & C_{23} \\ C_{31} & C_{32} & C_{33} \end{bmatrix}\)

Professor Greenline from BrightChamps

How to Find the Cofactor of a Matrix?

For the cofactor of a matrix, few steps needed are as follows:

 

  • Step 1: First, find the minor of each element to form a minor matrix.

 

  • Step 2: To find the cofactor, multiply each minor by (-1)(i + j).

 

  • Step 3: Use these cofactors to create a matrix.

 

 

Let’s learn with an example:

Determine the cofactor matrix.

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9\end{bmatrix}\)

 

  • Step 1: Finding the minors
     
  1. M11 = det \(\begin{bmatrix} 5& 6 \\ 8 & 9\end{bmatrix}\)

    M11 = \((5 × 6) - ( 6 × 8) = -3\) 

     

  2. M₁₂ = det \( \begin{bmatrix} 4& 6 \\ 7 & 9\end{bmatrix}\)

    \(M₁₂ = (4 × 9) - ( 6 × 7) = -6\)
     
  3. Repeat these steps for every element in the matrix.

    Minor matrix: \(\begin{bmatrix} -3 & -6 & -3 \\ -6 & -12 & -6 \\ -3 & -6 & -3\end{bmatrix}\)
     
  • Step 2: Finding the Cofactor matrix:
    Multiplying each minor by (-1)(i + j)

    Cofactor matrix: \(\begin{bmatrix} -3 & 6 & -3 \\ 6 & -12 & 6 \\ 3 & 6 & -3\end{bmatrix} \)

 


Cofactor of a 2 𝗑 2 matrix:

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


So, the cofactor matrix is: \( \begin{bmatrix} d & -b \\ -c & a\end{bmatrix}\)

 


Cofactor of a 3 𝗑 3 matrix:

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

  1. To find the cofactor matrix of A, we need to determine the cofactor for each element one by one.

    Here, Mij represents the minor of the element in row i and column j,

    \(M_{11} = \begin{vmatrix} e & f \\h & i \end{vmatrix}\\ \space \\M_{12} = \begin{vmatrix} d & f \\ g& i \end{vmatrix}\)
     
  2. Calculating the minor of each element in the matrix results in the following matrix:

    \(M = \begin{bmatrix} M_{11} & M_{12} & M_{13} \\ M_{21} & M_{22} &M_{23} \\ M_{31} & M_{32} &M_{33} \end{bmatrix}\)
     
  3. Now, we calculate the cofactor of each element by multiplying the corresponding minor from the minor matrix with (-1)i +j, where i and j are the row and column numbers of that element.

    C11 = (-1)1 + 1 ⋅ M11 = M11
    C12 = (-1)1 + 2 ⋅ M12 = - M12
    C13 =  (-1)1 + 3 ⋅ M13 = M13
     
  4. Repeat the steps to calculate each cofactor to obtain the cofactor matrix:

    \(\ Cofactor \ Matrix = \begin{bmatrix} C_{11} & C_{12} & C_{13} \\ C_{21} & C_{22} & C_{23} \\ C_{31} & C_{32} & C_{33} \end{bmatrix}\)

 

Professor Greenline from BrightChamps

How to Apply a Co-factor Matrix?

The cofactor matrix plays an important role for calculating the determinant of a matrix. Let’s look at each of them:

 

  • Determinant of a Matrix
     
  1. For calculating the determinant of a matrix, choose any column or row from the matrix.
     
  2. Multiply each element in column or row by its corresponding cofactor.
     
  3. Finally, add all these values to get a determinant. 

    \(A = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} &a_{23} \\ a_{31} & a_{32} &a_{33} \end{bmatrix}\)

    For matrix A, the determinant is represented by |A|: 
    |A| = a11C11 + a12C12 + a13C13

    Here: 
  • Cij is the cofactor of the element aij, which can be calculated by:
    \(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)

    Where:
  • Mij represents the minor of aij, which is the determinant of the (n – 1) × (n – 1) matrix formed by removing the ith row and jth column from matrix A.

     
  • Adjoint of a Matrix

    We determine the adjoint of a matrix using the following steps:
     
  1. We first calculate the cofactor matrix:

    \(\ Cofactor \ Matrix = \begin{bmatrix} C_{11} & C_{12} & C_{13} \\ C_{21} & C_{22} & C_{23} \\ C_{31} & C_{32} & C_{33} \end{bmatrix}\)
     
  2. Then take the transpose of the cofactor matrix to obtain the adjoint:

    \(Adj (A) = \begin{bmatrix} C_{11} & C_{21} & C_{31} \\ C_{12} & C_{22} & C_{32} \\ C_{13} & C_{23} & C_{33} \end{bmatrix}\)

 

 

  • Inverse of a Matrix

    When |A| is not equal to 0, the inverse of a matrix A will be represented as:

    \(A^{-1} = {1 \over{ |A|} } \times  { Adj (A)}\)

    To find the inverse:

 

  1. We first find the determinant.
     
  2. Then, determine the adjoint.
     
  3. Now, divide each element of the adjoint by the determinant.
Professor Greenline from BrightChamps

Tips and Tricks to Master Cofactor Matrix

Students from small grades can face difficulties when solving cofactor matrix. To make the process easy and efficient, here are some common tips:

 

  1. Use the sign pattern to find the correct signs when calculating cofactor matrix.
     
  2. To find the adjoint, take the transpose of the cofactor matrix.
     
  3. Remember the relationship: \(A^{-1} = {1 \over{ |A|} } \times  { Adj (A)}\), to find the inverse.
     
  4. To find the adjoint of a 2 × 2, simply interchange the non-diagonal elements and change the sign of the diagonals elements.
     
  5. First practice 2 × 2 matrix to understand the process, and then move to the 3 × 3 matrix.
     

Parents Tips: Encourage your child to practice by solving different problems. You can also use a cofactor matrix calculator to check your children's calculation and verify final answers.

 

Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Cofactor Matrix

Solving linear algebraic problems requires an understanding of cofactor matrices. However, students often make errors when dealing with them. Here are a few common mistakes and ways to avoid them:

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Confusion Between Minor and Cofactor
Some students mistakenly assume that the minor and the cofactor are the same.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Keep in mind that the minor means the determinant of the smaller matrix. On the other hand, a cofactor has a sign based on its position.

To avoid this error, use the formula, \(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)
Here, Mij represents the minor of element aij.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Errors in Eliminating Row or Column
Students might mistakenly remove the wrong row and column when determining the minor. 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Always check the position of the element before removing the row or column.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Error in Cofactor Order
Placing the cofactors incorrectly can lead to errors in the matrix.
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Every cofactor needs to be placed in its original position in the cofactor matrix (i, j).

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Incorrect Application of Cofactor Matrix 
Trying to use the cofactor matrix directly to find the inverse of a matrix. This often leads to incorrect results.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Before using the cofactor matrix to find the inverse, we need to find the adjoint of the matrix. To do this, transpose the cofactor matrix, i.e., adj(A) = Transpose of the cofactor matrix.

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Errors in Sign Pattern
Forgetting to apply the correct signs while calculating the cofactor matrix. The sign pattern should follow the checkerboard pattern of alternating plus and minus signs  (i.e., +, -, +, …).

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Keep in mind the checkerboard pattern of signs, which begins with + in the top left corner:
 

 

The formula to be used is: \(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)

arrow-right
arrow-right
Professor Greenline from BrightChamps

Real-Life Applications of Cofactor Matrix

As we have learned, the cofactor matrix plays a vital role in various mathematical operations, such as finding the inverse of a matrix. We will now look at how it can be applied in real-life situations beyond mathematics. 

 

  • In physics and engineering, people use Cramer’s rule to solve systems of equations. It is also used to solve equations for current and voltages in electrical circuits.

 

  • The cofactor matrix is widely applied in cryptography for coding and decoding secret messages. Matrices are also used to program the face recognition to AI.

 

  • Businesses utilize cofactor matrices in mathematical models to analyze and forecast pricing strategies, market demand, and sales trends, helping them make better decisions.

 

  • In computer animations and video games, the turning, jumping of a character or throwing of an item is programmed using matrices and their cofactors.

 

  • To located your position using GPS, computers use algorithms based on matrix calculation. Matrix calculation are also used to track satellites, guide spacecraft in outer space.
Max from BrightChamps Saying "Hey"
Hey!

Solved Examples of Cofactor Matrix

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Find the cofactor matrix of given matrix.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\( \begin{bmatrix} 4& -3 \\ -2 & 1\end{bmatrix}\)

Explanation

Given Matrix: \( \begin{bmatrix} 1 & 2 \\ 3 & 4\end{bmatrix}\)

 

  • We first identify the elements and positions
     
  1. a₁₁ = 1, a₁₂ = 2
     
  2. a₂₁ = 3, a₂₂ = 4

 

  • Finding the minors:
  1. M₁₁ = det[4] = 4
  2. M₁₂ = det[3] = 3
  3. M₂₁ = det[2] = 2
  4. M₂₂ = det[1] = 1

 

  • Applying the cofactor signs (+, −, −, +)
    Using \(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)


So, the cofactor matrix is: \( \begin{bmatrix} 4& -3 \\ -2 & 1\end{bmatrix}\)

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 2

Find the cofactor matrix of given matrix B

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\( \begin{bmatrix} 0& -3 & 3\\ -1 & -3 & -2 \\ 0 & 3 &0\end{bmatrix}\)

Explanation

Given Matrix: \( \begin{bmatrix} 2& 0 & 1\\ 3& 0 & 0 \\ 5 & 1 &1\end{bmatrix}\)

 

  1. Let’s find the minors:

    \(M_{11} = \begin{vmatrix} 0 & 0 \\1 & 1\end{vmatrix} = 0 \\ M_{12} = \begin{vmatrix} 3 & 0 \\5 & 1 \end{vmatrix} = 3\\ M_{13} = \begin{vmatrix} 3 & 0 \\5 & i \end{vmatrix} = 3\)

    Similarly, find the minor for all elements.
     
  2. Now, we apply signs (+, -, +, -, +, -, +, -, +).

 

So, the cofactor matrix is: \( \begin{bmatrix} 0& -3 & 3\\ -1 & -3 & -2 \\ 0 & 3 &0\end{bmatrix}\)

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 3

Find the cofactor matrix of giiven matrix D

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\(\begin{bmatrix} 2& -2 & 2\\ 2 & 3 & -3 \\ 0 & 10&0\end{bmatrix}\)

Explanation

Given Matrix: \( D = \begin{bmatrix} 3& 0 & 2\\ 2 & 0 & -2 \\ 0 & 1&1\end{bmatrix}\)

 

  1. First row:
     
  2. Second row:
     
  3. Third row:

 

So, the cofactor matrix is \(\begin{bmatrix} 2& -2 & 2\\ 2 & 3 & -3 \\ 0 & 10&0\end{bmatrix}\)

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 4

Find the cofactor matrix of given matrix J

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\(\begin{bmatrix} 4&-2\\ -1 & 3 \end{bmatrix}\)

Explanation

Given Matrix: \(\begin{bmatrix} 3&1\\ 2 & 4 \end{bmatrix}\)

 

We find the cofactor matrix using the formula:

\(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)

 

Step-by-step:

 

  1. \(C_{11}= (−1)^{1+1} ⋅ det[4] = (+1) (4) = 4\)
  2. \(C_{12} = (-1)^{1+2} ⋅ det[2] = (−1)(2) = −2\)
  3. \(C_{21}= (−1)^{2+1} ⋅ det[1] = (−1) (1) = −1\)
  4. \( C_{22} = (−1)^{2+2} ⋅ det[3] = (+1)(3) =3\)

 

So, the cofactor matrix is: \(\begin{bmatrix} 4&-2\\ -1 & 3 \end{bmatrix}\)

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 5

Find the cofactor matrix of the given 3 by 3 matrix

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

\(\begin{bmatrix} 24&5 & -4\\ -12 & 3& 2 \\-2 & -5 & 4 \end{bmatrix}\)

Explanation

Given Matrix: \(\begin{bmatrix} 1&2 & 3\\ 0 & 4& 5 \\1 &0 & 6 \end{bmatrix}\)

 

Using the following formula for calculating cofactors of each element.
\(Cᵢⱼ = (–1)⁽ⁱ\ ⁺\ ʲ⁾ × Mᵢⱼ\)

 

  1. First row:


     
  2. Second row:


     
  3. Third row:


     


So, the cofactor matrix is: \(\begin{bmatrix} 24&5 & -4\\ -12 & 3& 2 \\-2 & -5 & 4 \end{bmatrix}\)

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Ray Thinking Deeply About Math Problems

FAQs on Cofactor Matrix

1.How to explain cofactor matrix to a child?

A cofactor matrix is a matrix in which every element is the cofactor of its corresponding element in the original square matrix.

Math FAQ Answers Dropdown Arrow

2.Why do my child need cofactor matrix?

Your child needs a cofactor matrix to compute the determinant by cofactor expansion and to determine the inverse of a matrix.

Math FAQ Answers Dropdown Arrow

3.How can I help my child in learning cofactor matrix?

  1. Encourage your child to practice problem.
  2. Use checkered patterns for memorize signs in cofactor matrix.
  3. Help him memorize formulas using cards or quizzes. 

Math FAQ Answers Dropdown Arrow

4.Will my child use cofactor matrix in another math problems?

Yes. Children will use cofactor matrix to find the adjoint and inverse of a matrix. 

Math FAQ Answers Dropdown Arrow

5.My child has calculate the adjugate matrix and the cofactor matrix the same. Is that correct?

No. The adjugate matrix is defined as the transpose of the cofactor matrix., they are not the same.

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom