Determinant

The determinant is an operation on square matrices. For a square matrix AA, det⁡A\det A denotes the determinant of the square matrix AA.

This article introduces three definitions of the determinant. It can be proved that the definitions given here are equivalent.

Definition by permutations

Prerequisites: Permutations, inversion count.

This method can be used to calculate determinants of low order by hand; its time complexity is factorial in the order.

Let π(j1j2⋯jn)\pi(j_1j_2\cdots j_n) denote the inversion count of the permutation j1j2⋯jnj_1j_2\cdots j_n, and let SnS_n be the set of all permutations of length nn. Notation:

det⁡A=∣a11a12⋯a1na21a22⋯a2n⋮⋮⋮an1an2⋯ann∣=∑(j1j2⋯jn)∈Sn(−1)π(j1j2⋯jn)a1j1a2j2…anjn\begin{aligned} \det A &= \begin{vmatrix} a_{11} & a_{12} & \cdots & a_{1n}\\ a_{21} & a_{22} & \cdots & a_{2n}\\ \vdots & \vdots & & \vdots\\ a_{n1} & a_{n2} & \cdots & a_{nn}\\ \end{vmatrix} \\ &= \sum_{(j_1j_2\cdots j_n) \in S_n} (-1)^{\pi(j_1j_2\cdots j_n)} a_{1 j_1} a_{2 j_2}\dots a_{n j_n} \end{aligned}

The nn-th order determinant represented above is the algebraic sum of n!n! terms. These terms are, for every possible selection of distinct rows and distinct columns from the square matrix AA, the products of nn elements, namely a1j1a2j2⋯anjna_{1j_1}a_{2j_2}\cdots a_{nj_n}.

The sign preceding the term a1j1a2j2⋯anjna_{1j_1}a_{2j_2}\cdots a_{nj_n} is (−1)π(j1j2⋯jn){(-1)}^{\pi(j_1j_2\cdots j_n)}. In other words, the sign is positive when j1j2⋯jnj_1j_2\cdots j_n is an even permutation, and negative when j1j2⋯jnj_1j_2\cdots j_n is an odd permutation.

The diagonal rule for second- and third-order determinants is, in fact, an application of the definition by permutations. Determinants of fourth order and above are no longer suitable for the diagonal rule for the same reason. In particular, a first-order determinant is simply the element itself.

Theorem: From an nn-th order determinant, select elements from rows i1,i2,⋯ ,ini_1,i_2,\cdots,i_n and columns j1,j2,⋯ ,jnj_1,j_2,\cdots,j_n and take their product

ai1j1ai2j2⋯ainjna_{i_1j_1}a_{i_2j_2}\cdots a_{i_nj_n}

Here, i1,i2,⋯ ,ini_1,i_2,\cdots,i_n and j1,j2,⋯ ,jnj_1,j_2,\cdots,j_n are both permutations of the numbers 1,2,⋯ ,n1,2,\cdots,n; there are nn such numbers. Then the sign of this term in the determinant is (−1)s+t{(-1)}^{s+t}, where

s=π(i1i2⋯in)s=\pi(i_1i_2\cdots i_n) t=π(j1j2⋯jn)t=\pi(j_1j_2\cdots j_n)

Theorem: A determinant is equal to its transpose.

Theorem: Suppose that every element of the determinant det⁡A\det A in row ii can be expressed as the sum of two terms:

∣a11a12⋯a1n⋮⋮⋮bi1+ci1bi2+ci2⋯bin+cin⋮⋮⋮an1an2⋯ann∣\begin{vmatrix} a_{11} & a_{12} & \cdots & a_{1n}\\ \vdots & \vdots & & \vdots\\ b_{i1}+c_{i1} & b_{i2}+c_{i2} & \cdots & b_{in}+c_{in}\\ \vdots & \vdots & & \vdots\\ a_{n1} & a_{n2} & \cdots & a_{nn}\\ \end{vmatrix}

Then this determinant is equal to the sum of two determinants, det⁡A1\det A_1 and det⁡A2\det A_2. In A1A_1, row ii is bi1,bi2,⋯ ,binb_{i1},b_{i2},\cdots,b_{in}, while in A2A_2, row ii is ci1,ci2,⋯ ,cinc_{i1},c_{i2},\cdots,c_{in}; all other rows of A1A_1 and A2A_2 are the same as those of AA. The same property holds for columns.

Definition by induction

This method only describes an algebraic property of determinants. Its time complexity is also factorial in the order, so it is not suitable for calculation.

Algebraic cofactors

In an nn-th order determinant det⁡A\det A, choose any rows and columns of matrix AA—specifically, kk rows and kk columns. The kk-th order matrix formed by the elements at the intersections of these rows and columns is called a kk-th order submatrix, and its determinant is called a kk-th order minor.

For an nn-th order determinant det⁡A\det A, the element aija_{ij} has a minor matrix MijM_{ij}: in the original matrix AA, after deleting the row and column containing aija_{ij}, it is the remaining n−1n-1-th order submatrix; its determinant det⁡Mij\det M_{ij} is called the minor.

