gradient for second order correlation. the denominator might be slightly mis-calculated