First-Order Characterization of Convex Differentiable Functions