I am asking because some Internet pages contradict. In Wikipedia, the definition I found of a convex function is:
"Let $X$ be a convex set in a real vector space and let $f: X \to R$ be a function.
• $f$ is called convex if:
For all $x_1\ne x_2 \in X$ and for all $t\in (0,1): f(t x_1 + (1-t)x_2 ) \le tf(x_1) + (1-t)f(x_2)$.
• $f$ is called strictly convex if:
For all $x_1\ne x_2 \in X$ and for all $t \in (0,1) : f(t x_1 + (1-t)x_2 ) < tf(x_1) + (1-t)f(x_2)$."
According to this definition, the funcion $f(x) = |x|$ is convex, but in another page they say that we cannot talk about concavity of $|x|$ because it is not differentiable in $x=0$. I know that if $f''(x) \gt 0$ for all $x$, then the function is convex, but my dude is this is an "if and only if".
Can I use $f^{\prime \prime}(x)$ to define the concavity of a function?
Moreover, I am not sure of if a constant function is both concave and convex. This is a conceptual problem. I would like to know in which book I can verify if the distinction between concavity and strict concavity is valid, because I do not trust sites like Wikipedia.