šŸ”¢

Determinants: Linear Algebra Study Notes

October 11, 2026

šŸ”¢ Determinants

  • Definition and notation of the determinant
  • Low dimensions: empty, 1 Ɨ 1, 2 Ɨ 2 (parallelogram area) and 3 Ɨ 3 (rule of Sarrus)
  • Equivalent definitions: multiplicative property, elementary transformations, Leibniz formula, alternating multilinear form
  • Determinants over a commutative ring and generic determinants
  • Properties: zero test, transformations, invertibility, Laplace expansion, adjugate matrix
  • Invariance under ring homomorphisms and the Hadamard bound
  • Other determinants: endomorphisms, n vectors, quadratic forms
  • Derivative of the determinant (Jacobi's formula)
  • Computation: Gaussian elimination, decompositions, faster methods
  • Uses in linear algebra, geometry, eigenvalues, functions (Jacobian, Wronskian) and vector geometry
  • Generalizations: immanant, exterior algebra, finite-dimensional algebras

šŸ’” What Is a Determinant?

The determinant is a scalar-valued function of the entries of a square matrix. It has many properties that make it fundamental for the study of square matrices and of the linear transformations they represent.

  • Common notations for the determinant of a matrix AA: det⁔(A)\det(A), det⁔A\det A, or ∣A∣|A|.
  • For dimensions two and three, it is explicitly:

det⁔[abcd]=adāˆ’bc,\det\begin{bmatrix}a&b\\c&d\end{bmatrix}=ad-bc,

det⁔[abcdefghi]=aei+bfg+cdhāˆ’cegāˆ’bdiāˆ’afh.\det\begin{bmatrix}a&b&c\\d&e&f\\g&h&i\end{bmatrix}=aei+bfg+cdh-ceg-bdi-afh.

Key ideas at a glance

  • A simple, conceptual definition: the determinant 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 a 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. Over a field, this means the determinant is nonzero.
  • The adjugate matrix gives an explicit expression of the inverse matrix.
  • Two similar matrices have the same determinant, so the determinant of a linear transformation is well defined.
  • For real linear transformations, the determinant is the scale factor by which the transformation alters every volume:
    • positive if orientation is preserved
    • negative if orientation is reversed
    • zero if the transformation is not bijective
  • The determinant is linear in each row and each column, so it is a multilinear function.
  • Laplace expansion expresses the coefficients of this linear combination as determinants of one dimension less, called cofactors. It is useful when rows or columns are very sparse (only one or two nonzero entries).

Where determinants occur

AreaRole of the determinant
Linear systemsCramer's rule expresses the solution in terms of determinants
EigenvaluesThe characteristic polynomial is a determinant with polynomial entries; its roots are the eigenvalues
GeometryAreas, volumes, space orientation and colinearity
AnalysisThe Jacobian determinant gives the change of variables in multiple integrals; its non-nullity is a hypothesis of the implicit function theorem
Algebraic geometryThe Hessian determinant allows finding inflexion points of an algebraic plane curve

Determinants can be computed efficiently with Gaussian elimination and singular value decomposition. The Leibniz formula or Laplace expansion can compute them theoretically, but this is inefficient except in special cases.


šŸ“ Low Dimensions

Dimension below 2

  • Matrices with fewer than two rows and columns are rarely considered per se, but may occur when working with nƗnn \times n matrices where nn is an unspecified natural number.
  • A 0Ɨ00 \times 0 matrix is the empty matrix (no rows, no columns, no entries). By the usual conventions for the empty set and the empty product, its determinant is 1.
  • A 1Ɨ11 \times 1 matrix has a single entry, and its determinant equals that entry: det⁔[a]=a\det[a]=a.

Coherency of these conventions. For an nƗnn\times n matrix AA with nonzero determinant dd, the inverse is the multiplication by 1/d1/d of the adjugate matrix, whose entries are (up to sign) determinants of (nāˆ’1)Ɨ(nāˆ’1)(n-1)\times(n-1) submatrices. For n=1n=1, the single entry of the adjugate is the determinant of the empty matrix, which is 1. So

[d]āˆ’1=1d [1]=[1d],[d]^{-1}=\tfrac{1}{d}\,[1]=\left[\tfrac{1}{d}\right],

which is what is expected for 1Ɨ11\times 1 matrices.

Two by two matrices

det⁔(abcd)=∣abcd∣=adāˆ’bc.\det\begin{pmatrix}a&b\\c&d\end{pmatrix}=\begin{vmatrix}a&b\\c&d\end{vmatrix}=ad-bc.

This simple form allows verifying by direct computation the properties listed under Properties below.

Parallelogram area

A main use of 2Ɨ22\times 2 determinants is computing the area of the parallelogram defined by two vectors in a Euclidean plane.

  • The column vectors (ac)\begin{pmatrix}a\\c\end{pmatrix} and (bd)\begin{pmatrix}b\\d\end{pmatrix} define a parallelogram with vertices (0,0)(0,0), (a,c)(a,c), (b,d)(b,d) and (a+b,c+d)(a+b,c+d).
  • Its area is the absolute value of adāˆ’bcad-bc.
  • The sign gives the relative orientation of the vectors:
    • positive if one passes from (a,c)(a,c) to (b,d)(b,d) by a counterclockwise rotation
    • negative if a clockwise rotation is needed
    • zero if the vectors are aligned
  • So the determinant is the signed area of the parallelogram. The proof can be done with trigonometry or by dissection and rearrangement.

3 Ɨ 3 matrices

By the Leibniz formula:

∣abcdefghi∣=aei+bfg+cdhāˆ’cegāˆ’bdiāˆ’afh.\begin{vmatrix}a&b&c\\d&e&f\\g&h&i\end{vmatrix}=aei+bfg+cdh-ceg-bdi-afh.

  • The rule of Sarrus is a mnemonic for this expanded form: the sum of the products of the three diagonal lines running north-west to south-east, minus the sum of the products of the three diagonal lines running south-west to north-east, when copies of the first two columns are written beside the matrix.
  • This scheme does not carry over into higher dimensions.

šŸ“š Definitions

The determinant of a square matrix is a scalar uniquely associated to it. Commonly the entries and determinants are real or complex numbers, but more generally the entries may belong to any commutative ring, in which case the determinant belongs to this ring.

For a square matrix with nn rows and columns

A=[a1,1a1,2⋯a1,na2,1a2,2⋯a2,n⋮⋮⋱⋮an,1an,2⋯an,n],A=\begin{bmatrix}a_{1,1}&a_{1,2}&\cdots&a_{1,n}\\a_{2,1}&a_{2,2}&\cdots&a_{2,n}\\\vdots&\vdots&\ddots&\vdots\\a_{n,1}&a_{n,2}&\cdots&a_{n,n}\end{bmatrix},

the determinant is denoted det⁔(A)\det(A), det⁔A\det A, or by vertical bars around the array of entries.

  • Several equivalent definitions exist; which is primary depends on the author and the level of generality.
  • Here, the multiplicative property is chosen as the primary definition because it is simple and needs no specific background.
  • In this section the scalars are assumed to belong to a field. The multiplicative and elementary-transformation characterizations remain valid over an integral domain, but their equivalence requires a different argument (fraction-free elimination and cancellation instead of ordinary Gaussian elimination).

Definition by multiplicative property

The determinant is the unique function from square matrices to scalars that

  1. maps a product of matrices of the same size to the product of their determinants: det⁔(AB)=det⁔(A)det⁔(B)\det(AB)=\det(A)\det(B)
  2. maps every triangular matrix to the product of its diagonal entries: a1,1⋯an,na_{1,1}\cdots a_{n,n}

Such a definition requires a proof that the function exists and is unique. This is a byproduct of the proof of equivalence with the other definitions.

Definition by elementary transformations

An elementary row transformation is one of three types, where RiR_i denotes the iith row:

TypeTransformation
1Multiply one row by a scalar: Ri→λRiR_i\to\lambda R_i
2Add to a row a scalar multiple of another row: Ri→Ri+Ī»RjR_i\to R_i+\lambda R_j
3Exchange two rows: (Ri,Rj)→(Rj,Ri)(R_i,R_j)\to(R_j,R_i)
  • Elementary column transformations are defined similarly.
  • Type 3 can be obtained as a succession of types 1 and 2:

Ri→Ri+Rj,Rj→Rjāˆ’Ri,Ri→Ri+Rj,Rjā†’āˆ’RjR_i\to R_i+R_j,\qquad R_j\to R_j-R_i,\qquad R_i\to R_i+R_j,\qquad R_j\to -R_j

Definition. The determinant is the unique function of the entries of a square matrix such that:

  • the determinant of the identity matrix is 1
  • type 1 transformations multiply the determinant by the involved scalar
  • type 2 transformations do not change the determinant

It follows that type 3 transformations multiply the determinant by āˆ’1-1.

Why it is equivalent to the multiplicative definition:

  • Ri→λRiR_i\to\lambda R_i amounts to left-multiplying by a diagonal matrix with all diagonal entries 1 except the iith, which is Ī»\lambda.
  • Ri→Ri+Ī»RjR_i\to R_i+\lambda R_j amounts to left-multiplying by a triangular matrix with all diagonal entries 1, entry Ī»\lambda in row ii and column jj, and all other entries zero.
  • A function satisfying the multiplicative definition satisfies the elementary one, since the identity matrix is triangular and the other conditions are the multiplicative property with an elementary matrix as left factor.
  • Conversely, over a field Gaussian elimination shows every matrix is a product of elementary matrices (zero allowed as a scalar for type 1). To prove det⁔(A)det⁔(B)=det⁔(AB)\det(A)\det(B)=\det(AB), express AA as such a product and use associativity of the matrix product.
  • Uniqueness also follows from Gaussian elimination: any matrix can be transformed to a row echelon form (a triangular matrix). This shows that two determinant functions agree on every such path and are therefore identical. It does not by itself prove existence, since it does not show the value is independent of the elimination path. A function with the defining properties must still be constructed.

Leibniz formula

The Leibniz formula is one of the most common definitions. It is an explicit expression of the determinant as a multivariate polynomial in the matrix entries, and it makes sense over a general commutative ring (no field or integral domain needed). Proving it satisfies the preceding definitions gives the required existence proof.

It uses permutations and their signatures:

det⁔(A)=āˆ‘Ļƒsgn⁔(σ)āˆi=1nai,σ(i),\det(A)=\sum_{\sigma}\operatorname{sgn}(\sigma)\prod_{i=1}^{n}a_{i,\sigma(i)},

where σ\sigma runs over all permutations of {1,…,n}\{1,\ldots,n\}.

  • For the empty matrix, det⁔[Ā ]=1\det[~]=1. For n=1n=1, det⁔[a1,1]=a1,1\det[a_{1,1}]=a_{1,1}.
  • Otherwise the formula is often expanded as

det⁔(A)=āˆ‘Ļƒsgn⁔(σ) a1,σ(1)⋯an,σ(n).\det(A)=\sum_{\sigma}\operatorname{sgn}(\sigma)\,a_{1,\sigma(1)}\cdots a_{n,\sigma(n)}.

Levi-Civita symbol variant. The symbol εi1,…,in\varepsilon_{i_1,\ldots,i_n} is defined on nn-tuples (i1,…,in)(i_1,\ldots,i_n) of integers in {1,…,n}\{1,\ldots,n\} as 0 if two of the integers are equal, and otherwise as the signature of the permutation formed by the tuple. Then

det⁔(A)=āˆ‘i1,i2,…,inεi1⋯in a1,i1⋯an,in.\det(A)=\sum_{i_1,i_2,\ldots,i_n}\varepsilon_{i_1\cdots i_n}\,a_{1,i_1}\cdots a_{n,i_n}.

Why the Leibniz formula satisfies the other definitions: one proves it is an alternating multilinear form taking the value 1 on the identity matrix.

  • Multilinearity holds because the formula is a homogeneous polynomial of degree one in the entries of each column.
  • Being alternating and equal to 1 on the identity follows from basic properties of permutations.

Alternating multilinear form

The determinant can also be defined as the unique alternating multilinear form of the columns (or rows) that takes the value 1 on the identity matrix.

Regard an nƗnn\times n matrix as composed of its columns, A=(a1,…,an)A=(a_1,\dots,a_n).

  • Multilinear: if A=(a1,…,ai,…,an)A=(a_1,\dots,a_i,\ldots,a_n) and A′=(a1,…,ai′,…,an)A'=(a_1,\dots,a'_i,\ldots,a_n) differ in one column only, then for every scalar rr

