partial derivatives for the new likelihood framework