I’m trying to use the following definition to show the result listed below.
Definition of Convex Function: Let $f$ be a real-valued function on an open interval. Let $a,b$ be points in the domain with $a<b$. Function $f$ is convex if $$f(a)+\frac{f(b)-f(a)}{b-a}(x-a)\ge f(x)$$ for each $x\in(a,b)$.
Goal: The function $f$ (defined as in the above definition) is convex if and only if $f(x)$ does not have any points below any tangent line for each $x$ in the domain.
Attempted Proof: Suppose $f$ is convex. Let $x_1,x_2$ be points in the domain with $x_1<x_2$. From the definition of convexity given above, for each $x\in(x_1,x_2)$, $$f(x_1)+\frac{f(x_2)-f(x_1)}{x_2-x_1}(x-x_1)\ge f(x)$$
Let $x_*$ be a point between $x_1$ and $x_2$. For now, let $x\in(x_*,x_2)$. The tangent line to this point is given by $$t(x)=f(x_*)+f’(x_*)(x-x_*)$$
The Mean Value Theorem guarantees the existence of $c\in(x_*,x_2)$ such that $$f’(c)(x-x_*)=f(x)-f(x_*)$$
Next, consider the difference between the function and tangent line; our goal is to show this is nonnegative: $$f(x)-t(x)=f(x)-(f(x_*)+f’(x_*)(x-x_*))=f(x)-f(x_*)-f’(x_*)(x-x_*)=f’(c)(x-x_*)-f’(x_*)(x-x_*)$$
So, we have $$f(x)-t(x)=(x-x_*)(f’(c)-f’(x_*))$$
This is where I’m having difficulties performing any meaningful manipulation. If this can be shown true, the result for the left portion of the function can be shown analogously.
Without assuming that the convex function is twice-differentiable it is helpful to use a fundamental property that follows directly from the definition of convexity. For $x < y < z$ we have
$$\frac{f(z) - f(y)}{z-y} > \frac{f(z) - f(x)}{z-x} > \frac{f(y) - f(x)}{y-x}$$
A convex function on an open interval always has one-sided derivatives, so
$$\frac{f(z) - f(x)}{z-x} \geqslant \lim_{y \to x+}\frac{f(y) - f(x)}{y-x} =f'_R(x),$$
giving you half of what you need.
If $f$ is differentiable and, hence, the tangent line is well-defined everywhere, then $f'_R(x) = f'_L(x)$ and it is easy to extend the argument to show that
$$f(z) \geqslant f(x) + f'(x)(z-x)$$