det⁔(a1,…,ai+rai′,…,an)=det⁔(a1,…,ai,…,an)+rdet⁔(a1,…,ai′,…,an).\det(a_1,\dots,a_i+ra'_i,\ldots,a_n)=\det(a_1,\dots,a_i,\ldots,a_n)+r\det(a_1,\dots,a'_i,\ldots,a_n).

  • Alternating: the form takes the value 0 if two columns are equal.

Equivalence with the earlier definitions follows by checking the elementary-transformation properties, which is straightforward.

Over a commutative ring

The determinant is also defined for matrices with entries in a commutative ring RR, and then it is an element of RR. A common example is the Jacobian determinant, where entries and determinant are differentiable functions.

  • The Leibniz formula and the alternating multilinear definition, and their equivalence, remain valid in this more general case. They imply the properties used in the multiplicative and elementary-transformation definitions.
  • They also imply invariance under ring homomorphisms: if f:R→R′f:R\to R' is a homomorphism of commutative rings and f(M)f(M) is the matrix obtained by applying ff to the entries of MM, then det⁔(f(M))=f(det⁔(M))\det(f(M))=f(\det(M)).

Generic determinant

A generic matrix has distinct indeterminates as entries.

  • By the Leibniz formula, the determinant of a generic matrix is a polynomial in these indeterminates with integer coefficients, called a generic determinant.
  • For an nƗnn\times n matrix with the n2n^2 indeterminates X1,1,⋯ ,Xn,nX_{1,1},\cdots,X_{n,n}, the entries and determinant belong to the polynomial ring Z[X1,1,⋯ ,Xn,n]\mathbb{Z}[X_{1,1},\cdots,X_{n,n}] (and thus to its field of fractions).
  • An nƗnn\times n matrix MM over a commutative ring RR defines a ring homomorphism φM:Z[X1,1,⋯ ,Xn,n]→R\varphi_M:\mathbb{Z}[X_{1,1},\cdots,X_{n,n}]\to R mapping each Xi,jX_{i,j} to the corresponding entry of MM. By invariance, φM\varphi_M maps the generic determinant to det⁔(M)\det(M).
  • Proof strategy: to prove properties over a commutative ring RR that is not an integral domain, it often suffices to prove them over fields, transfer them to integral domains by invariance under ring homomorphisms, and then transfer to RR using φM\varphi_M.
  • The generic determinant is an irreducible polynomial.

