Introduction

The determinant is a single number attached to a square matrix. It tells whether the matrix is invertible (non-zero determinant), how the linear map scales area or volume, and, through the characteristic polynomial, what the eigenvalues are. The properties of determinants (effect of row operations, scaling, products, transposes, adjugates) give a faster route than a long expansion: simplify with row operations or apply a property.

Prerequisites

Core concepts

Definition and small cases

For n×nn \times n AA, the determinant is

det⁡A=∑σ∈Snsgn⁡(σ) a1σ(1)a2σ(2)⋯anσ(n),\det A = \sum_{\sigma \in S_n} \operatorname{sgn}(\sigma)\, a_{1\sigma(1)} a_{2\sigma(2)} \cdots a_{n\sigma(n)},

a sum over all n!n! permutations, each term taking one entry from every row and every column, with sign +1+1 for even and −1-1 for odd permutations. Small cases:

∣abcd∣=ad−bc,∣abcdefghi∣=a(ei−fh)−b(di−fg)+c(dh−eg).\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc, \qquad \begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg).

The diagonal (Sarrus) rule works only for 3×33 \times 3 matrices.

Minors, cofactors and expansion

The minor MijM_{ij} is the determinant of the (n−1)×(n−1)(n - 1) \times (n - 1) matrix left after deleting row ii and column jj. The cofactor is Cij=(−1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}; the signs form a chessboard starting with ++ at the top left. Laplace (cofactor) expansion along any row ii or any column jj:

det⁡A=∑j=1naijCij=∑i=1naijCij.\det A = \sum_{j=1}^{n} a_{ij} C_{ij} = \sum_{i=1}^{n} a_{ij} C_{ij}.

Expand along the row or column with the most zeros. Expanding along row ii with the cofactors of a different row kk gives 0: ∑jaijCkj=0\sum_j a_{ij} C_{kj} = 0 for i≠ki \ne k (alien cofactors).

Cofactor expansion and row operations
Figure 1. Left: expanding a 3×33 \times 3 determinant along column 1, with the chessboard sign pattern and the deleted row and column for each minor. Right: how each elementary row operation changes the determinant.

Properties

For n×nn \times n matrices A,BA, B and scalar cc:

  1. det⁡(AT)=det⁡A\det(A^T) = \det A. So every row property is also a column property.
  2. Row swap multiplies the determinant by −1-1.
  3. Scaling one row by cc multiplies the determinant by cc. Hence det⁡(cA)=cndet⁡A\det(cA) = c^n \det A, not cdet⁡Ac \det A.
  4. Adding a multiple of one row to another leaves the determinant unchanged.
  5. Two equal rows, two proportional rows, or a zero row give det⁡A=0\det A = 0. More generally, det⁡A=0\det A = 0 if and only if the rows (columns) are linearly dependent, if and only if AA is singular, if and only if rank⁡A<n\operatorname{rank} A < n.
  6. Triangular (and diagonal) matrices: det⁡A=∏iaii\det A = \prod_i a_{ii}.
  7. Multiplicative: det⁡(AB)=det⁡A⋅det⁡B\det(AB) = \det A \cdot \det B, so det⁡(Ak)=(det⁡A)k\det(A^k) = (\det A)^k and det⁡(A−1)=1/det⁡A\det(A^{-1}) = 1/\det A. There is no such rule for sums: det⁡(A+B)≠det⁡A+det⁡B\det(A + B) \ne \det A + \det B in general.
  8. Linearity in one row: if row ii is u+vu + v, the determinant splits as the sum of the determinants with row ii equal to uu and to vv, other rows fixed.
  9. Block triangular: det⁡(PQ0R)=det⁡P⋅det⁡R\det \begin{pmatrix} P & Q \\ 0 & R \end{pmatrix} = \det P \cdot \det R for square blocks P,RP, R.
  10. det⁡A\det A equals the product of the eigenvalues of AA, counted with algebraic multiplicity (see Eigenvalues and Eigenvectors).

Adjugate and inverse

The adjugate adj⁡(A)\operatorname{adj}(A) is the transpose of the cofactor matrix: adj⁡(A)ij=Cji\operatorname{adj}(A)_{ij} = C_{ji}. Combining expansion with alien cofactors gives

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

So A−1=adj⁡(A)/det⁡AA^{-1} = \operatorname{adj}(A)/\det A when det⁡A≠0\det A \ne 0. Taking determinants, for n≥2n \ge 2:

