1

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.

Surb
  • 55,662

1 Answers1

1

Take $x,y$ two points in $I$ and $\lambda \in (x,y)$.

You know that if $\lambda = (x+y)/2 := x'$ you're done. Otherwise, $\lambda$ is either in $(x,x')$ or in $(x',y)$.

Continue this way and you'll build two sequences converging to $\lambda$. Since $f$ is continuous, it preserves limits.

That should set you on the right path.