I am working on exercise 10 of the appendix between chapters 11 and 12 of Spivak's Calculus. The problem is to show that a convex function must be continuous. I would like to check my proof as it is different from the ones I have found so far.
Let $f$ be a function that is convex in $ (a,b)$. Let us assume that $f$ is not continuous in the point $a$.
By the definition of convexity, we have: $ \dfrac{f(x)-f(a)}{x-a}<\dfrac{f(b)-f(a)}{b-a}$
To remove the inequality let $ \dfrac{f(x)-f(a)}{x-a} +h(x) = \dfrac{f(b)-f(a)}{b-a} ~(1)$, where $h(b)=0$ and $h(a)=\dfrac{f(b)-f(a)}{b-a}$
Now let's rearrange equation 1: $ f(x)-f(a) = (x-a)\left(\dfrac{f(b)-f(a)}{b-a} - h(x)\right)$
Taking $lim_{x\to a^+}$ on both sides:
$ lim_{x\to a^+} (f(x)-f(a)) = lim_{x\to a^+} (x-a)\left(\dfrac{f(b)-f(a)}{b-a} - h(x)\right)= 0$
So $~lim_{x\to a^+} f(x)= f(a)$
Thus $f(x)$ is right continuous on $a$
I can use a similar argument to prove that $f(x)$ is left continuous on $b$
Since $f$ is convex in $(a,b)$, it is also convex in $(a+h,b)$ with $h< b-a$. And by letting $h \to b-a$, I prove right continuity over the whole interval.
Similarly, as $f$ in convex in $(a,b)$, it is also convex in $(a,b-k)$ with $k > b-a$. And by letting $k \to b-a$, the whole interval is left continuous.
As any $x_0 \in (a,b)$ can be uniquely expressed as $x_0= a+h = b-k$ and $f$ is right continuous for $a+h$ and left continuous for $b-k$ then $f$ is continuous in $x_0 \in (a,b)$
While writing the question, I have cleaned the logic from what I had initially drafted, so I am more confident about it. Still I am not sure if this logic is correct, as it is longer than any other answer I have found.
Then you make a circular argument using $\lim_{x \to a+}(x-a)h(x) = 0$ in proving that $\lim_{x \to a+} (f(x) - f(a))= 0$.
– RRL Feb 22 '18 at 20:21