I found this problem in one of the old exams for convex analysis:
Let $A \subseteq \mathbb{R}^n$ be a convex set and $f:A \rightarrow \mathbb{R}$ a convex function.
a) Show that $f^{-1}(-\infty,a)$ is a convex set for every $a \in \mathbb{R}$.
b) Find an example when $f^{-1}(0,\infty)$ is not a convex set.
Could someone help me with this problem please?