When Is A Function Concave Upward