Determinant (mathematics)

From Knowino
Jump to: navigation, search

In mathematics, a determinant is a unique number associated with a square matrix. A number is by definition an element of a field \mathbb{F}, which usually is either the field ℝ of real numbers or the field ℂ of complex numbers. The determinant det(A) of the square matrix A maps the matrix into \mathbb{F},


\det: \quad  \mathbf{A} \mapsto \det(\mathbf{A}) \in \mathbb{F}.

In other words, det(A) is an \mathbb{F}-valued function on the set of square matrices. [By the mathematical definition of map (function), det associates a unique number with A].

Contents

A square n×n matrix consists of n² numbers aij (elements of \mathbb{F}) that are written in the following array,


\mathbf{A}=
\begin{pmatrix}
a_{11} & a_{12} & a_{13} & \cdots & a_{1n} \\
a_{21} & a_{22} & a_{23} & \cdots & a_{2n} \\
a_{31} & a_{32} & \cdots &        & a_{3n}  \\
       &        & \ddots &        &       \\
\cdots &\cdots  &        &        & \cdots \\
a_{n1} & a_{n2} & \cdots & \cdots & a_{nn}  \\
\end{pmatrix}

The determinant of this matrix is a sum of n! (n factorial) terms, where each term is a signed (±) product of n different factors of elements of the matrix. The determinant is said to be of order n. Because a field is closed under addition and multiplication, the determinant belongs to the same field \mathbb{F} as the elements of A: when the matrix elements are complex numbers, the determinant is a complex number, when the elements are real the determinant is real.

Since n! grows quickly as a function of n, the formula for det(A) becomes quickly long and tedious for increasing n. For instance a determinant of order 5 contains 120 terms of fivefold products of the type


a_{i_1 j_1}\, a_{i_2 j_2}\, a_{i_3 j_3}\, a_{i_4 j_4}\, a_{i_5 j_5}\quad\hbox{with}\quad
1\le i_1,i_2,i_3,i_4,i_5\le 5 \quad\hbox{and}\quad 1\le j_1,j_2,j_3,j_4, j_5 \le 5.

A determinant of order 6 contains 720 terms of sixfold products.

Determinants entered mathematics at the beginning of the 18th century (oddly enough more than century earlier than matrices) in the study of simultaneous linear equations in two and more unknowns. In matrix language such a system of simultaneous linear equations can be written as


\mathbf{A}\;\mathbf{x} = \mathbf{y}

where the column vector x contains the n unknowns and the column vector y the (known) right-hand sides of the equations.