āš™ļø Properties

Basic rules

These are parts or immediate consequences of the definitions and are often used implicitly.

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 entries equal to zero

Immediate computation:

  • The determinant of an identity matrix is 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:

OperationEffect on the determinant
Interchange two rows or two columnsMultiplies by āˆ’1-1
Multiply a row or column by a scalar (homogeneity)Multiplies by the same scalar
Transpose the matrixUnchanged
Add to a row or column a scalar multiple of anotherUnchanged
Add to a row or column a linear combination of the othersUnchanged

Matrix multiplication:

  • det⁔(AB)=det⁔(A)det⁔(B)\det(AB)=\det(A)\det(B).
  • Similar matrices have the same determinant: if B=Sāˆ’1ASB=S^{-1}AS for an invertible SS, then det⁔(B)=det⁔(A)\det(B)=\det(A).

Invertibility:

  • 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; the inverse's entries then also belong to the ring.
  • A square matrix of integers has an integer inverse if and only if its determinant is 11 or āˆ’1-1.

Laplace expansion

By the Leibniz formula, a determinant is a homogeneous polynomial of degree one in the elements of each row or column. For A=(ai,j)A=(a_{i,j}) of order nn:

det⁔A=āˆ‘j=1nai,jAi,j,\det A=\sum_{j=1}^{n}a_{i,j}A_{i,j},

