LINEAR ALGEBRA / 4. DETERMINANTS
Determinants
3Blue1Brown: how much does a transformation scale area/volume?
EXPLANATION
3Blue1Brown's insight: the determinant of a matrix is the factor by which the transformation scales areas (2D) or volumes (3D). det(A) = 2 → transformation doubles all areas det(A) = 0.5 → transformation halves all areas det(A) = 0 → transformation squishes space to a lower dimension (a line, or a point) det(A) < 0 → transformation flips orientation of space det(A) = 0 means: • The matrix is singular (not invertible) • Columns are linearly dependent • The transformation collapses space to lower dimensions • The system Ax = b may have no solution or infinitely many For 2×2 matrix [[a,b],[c,d]]: det = ad - bc Geometric meaning: the parallelogram formed by the two column vectors has area |det|. In ML: • det = 0 → loss of information (bad!) • Condition number = σ_max/σ_min → relates to det via singular values • Log-determinant appears in multivariate Gaussians: log P(x) = -0.5 log det(Σ) + ...
DIAGRAM
2×2 determinant as area:
A = [[3, 1], column1 = [3,0], column2 = [1,2]
[0, 2]]
Parallelogram:
↑ (1,2)
| *──────*(4,2)
| / /
| / /
|/ /
*──────*(3,0)──→ x
Area = det(A) = 3*2 - 1*0 = 6
Singular matrix (det=0):
A = [[2, 4], columns: [2,1] and [4,2] = 2*[2,1]
[1, 2]] linearly dependent → area = 0
det = 2*2 - 4*1 = 0 → squished to a lineCODE