Convexity Definition
A set in a vector space or affine space is convex if the line segment connecting any two points in the set is also in the set
A function is convex over a domain , if for all $$f(tx + (1-t)y) \leq tf(x) + (1-t)f(y), \quad \forall t \in [0;1]$$
If
if
Our scalar problem is non-convex (exception:
Convexity is a very fundamental property: demarcation line in optimization between tractable and (possibly) intractable problems