partial derivatives working