Derivative of logarithmic functions