TheoremComplete

Sylvester's Law of Inertia

Sylvester's Law of Inertia states that the signature of a real quadratic form is invariant under change of basis. This means that while the specific diagonal entries may change when we diagonalize a quadratic form, the number of positive, negative, and zero entries remains the same. This gives a complete classification of real quadratic forms up to congruence.


Statement

Theorem8.2Sylvester's Law of Inertia

Let QQ be a real quadratic form on Rn\mathbb{R}^n with symmetric matrix MM. If QQ can be reduced to diagonal form in two different ways:

Q=a1y12++anyn2=b1z12++bnzn2,Q = a_1 y_1^2 + \cdots + a_n y_n^2 = b_1 z_1^2 + \cdots + b_n z_n^2,

then the number of positive aia_i, the number of negative aia_i, and the number of zero aia_i are the same as for the bjb_j.

Equivalently: if PTMP=DP^T M P = D and QTMQ=DQ^T M Q = D' are two diagonalizations (where D,DD, D' are diagonal), then DD and DD' have the same numbers of positive, negative, and zero diagonal entries.

Definition8.11Signature

The signature of QQ is the triple (p,q,z)(p, q, z) where pp is the number of positive diagonal entries, qq the number of negative entries, and zz the number of zero entries after diagonalization. Since p+q+z=np + q + z = n and r=p+qr = p + q is the rank, we often write just (p,q)(p, q).

Two real quadratic forms are congruent (equivalent) if and only if they have the same signature.


Proof sketch

ProofProof of Sylvester's Law of Inertia

Suppose Q=x12++xp2xp+12xp+q2Q = x_1^2 + \cdots + x_p^2 - x_{p+1}^2 - \cdots - x_{p+q}^2 in one basis and Q=y12++yp2yp+12yp+q2Q = y_1^2 + \cdots + y_{p'}^2 - y_{p'+1}^2 - \cdots - y_{p'+q'}^2 in another. We prove p=pp = p'.

Assume for contradiction p>pp' > p. Let V+=span{e1,,ep}V^+ = \operatorname{span}\{e_1, \ldots, e_{p'}\} (the "yy" coordinates where QQ is positive) and V=span{fp+1,,fn}V^- = \operatorname{span}\{f_{p+1}, \ldots, f_n\} (the "xx" coordinates where QQ is 0\leq 0).

dimV+=p\dim V^+ = p' and dimV=np\dim V^- = n - p. Since p>pp' > p, we have dimV++dimV=p+np>n\dim V^+ + \dim V^- = p' + n - p > n, so V+V{0}V^+ \cap V^- \neq \{0\}.

Pick vV+Vv \in V^+ \cap V^-, v0v \neq 0. Since vV+v \in V^+: Q(v)>0Q(v) > 0 (the form is a sum of positive squares on V+V^+). Since vVv \in V^-: Q(v)0Q(v) \leq 0 (the form is non-positive on VV^-). Contradiction.

Therefore ppp' \leq p. By symmetry, ppp \leq p', so p=pp = p'. Similarly q=qq = q'. \blacksquare


Examples

ExampleSignature of 2x2 forms

M=(1223)M = \begin{pmatrix} 1 & 2 \\ 2 & 3 \end{pmatrix}: eigenvalues 2±52 \pm \sqrt{5}, one positive and one negative. Signature (1,1)(1, 1).

M=(1111)M = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}: eigenvalues 2,02, 0. Signature (1,0)(1, 0), rank 11.

M=(2112)M = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}: eigenvalues 3,13, 1. Signature (2,0)(2, 0) (positive definite).

M=(1003)M = \begin{pmatrix} -1 & 0 \\ 0 & -3 \end{pmatrix}: eigenvalues 1,3-1, -3. Signature (0,2)(0, 2) (negative definite).

ExampleSignature of 3x3 forms

M=diag(1,1,0)M = \operatorname{diag}(1, -1, 0): signature (1,1)(1, 1), rank 22. The form is Q=x2y2Q = x^2 - y^2.

