If the function is concave up, the second derivative of the function is positive. For concave down, it is negative.