Before you readA transformation squashes the whole plane onto a single line. Can any transformation undo it?
Watch: The determinant · 3Blue1Brown · Essence of Linear Algebra, ch. 6
The determinant measures how a matrix scales area: ∣detA∣ is the scale factor, and its sign says whether the plane is flipped. For a 2×2 matrix,
det[acbd]=ad−bc.
A negative determinant means orientation flips (the plane is turned over), so a determinant of −3 still triples areas. A determinant of zero means space is squashed into a lower dimension: the columns are dependent.
A = [[2, 1], [1, 3]]det A = 5
The unit square becomes the shaded parallelogram, with area |det A|. It turns orange when orientation flips and flattens when det A = 0.
Watch: Inverse matrices, column space and null space · 3Blue1Brown · Essence of Linear Algebra, ch. 7
The inverseA−1 undoes A:A−1A=I, where the identityI is the matrix that leaves every vector alone. It exists exactly when detA=0, because a squashed plane cannot be un-squashed. For a 2×2 matrix with ad−bc=0:
A−1=ad−bc1[d−c−ba].
A system of linear equations is Ax=b: find the vector that A sends to b. If A is invertible there is exactly one answer, x=A−1b. In practice you solve by elimination rather than computing A−1: subtract multiples of one equation from the others until the last has one unknown, then substitute back upwards. For
x+y+z2x+y−zx−y+2z=6=1=5
subtract 2 × the first from the second, and the first from the third: −y−3z=−11 and −2y+z=−1. Subtract 2 × the new second from the new third: 7z=21, so z=3. Then −y−9=−11 gives y=2, and the first equation gives x=1. Least-squares regression ends in exactly this kind of system.
The rank of A is the dimension of its column space, the set of every output Ax. Full rank means invertible (for square matrices).
Recall
What does detA measure geometrically?
Recall
What does detA=0 tell you?
Recall
What is the inverse of [acbd]?
Exercise
Compute det[3−2−4−1].
Exercise
Solve by elimination: x+2y+z=4,2x+5y+3z=9,x+3y+3z=6. Give x,y,z.