The Scottish mathematician Colin Maclaurin used low order (up to fourth order) determinants around 1730 and the Swiss Gabriel Cramer gave in 1750 a general rule (Cramer's rule) for the solution of these simultaneous linear equation. Cramer's rule is based on determinants and requires the condition det(A) ≠ 0 that a unique solution exist. In modern physics determinants play a role in the description of many-fermion systems (see e.g., Slater determinant) and in modern mathematics they appear in the disguise of differentiable forms on manifolds—among other applications.

[edit] Definition

There are basically two (equivalent) ways of defining a determinant. There is a recursive definition by means of the Laplace expansion, which will be given in the next section. The definition introduced in this section relies on some properties of permutations of n objects.

A permutation π of n objects "reshuffles" the objects in position 1, 2,..., n. It is written as,


\pi =
\begin{pmatrix}1     &    2  &   \cdots   &    n   \\
              \pi(1) & \pi(2) &  \cdots   & \pi(n) \\
\end{pmatrix}

which is the following map:

 
\pi:\quad k \mapsto \pi(k), \quad\hbox{for}\quad k=1, \ldots, n.

A permutation has a well-defined parity (also known as signature) designated by (−1)π. In order to define parity, it is observed that a permutation may be written as a product of disjoint cycles, see the article permutation group. A cycle of odd length has even parity (+1) and the parity of an even-length cycle is −1. The parity of a permutation is the product of the parities of its factors and hence (−1)π= ±1.

Knowing these definitions, one defines the determinant as the sum of signed products,


\det(\mathbf{A}) := 
\sum_{\pi\in \mathrm{S}_n}\; (-1)^\pi\; a_{1, \pi(1)}a_{2, \pi(2)}\cdots a_{n, \pi(n)}

where the sum is over all possible n! permutations of the second indices {1,2, ..., n}. The n! permutations form a group, the symmetric group Sn.

[edit] Example

As an example the 24 terms of a 4×4 determinant are shown in the next table. The first column gives the permutations {π(1) π(2) π(3) π(4)} of {1 2 3 4}, the bottom rows of the permutations π written in two-row notation. Note that the permutation in the first row of the table is the identity ("do nothing") permutation. The second column of the table shows the same permutation in cycle notation, the third column gives the parity (−1)π, and the last gives the effect of π on the column indices of the diagonal product a_{11}a_{22}a_{33}a_{44}\;.


Permutation Cycle Parity Product
1 2 3 4 (1)   1 a_{11}a_{22}a_{33}a_{44}\;
2 3 4 1 (1234) −1 a_{12}a_{23}a_{34}a_{41}\;
2 4 1 3 (1243) −1 a_{12}a_{24}a_{31}a_{43}\;
3 4 2 1 (1324) −1 a_{13}a_{24}a_{32}a_{41}\;
3 1 4 2 (1342) −1 a_{13}a_{21}a_{34}a_{42}\;
4 3 1 2 (1423) −1 a_{14}a_{23}a_{31}a_{42}\;
4 1 2 3 (1432) −1 a_{14}a_{21}a_{32}a_{43}\;
1 4 2 3 (243)   1 a_{11}a_{24}a_{32}a_{43}\;
1 3 4 2 (234)   1 a_{11}a_{23}a_{34}a_{42}\;
4 2 1 3 (143)   1 a_{14}a_{22}a_{31}a_{43}\;
3 2 4 1 (134)   1 a_{13}a_{22}a_{34}a_{41}\;
4 1 3 2 (142)   1 a_{14}a_{21}a_{33}a_{42}\;
2 4 3 1 (124)   1 a_{12}a_{24}a_{33}a_{41}\;
3 1 2 4 (132)   1 a_{13}a_{21}a_{32}a_{44}\;
2 3 1 4 (123)   1 a_{12}a_{23}a_{31}a_{44}\;
1 2 4 3 (34) −1 a_{11}a_{22}a_{34}a_{43}\;
1 4 3 2 (24) −1 a_{11}a_{24}a_{33}a_{42}\;
1 3 2 4 (23) −1 a_{11}a_{23}a_{32}a_{44}\;
4 2 3 1 (14) −1 a_{14}a_{22}a_{33}a_{41}\;
3 2 1 4 (13) −1 a_{13}a_{22}a_{31}a_{44}\;
2 1 3 4 (12) −1 a_{12}a_{21}a_{33}a_{44}\;
2 1 4 3 (12)(34)   1 a_{12}a_{21}a_{34}a_{43}\;
3 4 1 2 (13)(24)   1 a_{13}a_{24}a_{31}a_{42}\;
4 3 2 1 (14)23)   1 a_{14}a_{23}a_{32}a_{41}\;

[edit] Determinant of a transposed matrix

The transpose of a matrix A, denoted by AT, is obtained from A by interchanging rows and columns (the first column of A becomes the first row of AT, the second column of A becomes the second row of AT, etc.). For a m×n matrix A, therefore,


A_{ij} = A^\mathrm{T}_{ji}  \quad i=1,\dots,m,\quad j=1,\ldots, n.

The transpose AT is of dimension n×m.

Since the above definition of determinant is in terms of a product of diagonal elements and since diagonal elements are not changed by transposition, the following important relation holds for the determinant of any (square) matrix,


\det(\mathbf{A}^\mathrm{T}) = \det(\mathbf{A}).

[edit] Laplace expansion, minors and cofactors

In the Laplace expansion, a determinant of a k×k matrix (1≤kn) is written as a weighted sum of k determinants of order k−1. By letting k run downward from n to 2 and using the terminating condition that the determinant of a 1×1 matrix is equal to the (single) matrix element, the determinant of any square matrix can be computed recursively by means of the Laplace expansion.

In order to explain this in more detail, some nomenclature is needed. Any element aij of an n×n matrix A has a minor, indicated by Mij, which is a determinant of order n−1. The minor is the determinant of the (n−1)×(n−1) matrix obtained from A by deleting row i and column j.

