derivative of the logarithm