Maths WorkshopMaths problems with full solutions
Exercise 1450Topology › Topology of Mn(ℝ) › Applications and the case n = 2L3Added 10 Nov 2026

Signature is constant on a rank stratum of symmetric matrices

#signature#Sylvester's law of inertia#connected components#symmetric matrices

Statement

Let Symn\mathrm{Sym}_n be the space of real symmetric n×nn\times n matrices, and for S∈SymnS\in\mathrm{Sym}_n let (p,q)(p,q) be its signature: pp positive and qq negative eigenvalues (so p+q=rank⁡Sp+q=\operatorname{rank}S).
1. Show that (p,q)(p,q) is constant along every continuous path in {S∈Symn:rank⁡S=r}\{S\in\mathrm{Sym}_n:\operatorname{rank}S=r\}.
2. Deduce that {S∈Symn:rank⁡S=r}\{S\in\mathrm{Sym}_n:\operatorname{rank}S=r\} has exactly r+1r+1 connected components.

Hint

For part 1, show that p(S)p(S) and q(S)q(S) cannot drop in a neighbourhood (lower semicontinuity) and use p+q=rp+q=r. For part 2, move the eigenvalues to ±1\pm1 and 00, and connect Q∈SO(n)Q\in SO(n) to II.

Show solutionHide solution

Solution

Idea. Signs of nonzero eigenvalues are stable, and with the rank constant, zero eigenvalues cannot be created or destroyed, so no eigenvalue can cross 00. Conversely, inside one signature all matrices can be deformed into a standard one.

Part 1: lower semicontinuity of pp and qq. By Sylvester's law of inertia (quoted), p(S)p(S) is the largest dimension of a subspace VV on which xTSx>0x^TSx>0 for all x≠0x\ne0 (take the span of eigenvectors with positive eigenvalues; and no larger subspace works). Let VV be such a subspace of dimension p(S)p(S). The unit sphere of VV is compact and x↦xTSxx\mapsto x^TSx is positive there, so its minimum is some c>0c>0. If ∥S′−S∥<c\|S'-S\|<c then for unit x∈Vx\in V,
xTS′x≥xTSx−∥S′−S∥>0,x^TS'x\ge x^TSx-\|S'-S\|>0,
so VV also works for S′S' and p(S′)≥p(S)p(S')\ge p(S). The same argument applied to −S-S gives q(S′)≥q(S)q(S')\ge q(S).

If now S′S' has the same rank rr as SS and is close to SS, we have p(S′)+q(S′)=r=p(S)+q(S)p(S')+q(S')=r=p(S)+q(S) together with p(S′)≥p(S)p(S')\ge p(S) and q(S′)≥q(S)q(S')\ge q(S); hence p(S′)=p(S)p(S')=p(S) and q(S′)=q(S)q(S')=q(S). So S↦(p,q)S\mapsto(p,q) is locally constant on the rank-rr set, and therefore constant along continuous paths (a locally constant function on an interval is constant, by connectedness of the interval).

Part 2: each stratum is path connected. Let Sp,q\mathcal S_{p,q} (p+q=rp+q=r) be the set of symmetric matrices of signature (p,q)(p,q). Take S∈Sp,qS\in\mathcal S_{p,q} and write S=QΛQTS=Q\Lambda Q^T with Q∈O(n)Q\in O(n) and Λ=diag(λi)\Lambda=\mathrm{diag}(\lambda_i). Let D=diag(di)D=\mathrm{diag}(d_i) with di=sign⁡λi∈{1,−1,0}d_i=\operatorname{sign}\lambda_i\in\{1,-1,0\}.

*(a) Normalise the eigenvalues.* For t∈[0,1]t\in[0,1], put St=Q((1−t)Λ+tD)QTS_t=Q\bigl((1-t)\Lambda+tD\bigr)Q^T. Each diagonal entry (1−t)λi+tdi(1-t)\lambda_i+td_i is a convex combination of two numbers of the same sign (or both 00), so it keeps the sign of λi\lambda_i. Thus St∈Sp,qS_t\in\mathcal S_{p,q} and S0=SS_0=S, S1=QDQTS_1=QDQ^T.

*(b) Reduce to Q∈SO(n)Q\in SO(n).* If det⁡Q=−1\det Q=-1 let F=diag(−1,1,…,1)F=\mathrm{diag}(-1,1,\dots,1). The diagonal matrices FF and DD commute, so (QF)D(QF)T=QFDFTQT=QDQT(QF)D(QF)^T=QFDF^TQ^T=QDQ^T and det⁡(QF)=1\det(QF)=1. So we may assume Q∈SO(n)Q\in SO(n).

*(c) Connect to DD.* SO(n)SO(n) is path connected (quoted; it is shown in the connectedness chapter). Take a path QtQ_t in SO(n)SO(n) from QQ to II. Then t↦QtDQtTt\mapsto Q_tDQ_t^T is a path in Sp,q\mathcal S_{p,q} (orthogonal conjugation preserves eigenvalues) from QDQTQDQ^T to DD.

So every point of Sp,q\mathcal S_{p,q} is joined by a path in Sp,q\mathcal S_{p,q} to the fixed matrix Dp,q=diag(Ip,−Iq,0)D_{p,q}=\mathrm{diag}(I_p,-I_q,0). Hence each Sp,q\mathcal S_{p,q} is path connected.

Conclusion. The rank-rr set is the disjoint union of the sets Sp,q\mathcal S_{p,q} with p+q=rp+q=r (p=0,1,…,rp=0,1,\dots,r, so r+1r+1 sets), each path connected, and by Part 1 no path leaves a given Sp,q\mathcal S_{p,q}. Therefore these are exactly the path components, and there are r+1r+1 of them. (Each is also open in the rank-rr set by local constancy of the signature, so they are also the connected components.)

Remark. For r=nr=n this says that the nondegenerate symmetric matrices form n+1n+1 components, indexed by p=0,…,np=0,\dots,n; the component p=np=n is the open cone of positive definite matrices, which is convex. For r=0r=0 the set is {0}\{0\}, one component. Note that the problem would not be true if we allowed the rank to vary: the positive definite matrices and the negative definite ones are joined through singular matrices.

Lesson. A discrete invariant that is lower semicontinuous and whose total is fixed (here p+q=rp+q=r) is locally constant.