Example


\mathbf{A}=
\begin{pmatrix}
1 &2 & 3 \\
4 &5 & 6 \\
7 &8 & 9 \\ 
\end{pmatrix}
\quad\Longrightarrow
M_{11}=
\begin{vmatrix}
5 & 6 \\
8 & 9 \\ 
\end{vmatrix},
\quad
M_{21}=
\begin{vmatrix}
2 & 3 \\
8 & 9 \\ 
\end{vmatrix},
\quad
M_{12}=
\begin{vmatrix}
4 & 6 \\
7 & 9 \\ 
\end{vmatrix},
\quad
M_{23}=
\begin{vmatrix}
1 & 2 \\
7 & 8 \\ 
\end{vmatrix}.

where | . | indicates a determinant.

The signed minor is the cofactor, designated by cij, of aij:


c_{ij} := (-1)^{i+j} \; M_{ij} \;.

Note that cofactors are numbers (determinants).

The Laplace expansion of det(A) along row k is the following expression:


\det(\mathbf{A}) = \sum_{i=1}^n c_{k i} a_{k i}

The sum is over the elements of A in row k. The elements are multiplied by their cofactor and summed over. Any row 1 ≤ kn may be chosen in this expansion. Usually one chooses the row that contains the most zeros.

Example

Take n = 3 and develop along the second row (k = 2):


\mathbf{A}=
\begin{pmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\ 
\end{pmatrix}
\quad\Longrightarrow\quad
c_{21}=
-\begin{vmatrix}
a_{12} & a_{13} \\
a_{32} & a_{33} \\ 
\end{vmatrix}, \quad 
c_{22}=
\begin{vmatrix}
a_{11} & a_{13} \\
a_{31} & a_{33} \\ 
\end{vmatrix}, \quad
c_{23}=
-\begin{vmatrix}
a_{11} & a_{12} \\
a_{31} & a_{32} \\ 
\end{vmatrix}.

Hence


\det(\mathbf{A}) =
c_{21} a_{21} + c_{22} a_{22} + c_{23} a_{23}.

In the evaluation of the cofactors c21, c22, and c23 it is noted that the cofactors are the determinants of the matrices between the vertical lines. For these matrices the same rule applies again (downward recursion). Using that the determinant of a 1×1 matrix is equal to the (single) matrix element one finds that the cofactor (in c21) of a12 is a33; the cofactor of a13 is −a32, etc. Hence


c_{21} = -(a_{12} a_{33} - a_{13} a_{32}), \quad
c_{22} =  (a_{11} a_{33} - a_{13} a_{31}), \quad
c_{23} = -(a_{11} a_{32} - a_{12} a_{31}).

Order the factors in the products so that the first indices are always {1 2 3}


\det(\mathbf{A})
= a_{11}a_{22}a_{33} -a_{13}a_{22}a_{31} - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32}
- a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31}

The second indices form the sets +{1 2 3}, −{3 2 1}, −{2 1 3}, +{3 1 2}, −{1 3 2}, and +{2 3 1}, which clearly are the six possible permutations. The parities precede the sets. This example shows that the Laplace expansion gives the same result as the sum over the 3! = 6 permutations. The general proof of this fact requires some fairly involved combinatorics.

Since det(A) is det(AT) rows and columns may be interchanged and the Laplace expansion may be along column k, for 1 ≤ kn:


\det(\mathbf{A}) = \sum_{i=1}^n c_{i k} a_{i k}

[edit] Numerical example

The Laplace expansion is the method of choice when the determinant of a small matrix must be computed by hand (i.e, without computer). Let us compute the determinant of the following matrix:


\mathbf{A}
=\begin{pmatrix}
2 &  -1     & \;\;3  &     -5 \\
0 &  \;\;2  & -4     &\;\;  0 \\
0 &  -5     & \;\;6  &\;\;  1 \\
0 &  -3     & \;\;1  &\;\;  2   \\ 
\end{pmatrix}

Since the first column has three zeros it stands to reason to expand along the first column, and then along the first row of the first cofactor


