differentiation of logarithmic functions