The determinant compresses a square matrix to one scalar. That scalar records how a linear map scales volume and whether it reverses orientation. The formulas serve this geometric meaning.

A two-dimensional determinant measures oriented area

For columns a1=(a,c)T\mathbf a_1=(a,c)^{\mathsf T} and a2=(b,d)T\mathbf a_2=(b,d)^{\mathsf T},

det⁡(abcd)=ad−bc.\det\begin{pmatrix}a&b\\c&d\end{pmatrix}=ad-bc.

Its absolute value is the area of their parallelogram. Its sign distinguishes the ordering of the two directions. Exchanging columns reverses orientation and changes the sign; dependent columns collapse the area to zero.

Three properties determine the determinant

View det⁡(a1,…,an)\det(\mathbf a_1,\ldots,\mathbf a_n) as a function of columns. It is linear in each column, changes sign when two columns are exchanged, and satisfies det⁡I=1\det I=1. These properties imply that repeated columns give zero and that adding a multiple of one column to another changes nothing. They uniquely determine

det⁡A=∑σ∈Snsgn⁡(σ)∏i=1nai,σ(i).\det A=\sum_{\sigma\in S_n} \operatorname{sgn}(\sigma) \prod_{i=1}^n a_{i,\sigma(i)}.

The Leibniz formula establishes the general pattern but is not an efficient method for large matrices.

ProofExistence and uniqueness

Expand each column in the standard basis. Multilinearity expresses any candidate as a sum of values on ordered basis vectors. Repeated basis vectors give zero: swapping equal columns negates the value. Every remaining ordering is a permutation of the standard basis, so its value is its permutation sign times the value at II. Normalization therefore forces the displayed formula (replace a permutation by its inverse to obtain the row-index form).

Conversely, the displayed finite sum is linear in each column, because every product contains exactly one entry from each column. Swapping columns pairs its terms through that transposition, which reverses the permutation sign. At II, only the identity permutation survives and contributes 11. Thus the formula exists and has exactly the required properties. Here the permutation sign is (−1)number of inversions(-1)^{\text{number of inversions}}; a transposition changes that parity.

Adding cajc\mathbf a_j to a different column ai\mathbf a_i adds a determinant with two proportional columns, which is zero. Scaling follows directly from linearity.

Elimination computes determinants

The row operations from elimination and LU have direct effects:

  • exchanging rows multiplies the determinant by −1-1;
  • multiplying a row by cc multiplies it by cc;
  • adding a multiple of another row leaves it unchanged.

After reduction to upper triangular form, multiply the diagonal entries and restore the factors introduced by swaps and scalings. If PA=LUPA=LU and LL has unit diagonal, then

det⁡(P)det⁡(A)=∏iuii.\det(P)\det(A)=\prod_i u_{ii}.
ProofTranspose, triangular matrices, and row operations

In the permutation sum for ATA^{\mathsf T}, replace σ\sigma by σ−1\sigma^{-1}. The factors become those for AA, and inverse permutations have equal signs. Thus det⁡AT=det⁡A\det A^{\mathsf T}=\det A, transferring all column rules to rows.

For an upper triangular matrix a nonzero term requires i≤σ(i)i\le\sigma(i) for every ii. Since both sides sum to the same number, all inequalities are equalities. Only the identity term survives, giving the product of the diagonal. Transpose gives the lower triangular case. More generally,

det⁡(CE0F)=det⁡Cdet⁡F.\det\begin{pmatrix}C&E\\0&F\end{pmatrix}=\det C\det F.

Every surviving permutation maps the bottom row indices to bottom column indices, hence the top indices to top indices. Its product and sign factor into the two block permutations. Summing proves the formula without assuming either diagonal block invertible.

A three-dimensional elimination example

Take

A=(120251013).A=\begin{pmatrix}1&2&0\\2&5&1\\0&1&3\end{pmatrix}.

Apply R2←R2−2R1R_2\leftarrow R_2-2R_1, followed by R3←R3−R2R_3\leftarrow R_3-R_2. The resulting upper triangular matrix has diagonal 1,1,21,1,2. Neither operation changes the determinant, so det⁡A=2\det A=2.