\det(\mathbf{A})
=2\begin{vmatrix}
\;\; 2  & -4     &  0 \\
-5      &\;\; 6  &  1 \\
-3      &\;\; 1  &  2   \\ 
\end{vmatrix}
=2\times2 \begin{vmatrix}
6  &  1 \\
1  &  2   \\ 
\end{vmatrix}
- 2\times(-4)
 \begin{vmatrix}
-5  &  1 \\
-3  &  2   \\ 
\end{vmatrix}

Hence


\det(\mathbf{A})
= 4\times(12-1)+8\times(-10+3) = 44 - 56 = -12

[edit] Properties

[edit] Permutation of rows and columns

Two important properties of a determinant are the following

An odd permutation of the columns of a determinant gives minus the determinant, while an even permutation of the columns gives the determinant itself.
An odd permutation of the rows of a determinant gives minus the determinant, while an even permutation of the rows gives the determinant itself.

Since a determinant is invariant under an interchange of rows and columns (transposition), all rules holding for columns hold for rows as well (transpose, apply the column rule, transpose again, and the corresponding rule for rows is recovered).

Example

Write the 4-dimensional columns of a 4×4 matrix as a1, a2, a3, a4 and indicate determinants by vertical bars, then


\det(\mathbf{A})= 
 |\mathbf{a}_1\; \mathbf{a}_2\; \mathbf{a}_3\; \mathbf{a}_4\;| =
-|\mathbf{a}_3\; \mathbf{a}_2\; \mathbf{a}_1\; \mathbf{a}_4\;| =
-|\mathbf{a}_4\; \mathbf{a}_1\; \mathbf{a}_2\; \mathbf{a}_3\;| =
 |\mathbf{a}_1\; \mathbf{a}_4\; \mathbf{a}_2\; \mathbf{a}_3\;|, 
\quad\hbox{etc.}


In order to prove these column permutation properties of determinants, we consider row indices i1, i2, ..., in that are all different and column indices j1, j2, ..., jn that are all different, then


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi 
a_{i_1, j_{\pi(1)}} a_{i_2, j_{\pi(2)}} a_{i_3, j_{\pi(3)}} \cdots a_{i_n, j_{\pi(n)}} =
\begin{vmatrix}
a_{i_1, j_1} & a_{i_1, j_2} & a_{i_1, j_3} & \cdots & a_{i_1, j_n}  \\  
a_{i_2, j_1} & a_{i_2, j_2} & a_{i_2, j_3} & \cdots & a_{i_2, j_n}  \\
a_{i_3, j_1} & \cdots       & \cdots       &        & \cdots        \\
\cdots       &              &              & \ddots &              \\
a_{i_n, j_1} & a_{i_n, j_2} & \cdots       & \cdots & a_{i_n, j_n} \\
\end{vmatrix} .

The row indices in the diagonal product [π = e] determine the rows and their order, and the column indices determine the columns and their order. If one defines


\pi \left( \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_3} \cdots \mathbf{a}_{j_n}  \right)
:= \mathbf{a}_{j_{\pi(1)}} \mathbf{a}_{j_{\pi(2)}} \mathbf{a}_{j_{\pi(3)}} \cdots \mathbf{a}_{j_{\pi(n)}}

one finds that the antisymmetrizer :


\mathcal{A} := \sum_{\pi \in \mathrm{S}_n} (-1)^\pi \pi

acting on the product \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_3} \cdots \mathbf{a}_{ j_n} yields the determinant in the previous equation. Parenthetically it may be noted that the products


\left(\mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_3} \cdots \mathbf{a}_{j_n}  \right)_{i_1i_2\cdots i_n} := a_{i_1 j_1} a_{i_2 j_2} a_{i_3 j_3}\cdots a_{i_n j_n}

are the components of an nth rank simple tensor, often denoted (but not here) by


\mathbf{a}_{j_1}\otimes \mathbf{a}_{j_2}\otimes \mathbf{a}_{j_3}\otimes \cdots\otimes \mathbf{a}_{j_n}.

The antisymmetrizer satisfies for fixed τ ∈ Sn


\tau \mathcal{A} = \mathcal{A} \tau = (-1)^\tau \mathcal{A}, \quad \tau \in \mathrm{S}_n.

(The proof relies on the fact that if π runs over the group Sn exactly once, then π τ and τ π each run over the group exactly once, too.) Hence