where Ai,jA_{i,j} is the cofactor of ai,ja_{i,j}, a polynomial in the other entries. This is the expansion along the iith row; expansion along the jjth column is defined similarly.

The cofactors are given explicitly by

Ai,j=(āˆ’1)i+jMi,j,A_{i,j}=(-1)^{i+j}M_{i,j},

where Mi,jM_{i,j} is the minor: the determinant of the order nāˆ’1n-1 matrix obtained by removing the iith row and jjth column.

Example. Expansion along the first row of a 3Ɨ33\times 3 matrix:

∣abcdefghi∣=a∣efhiāˆ£āˆ’b∣dfgi∣+c∣degh∣\begin{vmatrix}a&b&c\\d&e&f\\g&h&i\end{vmatrix}=a\begin{vmatrix}e&f\\h&i\end{vmatrix}-b\begin{vmatrix}d&f\\g&i\end{vmatrix}+c\begin{vmatrix}d&e\\g&h\end{vmatrix}

Efficiency and use:

  • Used iteratively, it is inefficient for large matrices. A naive implementation needs n!n! sub-determinants; even memoizing them, there are 2nāˆ’12^n-1 sub-determinants, an exponential algorithm, whereas Gaussian elimination is polynomial time.
  • It can be useful for proving by recursion formulas that depend on parameters.
  • It is useful for sparse matrices. If ai,ja_{i,j} is the unique nonzero entry of its row or column, then det⁔A=(āˆ’1)i+jMi,j\det A=(-1)^{i+j}M_{i,j}.

Adjugate matrix

The adjugate adj⁔(A)\operatorname{adj}(A) is the transpose of the matrix of cofactors:

(adj⁔(A))i,j=(āˆ’1)i+jMj,i.(\operatorname{adj}(A))_{i,j}=(-1)^{i+j}M_{j,i}.

For every matrix,

(det⁔A)I=Aadj⁔A=(adj⁔A) A.(\det A)I=A\operatorname{adj}A=(\operatorname{adj}A)\,A.

So the inverse of a nonsingular matrix is

Aāˆ’1=1det⁔Aadj⁔A.A^{-1}=\frac{1}{\det A}\operatorname{adj}A.

Invertibility in depth

  • By the multiplicative property, over every commutative ring, if a matrix is invertible then its determinant is invertible.
  • Conversely, by the adjugate formulas, if the determinant is invertible in a commutative ring containing the entries, the matrix is invertible in that ring.
  • A matrix of integers is invertible over the integers iff its determinant is ±1\pm1. Such a matrix is called unimodular.
  • Invertible nƗnn\times n matrices over a commutative ring RR form a group under multiplication, the general linear group GL⁔n(R)\operatorname{GL}_n(R). The most studied are GL⁔n(R)\operatorname{GL}_n(\mathbb{R}), GL⁔n(C)\operatorname{GL}_n(\mathbb{C}) and GL⁔n(Z)\operatorname{GL}_n(\mathbb{Z}).
  • Their normal subgroups of determinant-1 matrices are the special linear groups SL⁔n(R)\operatorname{SL}_n(\mathbb{R}), SL⁔n(C)\operatorname{SL}_n(\mathbb{C}), SL⁔n(Z)\operatorname{SL}_n(\mathbb{Z}).

Invariance under ring homomorphisms

For a ring homomorphism f:R→Sf:R\to S and a matrix MM over RR:

det⁔f(M)=f(det⁔M).\det f(M)=f(\det M).

  • When ff is an inclusion, the determinant does not depend on whether the entries are viewed in RR or SS. The determinant belongs to the smallest ring containing the entries.
  • The determinant of an integer matrix is always an integer. For computing it one may use divisions, working over Q\mathbb{Q}: intermediate values may leave Z\mathbb{Z}, but the final result is in Z\mathbb{Z} and is the same as without division.
  • When S=RS=R and ff is an automorphism, the determinant of the conjugate of a complex matrix is the conjugate of its determinant.
  • Modular arithmetic: reduce the entries modulo several primes pip_i, compute the determinant in each field Z/piZ\mathbb{Z}/p_i\mathbb{Z} (possibly with different methods), and recover the result with the Chinese remainder theorem.
  • Category theory view: the determinant is a natural transformation between two functors from commutative rings to monoids. The first maps a ring to the monoid (under matrix multiplication) of order-nn square matrices over it; the second is the forgetful functor mapping a ring to its multiplicative monoid.

Hadamard bound

It is often useful to bound ∣det⁔(A)∣\vert\det(A)\vert in terms of the size of the entries. Let A=(ai,j)A=(a_{i,j}) be nƗnn\times n with complex entries whose absolute values are at most BB.

  • The triangle inequality applied to the Leibniz formula gives ∣det⁔(A)āˆ£ā‰¤n!Bn\vert\det(A)\vert\leq n!B^{n}.
  • This is rarely used because the following bound is always sharper for n>1n>1:

∣det⁔(A)āˆ£ā‰¤nn/2Bn.\vert\det(A)\vert\leq n^{n/2}B^{n}.

  • Properly speaking, Hadamard inequality is

∣det⁔(A)āˆ£ā‰¤āˆj=1n∄Aj∄,\vert\det(A)\vert\leq\prod_{j=1}^{n}\|A_{j}\|,

