2

It is known, that if $f(x):\mathbb{R} \to \mathbb{R}$ is a continuous function defined on $(a,b)$ such that $$f\left(\frac{x+y}{2}\right)\leq \frac{1}{2} f(x) + \frac{1}{2} f(y) \tag{*}$$ for all $x,y \in (a,b)$, then $f$ is convex.

Hence continuity is a satisfactory condition for the convexity given $(*)$.

  1. Is there an example of a function $g$ that is not continuous and satisfies $(*)$?
  2. Is there an example of a function $g$ that is not convex and satisfies $(*)$?

I am pretty sure such a question has been asked, yet I can't find a thing.

0 Answers0