cout marginal et fonction convexe