det⁡(adj⁡A)=(det⁡A)n−1,adj⁡(adj⁡A)=(det⁡A)n−2A,adj⁡(AB)=adj⁡(B)adj⁡(A).\det(\operatorname{adj} A) = (\det A)^{n-1}, \qquad \operatorname{adj}(\operatorname{adj} A) = (\det A)^{n-2} A, \qquad \operatorname{adj}(AB) = \operatorname{adj}(B)\operatorname{adj}(A).

Cramer's rule

If det⁡A≠0\det A \ne 0, the system Ax=bAx = b has the unique solution xi=det⁡Ai/det⁡Ax_i = \det A_i / \det A, where AiA_i is AA with column ii replaced by bb. It is useful for 2×22 \times 2 and 3×33 \times 3 systems and for proofs; for large systems elimination is far cheaper.

Geometry and computation

∣det⁡A∣\lvert \det A \rvert is the factor by which the linear map x↦Axx \mapsto Ax scales areas (n=2n = 2) or volumes (n=3n = 3); the sign records whether orientation is preserved. The area of the parallelogram spanned by (a,c)(a, c) and (b,d)(b, d) is ∣ad−bc∣\lvert ad - bc \rvert.

Computing from the permutation definition costs about n⋅n!n \cdot n! operations; naive recursive cofactor expansion has factorial growth too (typically Θ(n!)\Theta(n!), versus Θ(n n!)\Theta(n\,n!) for direct permutation evaluation). Row reduction to triangular form costs O(n3)O(n^3) and is how determinants are computed in practice (see LU Decomposition).

Vandermonde determinant

∣111abca2b2c2∣=(b−a)(c−a)(c−b),\begin{vmatrix} 1 & 1 & 1 \\ a & b & c \\ a^2 & b^2 & c^2 \end{vmatrix} = (b - a)(c - a)(c - b),

and in general ∏i<j(xj−xi)\prod_{i < j}(x_j - x_i). It is non-zero exactly when the xix_i are distinct, which is why a polynomial of degree less than nn is fixed by its values at nn distinct points.

Worked examples

Example 1: choose the best line

A=(213045106)A = \begin{pmatrix} 2 & 1 & 3 \\ 0 & 4 & 5 \\ 1 & 0 & 6 \end{pmatrix}. Along row 1: 2(24−0)−1(0−5)+3(0−4)=48+5−12=412(24 - 0) - 1(0 - 5) + 3(0 - 4) = 48 + 5 - 12 = 41. Along column 1, which has a zero: 2⋅24+1⋅(5−12)=48−7=412 \cdot 24 + 1 \cdot (5 - 12) = 48 - 7 = 41.

Example 2: properties only

AA is 3×33 \times 3 with det⁡A=2\det A = 2. Then det⁡(3A)=27⋅2=54\det(3A) = 27 \cdot 2 = 54, det⁡(A−1)=1/2\det(A^{-1}) = 1/2, det⁡(ATA)=4\det(A^TA) = 4, det⁡(adj⁡A)=22=4\det(\operatorname{adj} A) = 2^2 = 4, and det⁡(2A−1)=8/2=4\det(2A^{-1}) = 8/2 = 4.

Example 3: dependent rows

