Skip to content

Summary: The determinant

A linear transformation stretches and squashes space; the determinant is the one number that says by how much, and whether space got flipped over in the process. The whole lesson compresses to this: the determinant is a signed scaling factor, how much bigger and which way up, and when it hits zero a dimension is gone for good. That single value decides the question the next lesson turns on: can the transformation be undone? This is the scan-it-in-five-minutes version.

  • The determinant of a 2x2 matrix M is the factor by which M scales area: a region of area A becomes area det(M) · A. The same factor applies to every region regardless of shape, because a linear transformation scales space uniformly, so you only measure it once.
  • You read it off the unit square. The square (area 1) becomes the parallelogram spanned by the two columns, and since it started at area 1, that parallelogram’s area is the determinant. Plot the columns, measure the parallelogram.
  • The formula is det = ad - bc for [[a, b], [c, d]]: main-diagonal product minus off-diagonal product, which is exactly the signed area of the column parallelogram.
  • The determinant is signed, carrying two facts at once. The magnitude is the size scaling; the sign is orientation. A negative determinant means space was flipped over (a reflection); det = -1 preserves area while reversing orientation, so it is not a shrink.
  • det = 0 is the special value: the transformation collapses the plane onto a line or a point, all area lost. It happens exactly when the columns are linearly dependent (the spans-lesson case, now wearing a number). Zero is not “small”; it is total collapse.
  • Worked anchors: [[3,0],[0,2]] has det = 6 (areas sextuple); a rotation [[0,-1],[1,0]] has det = 1 (area preserved); a shear [[1,1],[0,1]] also has det = 1 (distorted but same area); a reflection [[1,0],[0,-1]] has det = -1; the dependent [[2,4],[1,2]] has det = 0 (collapse). In 3D the determinant scales volume the same way.
  • Determinants multiply under composition: det(AB) = det(A) · det(B), because scaling factors compose by multiplying.
  • This is why the determinant matters for AI: it decides invertibility. det ≠ 0 means the transformation merely rearranged space and can be run backward (no information lost); det = 0 means a dimension was crushed and cannot be recovered (many inputs map to the same output). The absolute determinant is also the volume-rescaling factor used when converting between probability distributions.

Before this lesson, the determinant was probably a formula (ad - bc) you could evaluate without knowing what it meant. Now it is a geometric readout: how much a transformation grows or shrinks space, and whether it turns space over, all in one signed number. When you next see “the matrix is singular” or “the determinant is zero” in a numerical-computing or machine-learning context, you can read it directly as “this transformation collapsed a dimension and cannot be inverted.” The next lesson takes up the question zero forces: when a transformation can be reversed, how do you reverse it, and when it cannot, what exactly did the collapse destroy?