Notice that if we were calculating just Z [ J i j ] (or more generally, any power of J i j ) and not its logarithm which we wanted to average, the resulting integral (assuming a Gaussian distribution) is just