# Minor (linear algebra)

In linear algebra, a minor of a matrix A is the determinant of some smaller square matrix generated from A by removing one or more of its rows and columns. Minors obtained by removing just one row and one column from square matrices (first minors) are required for calculating matrix cofactors, which are useful for computing both the determinant and inverse of square matrices. The requirement that the square matrix be smaller than the original matrix is often omitted in the definition.

## Definition and illustration
### First minors

If A is a square matrix, then the minor of the entry in the i-th row and j-th column (also called the (i, j) minor, or a first minor) is the determinant of the submatrix formed by deleting the i-th row and j-th column. This number is often denoted M$_{i,j}$. The (i, j) cofactor is obtained by multiplying the minor by (−1)$^{i+j}$.
To illustrate these definitions, consider the following 3 × 3 matrix,
${\begin{bmatrix}1&4&7\\3&0&5\\-1&9&11\\\end{bmatrix}}$
To compute the minor M$_{2,3}$ and the cofactor C$_{2,3}$, we find the determinant of the above matrix with row 2 and column 3 removed.
$M_{2,3}=\det {\begin{bmatrix}1&4&\Box \\\Box &\Box &\Box \\-1&9&\Box \\\end{bmatrix}}=\det {\begin{bmatrix}1&4\\-1&9\\\end{bmatrix}}=9-(-4)=13$
So the cofactor of the (2,3) entry is
$C_{2,3}=(-1)^{2+3}(M_{2,3})=-13.$

### General definition

Let A be an m × n matrix and k an integer with 0 < k ≤ m, and k ≤ n. A k × k minor of A, also called minor determinant of order k of A or, if m = n, the (n − k)th minor determinant of A (the word "determinant" is often omitted, and the word "degree" is sometimes used instead of "order") is the determinant of a k × k matrix obtained from A by deleting m − k rows and n − k columns. Sometimes the term is used to refer to the k × k matrix obtained from A as above (by deleting m − k rows and n − k columns), but this matrix should be referred to as a (square) submatrix of A, leaving the term "minor" to refer to the determinant of this matrix. For a matrix A as above, there are a total of (m/k)⋅(n/k){\textstyle {m \choose k}\cdot {n \choose k}} minors of size k × k. The minor of order zero is often defined to be 1. For a square matrix, the zeroth minor is just the determinant of the matrix.
Let ${\begin{aligned}I&=1\leq i_{1}<i_{2}<\cdots <i_{k}\leq m,\\[2pt]J&=1\leq j_{1}<j_{2}<\cdots <j_{k}\leq n,\end{aligned}}$ be ordered sequences (in natural order, as it is always assumed when talking about minors unless otherwise stated) of indexes. The minor det((A$_{ip, jq}$)$_{p, q=1, …, k}$){\textstyle \det {\bigl(\mathbf {A} _{i_{p}, j_{q}})_{p, q=1, \ldots , k}{\bigr )}} corresponding to these choices of indexes is denoted $\det _{I,J}A$ or $\det \mathbf {A} _{I,J}$ or $[\mathbf {A} ]_{I,J}$ or $M_{I,J}$ or $M_{i_{1},i_{2},\ldots ,i_{k},j_{1},j_{2},\ldots ,j_{k}}$ or $M_{(i),(j)}$ (where the (i) denotes the sequence of indexes I, etc.), depending on the source. Also, there are two types of denotations in use in literature: by the minor associated to ordered sequences of indexes I and J, some authors mean the determinant of the matrix that is formed as above, by taking the elements of the original matrix from the rows whose indexes are in I and columns whose indexes are in J, whereas some other authors mean by a minor associated to I and J the determinant of the matrix formed from the original matrix by deleting the rows in I and columns in J; which notation is used should always be checked. In this article, we use the inclusive definition of choosing the elements from rows of I and columns of J. The exceptional case is the case of the first minor or the (i, j)-minor described above; in that case, the exclusive meaning M$_{i, j}$=det((A$_{p, q}$)$_{p≠i, q≠j}$){\textstyle M_{i, j}=\det {\bigl\left(\mathbf {A} _{p, q}\right)_{p\neq i, q\neq j}{\bigr )}} is standard everywhere in the literature and is used in this article also.

### Complement

The complement B$_{ijk...,pqr...}$ of a minor M$_{ijk...,pqr...}$ of a square matrix, A, is formed by the determinant of the matrix A from which all the rows (ijk...) and columns (pqr...) associated with M$_{ijk...,pqr...}$ have been removed. The complement of the first minor of an element a$_{ij}$ is merely that element.

