derivative (y - p) * (alpha - Boole(y - p)) wrt p