(-1)^\tau \mathcal{A}\; \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_3} \cdots \mathbf{a}_{j_n} =
\mathcal{A}\; \tau\;\left[ \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_3} \cdots \mathbf{a}_{ j_n}\right] =
\mathcal{A} \mathbf{a}_{j_{\tau(1)}} \mathbf{a}_{j_{\tau(2)}} \mathbf{a}_{j_{\tau3)}} \cdots \mathbf{a}_{j_{\tau(n)}}

the leftmost side is the original determinant (multiplied by (−1)τ) and the rightmost side is the determinant with the columns permuted by τ. This equation, valid for arbitrary permutation τ, proves the column permutation properties.

A simple corollary is the following:

A determinant with two identical columns (or two identical rows) is zero.

The permutation of two columns (a so-called transposition) gives on the one hand a minus sign, and other the hand the determinant is unchanged under permutation of identical columns, so that det = −det, which implies det = 0.

[edit] Vanishing of a determinant

The following rule will be proved in this subsection:

A determinant is non-zero if and only if its columns are linearly independent. The columns are linearly independent if and only if the rows are linearly independent.

The antisymmetrizer is a linear operator, so that


\mathcal{A} \mathbf{a}_{j_1} \mathbf{a}_{j_2} \left(b \mathbf{a}_{j_1} + c\mathbf{a}_{j_2}\right) \mathbf{a}_{j_4}
=  b \mathcal{A} \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_1} \mathbf{a}_{j_4}
 + c \mathcal{A} \mathbf{a}_{j_1} \mathbf{a}_{j_2} \mathbf{a}_{j_2} \mathbf{a}_{j_4}

In the alternative notation this reads:


| \mathbf{a}_{j_1}\; \mathbf{a}_{j_2}\;\left(b \mathbf{a}_{j_1} + c\mathbf{a}_{j_2}\right) \mathbf{a}_{j_4} |
=  b |\mathbf{a}_{j_1}\; \mathbf{a}_{j_2}\; \mathbf{a}_{j_1} \;\mathbf{a}_{j_4} |
 + c  |\mathbf{a}_{j_1}\; \mathbf{a}_{j_2}\; \mathbf{a}_{j_2} \;\mathbf{a}_{j_4} |,

which vanishes, because the right-hand side contains only determinants with identical columns. It holds that if  aj3 = b aj1 + c aj2 then

|aj1 aj2 aj3| = 0.

Clearly, aj3 is linearly dependent on aj1 and aj2, and this in turn implies that the determinant vanishes. This example can be easily generalized to the observation: a determinant vanishes if the columns (or rows) of a determinant form a linearly dependent set.

The converse of this rule holds as well: if det(A) ≠ 0, then the columns of A are linearly independent. In order to prove this, the opposite is assumed: let a1, a2, ..., an be linearly independent, and let the determinant |a1 a2 ⋅⋅⋅ an| be zero. We will show that this assumption leads to a contradiction. Consider unit column vectors {ek} that are zero almost everywhere except in position k where there is the number 1.


|\mathbf{e}_1\, \mathbf{e}_2\, \mathbf{e}_3\, \cdots \mathbf{e}_n| =
\begin{pmatrix}
1 & 0 & 0 & 0 & \cdots & 0 \\
0 & 1 & 0 & 0 & \cdots & 0 \\
0 & 0 & 1 & 0 & \cdots & 0 \\
\cdots &  &  &  & \cdots & 0 \\
0 & 0 & 0 & 0 & \cdots & 1 \\
\end{pmatrix} =: \det(\mathbf{I}),

where I is the identity matrix. It is easy to show by the Laplace expansion that det(I) =1, which is not equal zero. Because the aj are linearly independent, it is possible to write


\mathbf{e}_{i} = \sum_{j_k=1}^n b_{i, j_{k} } \mathbf{a}_{j_k}, \quad k=1,\ldots,n,\quad i=1,\ldots,n.

Now,


1 =|\mathbf{e}_1\, \mathbf{e}_2\, \mathbf{e}_3\, \cdots \mathbf{e}_n|
= \sum_{j_1}\sum_{j_2}\cdots\sum_{j_n} b_{1,j_1}b_{2,j_2}\cdots b_{n,j_n} \mathcal{A}
\mathbf{a}_{j_1} \mathbf{a}_{j_2} \cdots \mathbf{a}_{j_n}.