where ∄Aj∄=∣a1,j∣2+⋯+∣an,j∣2\|A_j\|=\sqrt{|a_{1,j}|^{2}+\cdots+|a_{n,j}|^{2}} is the quadratic norm of the jjth column.

  • Equality holds if and only if the columns are pairwise orthogonal, that is āˆ‘i=1nai,jai,k=0\sum_{i=1}^{n}a_{i,j}a_{i,k}=0 for j≠kj\neq k.
  • Geometric counterpart: the volume of the parallelotope defined by nn vectors in an nn-dimensional Euclidean space is at most the product of the vector lengths, with equality iff the vectors are pairwise orthogonal.
  • If AA is positive definite, the determinant is bounded by the product of the main diagonal entries (no absolute value needed, since both are real and positive):

det⁔(A)ā‰¤āˆi=1nai,i.\det(A)\leq\prod_{i=1}^{n}a_{i,i}.

This is sometimes also called the Hadamard inequality.


🧩 Other Determinants

Several mathematical objects can be represented by square matrices, which allows defining a determinant on them.

ObjectDeterminant
Endomorphism of a finite-dimensional vector spaceDeterminant of the matrix representing it on any basis
nn vectors in a space of dimension nnDeterminant of the matrix of their coordinates on a given basis
Quadratic form over a field FFDiscriminant: determinant of its matrix, defined up to multiplication by a square

Determinant of an endomorphism

  • Two square matrices AA and BB represent the same endomorphism on different bases iff they are similar: B=Sāˆ’1ASB=S^{-1}AS.
  • By the multiplicative property, det⁔(B)=det⁔(A)\det(B)=\det(A).
  • So the determinant of an endomorphism is well defined and independent of the basis.

Determinant of n vectors

  • Given a basis, the coordinates of each vector form a column; together they form a square matrix, whose determinant is the determinant of the nn vectors.
  • It depends on the basis, so one specifies "on the given basis" when several bases are in play.
  • In a Euclidean vector space one generally considers only orthonormal bases; then the determinant does not depend on the specific orthonormal basis.

Discriminant of a quadratic form

  • A quadratic form over a field FF is a homogeneous polynomial of degree 2, naturally represented by a square matrix.
  • The discriminant is that matrix's determinant, defined only up to a square, so it is an element of F/(FƗ)2F/(F^{\times})^{2}, where (FƗ)2(F^{\times})^{2} is the set of nonzero squares in FF.

šŸ“ˆ Derivative of the Determinant

Let A=(ai,j)A=(a_{i,j}) be a square matrix of differentiable functions of xx. Since det⁔(A)\det(A) is a polynomial in the entries, it is differentiable in xx. Jacobi's formula:

ddxdet⁔(A)=tr⁔(adj⁔(A)dAdx),\frac{d}{dx}\det(A)=\operatorname{tr}\left(\operatorname{adj}(A)\frac{dA}{dx}\right),

where tr⁔\operatorname{tr} is the trace (sum of diagonal entries), adj⁔(A)\operatorname{adj}(A) the adjugate, and dA/dxdA/dx the matrix of derivatives of the entries.

  • If AA is invertible:

ddxdet⁔(A)=det⁔(A)tr⁔(Aāˆ’1dAdx).\frac{d}{dx}\det(A)=\det(A)\operatorname{tr}\left(A^{-1}\frac{dA}{dx}\right).

  • Partial derivative with respect to an entry Ai,jA_{i,j} (the last equality only for invertible AA):

āˆ‚āˆ‚Ai,jdet⁔(A)=adj⁔(A)j,i=det⁔(A)(Aāˆ’1)j,i.\frac{\partial}{\partial A_{i,j}}\det(A)=\operatorname{adj}(A)_{j,i}=\det(A)\left(A^{-1}\right)_{j,i}.

  • Change under a small deformation:

det⁔(A+εX)āˆ’det⁔(A)=tr⁔(adj⁔(A)X)ε+O(ε2)\det(A+\varepsilon X)-\det(A)=\operatorname{tr}(\operatorname{adj}(A)X)\varepsilon+O\left(\varepsilon^{2}\right)

  • For a deformation of the identity matrix:

det⁔(I+εX)=1+tr⁔(X)ε+O(ε2).\det(I+\varepsilon X)=1+\operatorname{tr}(X)\varepsilon+O\left(\varepsilon^{2}\right).

Lie algebra application. This identity is used to describe Lie algebras of certain matrix Lie groups. The special linear group SL⁔n\operatorname{SL}_n is defined by det⁔A=1\det A=1, which shows its Lie algebra is the special linear Lie algebra sln\mathfrak{sl}_n, consisting of the matrices with trace zero.


šŸ–„ļø Computation

  • Determinants are mainly a theoretical tool. They are rarely calculated explicitly in numerical linear algebra, where for checking invertibility or finding eigenvalues other techniques have largely supplanted them.
  • Computational geometry, however, frequently uses calculations related to determinants.
  • The Leibniz rule is extremely inefficient for large matrices: it needs n!n! products, so the number of operations grows on the order of n!n!. The Laplace expansion is similarly inefficient.

Gaussian elimination

  • Left-multiply the matrix by elementary matrices to reach a row echelon form. Restricting to elementary matrices of determinant 1, the echelon form has the same determinant as the original.
  • A row echelon form is triangular, so its determinant is the product of its diagonal entries.
  • Hence the determinant comes almost for free from Gaussian elimination.

Decomposition methods

Write the matrix as a product of matrices with easily computed determinants. Examples: LU, QR, and Cholesky (for positive definite matrices). These are of order O(n3)O(n^3), a significant improvement over O(n!)O(n!).

