Logarithmic functions differentiation