differentiate sqrt((1/n)*(log(x+1)-log(y+1))^2) with respect to x