Let $f:[a,b] \to \mathbb{R}$ be a convex function. Prove or disprove: $f$ attains a minimum value on $[a,b].$
Attempt. I believe the answer is yes. We know: If $f:I\to \mathbb{R}$ is convex and interval $I$ is bounded, prove that $f$ is bounded below. where it was proven that $$2f\left(\frac{a+b}{2}\right)-\max\{f(a),f(b)\}$$ works as a lower bound for $f$. At first sight this does not seem to be a value of $f$. Can we improve this result, in order to find a lower bound being a value of $f$ on $[a,b]$?
Thanks in advance!
$[0,1]$ is compact, so you know that the result holds if $f$ is continuous there. So, if there is a counterexample, then $f$ can't be continuous on $[0,1].$ Following the hint in the other answer, we need to "screw around" somewhere on $[0,1].$ The easiest starting point is one of the endpoints, say $x=0$. Now, the standard example of a convex function that has no minimum on $\mathbb R$ is $f(x)=e^x$, but if we restrict $f$ to $[0,1]$, then it does. On the other hand, the convexity of $f$ is not affected if we define a new function
$ g(x) = \begin{cases} e^x & 0<x\le 1,\\ 2 & x=0. \end{cases}$
so $g$ is convex but does not attain a minimum on $[0,1]$.