The determinant


\mathcal{A} \mathbf{a}_{j_1} \mathbf{a}_{j_2} \cdots \mathbf{a}_{j_n} = |\mathbf{a}_{j_1}\, \mathbf{a}_{j_2}\, \cdots\, \mathbf{a}_{j_n}| = 0,

vanishes as soon as two or more of the columns a are the same. When all columns are different the determinant vanishes by the assumption made in the proof by contradiction. So the n-fold summation in the one but last equation is over vanishing terms only and gives zero. This a contradiction because the left-hand side is unity. The "if and only if" condition of the vanishing of the determinant is herewith proved.

[edit] Multiplication

If the following multiplication of square matrices holds: C = B A, then det(C) = det(B)det(A).

Proof

Write ci = Bai where ai is the i th column of A and ci is the i th column of C. From


c_{ji} = \sum_{k=1}^n b_{jk} a_{ki}

it follows that


c_{j_1, i_1} c_{j_2, i_2}\cdots c_{j_n, i_n} = 
\sum_{k_1=1}^n \sum_{k_2=1}^n \cdots \sum_{k_n=1}^n
 b_{j_1,k_1} b_{j_2,k_2} \cdots b_{j_n,k_n}\; a_{k_1, i_1}a_{k_2, i_2} \cdots a_{k_n, i_n}

Choose


\{ i_1, i_2, \dots, i_n \} = \{1, 2, \dots, n\},

and permute these indices with π ∈ Sn, multiply by the parity of π and sum both sides over all n! permutations (that is, over the whole permutation group Sn),


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi  c_{j_1, \pi(1)} c_{j_2, \pi(2)} \cdots c_{j_n,\pi(n)} = 
\sum_{k_1 k_2 \cdots k_n} b_{j_1,k_1} b_{j_2,k_2} \cdots b_{j_n,k_n}\sum_{\pi \in \mathrm{S}_n} (-1)^\pi a_{k_1, \pi(1) } a_{k_2, \pi(2) } \cdots a_{k_n, \pi(n) }

The indices 1 ≤ k1, k2, ..., knn run over the rows of determinant det(A). Only the terms in which all k′s are different contribute, so that the sum over the k′s can be written as in the following general expression

 
\sum_{k_1 k_2 \cdots k_n} T_{k_1 k_2 \cdots k_n} \rightarrow \sum_{\sigma \in \mathrm{S}_n} 
T_{\sigma(1), \sigma(2), \cdots, \sigma(n)}.

Thus,


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi  c_{j_1, \pi(1)} c_{j_2, \pi(2)} \cdots c_{j_n,\pi(n)}
=  \sum_{\sigma \in \mathrm{S}_n}
b_{j_1,\sigma(1)} b_{j_2,\sigma(2)} \cdots b_{j_n,\sigma(n)}\sum_{\pi \in \mathrm{S}_n} (-1)^\pi a_{\sigma(1), \pi(1) } a_{\sigma(2), \pi(2) } \cdots a_{\sigma(n), \pi(n) }.

Note that


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi a_{\sigma(1), \pi(1) } a_{\sigma(2), \pi(2) } \cdots a_{\sigma(n), \pi(n) }

is a determinant in which the rows are permuted by σ, hence


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi a_{\sigma(1) \pi(1) } a_{\sigma(2) \pi(2) } \cdots a_{\sigma(n) \pi(n) } = (-1)^\sigma |\mathbf{a}_1\; \mathbf{a}_2\; \cdots\;\mathbf{a}_n|
\quad\hbox{for all} \quad \sigma \in \mathrm{S}_n.

Then,


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi  c_{j_1, \pi(1)} c_{j_2, \pi(2)} \cdots c_{j_n,\pi(n)}
= |\mathbf{a}_1\; \mathbf{a}_2\; \cdots\;\mathbf{a}_n| \;  \sum_{\sigma \in \mathrm{S}_n}\; (-1)^\sigma  b_{j_1,\sigma(1)} b_{j_2,\sigma(2)} \cdots b_{j_n,\sigma(n)} .

