Let $f:\mathbb R\to \mathbb R$ be such that for all $x,y \in\mathbb R,\ \ f(y) \geq f (x) + f'(x)(y−x).$
How to prove that $f$ is a convex function?
Let $f:\mathbb R\to \mathbb R$ be such that for all $x,y \in\mathbb R,\ \ f(y) \geq f (x) + f'(x)(y−x).$
How to prove that $f$ is a convex function?
Let $z = \alpha x + (1-\alpha) y$ where $0 \le \alpha \le 1 $. By hyopthesis we have: \begin{align} &f(x) \ge f'(z)(x-z) + f(z) = f'(z)\bigg[x - \alpha x + (1-\alpha) y\bigg] + f(z) = (1-\alpha)f'(z)(x- y) + f(z)\\ \implies & \alpha f(x) \ge \alpha(1-\alpha)f'(z)(x- y) + \alpha f(z)\qquad\text{(1)}. \end{align} Again by hypothesis: \begin{align} &f(y) \ge f'(z)(y-z) + f(z) = f'(z)\bigg[y - \alpha x + (1-\alpha) y\bigg] + f(z) = -\alpha f'(z)(x- y) + f(z)\\ \implies & (1-\alpha)f(y) = -\alpha(1-\alpha) f'(z)(x- y) + (1-\alpha)f(z)\qquad\text{(2)}. \end{align} Adding (1) and (2): \begin{align} \alpha f(x) + (1-\alpha)f(y) \ge \alpha f(z) + (1-\alpha) f(z) = f(z) = f(\alpha x + (1-\alpha)y). \end{align}