Derivation of logarithmic functions