<aside> <img src="/icons/list_gray.svg" alt="/icons/list_gray.svg" width="40px" />

Table of Contents

</aside>

Minor Matrix


To understand the cofactor matrix, we first need to introduce the concept of a minor.

image.png

For a square matrix $A$

image.png

Simple Example : $2{\times}2$ Matrix

Advanced Example : $3{\times}3$ Matrix

Cofactor Matrix


<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" />

What’s Cofactor?

The cofactor $C_{ij}$ is calculated by multiplying the minor $M_{ij}$ by a sign factor.

$$ C_{ij} = (-1)^{i+j} \cdot \det[M_{ij}] $$

The sign alternates depending on the position $(i,j)$ in the matrix.

$$ \begin{bmatrix}

$$

image.png

Cofactor matrix is formed by replacing each element $A_{ij}$ of a square matrix $A$ with its corresponding cofactor $C_{ij}$.

Example

$$ C_A = \begin{bmatrix} 37 & 38 & 17 & -31\\ 28 & 17 & -13 & -7\\ -45 & -18 & 24 & 33\\ -5 & -31 & -7 & 23 \end{bmatrix} $$

Adjoint Matrix


Adjoint matrix is defined as the transpose of the cofactor matrix.

$$ \text{adj}(A) = C_A^T $$

Example

$$ C_A = \begin{bmatrix} 37 & 38 & 17 & -31\\ 28 & 17 & -13 & -7\\ -45 & -18 & 24 & 33\\ -5 & -31 & -7 & 23 \end{bmatrix} $$

$$ \text{adj}(A) = C_A^T = \begin{bmatrix} 37 & 28 & -45 & -5\\ 38 & 17 & -18 & -31\\ 17 & -13 & 24 & -7\\ -31 & -7 & 33 & 23 \end{bmatrix} $$

Key Table - Relationship with Determinant


| --- | --- | --- |

Practice with Python


Python makes it easy to calculate matrix minors, cofactors, adjoints. Let's implement each concept using the NumPy.

Get Minor Matrix