LU example. Express A=PLUA=PLU with:

  • PP a permutation matrix (exactly one 1 in each column, otherwise zeros)
  • LL lower triangular
  • UU upper triangular

The determinants of LL and UU are the products of their diagonal entries. det⁔P\det P is the sign ε\varepsilon of the permutation (+1+1 for an even number of permutations, āˆ’1-1 for odd). Then

det⁔(A)=εdet⁔(L)ā‹…det⁔(U).\det(A)=\varepsilon\det(L)\cdot\det(U).

Further methods

  • Fast matrix multiplication. If two order-nn matrices can be multiplied in time M(n)M(n), where M(n)≄naM(n)\geq n^{a} for some a>2a>2, then the determinant can be computed in time O(M(n))O(M(n)). For example, an O(n2.376)O(n^{2.376}) algorithm exists based on the Coppersmith–Winograd algorithm; the exponent was lowered, as of 2016, to 2.373.
  • Division-free algorithms exist for matrices over rings (Gaussian elimination requires divisions). One has complexity O(n4)O(n^4) and replaces permutations (as in the Leibniz rule) by closed ordered walks, in which several items can be repeated. The sum has more terms, but many products can be reused.
  • Bit complexity (bits needed to store intermediate values): Gaussian elimination / LU is O(n3)O(n^3), but the bit length of intermediate values can become exponentially long. The Bareiss algorithm, an exact-division method (divisions are performed only without remainder), has the same order but a bit complexity roughly the bit size of the original entries times nn.
  • Matrix determinant lemma: if det⁔A\det A and Aāˆ’1A^{-1} are already known, it allows rapid calculation of the determinant of A+uvTA+uv^{T} for column vectors uu and vv.
  • Dodgson condensation, invented by Charles Dodgson (Lewis Carroll), computes determinants but does not always work in its original form.

🧮 Uses 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 computations and no faster algorithm for direct computation is known. They are, however, unavoidable in proofs and when matrix entries are functions or depend on parameters.

  • Cramer's rule: for a system of nn linearly independent equations in nn unknowns, each unknown is a quotient of two determinants formed with the coefficients.
  • Adjugate matrix: its entries are determinants of submatrices. For an invertible matrix, each entry of the inverse is an adjugate entry divided by the determinant.
  • Rank: the rank is at most kk if the determinant of every square submatrix of dimension larger than kk is zero. This is not a good way to compute rank, but it shows immediately that the matrices of rank at most kk among generic mƗnm\times n matrices form an algebraic set (in fact an algebraic variety). This plays a fundamental role in the theories of Grassmannians and determinantal ideals.
  • Hadamard's inequality: bounds the absolute values of solutions expressible with determinants. Starting from an integer matrix, it bounds the size of every integer in the solution. A common challenge is to design algorithms where no integer used exceeds this bound, as in the Bareiss algorithm and multi-modular arithmetic with Chinese remaindering.

šŸ“ Uses in Euclidean Geometry

Properties of points in Euclidean space expressed via determinants of their Cartesian coordinates.

Plane geometry

Let P0=(x0,y0)P_0=(x_0,y_0), P1=(x1,y1)P_1=(x_1,y_1), P2=(x2,y2)P_2=(x_2,y_2) be three points.

  • Colinear iff

det⁔(111x0x1x2y0y1y2)=0.\det\begin{pmatrix}1&1&1\\x_{0}&x_{1}&x_{2}\\y_{0}&y_{1}&y_{2}\end{pmatrix}=0.

  • Subtracting the first column from the other two and expanding along the first row:

det⁔(111x0x1x2y0y1y2)=det⁔(x1āˆ’x0x2āˆ’x0y1āˆ’y0y2āˆ’y0).\det\begin{pmatrix}1&1&1\\x_{0}&x_{1}&x_{2}\\y_{0}&y_{1}&y_{2}\end{pmatrix}=\det\begin{pmatrix}x_{1}-x_{0}&x_{2}-x_{0}\\y_{1}-y_{0}&y_{2}-y_{0}\end{pmatrix}.

This is the determinant of the vectors P0P1→\overrightarrow{P_0P_1} and P0P2→\overrightarrow{P_0P_2}.

  • If the points are not aligned, the absolute value is twice the area of the triangle. The sign gives the triangle's orientation: positive iff P0P_0 is on the left when running from P1P_1 to P2P_2.
  • Replacing P0P_0 with an indeterminate point P=(X,Y)P=(X,Y) gives the implicit equation of the line through P1P_1 and P2P_2:

det⁔(111Xx1x2Yy1y2)=0,\det\begin{pmatrix}1&1&1\\X&x_{1}&x_{2}\\Y&y_{1}&y_{2}\end{pmatrix}=0,

which, expanding along the first column, becomes

X(y2āˆ’y1)+Y(x2āˆ’x1)+(x1y2āˆ’x2y1)=0.X(y_{2}-y_{1})+Y(x_{2}-x_{1})+(x_{1}y_{2}-x_{2}y_{1})=0.

Dimension 3 and higher

Let P0,…,P3P_0,\dots,P_3 be four points in three-dimensional space, Pi=(xi,yi,zi)P_i=(x_i,y_i,z_i).

  • Coplanar iff

