Maths WorkshopMaths problems with full solutions
Exercise 657Topology › Topology of Mn(ℝ) › Rank, spectrum and normsL2Added 6 Nov 2026

Singular matrices have measure zero

#Lebesgue measure#zero set of a polynomial#Fubini#determinant

Statement

Show that {A∈Mn(R):det⁡A=0}\{A\in M_n(\mathbb{R}):\det A=0\} has Lebesgue measure zero in Mn(R)≅Rn2M_n(\mathbb{R})\cong\mathbb{R}^{n^2}. Equivalently, GLn(R)GL_n(\mathbb{R}) has full measure.

Hint

Prove first that the zero set of any nonzero polynomial in kk variables is Lebesgue-null, by induction on kk and Fubini's theorem. Then note that det⁡\det is a nonzero polynomial.

Show solutionHide solution

Solution

Lemma. If p∈R[x1,…,xk]p\in\mathbb{R}[x_1,\dots,x_k] is not the zero polynomial, then Z(p)={p=0}Z(p)=\{p=0\} has measure zero in Rk\mathbb{R}^k.

*Proof by induction on kk.* For k=1k=1, a nonzero polynomial has finitely many roots. Let k≥2k\ge2 and write
p(x1,…,xk)=∑j=0dqj(x1,…,xk−1) xkj,p(x_1,\dots,x_k)=\sum_{j=0}^dq_j(x_1,\dots,x_{k-1})\,x_k^j,
with qd≢0q_d\not\equiv0. By induction, N={qd=0}⊂Rk−1N=\{q_d=0\}\subset\mathbb{R}^{k-1} is null. For x′=(x1,…,xk−1)∉Nx'=(x_1,\dots,x_{k-1})\notin N, the polynomial xk↦p(x′,xk)x_k\mapsto p(x',x_k) is nonzero, so its zero set in R\mathbb{R} is finite, hence null. By Fubini-Tonelli,
λk(Z(p))=∫Rk−1λ1({xk:p(x′,xk)=0}) dx′=0,\lambda_k(Z(p))=\int_{\mathbb{R}^{k-1}}\lambda_1\big(\{x_k:p(x',x_k)=0\}\big)\,dx'=0,
because the integrand vanishes for x′∉Nx'\notin N and NN is null. □\square

Application. det⁡A\det A is a polynomial of degree nn in the n2n^2 entries, and it is not the zero polynomial since det⁡I=1\det I=1. By the lemma {det⁡=0}\{\det=0\} is null.

Remark. The same proof shows that {det⁡=0}\{\det=0\} is also nowhere dense: it is closed with empty interior (a null set cannot contain a ball). So a "random" matrix is almost surely invertible, and generic statements about invertible matrices extend to all matrices by continuity, a technique used throughout this topic.