Sylvester's law of inertia

Sylvester's law of inertia is a theorem in matrix algebra about certain properties of the coefficient matrix of a real quadratic form that remain invariant under a change of basis. Namely, if is a symmetric matrix, then for any invertible matrix , the numbers of positive, negative, and zero eigenvalues of are constant (i.e., the inertia of is constant). This result is particularly useful when is diagonal, as the inertia of a diagonal matrix can easily be obtained by looking at the signs of its diagonal elements.

This property is named after James Joseph Sylvester, who published its proof in 1852.