In elementary (single variable) calculus, convex functions are universally not discussed. To discuss that you would need the concept of gradient, Hessian and convex sets.
What is discussed is the concept of a "concavity". A function can concave up or concave down. $f(x) = x^2$ concave up, and $f(x) = -x^2$ concave down.
In caclcus, you may be aware if $f''(x) > 0, \forall x \in D$, then the function $f$ concaves up over $D$. Similarly, if $f''(x) < 0, \forall x \in D$, then the function $f$ concave down over $D$.
In convex analysis, if $\nabla^2 f(x) \succ 0, \forall x \in D$, meaning that the Hessian is positive definite, then function is strictly convex over domain $D$. If $\nabla^2 f(x) \prec 0, \forall x \in D$, meaning that the Hessian is negative definite, then a function is strictly concave over $D$.
The connection here is that:
- Hessian is generalized second derivative
- Positive definite generalizes positivity
- Negative definite generalizes negativity
On $\mathbb{R}$, $f$ concave up = strictly convex, $f$ concave down = strictly concave.
What about just convex? The intuition from calculus doesn't carry over well because a constant function $f(x) = c$ is convex, but certainly not concaving up or down.