ProofComplete

Proof: Sylvester's Law of Inertia

We prove that the signature of a real quadratic form is well-defined, independent of the choice of diagonalizing basis.

ProofSylvester's Law of Inertia

Theorem: If Q(x)=xTAxQ(\mathbf{x}) = \mathbf{x}^TA\mathbf{x} is a real quadratic form with AA symmetric, then the numbers (p,q,r)(p, q, r) in any canonical form βˆ‘i=1pyi2βˆ’βˆ‘i=p+1p+qyi2\sum_{i=1}^p y_i^2 - \sum_{i=p+1}^{p+q} y_i^2 are uniquely determined by AA. They are called the signature.

Proof: Suppose we have two diagonal representations via changes of coordinates x=Py\mathbf{x} = P\mathbf{y} and x=Rz\mathbf{x} = R\mathbf{z}: Q=βˆ‘i=1pyi2βˆ’βˆ‘i=p+1p+qyi2=βˆ‘i=1pβ€²zi2βˆ’βˆ‘i=pβ€²+1pβ€²+qβ€²zi2Q = \sum_{i=1}^p y_i^2 - \sum_{i=p+1}^{p+q} y_i^2 = \sum_{i=1}^{p'} z_i^2 - \sum_{i=p'+1}^{p'+q'} z_i^2

We must show p=pβ€²p = p' and q=qβ€²q = q'.

Step 1: Define positive and negative spaces.

Let V+={x:Q(x)>0 or x=0}V^+ = \{\mathbf{x} : Q(\mathbf{x}) > 0 \text{ or } \mathbf{x} = \mathbf{0}\} using the first representation. This is the span of the first pp coordinate directions in y\mathbf{y}-coordinates, so dim⁑(V+)=p\dim(V^+) = p.

Let Wβˆ’={x:Q(x)≀0}W^- = \{\mathbf{x} : Q(\mathbf{x}) \leq 0\} using the second representation. This contains the span of the last nβˆ’pβ€²n - p' coordinate directions in z\mathbf{z}-coordinates, so dim⁑(Wβˆ’)β‰₯nβˆ’pβ€²\dim(W^-) \geq n - p'.

Step 2: Intersection argument.

If x∈V+∩Wβˆ’\mathbf{x} \in V^+ \cap W^-, then Q(x)>0Q(\mathbf{x}) > 0 (from V+V^+) and Q(x)≀0Q(\mathbf{x}) \leq 0 (from Wβˆ’W^-), so x=0\mathbf{x} = \mathbf{0}.

Thus V+∩Wβˆ’={0}V^+ \cap W^- = \{\mathbf{0}\}.

Step 3: Dimension counting.

By linear algebra, for subspaces with trivial intersection: dim⁑(V+)+dim⁑(Wβˆ’)≀n\dim(V^+) + \dim(W^-) \leq n

Therefore: p+(nβˆ’pβ€²)≀np + (n - p') \leq n, which gives p≀pβ€²p \leq p'.

Step 4: Symmetry.

By the same argument with roles reversed (using Vβˆ’V^- from first representation and W+W^+ from second), we get p′≀pp' \leq p.

Combining: p=pβ€²p = p'.

Step 5: Determine qq.

Since p+qp + q equals the rank of AA (which is well-defined), and we've shown pp is unique, qq must also be unique.

Alternatively, apply the same intersection argument to negative spaces: define Vβˆ’V^- (dimension qq) and W+W^+ (codimension qβ€²q'), proving q=qβ€²q = q' similarly.

Conclusion: The signature (p,q,r)(p, q, r) is uniquely determined by AA, independent of how we diagonalize. ∎

β– 
Remark

This proof elegantly uses dimension counting and the geometry of positive/negative cones. The key insight: subspaces where QQ has definite sign cannot have "too large" an intersection with subspaces of opposite sign. Sylvester's law justifies treating signature as an intrinsic property of the quadratic form, much like rank is intrinsic to linear maps.