differentiation

calculation of derivative