Concavity and second derivative analysis