I read on a post that to prove a real function that is convex on an open interval is bounded on any closed subset is straightforward, so I wanted to give it a shot. However, I noticed that my approach seemed a little more convoluted than I had anticipated, which makes me think that my strategy is misguided. Any tips would be appreciated. Cheers.
Without assuming differentiability or continuity, prove the following:
If $f$ is a real-valued function and is convex on an open interval $(a,b)$, show that $f$ is bounded on any closed subset $[c,d] \subset (a,b)$
I will show that on an arbitrary $[c,d]$, $f$ has a lower-bound. The argument for an upper bound works similarly.
From the definition of continuity, we have the following:
$$\forall x_1,x_2,x_3 \in (a,b): x_1 \lt x_2 \lt x_3 \rightarrow\frac{f(x_3)-f(x_1)}{x_3-x_1} \gt \frac{f(x_2)-f(x_1)}{x_2-x_1}$$
Rearranging the inequality, noting that $x_3 -x_1 \gt 0$, we have that:
$$f(x_3)\gt \frac{x_3-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big]+f(x_1) \quad (\dagger_1)$$
In order to get this inequality in the desired form, we need to get rid of the $x_3$ symbol in the right-hand side of the inequality.
There are two cases: $f(x_2)-f(x_1) \geq 0$ or $f(x_2)-f(x_1) \lt 0$. Suppose the former.
Case 1: $f(x_2)-f(x_1) \geq 0$
Consider an arbitrary closed interval $[c,d]$ such that $[c,d] \subset (a,b)$.
Referencing $(\dagger_1)$, let $x_3 =x \in [c,d]$ and let $x_1, x_2 \in(a,c)$ such that $x_1 \lt x_2$. Next, consider some $k \in (a,c)$.
Firstly, note that because $x \gt k$, we have that $\frac{x-x_1}{x_2-x_1} \gt\frac{k-x_1}{x_2-x_1}$. By assumption, $f(x_2)-f(x_1) \geq 0$; therefore, we have the following:
\begin{align}f(x) \gt \frac{x-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1)\geq \frac{k-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1) \end{align}
which means that $f(x) \gt \frac{k-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1)=m$. Noting that $x$ was an arbitrary element of $[c,d]$, let $m$ be a lower bound of $f$ on $[c,d]$.
Now suppose that $f(x_2)-f(x_1) \lt 0$.
Case 2: $f(x_2)-f(x_1) \lt 0$
The set up is similar, but this time we stipulate that $k \in (d,b)$. As such, we must have that $x \lt k$. This means that $\frac{x-x_1}{x_2-x_1} \lt \frac{k-x_1}{x_2-x_1}$. By assumption, $f(x_2)-f(x_1) \lt 0$; therefore, we have the following:
\begin{align}f(x) \gt \frac{x-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1)\gt \frac{k-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1) \end{align}
which means that $f(x) \gt \frac{k-x_1}{x_2-x_1}\cdot\big[f(x_2)-f(x_1)\big] +f(x_1)=m'$. Noting that $x$ was an arbitrary element of $[c,d]$, let $m'$ be a lower bound of $f$ on $[c,d]. \quad \square$