M=diag(2,3,5)M = \operatorname{diag}(2, 3, -5): signature (2,1)(2, 1), rank 33. Equivalent to diag(1,1,1)\operatorname{diag}(1, 1, -1).

M=diag(1,1,1)M = \operatorname{diag}(1, 1, 1): signature (3,0)(3, 0), positive definite. The form Q=x2+y2+z2Q = x^2 + y^2 + z^2.

ExampleTwo diagonalizations, same signature

Q(x,y)=2x2+4xy+3y2Q(x, y) = 2x^2 + 4xy + 3y^2.

Diagonalization 1 (completing the square): Q=2(x+y)2+y2Q = 2(x + y)^2 + y^2. Diagonal form: 2u2+v22u^2 + v^2. Positive coefficients: 22.

Diagonalization 2 (eigenvalues of M=(2223)M = \begin{pmatrix} 2 & 2 \\ 2 & 3 \end{pmatrix}): eigenvalues 5±523.62,1.38\frac{5 \pm \sqrt{5}}{2} \approx 3.62, 1.38. Both positive.

Signature (2,0)(2, 0) in both cases ✓. Sylvester's Law guarantees this consistency.


Complete classification

Theorem8.3Classification of real quadratic forms

Two real quadratic forms on Rn\mathbb{R}^n are congruent if and only if they have the same signature (p,q)(p, q) (equivalently, the same rank r=p+qr = p + q and the same index of positivity pp).

There are exactly (n+1)(n+2)2\frac{(n+1)(n+2)}{2} equivalence classes of quadratic forms on Rn\mathbb{R}^n: one for each pair (p,q)(p, q) with p+qnp + q \leq n.

ExampleAll quadratic forms on R^2

The possible signatures on R2\mathbb{R}^2 are:

  • (2,0)(2, 0): x2+y2x^2 + y^2 (positive definite), represented by I2I_2.
  • (1,1)(1, 1): x2y2x^2 - y^2 (indefinite), represented by diag(1,1)\operatorname{diag}(1, -1).
  • (0,2)(0, 2): x2y2-x^2 - y^2 (negative definite), represented by I2-I_2.
  • (1,0)(1, 0): x2x^2 (degenerate, rank 11, positive).
  • (0,1)(0, 1): x2-x^2 (degenerate, rank 11, negative).
  • (0,0)(0, 0): Q=0Q = 0 (the zero form).

Total: 6=3426 = \frac{3 \cdot 4}{2} equivalence classes.

ExampleCounting forms on R^3

On R3\mathbb{R}^3: pairs (p,q)(p, q) with p+q3p + q \leq 3:

(3,0),(2,1),(1,2),(0,3),(2,0),(1,1),(0,2),(1,0),(0,1),(0,0)(3,0), (2,1), (1,2), (0,3), (2,0), (1,1), (0,2), (1,0), (0,1), (0,0).

Total: 10=45210 = \frac{4 \cdot 5}{2}. For example, the Lorentz form t2+x2+y2-t^2 + x^2 + y^2 has signature (2,1)(2, 1), the same class as x2+y2z2x^2 + y^2 - z^2.


Sylvester's criterion for definiteness

Theorem8.4Sylvester's criterion

A symmetric matrix MM is positive definite if and only if all leading principal minors are positive:

Δ1=m11>0,Δ2=det(m11m12m21m22)>0,,Δn=detM>0.\Delta_1 = m_{11} > 0, \quad \Delta_2 = \det\begin{pmatrix} m_{11} & m_{12} \\ m_{21} & m_{22} \end{pmatrix} > 0, \quad \ldots, \quad \Delta_n = \det M > 0.

MM is negative definite iff (1)kΔk>0(-1)^k \Delta_k > 0 for all kk (the minors alternate in sign: Δ1<0,Δ2>0,Δ3<0,\Delta_1 < 0, \Delta_2 > 0, \Delta_3 < 0, \ldots).

ExampleApplying Sylvester's criterion

