A square matrix A is invertible if and only if det(A)=0; when it is invertible, A−1=det(A)1adj(A), where adj(A) is the adjugate (transpose of the cofactor matrix).
Why is it true?
A linear map can be undone exactly when it does not collapse space to a lower dimension — since the determinant already measures exactly this "does it collapse volume to zero" question, invertibility and det=0 are really the same statement seen from two angles: one algebraic (does an inverse matrix exist), one geometric (is the volume-scaling factor nonzero).
Proof sketch
(⇒) Suppose A is invertible, so there is a matrix A−1 with AA−1=I. Applying the multiplicativity theorem proved above, det(A)det(A−1)=det(AA−1)=det(I)=1. Since the product of the two numbers det(A) and det(A−1) equals 1, neither of them can be 0 — so det(A)=0.
(⇐), worked concretely for 2×2: suppose A=(acbd) has det(A)=ad−bc=0. Define adj(A)=(d−c−ba). Multiplying directly, A⋅adj(A)=(acbd)(d−c−ba)=(ad−bccd−cd−ab+ab−cb+ad)=(ad−bc00ad−bc)=det(A)I, exactly the identity A⋅adj(A)=det(A)I. The same computation in the other order gives adj(A)⋅A=det(A)I as well.
Since det(A)=0, divide both sides of A⋅adj(A)=det(A)I by the scalar det(A) to get A⋅det(A)adj(A)=I, and likewise from the other order det(A)adj(A)⋅A=I. This exhibits an explicit two-sided inverse A−1=det(A)1adj(A), so A is invertible.
For general n (illustrated at n=3), the same argument works because the Laplace cofactor expansion gives ∑jaijCij=det(A) (expanding along row i) while ∑jaijCkj=0 for i=k (this sum is the cofactor expansion of a matrix with row i copied into row k, which has two equal rows and hence determinant 0 by the table above). Assembling these row-by-row identities into matrix form gives exactly A⋅adj(A)=det(A)I for every size n, so whenever det(A)=0 the same division argument as in the 2×2 case produces A−1=adj(A)/det(A); conversely, if det(A)=0, the first paragraph's contrapositive rules out invertibility entirely, since det(A)det(A−1)=1 would force det(A)=0. This proves the criterion in both directions.