det⁔(1111x0x1x2x3y0y1y2y3z0z1z2z3)=0.\det\begin{pmatrix}1&1&1&1\\x_{0}&x_{1}&x_{2}&x_{3}\\y_{0}&y_{1}&y_{2}&y_{3}\\z_{0}&z_{1}&z_{2}&z_{3}\end{pmatrix}=0.

  • Subtracting the first column from the others and expanding gives the 3Ɨ33\times3 determinant of the vectors P0P1→\overrightarrow{P_0P_1}, P0P2→\overrightarrow{P_0P_2}, P0P3→\overrightarrow{P_0P_3}.
  • If not coplanar, the absolute value is six times the volume of the tetrahedron defined by the points. The sign gives the tetrahedron's orientation, and in particular the side of the plane P1P2P3P_1P_2P_3 on which P0P_0 lies. This criterion is commonly used in computer graphics and computer vision to recognize hidden parts of a 3D figure.
  • Replacing P0P_0 with P=(X,Y,Z)P=(X,Y,Z) gives the implicit equation of the plane through three non-colinear points; in conventional form:

X∣111y1y2y3z1z2z3āˆ£āˆ’Y∣111x1x2x3z1z2z3∣+Z∣111x1x2x3y1y2y3āˆ£āˆ’āˆ£x1x2x3y1y2y3z1z2z3∣=0.X\begin{vmatrix}1&1&1\\y_{1}&y_{2}&y_{3}\\z_{1}&z_{2}&z_{3}\end{vmatrix}-Y\begin{vmatrix}1&1&1\\x_{1}&x_{2}&x_{3}\\z_{1}&z_{2}&z_{3}\end{vmatrix}+Z\begin{vmatrix}1&1&1\\x_{1}&x_{2}&x_{3}\\y_{1}&y_{2}&y_{3}\end{vmatrix}-\begin{vmatrix}x_{1}&x_{2}&x_{3}\\y_{1}&y_{2}&y_{3}\\z_{1}&z_{2}&z_{3}\end{vmatrix}=0.

  • In dimension nn: n+1n+1 points, "coplanar" becomes "in the same hyperplane", "tetrahedron" becomes "simplex", and the determinant is n!n! times the volume of the simplex.

šŸŽÆ Eigenvalues and Characteristic Polynomial

An eigenvalue of a linear endomorphism ff is a scalar λ\lambda such that there is a nonzero vector uu (an eigenvector) with f(u)=λuf(u)=\lambda u. For a matrix AA: AU=λUAU=\lambda U for a nonzero column vector UU.

  • Equivalent: (Ī»Iāˆ’A)U=0(\lambda I-A)U=0.
  • This means the columns of Ī»Iāˆ’A\lambda I-A are linearly dependent, i.e.

det⁔(Ī»Iāˆ’A)=0.\det(\lambda I-A)=0.

  • So the eigenvalues are the roots of det⁔(XIāˆ’A)\det(XI-A), the characteristic polynomial of AA.
  • Being a determinant, it is invariant under similarity, hence also defined for linear endomorphisms.

For AA of order nn:

  • The characteristic polynomial is monic of degree nn, and all its coefficients are similarity invariants.
  • Its constant coefficient (set X=0X=0) is (āˆ’1)ndet⁔(A)(-1)^{n}\det(A).
  • The coefficient of Xnāˆ’1X^{n-1} is āˆ’Tr⁔(A)-\operatorname{Tr}(A). By Viete's formula it is the sum of the eigenvalues (with multiplicities). By the Leibniz formula the trace is also the sum of the diagonal entries of AA and of every matrix similar to AA.

šŸ”¬ Determinants of Functions

Jacobian determinant

The Jacobian matrix of differentiable functions f1,…,fnf_1,\ldots,f_n in mm variables x1,…,xmx_1,\ldots,x_m is the matrix of partial derivatives:

(āˆ‚f1āˆ‚x1ā€¦āˆ‚fnāˆ‚x1ā‹®ā‹Æā‹®āˆ‚f1āˆ‚xmā€¦āˆ‚fnāˆ‚xm).\begin{pmatrix}\tfrac{\partial f_{1}}{\partial x_{1}}&\ldots&\tfrac{\partial f_{n}}{\partial x_{1}}\\\vdots&\cdots&\vdots\\\tfrac{\partial f_{1}}{\partial x_{m}}&\ldots&\tfrac{\partial f_{n}}{\partial x_{m}}\end{pmatrix}.

  • When m=nm=n, its determinant is the Jacobian determinant, a function of the nn variables.
  • The Jacobian matrix generalizes the derivative to multivariate vector-valued functions; the condition f′(x)≠0f'(x)\neq0 is replaced by J≠0J\neq0.
  • Two especially important uses:
    • it occurs in the formula for change of variables in a multiple integral
    • its non-nullity is a hypothesis of the implicit function theorem and the inverse function theorem

Wronskian

For nāˆ’1n-1 times differentiable functions f1,…,fnf_1,\dots,f_n:

W(f1,…,fn)(x)=∣f1(x)f2(x)⋯fn(x)f1′(x)f2′(x)⋯fn′(x)⋮⋮⋱⋮f1(nāˆ’1)(x)f2(nāˆ’1)(x)⋯fn(nāˆ’1)(x)∣.W(f_1,\ldots,f_n)(x)=\begin{vmatrix}f_1(x)&f_2(x)&\cdots&f_n(x)\\f_1'(x)&f_2'(x)&\cdots&f_n'(x)\\\vdots&\vdots&\ddots&\vdots\\f_1^{(n-1)}(x)&f_2^{(n-1)}(x)&\cdots&f_n^{(n-1)}(x)\end{vmatrix}.

If the Wronskian is zero everywhere on an interval then, for analytic functions, the functions are linearly dependent.


🧭 Uses in Vector Geometry

