Also known as matrix determinant, determinant of matrix, determinant of a square matrix
In mathematics, the determinant is a scalar-valued function of the entries of a square matrix that has many properties which make it fundamental for the study of square matrices and linear transformations represented by them.
Article
In mathematics, the determinant is a scalar-valued function of the entries of a square matrix that has many properties which make it fundamental for the study of square matrices and linear transformations represented by them.
The determinant of a matrix A is commonly denoted det(A), det A, or |A|. For square matrices of dimensions two and three, the determinant is explicitly described as
There are several equivalent ways to define the determinant of an
n
×
n
{\displaystyle n\times n}
matrix. A simple and conceptual one is that it is the unique function that maps a product of matrices to a product of scalars and whose value on a triangular matrix is the product of the diagonal entries.
So, the determinant of the product of two square matrices is the product of their determinants. A square matrix is invertible if and only if its determinant has a multiplicative inverse. In the common case where the entries belong to a field, a matrix is invertible if and only if the determinant is nonzero. The adjugate matrix provides an explicit expression of the inverse matrix.
A consequence of the multiplicative property is that two similar matrices have the same determinant, and therefore the determinant of a linear transformation is well defined. For real linear transformations, the value of the determinant is the scale factor by which the transformation alters every volume in the space (positive if the orientation is preserved, negative if the orientation is reversed, zero if the transformation is not bijective).
The determinant is linear with respect to each row and each column of the matrix and is therefore a multilinear function. This means that it is a linear combination of the entries of each row or column of the matrix. Laplace expansion expresses the coefficients of this linear combination as determinants (of one dimension less), called cofactors. Laplace expansion is useful for computing determinants when the rows or columns are very sparse, typically when there are only one or two nonzero entries in a row or column.
Determinants can be efficiently computed with Gaussian elimination and singular value decomposition. Determinants can also be theoretically computed by means of the Leibniz formula or Laplace expansion, but this is inefficient except in special cases.
Determinants occur throughout mathematics. Cramer's rule expresses the solution of a system of linear equations in terms of determinants. The characteristic polynomial of a square matrix, whose roots are the eigenvalues, is defined as a determinant with polynomial entries. In geometry, determinants are used to define or compute areas and volumes, as well as space orientation and collinearity. In analysis, the Jacobian determinant is used for change of variables in multiple integrals and its non-nullity is one of the hypotheses of the implicit function theorem in several variables. In algebraic geometry, the Hessian determinant allows finding inflexion points of an algebraic plane curve.
Contents
Low dimension
Dimension < 2
Square matrices with less than two rows and two columns are rarely considered per se, but may occur when working with n × n matrices where n is a unspecified natural number.
A 0 × 0 matrix is the empty matrix with 0 row, 0 column and no entries. The usual conventions for the empty set and the empty product imply that the determinant of the empty matrix is 1.
A 1 × 1 matrix has a single entry, and its determinant equals this entry:
det
[
a
]
=
a
{\displaystyle \det[a]=a}
An example of the coherency of these conventions is the formula for the inverse matrix of a n × n matrix A with a nonzero determinant
d
{\displaystyle d}
: the inverse is the multiplication by
1
/
d
{\displaystyle 1/d}
of the adjugate matrix of A, which is a n × n matrix whose entries are, up to the sign, determinants of
This simple form allows verifying by direct computation the properties listed in § Properties.
3 × 3 matrices
By the Leibniz formula for determinants, the determinant of a 3 × 3 matrix is
|
a
b
c
d
e
f
g
h
i
|
=
a
e
i
+
b
f
g
+
c
d
h
−
c
e
g
−
b
d
i
−
a
f
h
.
Definitions
The determinant of a square matrix is a scalar uniquely associated to it. Commonly, matrix entries and determinants are real or complex numbers, but, more generally, matrix entries may belong to any commutative ring, in which case the scalars and the determinant belong to this ring. If
A
=
[
a
1
,
1
a
1
,
2
⋯
a
1
,
n
a
2
,
1
a
2
,
2
⋯
a
2
,
n
⋮
⋮
⋱
⋮
By multiplicative property
The determinant is the unique function from the square matrices to the scalars that maps a product of matrices of the same size to the product of their determinants, and maps every triangular matrix to the product of their diagonal entries. That is,
det
(
A
B
)
=
det
(
A
)
det
(
B
)
{\displaystyle \det(AB)=\det(A)\det(B)}
and
|
a
1
,
1
a
1
,
2
a
1
,
3
…
a
1
By elementary transformations
An elementary row transformation is a transformation of a matrix of one of the following types, where
R
i
{\displaystyle R_{i}}
denotes the ith row of the matrix:
Multiplying one row by a scalar:
R
i
→
λ
R
i
{\displaystyle R_{i}\to \lambda R_{i}}
Adding to a row a scalar multiple of another row:
R
i
→
R
i
+
λ
R
j
{\displaystyle R_{i}\to R_{i}+\lambda R_{j}}
Exchanging two rows:
(
R
i
By Leibniz formula
The Leibniz formula is one of the most common definitions of determinants. It is an explicit expression of a determinant as a multivariate polynomial function of the matrix entries. It also makes sense in a general commutative ring, and does not require it to be a field or integral domain. The proof that it satisfies the preceding definitions implies the required existence proof. Also, per uniqueness in the special case of an integral domain, this proves also the equivalence with the other definitions.
To write the Leibniz formula, one needs permutations and their signatures. That is, the determinant of a matrix
The determinant can be also defined as the unique alternating multilinear form of the columns (or the rows) that takes the value 1 on the identity matrix.
For making this more precise, it is convenient to regard an
(for each i) is composed of the entries of the matrix in the i-th column. Being a multilinear form means that if
Over a commutative ring
In the preceding definitions, the matrix entries and the determinants have been supposed to belong to a field. The determinant is also defined for matrices with entries in a commutative ring
R
{\displaystyle R}
, in which case, the determinant is also an element of
R
{\displaystyle R}
. A common example is the Jacobian determinant, where the matrix entries and the determinant are differentiable functions.
The Leibniz formula and the definition as an alternating multilinear form, as well as their equivalence remain valid in this more general case. They imply the properties involved in the definitions by multiplicative property and by elementary transformations.
They imply also a further property, the invariance under ring homomorphisms.That is, if
f
:
R
→
R
′
{\displaystyle f:R\to R'}
is a homomorphism of commutative rings, and if
f
(
M
)
{\displaystyle f(M)}
Generic determinant
A generic matrix is a matrix whose entries are distinct indeterminates. Leibniz formula implies that the determinant of a generic matrix is a polynomial in these indeterminates, with integer coefficients, called a generic determinant. More precisely, if M is an n by n matrix with the
n
2
{\displaystyle n^{2}}
indeterminates
X
1
,
1
,
⋯
,
X
n
,
n
{\displaystyle X_{1,1},\cdots ,X_{n,n}}
as coefficients, then the entries and the determinant of this matrix belong to the polynomial ring
Z
[
X
1
,
1
,
⋯
,
X
n
,
Properties
Basic rules
The properties listed here are parts or immediate consequences of above definitions. They are often used without being referred to explicitly. It follows that it is useful to have them in mind when working with determinants and learning related concepts. In the following list, simple important cases of a property are often listed separately.
Zero test: A determinant equals zero if
all entries of a row or column equal 0,
two rows or columns are equal,
a row or column is a linear combination of the other rows or columns,
a linear combination of rows or columns, with at least one nonzero coefficient, has all its entries equal to zero.
Immediate computation:
The determinant of an identity matrix equals 1.
The determinant of a diagonal matrix is the product of its diagonal entries.
The determinant of a triangular matrix is the product of its diagonal entries.
Simple transformations:
Interchanging two rows or two columns multiplies the determinant by
−
1
{\displaystyle -1}
Homogeneity: Multiplying a row or column by a scalar multiplies the determinant by the same scalar.
Laplace expansion
By Leibniz formula, a determinant is a homogeneous polynomial of degree one in the elements of each row or column. This means that, given a square matrix
The multiplicative property of the determinant implies that, over every commutative ring, if a matrix is invertible, then its determinant is invertible. Conversely, the formulas in § Adjugate matrix, imply that, if the deteerminant is invertible in a commutative ring that contains the entries of the matrix, then the matrix is invertible in the same ring.
In particular, over a field, a matrix is invertible if and only if its determinant is nonzero.
Also, a matrix of integers is invertible over the integers (that is, the inverse has integer entries), if and only if its determinant is
±
1
{\displaystyle \pm 1}
. Such a matrix is called a unimodular matrix.
The invertible matrices n×n matrices over a commutative ring
R
{\displaystyle R}
form a group under multiplication that is called the general linear group and denoted
GL
n
(
R
)
{\displaystyle \operatorname {GL} _{n}(R)}
. The most studied of these groups are
GL
n
Invariance under ring homomorphisms
The determinant is invariant under ring homomorphisms in the following sense. Let
f
:
R
→
S
{\displaystyle f:R\to S}
be a ring homomorphism. For every matrix
M
{\displaystyle M}
with entries in
R
{\displaystyle R}
, let denote by
f
(
M
)
{\displaystyle f(M)}
the matrix obtained by applying
f
{\displaystyle f}
to the entries of
M
{\displaystyle M}
. The invariance under ring homomorphisms is the relation
det
f
(
Hadamard bound
It is often useful to bound the absolute value of a determinant in terms of the size of the entries of the matrix.
In this section,
A
=
(
a
i
,
j
)
{\displaystyle A=(a_{i,j})}
denotes an
n
×
n
{\displaystyle n\times n}
matrix with complex entries whose absolute values are upper bounded by
B
{\displaystyle B}
. The absolute value of its determinant is denoted
|
det
(
A
)
|
{\displaystyle \vert \det(A)\vert }
.
The triangle inequality applied to Leibniz formula shows that
Other determinants
There are several types of mathematical objects that can be represented by square matrices. This allows defining a determinant on these objects.
Determinant of an endomorphism
An endomorphism of a finite-dimensional vector space is commonly represented on a given basis by a square matrix. Two square matrices
A
{\displaystyle A}
and
B
{\displaystyle B}
represent the same endomorphism on different bases if and only if they are similar, that is, if there is an invertible matrix
S
{\displaystyle S}
such that
B
=
S
−
1
A
S
.
{\displaystyle B=S^{-1}AS.}
This implies, by the multiplicative property of determinants, that
det
(
B
)
=
det
(
A
)
Determinant of n vectors
Consider n vectors in a vector space of dimension n. If a basis of the vector space is given, the coordinates of each vector may form a column matrix of n rows. Putting these column matrices together, one gets a square matrix.
The determinant of the
n
{\displaystyle n}
vectors is the determinant of this matrix. As this determinant depends on the choice of a basis, one must use the wording determinant of the
n
{\displaystyle n}
vectors on the given basis in contexts where several bases may be considered.
In the case of a Euclidean vector space (a vector space over the real numbers), one considers generally only orthonormal bases. In this case the determinant of
n
{\displaystyle n}
vectors does not depend on the choice of a specific orthonormal basis, and the phrase "the determinant of
n
{\displaystyle n}
vectors" refers generally to the determinant of the vectors on an orthonormal basis.
Discriminant of a quadratic form
A quadratic form over a field F is a homogeneous polynomial of degree 2. It can be naturally represented by a square matrix. The discriminant of the quadratic form is the determinant of this matrix. It is defined only up to the multiplication by a square. This means that the discriminant is an element of the multiplicative monoid
F
/
(
F
×
)
2
{\displaystyle F/(F^{\times })^{2}}
, where
(
F
×
)
2
{\displaystyle (F^{\times })^{2}}
denotes the set of the nonzero squares in
F
{\displaystyle F}
.
Derivative
Let
A
=
(
a
i
,
j
)
{\displaystyle A=(a_{i,j})}
be a square matrix whose entries are differentiable functions of an independent variable
x
{\displaystyle x}
. Since, by Leibniz formula,
det
(
A
)
{\displaystyle \det(A)}
is a polynomial function of the entries of
A
{\displaystyle A}
, the determinant is a differentiable function of
x
{\displaystyle x}
. Its derivative may be expressed with Jacobi's formula as
d
d
x
Computation
Determinants are mainly used as a theoretical tool. They are rarely calculated explicitly in numerical linear algebra, where for applications such as checking invertibility and finding eigenvalues the determinant has largely been supplanted by other techniques. Computational geometry, however, does frequently use calculations related to determinants.
While the determinant can be computed directly using the Leibniz rule this approach is extremely inefficient for large matrices, since that formula requires calculating
n
!
{\displaystyle n!}
(with
!
{\displaystyle !}
referring to the factorial) products for an
n
×
n
{\displaystyle n\times n}
matrix, which makes the asymptotic growth rate of the number of required operations of order
n
!
{\displaystyle n!}
, which is considered to be very quick. The Laplace expansion is similarly inefficient. Therefore, more involved techniques have been developed for calculating determinants.
Gaussian elimination
Gaussian elimination consists of left multiplying a matrix by elementary matrices for getting a matrix in a row echelon form. One can restrict the computation to elementary matrices of determinant 1. In this case, the determinant of the resulting row echelon form equals the determinant of the initial matrix. As a row echelon form is a triangular matrix, its determinant is the product of the entries of its diagonal.
So, the determinant can be computed for almost free from the result of a Gaussian elimination.
Decomposition methods
Some methods compute
det
(
A
)
{\displaystyle \det(A)}
by writing the matrix as a product of matrices whose determinants can be more easily computed. Such techniques are referred to as decomposition methods. Examples include the LU decomposition, the QR decomposition or the Cholesky decomposition (for positive definite matrices). These methods are of order
O
(
n
3
)
{\displaystyle \operatorname {O} (n^{3})}
, which is a significant improvement over
O
(
n
!
)
{\displaystyle \operatorname {O} (n!)}
.
For example, LU decomposition expresses
A
{\displaystyle A}
as a product
A
Further methods
The order
O
(
n
3
)
{\displaystyle \operatorname {O} (n^{3})}
reached by decomposition methods has been improved by different methods. If two matrices of order
n
{\displaystyle n}
can be multiplied in time
M
(
n
)
{\displaystyle M(n)}
, where
M
(
n
)
≥
n
a
{\displaystyle M(n)\geq n^{a}}
for some
a
>
2
{\displaystyle a>2}
, then there is an algorithm computing the determinant in time
Uses in mathematics
In linear algebra
Determinants are a fundamental tool in linear algebra.
They are rarely used in numerical computations, since they are typically a by-product of the computations in which they could be involved, and no faster algorithms are known for a direct computation.
On the other hand they are unavoidable in proofs, and when matrix entries are functions or depend on parameters. Here are their main uses in linear algebra.
Cramer's rule: Given a system of linear equations consisting in n linearly independent equations in n unknowns, Cramer's rule express each unknown as a quotient of two determinants formed with the coefficients of the system.
Adjugate matrix: Given a square matrix, its adjugate matrix is a matrix whose entries are determinants of submatrices. If the matrix is invertible, it allows expressing each entry of the inerse of an invertible matrix as the quotient of two determinants, an entry of the adjugate matrix divided by the determinant of the inverted matrix.
Rank of a matrix: The rank of a matrix is less to or equal to k if, for all square submatrices of dimension larger than k, the determinant zero. This is not a good method for computing the rank of a matrix, but this shows immediately that the space of the submatrices of rank at most k of a generic
m
×
n
{\displaystyle m\times n}
matrix is an algebraic set, in fact an algebraic variety. This observation plays a fundamental role in the theories of Grassmanians and determinantal ideals
Hadamard's inequality gives upper bounds of the absolute values of problem solutions that can be expressed in terms of determinants (such as the two first above items). In particular, when starting from a matrix of integers, this allows bounding the size of every integer appearing in the solution. A common challenge, is to design algorithms such that every integer used during the resolution does not exceed this bound. This is the case for Bareiss algorithm and multi-modular arithmetic followed with Chinese remaindering.
In Euclidean geometry
This section is devoted to properties of points in a Euclidean space that are expressed in terms of determinants involving their Cartesian coordinates. By abuse of notation, an expression such as
P
=
(
x
,
y
)
{\displaystyle P=(x,y)}
means that
P
{\displaystyle P}
is a point in a Euclidean plane that has
x
{\displaystyle x}
and
y
{\displaystyle y}
as Cartesian coordinates.
Let
P
0
=
(
x
0
,
y
0
)
{\displaystyle P_{0}=(x_{0},y_{0})}
Eigenvalues and characteristic polynomial
An eigenvalue of a linear endomorphism
f
{\displaystyle f}
is a scalar
λ
{\displaystyle \lambda }
such that there is a nonzero vector
u
{\displaystyle u}
(called eigenvector) such that
f
(
u
)
=
λ
u
{\displaystyle f(u)=\lambda u}
. Expressed in term of matrices, this means that an eigenvalue of a matrix
A
{\displaystyle A}
is a scalar
λ
{\displaystyle \lambda }
such that there exists a nonzero column vector
U
{\displaystyle U}
such that
Determinants of functions
Several sorts of determinant of matrices having functions as entries are commonly considered. They are named typically after the mathematician who introduced them.
The Jacobian matrix of a tuple of differentiable functions is the matrix of their partial derivatives. That is, given n differentiable functions
This section is about the use of determinants in a Euclidean vector space, that is, a real vector space, typically
R
n
{\displaystyle \mathbb {R} ^{n}}
, endowen with the usual quadratic norm.
The Determinant of n vectors in
{\displaystyle }
is nonzero if and only the vectors form a basis of
{\displaystyle }
.
In that case, the sign of the determinant determines whether the orientation of the basis is the same or opposite to the orientation of the standard basis. In the case of an orthogonal basis, the absolute value of the determinant equals the product of the lengths of the basis vectors. In particular, for an orthonormal basis, all basis vectors have a length equal to 1, and the determinant is either 1, if the basis has the same orirntation as the standard basis, or –1, otherwise.
More generally, n linearly independent vectors define a linear transformation that maps the standard basis to these vectors. So, a linear transformation preserves the space orientation if its determinant is positive and reverses the orientation if its determinant is negative. As the determinant of a linear transformation is independent of the choice of a particular basis, preserving or reversing the orientation is a property of a linear transformation that does not depend on any basis.
Let
v
1
,
…
Generalizations
Generalizations that are not treated here include:
The immanant which is defined by replacing in Leibniz formula the factors
sgn
(
σ
)
{\displaystyle \operatorname {sgn}(\sigma )}
with another character of the symmetric group
S
n
{\displaystyle S_{n}}
. A special case is the permanent, which replaces
sgn
(
σ
)
{\displaystyle \operatorname {sgn}(\sigma )}
by the constant 1.
Exterior algebra
The determinant of a linear transformation
T
:
V
→
V
{\displaystyle T:V\to V}
of an
n
{\displaystyle n}
-dimensional vector space
V
{\displaystyle V}
or, more generally a free module of (finite) rank
n
{\displaystyle n}
over a commutative ring
R
{\displaystyle R}
can be formulated in a coordinate-free manner by considering the
n
{\displaystyle n}
-th exterior power
⋀
n
V
{\displaystyle \bigwedge ^{n}V}
of
V
{\displaystyle V}
Determinants for finite-dimensional algebras
For any associative algebra
A
{\displaystyle A}
that is finite-dimensional as a vector space over a field
F
{\displaystyle F}
, there is a determinant map
det
:
A
→
F
.
{\displaystyle \det :A\to F.}
This definition proceeds by establishing the characteristic polynomial independently of the determinant, and defining the determinant as the lowest order term of this polynomial. This general definition recovers the determinant for the matrix algebra
, but also includes several further cases including the determinant of a quaternion,
Infinite matrices
For matrices with an infinite number of rows and columns, the above definitions of the determinant do not carry over directly. For example, in the Leibniz formula, an infinite sum (all of whose terms are infinite products) would have to be calculated. Functional analysis provides different extensions of the determinant for such infinite-dimensional situations, which however only work for particular kinds of operators.
The Fredholm determinant defines the determinant for operators known as trace class operators by an appropriate generalization of the formula
Another infinite-dimensional notion of determinant is the functional determinant.
Operators in von Neumann algebras
For operators in a finite factor, one may define a positive real-valued determinant called the Fuglede−Kadison determinant using the canonical trace. In fact, corresponding to every tracial state on a von Neumann algebra there is a notion of Fuglede−Kadison determinant.
Related notions for non-commutative rings
For square matrices with entries in a non-commutative ring, there are various difficulties in defining determinants analogously to that for commutative rings. Multilinearity and alternation are incompatible for n ≥ 2, so there is no definition preferred by "abstract nonsense".
A meaning can be given to the Leibniz formula provided that the order for the product is specified, and similarly for other definitions of the determinant, but non-commutativity then leads to the loss of many fundamental properties of the determinant, such as the multiplicative property or that the determinant is unchanged under transposition of the matrix.
Various notions of non-commutative determinant have been formulated that preserve some of the properties of determinants, notably quasideterminants and the Dieudonné determinant. For some classes of matrices with non-commutative elements, one can prove linear algebra theorems that are very similar to their commutative analogs. Examples include the q-determinant on quantum groups, the Capelli determinant on Capelli matrices, and the Berezinian on supermatrices (i.e., matrices whose entries are elements of
Z
2
{\displaystyle \mathbb {Z} _{2}}
-graded rings). Manin matrices form the class closest to matrices with commutative elements.
History
Historically, determinants were used long before matrices: A determinant was originally defined as a property of a system of linear equations.
The determinant "determines" whether the system has a unique solution (which occurs precisely if the determinant is non-zero).
In Europe, solutions of linear systems of two equations were expressed by Cardano in 1545 by a determinant-like entity.
Determinants proper originated separately from the work of Seki Takakazu in 1683 in Japan and parallelly of Leibniz in 1693. Cramer (1750) stated, without proof, Cramer's rule. Both Cramer and also Bézout (1779) were led to determinants by the question of plane curves passing through a given set of points.
Vandermonde (1771) first recognized determinants as independent functions. Laplace (1772) gave the general method of expanding a determinant in terms of its complementary minors: Vandermonde had already given a special case. Immediately following, Lagrange (1773) treated determinants of the second and third order and applied it to questions of elimination theory; he proved many special cases of general identities.
Gauss (1801) made the next advance. Like Lagrange, he made much use of determinants in the theory of numbers. He introduced the word "determinant" (Laplace had used "resultant"), though not in the present signification, but rather as applied to the discriminant of a quadratic form. Gauss also arrived at the notion of reciprocal (inverse) determinants, and came very near the multiplication theorem.
The next contributor of importance is Binet (1811, 1812), who formally stated the theorem relating to the product of two matrices of m columns and n rows, which for the special case of m = n reduces to the multiplication theorem. On the same day (November 30, 1812) that Binet presented his paper to the Academy, Cauchy also presented one on the subject. (See Cauchy–Binet formula.) In this he used the word "determinant" in its present sense, summarized and simplified what was then known on the subject, improved the notation, and gave the multiplication theorem with a proof more satisfactory than Binet's. With him begins the theory in its generality.
Block matrices and matrix sums
The formula for the determinant of a
2
×
2
{\displaystyle 2\times 2}
matrix above continues to hold, under appropriate further assumptions, for a block matrix, i.e., a matrix composed of four submatrices
A
,
B
,
C
,
D
{\displaystyle A,B,C,D}
of dimension
m
×
m
{\displaystyle m\times m}
,
m
×
n
{\displaystyle m\times n}
,
n
×
m
{\displaystyle n\times m}
and
n
Sum
The determinant of the sum
A
+
B
{\displaystyle A+B}
of two square matrices of the same size is not in general expressible in terms of the determinants of A and of B.
However, for positive semidefinite matrices
A
{\displaystyle A}
,
B
{\displaystyle B}
and
C
{\displaystyle C}
of equal size,
det
(
A
+
B
+
C
)
+
det
(
C
)
≥
det
(
A
Article from Wikipedia (CC BY-SA 4.0), where it is maintained by volunteer editors.
. The area of this parallogram is the absolute value of the determinant
a
d
−
b
c
{\displaystyle ad-bc}
of the matrix. The sign of the determinant determines the relative orientation of the vectors: the determinant is positive if one passes by a counterclockwise rotation from the direction of the vector
(
a
,
c
)
{\displaystyle (a,c)}
to that of
(
b
,
d
)
{\displaystyle (b,d)}
, and negative if a clockwise rotation is needed (if the vectors are aligned, the determinant is zero). So, the determinant is the signed area of the parallelogram.
The proof that the determinant is the signed area of the parallelogram can be done either with trigonometry or by dissection and rearrangement, as shown in the figure.
The rule of Sarrus is a mnemonic for the expanded form of this determinant: the sum of the products of three diagonal north-west to south-east lines of matrix elements, minus the sum of the products of three diagonal south-west to north-east lines of elements, when the copies of the first two columns of the matrix are written beside it as in the illustration. This scheme for calculating the determinant of a 3 × 3 matrix does not carry over into higher dimensions.
There are various equivalent ways to define the determinant of a square matrix A, and it depends on authors which definition is chosen as the primary one, as well as the level of generality. In this article, the definition by the multiplicative property has been chosen as the primary one, because it is simple and does not require specific background.
In this section, the scalars (matrix entries and determinants) are assumed to belong to a field, such as the real or complex numbers. The multiplicative and elementary-transformation characterizations remain valid over an integral domain, but their equivalence requires a different argument, using fraction-free elimination and cancellation rather than ordinary Gaussian elimination. That argument is not given here.
Such a definition requires the proof that such a function exists and is unique. This will be a byproduct of the proof of the equivalence with other definitions.
,
R
j
)
→
(
R
j
,
R
i
)
{\displaystyle (R_{i},R_{j})\to (R_{j},R_{i})}
Elementary column transformations are defined similarly by replacing "row" with "column". Transformations of type 3 may be obtained as a succession of transformations of types 1 and 2: the exchange of rows i and j may be done by the following succession of transformations, where
R
i
{\displaystyle R_{i}}
denotes the current ith row (not necessarily the original one):
The determinant is the unique function of the entries of a square matrix such that the determinant of the identity matrix is 1, the transformations of type 1 multiply the determinant by the involved scalar, and the transformations of type 2 do not change the determinant; it follows that the transformations of type 3 multiply the determinant by –1.
For proving that this definition is equivalent to the preceding one, one has to interpret elementary transformations in terms of elementary matrices. In fact, an elementary transformation
R
i
→
λ
R
i
{\displaystyle R_{i}\to \lambda R_{i}}
amounts to left-multiply the matrix by the diagonal matrix with all diagonal elements equal to 1 except the ith that equals
λ
{\displaystyle \lambda }
. An elementary transformation
R
i
→
R
i
+
λ
R
j
{\displaystyle R_{i}\to R_{i}+\lambda R_{j}}
amounts to left-multiplication of the matrix by a triangular matrix in which all diagonal entries are equal to 1,
the entry in the ith row and the ijth column is equal to
λ
{\displaystyle \lambda }
, and all other entries are zero.
A determinant function that satisfies the definition by multiplicative properties satisfy the definition by elementary transformations since the identity matrix is a triangular matrix and the other conditions of the latter definition are the restriction of the multiplicative property to the case where the left factor is an elementary matrix.
Conversely, a determinant function that satisfies the definition by elementary transformations satisfies also the other definition. Over a field, Gaussian elimination allows proving that every matrix can be expressed as a product of elementary matrices (provided that zero is allowed as a scalar for the elementary transformations of type 1). So, for proving
det
(
A
)
det
(
B
)
=
det
(
A
B
)
{\displaystyle \det(A)\,\det(B)=\det(AB)}
, it suffices to express A as a product of elementary matrices and apply associative property of matrix product.
Uniqueness of the determinant results also from Gaussian elimination. Indeed, over a field one may transform, by means of elementary transformations, any matrix into a row echelon form, which is a specific triangular matrix. This allows computing the determinant. However, it does not by itself establish that the value obtained is independent of the elimination path or of the elementary matrices, so it does not prove the existence of the determinant. Instead, what it shows is that if two determinant functions are given, then they agree on every such path and therefore are identical. So it remains only to construct a function that satisfies the properties defining the determinant, a task taken up below.
as 0 if two of the integers are equal, and otherwise as the signature of the permutation formed by the n-tuple. With the Levi-Civita symbol, the Leibniz formula becomes
where the sum is taken over all n-tuples of integers in
{
1
,
…
,
n
}
.
{\displaystyle \{1,\ldots ,n\}.}
To prove that the Leibniz formula satisfies the definition of the preceding sections, one proves first that it is an alternating multilinear form that takes the value 1 on the identity matrix (see next section): multilinearity results from the fact that the Leibniz formula is a homogeneous polynomial of degree one in the entries of each column of the matrix; the fact that the form is alternating and takes the value 1 on the identity matrix result from basic properties of permutations. Then, it suffices to applies the results of the next section.
The fact that the form is alternating means that it takes the value 0 if two columns are equal.
To prove that this definition is equivalent with the preceding ones, it suffices to verify the properties of the definition by elementary transformations (above), which is straightforward.
denotes the matrix obtained by applying
f
{\displaystyle f}
to the entries of
M
{\displaystyle M}
, then
det
(
f
(
M
)
)
=
f
(
det
(
M
)
)
{\displaystyle \det(f(M))=f(\det(M))}
.
Among many other uses (see § Invariance under ring homomorphisms, below), this invariance is used, often implicitly, for proving the uniqueness of the determinant in the general case of commutative rings .
So, for proving properties of determinants over a commutative ring
R
{\displaystyle R}
that is not an integral domain, it suffices often to prove it over fields, then, to use the invariance under ring homorphisms to "transfer" it over integral domains, and finally to use
φ
M
{\displaystyle \varphi _{M}}
to transfer it over
R
{\displaystyle R}
.
A property of a generic determinant that is useful in some contexts is that it is an irreducible polynomial (See Determinantal ideal § Properties for a more general property).
A matrix and its transpose have the same determinant.
Adding to a row or column the product of a row or column by a scalar does not change the determinant.
Adding to a row or column a linear combination of the other rows or columns does not change the determinant.
Matrix multiplication:
The determinant of the product of two matrices is the product of their determinant.
Two similar matrices have the same determinant.That is, given two square matrices
A
{\displaystyle A}
and
B
{\displaystyle B}
, if there is an invertible matrix
S
{\displaystyle S}
such that
B
=
S
−
1
A
S
{\displaystyle B=S^{-1}AS}
, then
det
(
B
)
=
det
(
A
)
{\displaystyle \det(B)=\det(A)}
.
Inversibility:
Over a field, a matrix is invertible if and only if its determinant is nonzero.
Over a commutative ring, a matrix is invertible if and only if its determinant is invertible in the ring. In this case, the entries of the inverse matrix belong also to the ring.
In particular, a square matrix of integers has an inverse that is also a matrix of integers if and only if its determinant is
1
{\displaystyle 1}
or
−
1
{\displaystyle -1}
.
A
i
,
j
{\displaystyle A_{i,j}}
is a polynomial in the other entries of the matrix that is called the cofactor of
i
,
j
{\displaystyle _{i,j}}
. This linear expansion is called the expansion of the determinant along the
i
{\displaystyle i}
th row. The expansion of the determinant along the
j
{\displaystyle j}
th column is defined similarly.
Laplace expansion provides an explicit expression of the coefficients
A
i
,
j
{\displaystyle A_{i,j}}
: one has
A
i
,
j
=
(
−
1
)
i
+
j
M
i
,
j
,
{\displaystyle A_{i,j}=(-1)^{i+j}M_{i,j},}
where
M
i
,
j
{\displaystyle M_{i,j}}
is the minor of the ith row and the jth column, that is, the determinant of matrix of order
n
−
1
{\displaystyle n-1}
obtained by removing the ith row and the jth column of the matrix
A
{\displaystyle A}
.
For example, the Laplace expansion along the first row of a 3 by 3 matrix is:
Laplace expansion can be used iteratively for computing determinants, but this approach is inefficient for large matrices. Indeed a naive implementation requires the computation of
n
!
{\displaystyle n!}
(factorial of
n
{\displaystyle n}
) sub-determinants; if computed determinants are memorized for avoiding to compute them several times, there are nevertheless
2
n
−
1
{\displaystyle 2^{n}-1}
sub-determinants to compute, giving an exponential algorithm, when Gaussian elimination provides a polynomial time algorithm.
However, Laplace expansion nmay be useful for proving by recursion formulas depending of parameters.
Laplace expansion is also often useful for sparse matrices. For example, if
a
i
,
j
{\displaystyle a_{i,j}}
is the unique nonzero entry of its row or of its column, one has
det
A
=
(
−
1
)
i
,
j
M
i
,
j
,
{\displaystyle \det A=(-1)^{i,j}M_{i,j},}
where
M
i
,
j
{\displaystyle M_{i,j}}
is the minor obtained by removing the ith row and the jth column of the matrix.
is an inclusion, this means that the determinant of a matrix with entries in
R
{\displaystyle R}
does not depend whether the entries are considered as belonging to
R
{\displaystyle R}
or
S
{\displaystyle S}
. In particular the determinant of a matrix belongs to the smallest ring that contains the entries of the matrix.
The determinant of a matrix of integers is always an integer, and, for computing it, one can use divisions, that is, working over the field
Q
{\displaystyle \mathbb {Q} }
of the rational numbers. Even if divisions introduce intermediate values that are not in
Z
{\displaystyle \mathbb {Z} }
, the final result will be in
Z
{\displaystyle \mathbb {Z} }
, and will be the same as if the computation would have been done without division.
The invariance applies also when
S
=
R
{\displaystyle S=R}
and
f
{\displaystyle f}
is an automorphism. In particular, the determinant of the conjugate of a matrix of complex numbers is the conjugate of the determinant of the matrix.
The invariance allows also using modular arithmetic for efficiently computing a determinant with integer entries. This consists in reducing the entries modulo several prime numbers
p
i
{\displaystyle p_{i}}
, computing the determinant in each field
Z
/
p
i
Z
{\displaystyle \mathbb {Z} /p_{i}\mathbb {Z} }
(possibly with different methods), and recovering the result with the Chinese remainder theorem.
The invariance under ring homomorphisms can be expressed in terms of category theory as follows. The determinant is a natural transformation between two functors from the category of commutative rings to the category of monoids. The first functor maps each ring to the monoid (under matrix multiplication) of the square matrices of order
n
{\displaystyle n}
with entries in the ring. The second functor is the forgetful functor that maps a ring to its underlying multiplicative monoid.
|
det
(
A
)
|
≤
n
!
B
n
{\displaystyle \vert \det(A)\vert \leq n!B^{n}}
. This bound is arely considered because the following bound is always sharper for
Hadamard inequality is the algebraic counterpart of the following theorem of Euclidean geometry: the volume of the parallelotope defined by n vectors in an n-dimensional Euclidean vector space is at most the product of the lengths of the vectors, and the equality holds if and only if the vectors are pairwise ortogonal.
If the matrix
A
{\displaystyle A}
is positive definite, Hadamard inequality implies that the determinant is upperbounded by the product of the entries of the main diagonal; that is,
(No absolute value is needed here, since the determinant of a positive definite matrix and its diagonal enties are all real and positive.)
This inequality is sometimes also called the Hadamard inequality.
.
{\displaystyle \det(B)=\det(A).}
This allows defining the determinant of an endomorphism as the determinant of the matrix that represents the endomorphism on any basis. Indeed, this determinant does not depend on the basis chosen for representing the endomorphism by a matrix.
algorithm for computing the determinant exists based on the Coppersmith–Winograd algorithm. This exponent has been further lowered, as of 2016, to 2.373.
In addition to the complexity of the algorithm, further criteria can be used to compare algorithms.
Especially for applications concerning matrices over rings, algorithms that compute the determinant without any divisions exist. (By contrast, Gauss elimination requires divisions.) One such algorithm, having complexity
O
(
n
4
)
{\displaystyle \operatorname {O} (n^{4})}
is based on the following idea: one replaces permutations (as in the Leibniz rule) by so-called closed ordered walks, in which several items can be repeated. The resulting sum has more terms than in the Leibniz rule, but in the process several of these products can be reused, making it more efficient than naively computing with the Leibniz rule. Algorithms can also be assessed according to their bit complexity, i.e., how many bits of accuracy are needed to store intermediate values occurring in the computation. For example, the Gaussian elimination (or LU decomposition) method is of order
O
(
n
3
)
{\displaystyle \operatorname {O} (n^{3})}
, but the bit length of intermediate values can become exponentially long. By comparison, the Bareiss Algorithm, is an exact-division method (so it does use division, but only in cases where these divisions can be performed without remainder) is of the same order, but the bit complexity is roughly the bit size of the original entries in the matrix times
n
{\displaystyle n}
.
If the determinant of A and the inverse of A have already been computed, the matrix determinant lemma allows rapid calculation of the determinant of A + uvT, where u and v are column vectors.
Charles Dodgson (i.e. Lewis Carroll of Alice's Adventures in Wonderland fame) invented a method for computing determinants called Dodgson condensation. This method does not always work in its original form.
,
P
1
=
(
x
1
,
y
1
)
{\displaystyle P_{1}=(x_{1},y_{1})}
, and
P
2
=
(
x
2
,
y
2
)
{\displaystyle P_{2}=(x_{2},y_{2})}
be three points in a Euclidean plane.
The three points are collinear (that is, belong to the same line), if and only if
This means that the determinant considered here is the determinant of the vectors
P
0
P
1
→
{\displaystyle {\vec {P_{0}P_{1}}}}
and
P
0
P
2
→
{\displaystyle {\vec {P_{0}P_{2}}}}
.
If the points are not aligned, the absolute value of the determinant is twice the area of the triangle defined by the points, and the sign of the determinant determines the orientation of the triangle: it is positive if and only if
P
0
{\displaystyle P_{0}}
is on the left when running from
P
1
{\displaystyle P_{1}}
to
P
2
{\displaystyle P_{2}}
.
If one replaces
P
0
{\displaystyle P_{0}}
with an indeterminate point
P
=
(
X
,
Y
)
{\displaystyle P=(X,Y)}
, one gets the implicit equation of the line passing through two (distinct) points
This means that the determinant considered here is the determinant of the vectors
P
0
P
1
→
{\displaystyle {\vec {P_{0}P_{1}}}}
,
P
0
P
2
→
{\displaystyle {\vec {P_{0}P_{2}}}}
, and
P
0
P
3
→
{\displaystyle {\vec {P_{0}P_{3}}}}
.
If the points are not coplanar, the absolute value of the determinant is six times the volume of the tetrahedron defined by the points, and the sign of the determinant determines the orientation of the tetrahedon; in particular, this sign determines the side of the plane
P
1
P
2
P
3
{\displaystyle P_{1}P_{2}P_{3}}
where
P
0
{\displaystyle P_{0}}
is placed. This criterion is commonly used in computer graphics and computer vision to recognize the hidden parts of a 3D figure.
If one replaces
P
0
{\displaystyle P_{0}}
with an indeterminate point
P
=
(
X
,
Y
,
Z
)
{\displaystyle P=(X,Y,Z)}
, one gets the implicit equation of the plane passing through three non-collinear points
In a higher dimension n, things work similarly, with n coordinates,
n
+
1
{\displaystyle n+1}
points, and "coplanar" and "tetrahedron" replaced with "belonging to the same hyperplane" and "simplex". Besides the change of matrix dimensions, the main change is that the determinant is
n
!
{\displaystyle n!}
(factorial n) times the volume of the simplex.
A
U
=
λ
U
.
{\displaystyle AU=\lambda U.}
It is equivalent to say that
(
λ
I
−
A
)
U
=
0
,
{\displaystyle (\lambda I-A)U=0,}
where
I
{\displaystyle I}
and
0
{\displaystyle 0}
denote respectively the identity matrix and the zero column vector of the convenient size. This means exactly that the columns of
λ
I
−
A
{\displaystyle \lambda I-A}
are linearly dependent, or equivalently that
det
(
λ
I
−
A
)
=
0.
{\displaystyle \det(\lambda I-A)=0.}
In other words, the eigenvalues are the roots of the polynomial
det
(
X
I
−
A
)
{\displaystyle \det(XI-A)}
, which is called the characteristic polynomial of the matrix
A
{\displaystyle A}
. Being a determinant, the characteristic polynomial is invariant under matrix similarity, and is therefore defined also for linear endomorphisms.
For a square matrix
A
{\displaystyle A}
of order
n
{\displaystyle n}
, the characteristic polynomial is a monic polynomial of degree
n
{\displaystyle n}
. All its coefficients are invariant under matrix similarity. Its constant coefficient, obtained by setting
X
=
0
{\displaystyle X=0}
, is
(
−
1
)
n
det
(
A
)
{\displaystyle (-1)^{n}\det(A)}
.
The coefficient of
X
n
−
1
{\displaystyle X^{n-1}}
in the characteristic polynomial is
−
Tr
(
A
)
{\displaystyle -\operatorname {Tr} (A)}
, where
Tr
(
A
)
{\displaystyle \operatorname {Tr} (A)}
, denotes the trace of the matrix. Per Viete's formula, it is the sum of the eigenvalues (counted with their multiplicities). It results from the Leibniz formula that the trace is also the sum of the diagonal entries of
, the determinant of a Jacobian matrix is called the Jacobian determinant. It is thus a function of the n variables.
The Jacobian matrix is a generalization of the usual derivative to multivariate vector valued functions. In this generalization, the common condition
f
′
(
x
)
≠
0
{\displaystyle f'(x)\neq 0}
is replaced
J
≠
0
{\displaystyle J\neq 0}
, where J is the Jacobian determinant.
Among the numerous uses of the Jacobian determinant, the two following ones are especially important:
The Jacobian determinant occurs in the formula for a change of variable in a multiple integral.
The nonnullity of the Jacobian determinant is a hypothesis of the Implicit function theorem and the inverse function theorem .
Determinants can be used to characterize Given functions
f
1
(
x
)
,
…
,
f
n
(
x
)
{\displaystyle f_{1}(x),\dots ,f_{n}(x)}
(supposed to be
n
−
1
{\displaystyle n-1}
times differentiable), the Wronskian is defined to be
If it can be shown that the Wronskian is zero everywhere on an interval then, in the case of analytic functions, this implies that the given functions are linearly dependent. See the Wronskian and linear independence.
,
v
n
{\displaystyle v_{1},\ldots ,v_{n}}
be n vectors in an Euclidean vector space of dimension n. The parallelotope generated by these vectors is the set of all vectors
a
1
v
1
+
⋯
,
a
n
v
n
{\displaystyle a_{1}v_{1}+\cdots ,a_{n}v_{n}}
such that every
a
i
{\displaystyle a_{i}}
is a real number such that
0
≤
a
i
≤
1
{\displaystyle 0\leq a_{i}\leq 1}
.
Given an orthonormal basis (often the standard basis of
R
n
{\displaystyle \mathbb {R} ^{n}}
), the n-dimensional volume of the parallelotope generated by n vectors is the absolute value of the determinant of these vectors on this basis. The volume is zero if the vectors are linearly dependent. If the vectors are linearly independent, the determinant is positive if the vectors have the same orientation as the basis vectors, and otherwise negative.
The parallelotope generated by an orthonormal basis is a unit hypercube and its volume is 1.
Since a linear transformation is uniquely defined by the image of an orthonormal basis, the determinant
D
{\displaystyle D}
of a bijective linear transformation
f
{\displaystyle f}
of a
n
{\displaystyle n}
-dimensional Euclidean vector space has the following properties:
If
D
>
0
{\displaystyle D>0}
, the transformation
f
{\displaystyle f}
preserves space orientation.
If
D
<
0
{\displaystyle D<0}
, the transformation
f
{\displaystyle f}
reverses space orientation.
The transformation
f
{\displaystyle f}
multiplies every n-dimensional volume by the absolute value
|
D
|
{\displaystyle \vert D\vert }
.
As pointed out above, the absolute value of the determinant of real vectors is equal to the volume of the parallelepiped spanned by those vectors. As a consequence, if
By calculating the volume of the tetrahedron bounded by four points, they can be used to identify skew lines. The volume of any tetrahedron, given its vertices
Its determinant, the Jacobian determinant, appears in the higher-dimensional version of integration by substitution: for suitable functions f and an open subset U of Rn (the domain of f), the integral over f(U) of some other function φ : Rn → Rm is given by
This definition agrees with the more concrete coordinate-dependent definition. This can be shown using the uniqueness of a multilinear alternating form on
n
{\displaystyle n}
-tuples of vectors in
R
n
{\displaystyle R^{n}}
.
For this reason, the highest non-zero exterior power
⋀
n
V
{\displaystyle \bigwedge ^{n}V}
(as opposed to the determinant associated to an endomorphism) is sometimes also called the determinant of
V
{\displaystyle V}
and similarly for more involved objects such as vector bundles or chain complexes of vector spaces. Minors of a matrix can also be cast in this setting, by considering lower alternating forms
of a field extension, as well as the Pfaffian of a skew-symmetric matrix and the reduced norm of a central simple algebra.
Jacobi (1841) used the functional determinant which Sylvester later called the Jacobian. In his memoirs in Crelle's Journal for 1841 he specially treats this subject, as well as the class of alternating functions which Sylvester has called alternants. About the time of Jacobi's last memoirs, Sylvester (1839) and Cayley began their work. Cayley 1841 introduced the modern notation for the determinant using vertical bars.
The study of special forms of determinants has been the natural result of the completion of the general theory. Axisymmetric determinants have been studied by Lebesgue, Hesse, and Sylvester; persymmetric determinants by Sylvester and Hankel; circulants by Catalan, Spottiswoode, Glaisher, and Scott; skew determinants and Pfaffians, in connection with the theory of orthogonal transformation, by Cayley; continuants by Sylvester; Wronskians (so called by Muir) by Christoffel and Frobenius; compound determinants by Sylvester, Reiss, and Picquet; Jacobians and Hessians by Sylvester; and symmetric gauche determinants by Trudi. Of the textbooks on the subject Spottiswoode's was the first. In America, Hanus (1886), Weld (1893), and Muir/Metzler (1933) published treatises.
×
n
{\displaystyle n\times n}
, respectively. The easiest such formula, which can be proven using either the Leibniz formula or a factorization involving the Schur complement, is