Let $\varphi $ be a continuous real function on $(a,b)$ such that $$\varphi(\frac{x+y}{2})\leq \frac{\varphi(x)}{2}+\frac{\varphi(y)}{2} $$ for all $x,y\in (a,b).$ Prove that $\varphi$ is a convex function.
Here is what I know: I know that $\lambda$ have to be arbitrary. And we can use $\lambda$ which its denominator is the power of two and using iteration but I don't know how. I don't know how can I solve the problem for $\lambda=\frac{1}{4}.$ Solving problem for this example can be enough for me too.
For $\lambda = 1/4$,
$$\begin{split} \varphi\left( \frac 14 x + \frac 34 y\right) &= \varphi\left(\frac{1}{2} \left(\frac 12 (x+y)\right) + \frac 12 y\right) \\ &\le \frac 12\left(\varphi \left( \frac 12 (x+y)\right)+ \varphi\left( y\right) \right) \\ &\le \frac 12\left(\frac 12\left( \varphi (x) + \varphi(y)\right) + \varphi (y) \right) \\ &= \frac 14 \varphi (x) + \frac 34 \varphi (y). \end{split}$$
(That is, I first think of $\frac 14 x + \frac 34 y$ as the midpoint of $\frac 12 (x+y)$ and $y$)