I was asked to prove or disprove this statement:
If for every $\alpha$ the set $A_{\alpha} = \{x : f(x) < \alpha\}$ is convex, then $f$ is convex.
I tried by definition to solve it, but I got stuck with the inequality with $\alpha$:
$f(cx+(1-c)y) < cf(x)+(1-c)f(y) < a.$
What should I do next to prove or disprove it?
This is a false statement. A counterexample is $f: \Bbb R \to \Bbb R$ $$f(x)=x^3$$