Recently I encountered two problems:
Notation: For $f:S\to \mathbb{R}$, where $S\subset \mathbb{R}$, if $f$ is continuous on $S$, then denote $f\in \mathcal{C}(S)$.
- Suppose $f:(a,b)\to \mathbb{R}$ is such that at every point in $(a,b)$ the single side limit of $f$ exists, and that $$f(\frac{x+y}{2})\leqslant \frac{f(x)+f(y)}{2},\; \forall x,y \in (a,b).$$ Show that $f\in \mathcal{C}(a,b)$.
- Suppose $f:(a,b)\to \mathbb{R}$ is such that $$f[\lambda x_1+(1-\lambda)x_2]\leqslant \lambda f(x_1)+(1-\lambda)f(x_2),\; \forall x_1,x_2\in (a,b),\forall \lambda \in (0,1).$$ Show that $f\in \mathcal{C}(a,b)$.
I found them a bit alike, and then I came up with the following question:
Suppose $f:I\to \mathbb{R}$, where $I$ is an interval, is such that $$f(\frac{x+y}{2})\leqslant \frac{f(x)+f(y)}{2},\; \forall x,y \in I.$$ Is it possible that $f\notin \mathcal{C}(I)$?
I've tried both proving and disproving the statement but failed. My guess is a counterexample exists. Please help.