👉 A convex function is a continuous real-valued function f defined on an interval [a, b] that attains its maximum at x = a and its minimum at x = b. The graph of a convex function is always concave up or down at the endpoints. convexes