We recall the famed Cauchy-Binet formula. For an matrix and a matrix with , we have that
where refers to the matrix restricted to rows in and columns in . Let and we can apply the Cauchy-Binet formula to . As , we have that .
where the last equality is due to the fact that . Since the sum of rows in is , . Hence, if is not connected, then and . Thus, if , the LHS and the RHS in the above equation are zero. Assume that is connected.
Fix . Then iff is non-singular iff has full column rank iff iff is acyclic iff is a spanning tree in . Thus, we have that
Suppose we show that , then we have that
(12.2) |
The following lemma completes the proof.
For such that , we have that .
We will prove by induction on . Let . The case of is trivial as the entries are . Assume that the theorem holds for all for .
If each column of has both a and a entry, then the sum of rows is and . If there is a column of ’s in , then again. Hence, there is a column with only a single non-zero entry in . Suppose this is the -th entry. Then, we have that . By induction, the latter is and since , we obtain the desiered conclusion. ∎
Let be the eigenvalues of . Then the number of spanning trees of is .
Let be the number of spanning trees of .
as the sum of the principal minors of a matrix is equal to the sum of products of eigenvalues. Since , RHS is . ∎
As an easy corollary, we can obtain Cayley’s formula by noting that
(Kirchoff’s matrix tree theorem) Let and . Then is the number of spanning forests in with components and each of the elements of being in a distinct component.
(Proof Sketch) Let . Again by Cauchy-Binet, we have that
From Lemma 12.11, we know that and hence it is enough to show that is non-singular iff the edges of forms a forest with components with each in a distinct component.
Let the edges of forms a forest with components with each in a distinct component, say . Let the edges in the th component be . Set . We have that and . Thus is a block matrix with blocks . By the proof of Corollary 12.12, we have that as forms a trees and hence
If is non-singular, then the columns of in are linearly independent and hence the edges in form a forest and they have components as . It remains to be shown that are in distinct components. Since forms a forest with components, and so has a block structure with blocks. If one of the blocks (say with rows doesn’t contain any , then is singular and so will be . This leads to a contradiction. ∎