Let be a simple, connected graph with vertices and adjacency matrix . We start with the geometric series identity
where is the identity matrix. Let denote the orthonormal matrix of normalized eigenvectors, so that
,
where diag(…) denotes the diagonal matrix with the given entries on the diagonal. Let the multi-set
denote the spectrum of .
We can conjugate the above equation by to write
Taking the trace of each side gives
If has no eigenvalues equal to (i.e., is non-singular) then we may also write this as
If we multiply both sides of the above equation by a fixed
and integrate over in , we get,
where denotes the Hilbert transform
and is the Mellin transform
and where denotes the negation, . Of course, if is even then , for all .
Note that can be expressed in terms of the number of walks on the graph: If is a connected graph and denotes the total number of walks of length on then