A zero determinant means dimension collapsed

For a square matrix AA, the following are equivalent:

det⁡A≠0⟺A is invertible⟺ker⁡A={0}⟺rank⁡(A)=n.\det A\ne0 \Longleftrightarrow A\text{ is invertible} \Longleftrightarrow \ker A=\{\mathbf0\} \Longleftrightarrow \operatorname{rank}(A)=n.

Dependent columns force the determinant to vanish by multilinearity. If elimination finds a pivot in every column, the triangular diagonal is nonzero, so the determinant is nonzero and the matrix is invertible.

Volume factors multiply under composition

Applying BB and then AA gives ABAB. Volume scales first by det⁡B\det B and then by det⁡A\det A, hence

det⁡(AB)=det⁡(A)det⁡(B).\det(AB)=\det(A)\det(B).

Consequently det⁡(A−1)=1/det⁡(A)\det(A^{-1})=1/\det(A), and similar matrices have the same determinant:

det⁡(S−1AS)=det⁡A.\det(S^{-1}AS)=\det A.

Thus the determinant describes the linear map rather than the chosen coordinate basis.

Derive the product rule from multilinearity

The volume interpretation has an algebraic proof. Fix AA and define a function of the columns of BB:

F(b1,…,bn)=det⁡(Ab1,…,Abn).F(\mathbf b_1,\ldots,\mathbf b_n) =\det(A\mathbf b_1,\ldots,A\mathbf b_n).

It is alternating and multilinear, and its value on the standard basis is det⁡A\det A. Expand each input in standard coordinates. Repeated indices contribute zero; the remaining terms carry permutation signs. Thus F(B)=det⁡(A)det⁡(B)F(B)=\det(A)\det(B). The argument includes singular AA and never divides by its determinant.

Cofactor expansion is recursive

Delete row ii and column jj to form AijA_{ij}, and set Cij=(−1)i+jdet⁡AijC_{ij}=(-1)^{i+j}\det A_{ij}. Expansion along row ii gives

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

This is useful for a small sparse matrix. Elimination is preferable for a general dense matrix because recursive expansion repeats many subproblems.

ProofCofactor expansion

Group the Leibniz sum according to the column jj selected in row ii. Move row ii to the first position using i−1i-1 adjacent swaps and column jj to the first position using j−1j-1 swaps. Terms using the top-left entry then consist of aija_{ij} times a permutation term on the remaining rows and columns, in their original relative order. Undoing the swaps contributes (−1)i+j−2=(−1)i+j(-1)^{i+j-2}=(-1)^{i+j}. Their sum is aijCija_{ij}C_{ij}; summing over jj proves the expansion. The convention det⁡(0×0)=1\det(0\times0)=1 includes n=1n=1. Column expansion follows by transposition.

A determinant does not preserve all geometry

Both diag⁡(100,0.01)\operatorname{diag}(100,0.01) and the identity have determinant 11, although the former stretches one direction and compresses another. A determinant measures total oriented volume scaling; it does not by itself measure directional amplification or proximity to singularity.

Exercises

ExerciseArea and orientation

Find the oriented area generated by (2,1)(2,1) and (1,3)(1,3), then exchange the columns.

Solution

The determinant is 2⋅3−1⋅1=52\cdot3-1\cdot1=5. Exchanging columns gives −5-5: the area remains 55 while orientation reverses.

ExerciseCompute without expansion

Matrix BB is obtained from AA by adding four times row one to row three. Compare their determinants.

Solution

Adding a multiple of another row leaves the determinant unchanged, so det⁡B=det⁡A\det B=\det A.

ExerciseSimilar matrices

Prove that similar matrices have equal determinants.

Solution

det⁡(S−1AS)=det⁡(S)−1det⁡(A)det⁡(S)=det⁡A\det(S^{-1}AS)=\det(S)^{-1}\det(A)\det(S)=\det A.