Here we prove Sylvester’s law of inertia. Let be a real symmetric matrix, and assume the spectral theorem.

Take an arbitrary orthogonal basis with respect to the form , and scale (and optionally reorder) so that there are entries of . (This can also be shown using the spectral theorem, but I think it’s overkill and conceptually messier (we’re “mixing up” linear transformation matrices and bilinear form matrices).)

So first we show are unique (i.e. invariant under change of basis). This is not too hard, since our basis is quite nice. The maximum dimension of a positive-definite set is , or else we would get a linearly independent set of at least vectors. (More precisely, this would force a nontrivial intersection between a dimension-() positive-definite space and a dimension- negative-semi-definite space, which is clearly absurd.) Similarly, the maximum dimension of a negative-definite set is .

Now that we have uniqueness, we move on to the eigenvalues and principal minor determinant interpretations. By the spectral theorem (for real symmetric matrices), the fact that symmetric matrices have real eigenvalues, and uniqueness of Sylvester form, has positive eigenvalues, negative eigenvalues, and zero eigenvalues.

Continue reading Sylvester’s law of inertia, from the spectral theorem