The determinant of a square matrix A∈Rn×n is a scalar det(A)∈R that encodes the signed scaling factor of the linear transformation represented by A.
det(A)=signed volume of the parallelepiped spanned by the column vectors of A
Geometrically:
∣det(A)∣ is the factor by which A scales areas (2-D) or volumes (3-D).
det(A)>0: orientation is preserved.
det(A)<0: orientation is reversed (a reflection is involved).
det(A)=0: the transformation collapses space into a lower dimension — the matrix is singular (non-invertible).
Note
The determinant is defined only for square matrices. For non-square matrices, singular-value decomposition plays an analogous role.
2×2 Determinant
For A=(acbd):
det(A)=ad−bc
The formula ad−bc is the area of the parallelogram formed by the two column vectors (ac) and (bd).
Example
Let A=(3124).
det(A)=3⋅4−2⋅1=12−2=10
The columns (31) and (24) span a parallelogram of area 10.
Common mistake
Wrong:det(acbd)=ab−cd (multiplying rows instead of diagonals). Why it happens: Confusing row products with diagonal products. Correct: Multiply the main diagonal (ad) and subtract the anti-diagonal (bc). Check:det(I)=1⋅1−0⋅0=1. Any other formula gives the wrong answer on the identity.
02 — Cofactor Expansion (3×3 and beyond)
For an n×n matrix, expand along any row or column. Expanding along row 1:
det(A)=∑j=1na1jC1j=∑j=1n(−1)1+ja1jM1j
The sign pattern for cofactors is:
+−+⋮−+−+−+−+−⋯⋯⋯⋱
Cofactor expansion of a 3×3 matrix — inputs: $A=\begin{pmatrix}1&2&3\\0&4&5\\1&0&6\end{pmatrix}$
M11=det(4056)=4⋅6−5⋅0=24−0=24
— The 4 is a22; the 6 is a33; the 5 and 0 are off-diagonal.
M12=det(0156)=0⋅6−5⋅1=0−5=−5
— The 0 is a21; the 6 is a33; the 5 and 1 are off-diagonal.
M13=det(0140)=0⋅0−4⋅1=0−4=−4
— The 0s are a21 and a32; the 4 is a22; the 1 is a31.
det(A)=a11⋅(+1)⋅M11+a12⋅(−1)⋅M12+a13⋅(+1)⋅M13=1⋅(+24)+2⋅(−1)(−5)+3⋅(−4)
— The 1,2,3 are the row-1 entries; the signs +1,−1,+1 are cofactor signs; the 24,−5,−4 are the minors.
=24+10−12=22
— 24 from step 2, +10 from 2⋅(−1)⋅(−5)=10, −12 from 3⋅(−4).
Note
Expand along a row or column with the most zeros to minimise computation. If a row has two zeros, only one minor needs to be computed.
Common mistake
Wrong:det(A)=a11M11+a12M12+a13M13 (all signs positive). Why it happens: The sign pattern (−1)i+j is forgotten. Correct:det(A)=a11M11−a12M12+a13M13 for row-1 expansion. Check:det010100001 should equal −1 (row swap). If your formula gives +1, you dropped the signs.
03 — Properties of Determinants
Definition
Let A,B∈Rn×n. The following hold:
Row swap: swapping two rows multiplies det by −1.
Scalar multiple: multiplying one row by k multiplies det by k.
Row addition: adding a multiple of one row to another leaves det unchanged.
Multiplicativity:det(AB)=det(A)det(B).
Transpose:det(A⊤)=det(A).
Identity:det(I)=1.
Inverse: If A is invertible, det(A−1)=det(A)1.
Triangular matrix:det(A)=∏i=1naii (product of diagonal entries).
Example
det3007−10254=3⋅(−1)⋅4=−12
No expansion needed — just multiply the diagonal.
Example
If det(A)=3 and det(B)=2, then det(AB)=6. This means composing two transformations multiplies their area-scaling factors.
Note
Property 8 is why Gaussian elimination is efficient for computing determinants: reduce to upper triangular form while tracking row-swap signs, then multiply the diagonal.
04 — Determinants via Row Reduction
Row reduction is computationally faster than cofactor expansion for large matrices. Track how each row operation changes the determinant.
Determinant by row reduction — inputs: $A=\begin{pmatrix}2&1&3\\4&5&1\\2&3&7\end{pmatrix}$
det(A)=?; start with multiplier k=1 (no operations yet).
2021333−57
— 4−2⋅2=0; 5−2⋅1=3; 1−2⋅3=−5. Row addition: det unchanged, so k stays 1.
2001323−54
— 2−2=0; 3−1=2; 7−3=4. Row addition: k stays 1.
2001303−5322
— 2−32⋅3=0; 4−32⋅(−5)=4+310=322. Row addition: k stays 1.
det(A)=k⋅2⋅3⋅322=1⋅2⋅3⋅322=44
— The 2 is a11 after reduction; 3 is the pivot in row 2; 322 is the pivot in row 3.
05 — Invertibility and Cramer's Rule
Definition
A square matrix A∈Rn×n is invertible (non-singular) if and only if
det(A)=0
If det(A)=0, the system Ax=b either has no solution or infinitely many.
Definition
For a system Ax=b with det(A)=0 and A∈Rn×n:
xi=det(A)det(Ai)
where Ai is A with its i-th column replaced by b.
Cramer's Rule is elegant but O(n!) in theory — never use it for large systems. Gaussian elimination (O(n3)) is always preferred computationally.
Common mistake
Wrong: proceeding to compute xi=det(Ai)/det(A) when det(A)=0. Why it happens: forgetting to check invertibility first. Correct: check det(A)=0 before applying Cramer's Rule. If det(A)=0, use row reduction to classify the system. Check: a zero determinant means the columns are linearly dependent — the system cannot have a unique solution.
06 — Geometric Meaning and Quant Application
Area and Volume
Area of parallelogram spanned by u,v=det(u1u2v1v2)
Volume of parallelepiped spanned by u,v,w=detu1u2u3v1v2v3w1w2w3
Quant Application — Change of Variables in Probability
When transforming a joint density fX,Y(x,y) to new variables (u,v)=g(x,y), the Jacobian determinant scales the probability mass:
fU,V(u,v)=fX,Y(x(u,v),y(u,v))⋅∣detJ∣
where J=∂(u,v)∂(x,y) is the Jacobian matrix.
In options pricing, converting from the risk-neutral measure Q to the physical measure P via a Radon-Nikodym derivative is the infinite-dimensional analogue of this determinant scaling.
In portfolio optimisation, the determinant of the covariance matrix Σ measures the "generalised variance" of a portfolio. A near-zero det(Σ) signals near-multicollinearity among assets — the portfolio has essentially fewer degrees of freedom than the number of positions.
Exercises
EXERCISE 5.1
Use det(acbd)=ad−bc. Identify a,b,c,d carefully — do not multiply row entries.
The determinant is −7. The negative sign means the transformation reverses orientation.
Compute det(−325−1).
EXERCISE 5.2
Expand along row 1 with signs +,−,+. Look for the column with a zero to skip one minor.
B=1300122−14.
Expand along row 1 (signs +,−,+):
M11=det(12−14)=4−(−2)=6.
M12=det(30−14)=12−0=12. (Multiplied by a12=0, so this term vanishes.)
M13=det(3012)=6−0=6.
det(B)=1⋅(+1)⋅6+0⋅(−1)⋅12+2⋅(+1)⋅6=6+0+12=18.
Compute det1300122−14 using cofactor expansion.
EXERCISE 5.3
The matrix is upper triangular. The determinant of a triangular matrix is the product of its diagonal entries — no expansion needed.
C=50003−200−2730149−1.
Upper triangular: det(C)=5⋅(−2)⋅3⋅(−1).
=5⋅(−2)=−10; then −10⋅3=−30; then −30⋅(−1)=30.
det(C)=30.
Compute det50003−200−2730149−1.
EXERCISE 5.4
Use properties: det(A−1)=1/det(A); det(kA)=kndet(A) for n×n; det(AB)=det(A)det(B); det(A⊤)=det(A). Apply each one in turn.
Given A is 3×3 with det(A)=4.
(a) det(A−1)=1/det(A)=1/4.
(b) det(2A)=23det(A)=8⋅4=32. (Each of 3 rows is scaled by 2, so det is multiplied by 23.)
(c) det(A2)=det(A)det(A)=4⋅4=16.
(d) det(A⊤)=det(A)=4. The transpose does not change the determinant.
Let A be a 3×3 matrix with det(A)=4. Compute: (a)det(A−1), (b)det(2A), (c)det(A2), (d)det(A⊤).
EXERCISE 5.5
The columns are linearly dependent if and only if det=0. Check whether one column is a linear combination of the others, or compute the determinant directly.
D=120241361.
Notice: row 2 =2× row 1. A row operation R2←R2−2R1 gives a zero row.
A matrix with a zero row has det=0 by linearity of the determinant in each row.
Therefore det(D)=0 and D is singular — not invertible.
Geometrically, the three column vectors are coplanar (they lie in a 2-D subspace), so the parallelepiped they span has zero volume.
Determine whether 120241361 is invertible. Explain the geometric meaning.
EXERCISE 5.6
A 2×2 covariance matrix Σ=(σ12ρσ1σ2ρσ1σ2σ22). Compute det(Σ)=σ12σ22−ρ2σ12σ22 and factor.
When ρ=0: det(Σ)=σ12σ22>0 — full 2-D spread, assets independent.
When ∣ρ∣→1: det(Σ)→0 — perfect correlation means both assets move on a 1-D line; the covariance matrix is singular.
In portfolio construction, det(Σ)≈0 means the portfolio's effective dimension is less than 2 — there is no diversification benefit from holding both assets.
A two-asset portfolio has return covariance matrix Σ=(σ12ρσ1σ2ρσ1σ2σ22). Compute det(Σ) and explain what happens as ∣ρ∣→1.
Chapter Summary
Concept
Formula / Rule
2×2 determinant
det(acbd)=ad−bc
Cofactor
Cij=(−1)i+jMij
Cofactor expansion (row i)
det(A)=∑jaijCij
Triangular shortcut
det(A)=∏iaii
Row swap
Multiplies det by −1
Row scaling
Multiplies det by the scalar
Row addition
No change to det
Multiplicativity
det(AB)=det(A)det(B)
Invertibility
A invertible ⟺det(A)=0
Geometric meaning
∣det(A)∣ = area/volume scaling factor
Next chapter: Chapter 06 — Eigenvalues & Eigenvectors, where the determinant plays a central role in computing the characteristic polynomial det(A−λI)=0.