## Applications of minors and cofactors
### Cofactor expansion of the determinant

The cofactors feature prominently in Laplace's formula for the expansion of determinants, which is a method of computing larger determinants in terms of smaller ones. Given an n × n matrix A = (a$_{ij}$), the determinant of A, denoted det(A), can be written as the sum of the cofactors of any row or column of the matrix multiplied by the entries that generated them. In other words, defining $C_{ij}=(-1)^{i+j}M_{ij}$ then the cofactor expansion along the j-th column gives:
${\begin{aligned}\det(\mathbf {A} )&=a_{1j}C_{1j}+a_{2j}C_{2j}+a_{3j}C_{3j}+\cdots +a_{nj}C_{nj}\\[2pt]&=\sum _{i=1}^{n}a_{ij}C_{ij}\\[2pt]&=\sum _{i=1}^{n}a_{ij}(-1)^{i+j}M_{ij}\end{aligned}}$
The cofactor expansion along the i-th row gives:
${\begin{aligned}\det(\mathbf {A} )&=a_{i1}C_{i1}+a_{i2}C_{i2}+a_{i3}C_{i3}+\cdots +a_{in}C_{in}\\[2pt]&=\sum _{j=1}^{n}a_{ij}C_{ij}\\[2pt]&=\sum _{j=1}^{n}a_{ij}(-1)^{i+j}M_{ij}\end{aligned}}$

### Inverse of a matrix

One can write down the inverse of an invertible matrix by computing its cofactors by using Cramer's rule, as follows. The matrix formed by all of the cofactors of a square matrix A is called the cofactor matrix (also called the matrix of cofactors or, sometimes, comatrix):
$\mathbf {C} ={\begin{bmatrix}C_{11}&C_{12}&\cdots &C_{1n}\\C_{21}&C_{22}&\cdots &C_{2n}\\\vdots &\vdots &\ddots &\vdots \\C_{n1}&C_{n2}&\cdots &C_{nn}\end{bmatrix}}$
Then the inverse of A is the transpose of the cofactor matrix times the reciprocal of the determinant of A:
$\mathbf {A} ^{-1}={\frac {1}{\operatorname {det} (\mathbf {A} )}}\mathbf {C} ^{\mathsf {T}}.$
The transpose of the cofactor matrix is called the adjugate matrix (also called the classical adjoint) of A.
The above formula can be generalized as follows: Let ${\begin{aligned}I&=1\leq i_{1}<i_{2}<\ldots <i_{k}\leq n,\\[2pt]J&=1\leq j_{1}<j_{2}<\ldots <j_{k}\leq n,\end{aligned}}$ be ordered sequences (in natural order) of indexes (here A is an n × n matrix). Then
$[\mathbf {A} ^{-1}]_{I,J}=\pm {\frac {[\mathbf {A} ]_{J',I'}}{\det \mathbf {A} }},$
where I′, J′ denote the ordered sequences of indices (the indices are in natural order of magnitude, as above) complementary to I, J, so that every index 1, ..., n appears exactly once in either I or I', but not in both (similarly for the J and J') and [A]$_{I,J}$ denotes the determinant of the submatrix of A formed by choosing the rows of the index set J and columns of index set J. Also, $[\mathbf {A} ]_{I,J}=\det {\bigl(A_{i_{p},j_{q}})_{p,q=1,\ldots ,k}{\bigr )}.$ A simple proof can be given using wedge product. Indeed,
${\bigl\mathbf {A} ^{-1}{\bigr ]}_{I,J}(e_{1}\wedge \ldots \wedge e_{n})=\pm (\mathbf {A} ^{-1}e_{j_{1}})\wedge \ldots \wedge (\mathbf {A} ^{-1}e_{j_{k}})\wedge e_{i'_{1}}\wedge \ldots \wedge e_{i'_{n-k}},$
where $e_{1},\ldots ,e_{n}$ are the basis vectors. Acting by A on both sides, one gets
${\begin{aligned}&\ {\bigl\mathbf {A} ^{-1}{\bigr ]}_{I,J}\det \mathbf {A} (e_{1}\wedge \ldots \wedge e_{n})\\[2pt]=&\ \pm (e_{j_{1}})\wedge \ldots \wedge (e_{j_{k}})\wedge (\mathbf {A} e_{i'_{1}})\wedge \ldots \wedge (\mathbf {A} e_{i'_{n-k}})\\[2pt]=&\ \pm [\mathbf {A} ]_{J',I'}(e_{1}\wedge \ldots \wedge e_{n}).\end{aligned}}$
The sign can be worked out to be $(-1)^{\wedge }\!\!\left(\sum _{s=1}^{k}i_{s}-\sum _{s=1}^{k}j_{s}\right),$ so the sign is determined by the sums of elements in I and J.

