BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon103 Learners

Last updated on September 26, 2025

Cofactor Matrix

Professor Greenline Explaining Math Concepts

When you remove the row and column of a specific element from a matrix, the determinant of the remaining smaller matrix is called the minor of that element. The minor matrix (M) is formed by calculating the minor of each element of the original matrix. To find the cofactor of an element, we multiply its minor by (-1)i + j, where i and j stand for the row and column numbers of that element. This cofactor is often denoted as Cij, and it equals (-1)i + j ⋅ Mij. Arranging all these cofactors together to form a matrix gives us the cofactor matrix. 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 (Mij) 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:

 Cij = (-1)(i + j) × Mij

 

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.


The minor of the element a12 is:

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

                          

  
 

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:

Step 1: Finding the minors
M11 = det

M₁₂ = det

 

Repeat these steps for every element in the matrix.
Minor matrix:

 

Multiplying each minor by (-1)(i + j)
Cofactor matrix:


Cofactor of a 2 𝗑 2 matrix:
If A = 

So, the cofactor matrix is:


Cofactor of a 3 𝗑 3 matrix:
 
To find the cofactor matrix of A, we need to determine the cofactor for each element one by one.
Determine the cofactors of each of its elements:

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


Calculating the matrix of each element in the matrix results in the following matrix:

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

Repeat the steps to calculate each cofactor to obtain the cofactor matrix:

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

For calculating the determinant of a matrix, choose any column or row from the matrix. Multiply each element in column or row by its corresponding cofactor. Finally, add all these values to get a determinant. 
 
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:

Cij = (-1)i+j ⋅ Mij

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:
Step 1: We first calculate the cofactor matrix:

 
Now, let’s take the transpose of the cofactor matrix to obtain the adjoint:

 

Inverse of a Matrix

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

A-1 = 1/ |A|  ⋅ Adj (A)

To find the inverse:

  • We first find the determinant.
     
  • Then, determine the adjoint.
     
  • Now, divide each element of the adjoint by the determinant.
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.

 

  • The cofactor matrix is widely applied in cryptography for coding and decoding secret messages.

 

  • Businesses utilize cofactor matrices in mathematical models to analyze and forecast pricing strategies, market demand, and sales trends, helping them make better decisions.
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, Cij = (-1)i+j × Mij
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 + at the top left corner:

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

arrow-right
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

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

Explanation

We first identify the elements and positions

  • a₁₁ = 1, a₁₂ = 2
     
  • a₂₁ = 3, a₂₂ = 4


Finding the minors:

  • M₁₁ = det[4] = 4
     
  • M₁₂ = det[3] = 3
     
  • M₂₁ = det[2] = 2
     
  • M₂₂ = det[1] = 1


Applying the cofactor signs (+, −, −, +)

Using Cᵢⱼ = (−1)⁽ⁱ⁺ʲ⁾ × Mᵢⱼ

So, the cofactor matrix is:

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

Problem 2

Find the cofactor matrix of

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

 


 

Explanation

Let’s find the minors:

Similarly, find the minor for all elements.

Now, we apply signs (+, -, +, -, +, -, +, -, +).

So, the cofactor matrix is:

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

Problem 3

Find the cofactor matrix of

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

Explanation

First row:

Second row:


Third row:

So, the cofactor matrix is 

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

Problem 4

Find the cofactor matrix of

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

Explanation

We find the cofactor matrix using the formula:

Cij = (−1)i+j ⋅ Mij

Where, Mij is the minor of element aij​, i.e., the determinant of the submatrix formed by deleting the i-th row and j-th column.

Step-by-step:

C11= (−1)1+1 ⋅ det[4] = (+1) (4) = 4

C12= (−1)1+2 ⋅ det[2] = (−1)(2) = −2

C21= (−1)2+1 ⋅ det[1] = (−1) (1) = −1

C22= (−1)2+2 ⋅ det[3] = (+1)(3) =3

So, the cofactor matrix is:    

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

Problem 5

Find the cofactor matrix of the matrix

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

Explanation

The cofactor of an element aij is given by:
Cofactorij = (-1)i + j ⋅ Mij
Here, Mij is the minor of element aij, found by deleting the i-th row and j-th column and calculating the determinant of the resulting 2 × 2 matrix.
First row:

Second row:

Third row:


So, the cofactor matrix is:

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

FAQs on Cofactor Matrix

1.What is a cofactor matrix?

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 is the cofactor matrix used?

The primary functions of the cofactor matrix are to compute the determinant by cofactor expansion and to determine the inverse of a matrix.

Math FAQ Answers Dropdown Arrow

3.What kind of matrices have a cofactor matrix?

Only square matrices have cofactor matrices as they have an equal number of rows and columns.

Math FAQ Answers Dropdown Arrow

4.What makes a cofactor different from a minor?

The determinant of a smaller matrix formed by eliminating one row and one column is called a minor. A cofactor is obtained by multiplying the minor by (−1) i + j, where i and j are the row and column numbers.

Math FAQ Answers Dropdown Arrow

5.Are the adjugate matrix and the cofactor matrix the same?

No, the adjugate matrix is defined as the transpose of the cofactor matrix.

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