The indices j1, j2, ..., jn are row labels of both det(C) and det(B), so they are all different and may be ordered on both sides of the equation by the same permutation; the corresponding parities cancel out. Finally, we get


\sum_{\pi \in \mathrm{S}_n} (-1)^\pi  c_{1, \pi(1)} c_{2, \pi(2)} \cdots c_{n,\pi(n)}
= |\mathbf{a}_1\; \mathbf{a}_2\; \cdots\;\mathbf{a}_n| \;  \sum_{\pi \in \mathrm{S}_n}\; (-1)^\pi  b_{1,\pi(1)} b_{2,\pi(2)} \cdots b_{n,\pi(n)},

or


\det(\mathbf{C}) =  \det(\mathbf{A})\det(\mathbf{B}) =  \det(\mathbf{B})\det(\mathbf{A}).

Remark: The non-singular square matrices form a group, the general linear group GL(n,ℝ). The relation just proved is in fact a group homomorphism, and it follows that the determinants constitute a one-dimensional (and hence irreducible) representation of GL(n,ℝ).

[edit] Inverse matrix

The determinant and cofactor enter in the computation of the inverse of a square matrix.

In order to derive a closed expression for the inverse of non-singular matrix A [det(A) ≠ 0], we replace the j-th column in the determinant of matrix A by column ak, this gives the determinant Δjk:


\Delta_{jk} :=
\vert\mathbf{a}_1 \; \mathbf{a}_2 \; \ldots\mathbf{a}_{j-1} \; \mathbf{a}_k \; \mathbf{a}_{j+1} \;
\ldots\;\mathbf{a}_n \; \vert,

If kj, then Δjk is zero because the column ak occurs twice. If k = j nothing has been done and Δjk is simply det(A). Hence,


\Delta_{jk}= 
\begin{cases}
\det(\mathbf{A})&\quad\hbox{if}\quad j = k,\\
 0              &\quad\hbox{if}\quad j \ne k.
\end{cases}

Evaluate Δjk along the j-th column where we find ak; the cofactors cij (i=1,2,...,n) of the j-th column are unchanged,


\Delta_{jk}= 
\sum_{i=1}^n c_{ij}a_{ik} = \delta_{jk} \det(\mathbf{A})

Clearly the matrix


\bar{\mathbf{A}}\quad\hbox{with}\quad \bar{A}_{ji} := \frac{1}{\det(\mathbf{A})} c_{ij},

has the property


\frac{1}{\det(\mathbf{A})} \sum_{i=1}^n c_{ij} a_{ik} = 
\sum_{i=1}^n \bar{A}_{ji} a_{ik} = \delta_{jk}\quad\Longleftrightarrow\quad
\bar{\mathbf{A}} \mathbf{A} = \mathbf{I},

because the Kronecker delta δjk is the j,k element of the identity matrix. In conclusion,


\bar{\mathbf{A}} = \mathbf{A}^{-1},

the transposed matrix of cofactors (divided by the determinant) gives the inverse matrix A−1 of A.

[edit] Example

The following steps are required to compute the inverse of a matrix by use of its cofactors:

  1. Replace every element of the matrix by its cofactor (signed minor).
  2. Transpose the matrix of cofactors (interchange rows and columns). This gives the adjugate matrix.
  3. Divide the adjugate matrix by the determinant of the original matrix.

For example,


\mathbf{A} =
\begin{pmatrix}
0 & -1    & 1 \\
1 & \;\;0 & 0 \\
0 & \;\;1  & 1 \\
\end{pmatrix}

Matrix of cofactors:


\begin{pmatrix}
0 & -1    & 1 \\
2 & \;\;0 & 0 \\
0 & \;\;1  & 1 \\
\end{pmatrix}

By developing along its second row, the determinant of A is seen to be c21 = 2


\det(\mathbf{A}) = 2.\,

Transpose (gives adjugate matrix) and divide (gives inverse matrix)


\frac{1}{2}
\begin{pmatrix}
\;\;0 & 2  & 0 \\
   -1 & 0  & 1 \\
\;\;1 & 0  & 1 \\
\end{pmatrix}= 
\begin{pmatrix}
\;\;0           & 1  & 0 \\
   -\frac{1}{2} & 0  & \frac{1}{2} \\
