analytical derivatives