Be f:I->R a continous function in Interval I. For each x,y in I exists:
f((x+y)/2) <= f(x)/2 + f(y)/2
Prove that f is convex.

I suspect Jensen's inequality should be used here, but not sure exacly how it's done.

Thanks.