Math 2.0

Linear and multilinear algebra; matrix theory Proof

Proof of Sylvester's law of inertia by comparing subspaces

Builds on Symmetric matrixInvertible matrixTranspose of a productLinear independenceLinear spanDimensionGrassmann's formulaDimension of a subspaceDimension of the coordinate space

Proof

We show that the number of positive entries is the same, by finding two subspaces that would have to meet.

  1. Let q(x)=xTAxq(x) = x^T A x for x∈ℝnx \in \R^n. Let d1,…,dnd_1, \dots, d_n be the diagonal entries of DD, and d1′,…,dn′d'_1, \dots, d'_n those of D′D'.
  2. For y∈ℝny \in \R^n, the transpose of a product gives q(Py)=yTPTAPy=yTDy=∑idiyi2q(Py) = y^T P^T A P y = y^T D y = \sum_i d_i y_i^2.
  3. In the same way, q(P′z)=∑jdj′zj2q(P' z) = \sum_j d'_j z_j^2 for z∈ℝnz \in \R^n.
  4. Let pp be the number of ii with di>0d_i > 0, and p′p' the number of jj with dj′>0d'_j > 0. Let I={i:di>0}I = \set{i : d_i > 0} and J={j:dj′≤0}J = \set{j : d'_j \le 0}.
  5. Let SS be the span of the columns PeiP e_i with i∈Ii \in I. Let TT be the span of the columns P′ejP' e_j with j∈Jj \in J.
  6. The columns of an invertible matrix PP are linearly independent: if Pc=0Pc = 0, then c=P−1Pc=0c = P^{-1} P c = 0. The same holds for P′P'.
  7. By step 6 and the definition of dimension, dim⁡S=p\dim S = p and dim⁡T=n−p′\dim T = n - p'.
  8. Let x∈Sx \in S with x≠0x \ne 0. Then x=Pyx = Py, where y≠0y \ne 0 and yi=0y_i = 0 for i∉Ii \notin I. By step 2, q(x)=∑i∈Idiyi2>0q(x) = \sum_{i \in I} d_i y_i^2 > 0.
  9. Let x∈Tx \in T. Then x=P′zx = P' z, where zj=0z_j = 0 for j∉Jj \notin J. By step 3, q(x)=∑j∈Jdj′zj2≤0q(x) = \sum_{j \in J} d'_j z_j^2 \le 0.
  10. By steps 8 and 9, S∩T={0}S \cap T = \set{0}, so dim⁡(S∩T)=0\dim(S \cap T) = 0.
  11. By Grassmann's formula, dim⁡(S+T)=p+(n−p′)\dim(S + T) = p + (n - p').
  12. The subspace S+TS + T lies in ℝn\R^n, which has dimension nn. By the dimension of a subspace, p+n−p′≤np + n - p' \le n, so p≤p′p \le p'.
  13. Exchanging the roles of (P,D)(P, D) and (P′,D′)(P', D') gives p′≤pp' \le p. So p=p′p = p'.
  14. The matrix −A-A is symmetric, with PT(−A)P=−DP^T (-A) P = -D and P′T(−A)P′=−D′P'^T (-A) P' = -D'. The positive entries of −D-D are the negative entries of DD.
  15. Applying step 13 to −A-A, the matrices DD and D′D' have the same number of negative diagonal entries.
  16. The number of zero diagonal entries is nn minus the numbers of positive and negative entries. By steps 13 and 15, it is also the same for DD and D′D'.

Idea

The positive entries of DD give a subspace of dimension pp on which the form is positive. The other entries of D′D' give a subspace of dimension n−p′n - p' on which it is not positive. These subspaces meet only in 00, so their dimensions add to at most nn, which forces p≤p′p \le p'.

Reading path

To understand this page from the ground up, read these 65 pages in order. The foundations come first. The path takes the proofs Proof of the Steinitz exchange lemma by induction, Proof of Grassmann's formula by extending a basis of the intersection, Proof that the coordinate space F^n has dimension n, Proof of the formula for the transpose of a product, Proof that every linearly independent set extends to a basis, by Zorn's lemma, Proof of Zorn's lemma, Proof that a subspace of a finite-dimensional space has smaller or equal dimension, Proof that an intersection of subspaces is a subspace.

  1. Coordinate space object
  2. Element definition
  3. Identity matrix object
  4. Matrix definition
  5. Proof of Zorn's lemma proof
  6. Proposition concept
  7. Standard basis object
  8. Vector space definition
  9. Set definition
  10. Matrix multiplication definition
  11. Square matrix definition
  12. Transpose definition
  13. Disjunction definition
  14. Implication definition
  15. Predicate definition
  16. Linear combination definition
  17. Linear subspace definition
  18. Family of sets definition
  19. Ordered pair definition
  20. Invertible matrix definition
  21. Union definition
  22. Proof of the formula for the transpose of a product proof
  23. Symmetric matrix definition
  24. Existential quantifier definition
  25. Universal quantifier definition
  26. Linear independence definition
  27. Linear span definition
  28. Proof that an intersection of subspaces is a subspace proof
  29. Sum of subspaces definition
  30. Cartesian product definition
  31. Transpose of a product statement
  32. Union of a family of sets definition
  33. Subset definition
  34. Uniqueness quantifier definition
  35. Intersection of subspaces statement
  36. Spanning set definition
  37. Binary relation definition
  38. Finite-dimensional vector space definition
  39. Basis definition
  40. Proof of the Steinitz exchange lemma by induction proof
  41. Antisymmetric relation definition
  42. Reflexive relation definition
  43. Transitive relation definition
  44. Dimension definition
  45. Dimension theorem for vector spaces statement
  46. Function definition
  47. Steinitz exchange lemma statement
  48. Preorder definition
  49. Choice function definition
  50. Proof that the coordinate space F^n has dimension n proof
  51. Proof that a subspace of a finite-dimensional space has smaller or equal dimension proof
  52. Partial order definition
  53. Dimension of the coordinate space statement
  54. Axiom of choice statement
  55. Dimension of a subspace statement
  56. Maximal element definition
  57. Total order definition
  58. Upper bound definition
  59. Chain definition
  60. Zorn's lemma statement
  61. Proof that every linearly independent set extends to a basis, by Zorn's lemma proof
  62. Every linearly independent set extends to a basis statement
  63. Proof of Grassmann's formula by extending a basis of the intersection proof
  64. Grassmann's formula statement
  65. Proof of Sylvester's law of inertia by comparing subspaces proof

Where this leads

2 pages build on this one.

Further reading

  1. Web https://kconrad.math.uconn.edu/blurbs/linmultialg/bilinearform.pdf, Theorem 6.19
About this page
TagRDKYJR8P1R
URIm2://RDKYJR8P1R
Kindproof
WritingW0 stub
MSC15A63, 11E04
ProvesSylvester's law of inertia
UsesSymmetric matrix, Invertible matrix, Transpose of a product, Linear independence, Linear span, Dimension, Grassmann's formula, Dimension of a subspace, Dimension of the coordinate space
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.