M=(420253036)M = \begin{pmatrix} 4 & 2 & 0 \\ 2 & 5 & 3 \\ 0 & 3 & 6 \end{pmatrix}.

Δ1=4>0\Delta_1 = 4 > 0 ✓, Δ2=204=16>0\Delta_2 = 20 - 4 = 16 > 0 ✓, Δ3=4(309)2(12)=8424=60>0\Delta_3 = 4(30 - 9) - 2(12) = 84 - 24 = 60 > 0 ✓.

All positive, so MM is positive definite.

ExampleTesting negative definiteness

M=(2113)M = \begin{pmatrix} -2 & 1 \\ 1 & -3 \end{pmatrix}.

Δ1=2<0\Delta_1 = -2 < 0 ✓ (should be <0< 0 for negative definite). Δ2=61=5>0\Delta_2 = 6 - 1 = 5 > 0 ✓ (should be >0> 0).

(1)1Δ1=2>0(-1)^1 \Delta_1 = 2 > 0 and (1)2Δ2=5>0(-1)^2 \Delta_2 = 5 > 0. Negative definite ✓.

ExampleWhen Sylvester's criterion detects indefiniteness

M=(1331)M = \begin{pmatrix} 1 & 3 \\ 3 & 1 \end{pmatrix}.

Δ1=1>0\Delta_1 = 1 > 0, Δ2=19=8<0\Delta_2 = 1 - 9 = -8 < 0.

Δ2<0\Delta_2 < 0 means MM is not positive definite. Since Δ1>0\Delta_1 > 0 (so it is not negative definite either), MM is indefinite. Eigenvalues: 4,24, -2, confirming signature (1,1)(1, 1).


Congruence vs. similarity

ExampleCongruence is not similarity

A=(1004)A = \begin{pmatrix} 1 & 0 \\ 0 & 4 \end{pmatrix} and B=(2002)B = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}.

AA and BB are congruent (both positive definite with signature (2,0)(2, 0), so B=PTAPB = P^TAP for some PP). Indeed, P=diag(2,1/2)P = \operatorname{diag}(\sqrt{2}, 1/\sqrt{2}) gives PTAP=diag(2,2)=BP^TAP = \operatorname{diag}(2, 2) = B ✓.

But AA and BB are not similar (eigenvalues {1,4}\{1, 4\} vs {2,2}\{2, 2\}).

Congruence preserves the signature; similarity preserves the characteristic polynomial. These are different equivalence relations.

ExampleCongruence over Q vs over R

Over R\mathbb{R}: Q1=x2+y2Q_1 = x^2 + y^2 and Q2=x2+2y2Q_2 = x^2 + 2y^2 are congruent (both signature (2,0)(2, 0)).

Over Q\mathbb{Q}: they are not congruent. To see this, Q1=1Q_1 = 1 has the rational solution (1,0)(1, 0), and Q1=3Q_1 = 3 has no rational solutions (since x2+y2=3x^2 + y^2 = 3 has no solutions in Q\mathbb{Q}), but Q2=3Q_2 = 3 has the solution (1,1)(1, 1). The forms represent different sets of rationals.

Over R\mathbb{R}, Sylvester's Law classifies forms by signature alone. Over Q\mathbb{Q} (and other fields), the classification is much richer.


Summary

RemarkSylvester's Law as complete invariant

Sylvester's Law of Inertia provides a complete classification of real symmetric bilinear forms:

  • The signature (p,q)(p, q) is the unique congruence invariant.
  • Every real quadratic form is congruent to x12++xp2xp+12xp+q2x_1^2 + \cdots + x_p^2 - x_{p+1}^2 - \cdots - x_{p+q}^2.
  • Sylvester's criterion provides a practical test for definiteness via leading principal minors.
  • Over other fields (e.g., Q\mathbb{Q}, Fp\mathbb{F}_p), the classification is more complex (Hasse--Minkowski theorem, Witt cancellation).
  • The law connects to the Hodge Index Theorem in algebraic geometry, where the intersection form on a surface has signature (1,ρ1)(1, \rho - 1).