👉 In mathematics, a function is said to be convex if it is concave on the interior of its domain and concave at its endpoints. This means that as one variable approaches the other, the value of the function increases without bound. In other words, a function is defined as convex if the graph of the function lies entirely above or below the x-axis and does not cross it. For example, consider the function f(x) = 3x^2 - 5x + 4