Added new specialized function for the first derivative