In a Euclidean vector space (a real vector space, typically Rn\mathbb{R}^n with the usual quadratic norm).

Orientation

  • The determinant of nn vectors in Rn\mathbb{R}^n is nonzero iff they form a basis. Its sign tells whether the orientation of the basis is the same as, or opposite to, the standard basis.
  • For an orthogonal basis, the absolute value equals the product of the basis vector lengths.
  • For an orthonormal basis, the determinant is 11 (same orientation as the standard basis) or āˆ’1-1 (otherwise).
  • A linear transformation preserves orientation if its determinant is positive and reverses it if negative. This does not depend on the choice of basis.

Signed volume of a parallelotope

The parallelotope generated by v1,…,vnv_1,\ldots,v_n is the set of vectors a1v1+⋯+anvna_1v_1+\cdots+a_nv_n with 0≤ai≤10\leq a_i\leq1.

  • Given an orthonormal basis, its nn-dimensional volume is the absolute value of the determinant of the vectors on that basis. The volume is zero if the vectors are linearly dependent.
  • For independent vectors, the determinant is positive if their orientation matches the basis, negative otherwise.
  • The parallelotope generated by an orthonormal basis is a unit hypercube with volume 1.

For a bijective linear transformation ff with determinant DD:

  • D>0D>0: ff preserves space orientation
  • D<0D<0: ff reverses space orientation
  • ff multiplies every nn-dimensional volume by ∣D∣\vert D\vert

Volume and Jacobian determinant

If f:Rn→Rnf:\mathbb{R}^n\to\mathbb{R}^n is multiplication by a matrix AA and SS is a measurable subset, then the volume of f(S)f(S) is ∣det⁔(A)∣|\det(A)| times the volume of SS.

More generally, if f:Rn→Rmf:\mathbb{R}^n\to\mathbb{R}^m is represented by an mƗnm\times n matrix AA, the ratio of the nn-dimensional volumes of f(S)f(S) and SS is

volume⁔(f(S))volume⁔(S)=det⁔(ATA).\frac{\operatorname{volume}(f(S))}{\operatorname{volume}(S)}=\sqrt{\det\left(A^{\mathsf T}A\right)}.

When m<nm<n this is zero.

  • By computing the volume of the tetrahedron bounded by four points, determinants can identify skew lines. The volume of a tetrahedron with vertices a,b,c,da,b,c,d is 16ā‹…āˆ£det⁔(aāˆ’b,bāˆ’c,cāˆ’d)∣\frac{1}{6}\cdot|\det(a-b,b-c,c-d)|, or any other combination of pairs of vertices forming a spanning tree over the vertices.
  • For a general differentiable f:Rn→Rnf:\mathbb{R}^n\to\mathbb{R}^n, the Jacobian matrix is D(f)=(āˆ‚fiāˆ‚xj)1≤i,j≤nD(f)=\left(\frac{\partial f_i}{\partial x_j}\right)_{1\leq i,j\leq n}. Its determinant appears in the higher-dimensional integration by substitution: for suitable ff and an open subset UU of Rn\mathbb{R}^n,

∫f(U)Ļ•(v) dv=∫UĻ•(f(u))∣det⁔(D⁔f)(u)āˆ£ā€‰du.\int_{f(U)}\phi(\mathbf{v})\,d\mathbf{v}=\int_{U}\phi(f(\mathbf{u}))\left|\det(\operatorname{D}f)(\mathbf{u})\right|\,d\mathbf{u}.

  • The Jacobian also occurs in the inverse function theorem.
  • In cartography, the determinant can measure the rate of expansion of a map near the poles.

🌐 Generalizations

  • The immanant replaces sgn⁔(σ)\operatorname{sgn}(\sigma) in the Leibniz formula with another character of the symmetric group SnS_n. A special case is the permanent, which replaces sgn⁔(σ)\operatorname{sgn}(\sigma) by the constant 1.

Exterior algebra

The determinant of a linear transformation T:V→VT:V\to V of an nn-dimensional vector space (or a free module of rank nn over a commutative ring RR) can be formulated without coordinates using the nn-th exterior power ā‹€nV\bigwedge^{n}V.

  • TT induces a linear map ā‹€nT\bigwedge^{n}T sending v1āˆ§ā‹Æāˆ§vnv_1\wedge\dots\wedge v_n to Tv1āˆ§ā‹Æāˆ§TvnTv_1\wedge\dots\wedge Tv_n.
  • Since ā‹€nV\bigwedge^{n}V is one-dimensional, this map is multiplication by a scalar in RR. Some authors (e.g. Bourbaki) define the determinant as this scalar:

(ā‹€nT)(v1āˆ§ā‹Æāˆ§vn)=det⁔(T)ā‹…v1āˆ§ā‹Æāˆ§vn.\left(\bigwedge^{n}T\right)\left(v_{1}\wedge\dots\wedge v_{n}\right)=\det(T)\cdot v_{1}\wedge\dots\wedge v_{n}.

  • This agrees with the coordinate definition, using the uniqueness of the multilinear alternating form on nn-tuples of vectors in RnR^n.
  • The highest nonzero exterior power ā‹€nV\bigwedge^{n}V is sometimes itself called the determinant of VV, and similarly for objects such as vector bundles or chain complexes. Minors can be treated via lower alternating forms ā‹€kV\bigwedge^{k}V, k<nk<n.

Finite-dimensional algebras

For any associative algebra AA that is finite-dimensional as a vector space over a field FF, there is a determinant map

det⁔:A→F.\det:A\to F.