For an nn-th order determinant det⁡A\det A, the element aija_{ij} has minor det⁡Mij\det M_{ij}; after the minor is multiplied by the sign (−1)i+j{(-1)}^{i+j}, it is called the algebraic cofactor of aija_{ij}, denoted by AijA_{ij}.

The following conclusion can be derived from the definition by permutations in the previous section:

Theorem: If, in an nn-th order determinant det⁡A\det A, all elements in row ii or column jj except aija_{ij} are 00, then the determinant is equal to the product of aija_{ij} and its algebraic cofactor AijA_{ij}.

Expansion of determinants

Since transposing a square matrix does not change its determinant, it is enough to introduce either row expansion or column expansion.

The determinant det⁡A\det A is defined as the sum of the products of all elements in any one of its rows (or columns) and their corresponding algebraic cofactors.

In other words, a determinant can be defined recursively by its expansion along a row (or column):

det⁡A=ai1Ai1+ai2Ai2+⋯+ainAin=∑j=1naijAij=∑j=1n(−1)i+jaijdet⁡Mij\begin{aligned} \det A &= a_{i1}A_{i1}+a_{i2}A_{i2}+\cdots+a_{in}A_{in} \\ &= \sum_{j = 1}^{n} a_{ij}A_{ij} \\ &= \sum_{j = 1}^{n} (-1)^{i + j} a_{ij} \det M_{ij} \end{aligned} det⁡A=a1jA1j+a2jA2j+⋯+anjAnj=∑i=1naijAij=∑i=1n(−1)i+jaijdet⁡Mij\begin{aligned} \det A &= a_{1j}A_{1j}+a_{2j}A_{2j}+\cdots+a_{nj}A_{nj} \\ &= \sum_{i = 1}^{n} a_{ij}A_{ij} \\ &= \sum_{i = 1}^{n} (-1)^{i + j} a_{ij} \det M_{ij} \end{aligned}

The recursion terminates at the determinant of a first-order matrix, which is simply its only element.

Therefore, we have the following conclusion:

Theorem: The sum of the products of the elements in one row (or column) of a determinant det⁡A\det A and the corresponding algebraic cofactors of another row (or column) is equal to 00.

In other words, when i≠ji\neq j:

ai1Aj1+ai2Aj2+⋯+ainAjn=0a_{i1}A_{j1}+a_{i2}A_{j2}+\cdots+a_{in}A_{jn}=0 a1iA1j+a2iA2j+⋯+aniAnj=0a_{1i}A_{1j}+a_{2i}A_{2j}+\cdots+a_{ni}A_{nj}=0

Axiomatic definition

The axiomatic definition says that an operation satisfying certain properties can only be the determinant.

Prerequisite: Elementary operations.

Let Di(k)D_i(k) denote a scaling matrix, PijP_{ij} a transposition matrix, and Tij(k)T_{ij}(k) a shear matrix.

For an nn-th order matrix AA, the operation det⁡\det, if it satisfies the following four properties, is called a determinant:

  • Multiplying all elements in one row or one column of a determinant by a number kk simultaneously is equivalent to multiplying the determinant by kk.

    det⁡(Di(k)A)=det⁡(ADi(k))=kdet⁡A\det(D_i(k)A) = \det(AD_i(k)) = k \det A
  • Swapping two rows or two columns of a determinant changes the sign of the determinant.

    det⁡(PijA)=det⁡(APij)=−det⁡A\det(P_{ij}A) = \det(AP_{ij}) = -\det A
  • Multiplying the elements in one row or one column of a determinant by the same number and adding them to the corresponding elements in another row or column leaves the determinant unchanged.

    det⁡(Tij(k)A)=det⁡(ATij(k))=det⁡A\det(T_{ij}(k)A) = \det(AT_{ij}(k))= \det A
  • The determinant of the identity matrix is 11.

    det⁡I=1\det I = 1

Using the properties of determinants under elementary operations makes it convenient to calculate higher-order determinants by hand. The determinant calculation using Gaussian elimination method also uses this property, with time complexity O(n3)O(n^3).

The above properties also have several corollaries:

  • A common factor of one row or one column of a determinant can be taken outside the determinant symbol.
  • If all elements in one row or one column of a determinant are 00, then the determinant is 00.
  • If corresponding elements in two rows or two columns of a determinant are proportional, then the determinant is 00.
  • If two rows or two columns of a determinant are identical, then the determinant is 00.

These corollaries are very commonly used when calculating determinants by hand.

This content comes from OI Wiki: Determinant. See the original for authors and revision history. AIOJ has adapted the formatting, in-site links, and resource paths.

Content is shared under CC BY-SA 4.0 and SATA license; additional terms are governed by the original notice. Thanks to the OI Wiki authors and contributors; per the SATA terms, please visit the OI Wiki repository and star it to show your support.