I have the following task:
Prove that if $ f : I \rightarrow \mathbb{R} $ is continuous ($ I $ is a range) and $$ \forall {x,y \in I} \qquad f\left(\frac{x+y}{2}\right) \leq \frac{f(x) + f(y)}{2} $$ then $f$ is a convex function.
Can somebody give a hint what can I use to prove this? This is a homework assignment, so I'd like to try solve it myself.