### Other applications

Given an m × n matrix with real entries (or entries from any other field) and rank r, then there exists at least one non-zero r × r minor, while all larger minors are zero.
We will use the following notation for minors: if A is an m × n matrix, I is a subset of {1, ..., m} with k elements, and J is a subset of {1, ..., n} with k elements, then we write [A]$_{I,J}$ for the k × k minor of A that corresponds to the rows with index in I and the columns with index in J.
* If I = J, then [A]$_{I,J}$ is called a principal minor.
* If the matrix that corresponds to a principal minor is a square upper-left submatrix of the larger matrix (i.e., it consists of matrix elements in rows and columns from 1 to k, also known as a leading principal submatrix), then the principal minor is called a leading principal minor (of order k) or corner (principal) minor (of order k). For an n × n square matrix, there are n leading principal minors.
* A basic minor of a matrix is the determinant of a square submatrix that is of maximal size with nonzero determinant.
* For Hermitian matrices, the leading principal minors can be used to test for positive definiteness and the principal minors can be used to test for positive semidefiniteness. See Sylvester's criterion for more details.
Both the formula for ordinary matrix multiplication and the Cauchy–Binet formula for the determinant of the product of two matrices are special cases of the following general statement about the minors of a product of two matrices. Suppose that A is an m × n matrix, B is an n × p matrix, I is a subset of {1, ..., m} with k elements and J is a subset of {1, ..., p} with k elements. Then $[\mathbf {AB} ]_{I,J}=\sum _{K}[\mathbf {A} ]_{I,K}[\mathbf {B} ]_{K,J}\,$ where the sum extends over all subsets K of {1, ..., n} with k elements. This formula is a straightforward extension of the Cauchy–Binet formula.

## Multilinear algebra approach

A more systematic, algebraic treatment of minors is given in multilinear algebra, using the wedge product: the k-minors of a matrix are the entries in the k-th exterior power map.
If the columns of a matrix are wedged together k at a time, the k × k minors appear as the components of the resulting k-vectors. For example, the 2 × 2 minors of the matrix ${\begin{pmatrix}1&4\\3&\!\!-1\\2&1\\\end{pmatrix}}$ are −13 (from the first two rows), −7 (from the first and last row), and 5 (from the last two rows). Now consider the wedge product $(\mathbf {e} _{1}+3\mathbf {e} _{2}+2\mathbf {e} _{3})\wedge (4\mathbf {e} _{1}-\mathbf {e} _{2}+\mathbf {e} _{3})$ where the two expressions correspond to the two columns of our matrix. Using the properties of the wedge product, namely that it is bilinear and alternating, $\mathbf {e} _{i}\wedge \mathbf {e} _{i}=0,$ and antisymmetric, $\mathbf {e} _{i}\wedge \mathbf {e} _{j}=-\mathbf {e} _{j}\wedge \mathbf {e} _{i},$ we can simplify this expression to $-13\mathbf {e} _{1}\wedge \mathbf {e} _{2}-7\mathbf {e} _{1}\wedge \mathbf {e} _{3}+5\mathbf {e} _{2}\wedge \mathbf {e} _{3}$ where the coefficients agree with the minors computed earlier.

## A remark about different notation

In some books, instead of cofactor the term adjunct is used. Moreover, it is denoted as A$_{ij}$ and defined in the same way as cofactor: $\mathbf {A} _{ij}=(-1)^{i+j}\mathbf {M} _{ij}$
Using this notation the inverse matrix is written this way: $\mathbf {M} ^{-1}={\frac {1}{\det(M)}}{\begin{bmatrix}A_{11}&A_{21}&\cdots &A_{n1}\\A_{12}&A_{22}&\cdots &A_{n2}\\\vdots &\vdots &\ddots &\vdots \\A_{1n}&A_{2n}&\cdots &A_{nn}\end{bmatrix}}$
Keep in mind that adjunct is not adjugate or adjoint. In modern terminology, the "adjoint" of a matrix most often refers to the corresponding adjoint operator.