∣123456789∣=0\begin{vmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{vmatrix} = 0, since R1+R3=2R2R_1 + R_3 = 2R_2. No expansion needed.

Example 4: a patterned matrix

∣x111x111x∣\begin{vmatrix} x & 1 & 1 \\ 1 & x & 1 \\ 1 & 1 & x \end{vmatrix}. Add rows 2 and 3 to row 1: every entry of row 1 becomes x+2x + 2; factor it out to leave a row of 1s. Subtract column 1 from columns 2 and 3 to get a lower triangular matrix with diagonal 1,x−1,x−11, x - 1, x - 1. Result: (x+2)(x−1)2(x + 2)(x - 1)^2. It vanishes at x=1x = 1 (all rows equal) and x=−2x = -2 (rows sum to zero).

Example 5: Cramer's rule

3x+2y=73x + 2y = 7, x+4y=9x + 4y = 9. det⁡A=10\det A = 10; det⁡A1=7⋅4−2⋅9=10\det A_1 = 7 \cdot 4 - 2 \cdot 9 = 10; det⁡A2=3⋅9−7⋅1=20\det A_2 = 3 \cdot 9 - 7 \cdot 1 = 20. So x=1x = 1, y=2y = 2.

Example 6: odd skew-symmetric

For any 3×33 \times 3 skew-symmetric KK, det⁡K=det⁡(KT)=det⁡(−K)=−det⁡K\det K = \det(K^T) = \det(-K) = -\det K, so det⁡K=0\det K = 0.

Example 7: the general patterned matrix

The n×nn \times n matrix with aa on the diagonal and bb everywhere else has

det⁡=(a−b)n−1 (a+(n−1)b),\det = (a - b)^{n-1}\,\big(a + (n - 1)b\big),

by the same steps as Example 4: add all rows to the first, factor out a+(n−1)ba + (n - 1)b, then subtract. For n=4n = 4, a=3a = 3, b=1b = 1: 23⋅6=482^3 \cdot 6 = 48. The n×nn \times n all-ones matrix (a=b=1a = b = 1) has determinant 0 for n≥2n \ge 2, and J−IJ - I (a=0a = 0, b=1b = 1) has (−1)n−1(n−1)(-1)^{n-1}(n - 1).

Example 8: a tridiagonal recurrence

Let DnD_n be the determinant of the n×nn \times n tridiagonal matrix with diagonal entries aa, superdiagonal entries bb and subdiagonal entries cc. Expanding along the first row gives Dn=aDn−1−bc Dn−2D_n = a D_{n-1} - bc\,D_{n-2}, with D1=aD_1 = a and D0=1D_0 = 1. With a=2a = 2, b=c=−1b = c = -1 this is Dn=2Dn−1−Dn−2D_n = 2D_{n-1} - D_{n-2}, so Dn=n+1D_n = n + 1: D3=4D_3 = 4 and D10=11D_{10} = 11.

Example 9: products of rectangular matrices

AA is 3×23 \times 2 and BB is 2×32 \times 3. Then ABAB is 3×33 \times 3 with rank at most 2, so det⁡(AB)=0\det(AB) = 0 always, while BABA is 2×22 \times 2 and can be invertible. With A=(100111)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix} and B=(100010)B = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix}, BA=I2BA = I_2 has determinant 1 and det⁡(AB)=0\det(AB) = 0. The rule det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A \det B is for square matrices only.

Important properties and observations

  • Elementary row operations change the determinant in a predictable way: swap ×(−1)\times(-1), scale ×c\times c, add a multiple ×1\times 1.
  • det⁡(−A)=(−1)ndet⁡A\det(-A) = (-1)^n \det A.
  • An orthogonal matrix has det⁡=±1\det = \pm 1; an idempotent matrix has det⁡∈{0,1}\det \in \{0, 1\}; a nilpotent matrix has det⁡=0\det = 0.
  • Non-zero determinant is necessary and sufficient for invertibility of a square matrix; non-square matrices have no determinant.
  • det⁡(AB)=det⁡(BA)\det(AB) = \det(BA) for square A,BA, B even when AB≠BAAB \ne BA.
  • A permutation matrix has determinant +1+1 or −1-1 (the sign of the permutation). Reversing the order of the nn rows takes ⌊n/2⌋\lfloor n/2 \rfloor swaps, so it multiplies the determinant by (−1)⌊n/2⌋(-1)^{\lfloor n/2 \rfloor}.
  • The full expansion of an n×nn \times n determinant has n!n! terms, which is why elimination (O(n3)O(n^3)) is used beyond 3×33 \times 3.

GATE examination perspective

  • Properties under scaling, transpose, product, inverse and adjugate: det⁡(cA)=cndet⁡A\det(cA) = c^n \det A, det⁡(adj⁡A)=(det⁡A)n−1\det(\operatorname{adj} A) = (\det A)^{n-1}.
  • Evaluate quickly by row operations, factoring common terms, or spotting dependent rows.
  • Link to eigenvalues: determinant = product of eigenvalues.
  • Trap: writing det⁡(cA)=cdet⁡A\det(cA) = c \det A or det⁡(A+B)=det⁡A+det⁡B\det(A + B) = \det A + \det B.
  • Trap: using Sarrus's rule on a 4×44 \times 4.
  • Patterned and tridiagonal matrices. (a−b)n−1(a+(n−1)b)(a - b)^{n-1}(a + (n - 1)b) for constant diagonal and off-diagonal entries; Dn=aDn−1−bcDn−2D_n = aD_{n-1} - bcD_{n-2} for tridiagonal ones.
  • Trap: applying det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A \det B to rectangular A,BA, B; a 3×33 \times 3 product of a 3×23 \times 2 and a 2×32 \times 3 matrix is always singular.

Summary

Sources

  1. G. Strang, Introduction to Linear Algebra, 5th ed., Wellesley-Cambridge Press, 2016: Chapter 5 (Determinants), Sections 5.1 to 5.3.
  2. E. Kreyszig, Advanced Engineering Mathematics, 10th ed., Wiley, 2011: Chapter 7 (Linear Algebra: Matrices, Vectors, Determinants. Linear Systems).

Next steps