\;\;\frac{1}{2} & 0  & \frac{1}{2} \\
\end{pmatrix}.

Check by performing the matrix multiplication:


\begin{pmatrix}
\;\;0           & 1  & 0 \\
   -\frac{1}{2} & 0  & \frac{1}{2} \\
\;\;\frac{1}{2} & 0  & \frac{1}{2} \\
\end{pmatrix}
\begin{pmatrix}
0 & -1    & 1 \\
1 & \;\;0 & 0 \\
0 & \;\;1  & 1 \\
\end{pmatrix}
= 
\begin{pmatrix}
1 &  0   & 0 \\
0 &  1   & 0 \\
0 &  0   & 1 \\
\end{pmatrix}.

Note that an alternative (and usually more convenient) way of computing the inverse of a matrix is by Gaussian elimination. That is, solve simultaneous linear equations with unit vectors as right-hand sides.

[edit] Numerical evaluation of a determinant

Neither the sum over permutations nor the Laplace expansion are suitable for a numeric computation of determinants of order n > 5 (or so). Both processes scale as n!, which means that on the order of n! additions and multiplications are required. Take as an example n = 104, which in present-day computational physics and engineering is a moderate size. By Stirling's approximation log(104!) ≈ 104 and hence 10000! ≈ 1010000 (1 followed by 10000 zeros) operations are required. A modern teraflop (1012 floating point operation per sec) computer performs on the order of 1020 operations per year, so that the computation will take 109980 years. Compare this with the lifetime of the universe: the Big Bang was about 1010 years ago. In short: an n! algorithm for the computation of a determinant is out of the question for large n.

Fortunately, there are algorithms that scale with n³. A computation for n = 104 will require about 1012 operations, which is one second on a teraflop computer. The best known algorithm is by Gaussian elimination. By this process one in fact performs the following factorization of a given non-singular matrix A [det(A) ≠ 0]:


\mathbf{L}\mathbf{R} = \mathbf{P} \mathbf{A}.

Given A, the Gaussian algorithm (an n³ process) delivers the matrices L, R and P. These matrices have the following form


\mathbf{L} =
\begin{pmatrix}
1      &  0     & 0    & \cdots  & 0 \\
l_{21} &  1     & 0    & \cdots  & 0 \\
l_{31} &l_{32}  & 1    &  \cdots & 0 \\
\cdots &        &      &         &   \\
l_{n1} &l_{n2}  &l_{n3}& \cdots  & 1 \\
\end{pmatrix}
\quad\hbox{and}\quad
\mathbf{R} =
\begin{pmatrix}
r_{11} & r_{12} & r_{13} & \cdots  & r_{1n} \\
0      & r_{22} & r_{23} & \cdots  & r_{2n}  \\
0      &  0     & r_{33} &  \cdots & r_{3n}  \\
\cdots &        &      &         &   \\
0      &  0     & 0    & \cdots  & r_{nn} \\
\end{pmatrix}.

The matrix P is a permutation matrix that during the Gaussian elimination permutes the rows of A. A permutation matrix is characterized by having zero elements almost everywhere, the exception is that every row and column contains exactly one element equal to 1. The multiplication rule of determinants gives


\det(\mathbf{L}) \det(\mathbf{R})  = \det(\mathbf{P})  \det(\mathbf{A}) .

By the Laplace expansion along rows one finds easily that the determinant of a lower triangular matrix, like L, has a determinant equal to the product of diagonal elements. Since L has numbers 1 along the diagonal, it follows that det(L) = 1. By the Laplace expansion along columns one finds easily that the determinant of an upper triangular matrix, like R, has a determinant equal to the product of diagonal elements. Hence


\det(\mathbf{R}) = r_{11}r_{22}r_{33}\cdots r_{nn}

A permutation matrix has determinant ±1. This sign can easily be obtained by keeping track of the parities of the permutations that are applied during the Gaussian elimination. Hence


\det(\mathbf{A}) = \pm r_{11}r_{22}r_{33}\cdots r_{nn}.

Once the matrices L, R, and the sign of det(P) have been determined, it takes an extra n multiplications to compute det(A).

Personal tools
Variants
Actions
Navigation
Community
Toolbox