8

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.

  • 2
    The proof falls apart at the start. First, you define $h(x) = \frac{f(b) - f(a)}{b-a} - \frac{f(x) - f(a)}{x-a}.$

    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
  • @RRL I knew something was not right. I began with the assumption that $ f(x)\neq f(a)$ so that $h(x)$ is not necessarily defined on $a$. Is the argument circular because $ (x-a)*h(x)$ is zero in $a$ regardless of how $h(x)$ is defined? – Amphiaraos Feb 23 '18 at 23:09
  • It's circular because $(x-a)h(x) = f(a) - f(x) - (x-a)C$ where $C$ is a constant. You are trying to show that $\lim_{x \to a+} f(x) = f(a)$. You say this follows because $\lim_{x \to a+} (x-a)h(x) = 0$ on the RHS of the equation that follows "Taking $\lim_{x \to a+}$ on both sides ...". So you are using what you are trying to prove. You have not established anything about $h(x)$ yet. – RRL Feb 23 '18 at 23:46
  • 1
    A convex $f:[0,1]\to \Bbb R$ can be discontinuous. E.g. $f(x)=0$ for $x\in [0,1)$ and $f(1)=1$. So you can't separately show that $f$ is left & right continuous. You have to use the fact that the domain of $f$ is open. – DanielWainfleet Feb 24 '18 at 02:41

1 Answers1

14

Let $x<y$ be arbitrary points in $[c,d] \subset (a,b)$. Take $\delta >0$ such that $a+\delta < c < d < b-\delta$.

If $f$ is convex on $(a,b)$, then it is easy to show that it is bounded on any closed subinterval. Hence, there exist bounds $m$ and $M$ such that $m \leqslant f(x) \leqslant M$ for all $x\in [a+\delta,b- \delta].$

Take a fixed $z$ such that $d < z \leqslant b-\delta$ and define $\lambda = \frac{y-x}{z-x}$. It follows that $0 < \lambda < 1$ and $y = \lambda z + (1-\lambda)x$, and by convexity

$$f(y) \leqslant \lambda f(z) + (1-\lambda)f(x) = f(x) + \lambda(f(z) - f(x))$$

Hence,

$$f(y) - f(x) \leqslant \lambda(f(z) - f(x)) \leqslant \lambda (M - m) = \frac{y-x}{z-x} (M-m) < \frac{y-x}{z-d} (M-m) < \frac{M-m}{z-d}|y-x|$$

Switching variable names $x$ and $y$ we get

$$-[f(y) - f(x)] = f(x) - f(y) \leqslant \frac{M-m}{z-d}|x- y| = \frac{M-m}{z-d}|y- x|,$$

and this implies

$$|f(y) - f(x)| \leqslant \frac{M-m}{z-d} |y-x|.$$

Therefore, $f$ is continuous on $(a,b)$ as well as Lipschitz continuous on any closed subinterval.

RRL
  • 92,835
  • 7
  • 70
  • 142
  • Can you please specify more on why $f$ is continuous on $(a,b)$..? – Moreblue Nov 10 '18 at 18:10
  • 3
    @Moreblue: Sure. Take a fixed $y \in (a,b)$. All $x$ sufficiently close to $y$ lie in some compact interval $[a+\delta,b-\delta]$ where $|f(x) -f(y)| < \frac{M-m}{\delta}|x-y|$ as shown. The parameters $M$,$m$ and $\delta$ are now fixed for all $x$ in the compact interval. If also $|x-y| < \frac{\epsilon \delta}{M-m}$ then $|f(x) - f(y)| < \epsilon$. So $f$ is continuous at each point $y \in (a,b)$. – RRL Nov 10 '18 at 20:09
  • I'm a little confused regarding the following inequality: $\lambda(f(z) -f(x)) \leq \lambda(M-m)$. Given that $z=y+\delta \gt y$, and given that $y$ could equal $b-\delta$, why should it be valid that $z \in [a+\delta,b-\delta]$? Because if $z \notin [a+\delta,b-\delta]$ (which would occur if $y \in (b-2\delta, b-\delta]$), then the $M$ and $m$ would not necessarily bound $f(z)$, right? – S.C. Feb 02 '22 at 16:43
  • @S.Cramer. It is not hard to fix for simple continuity and a little more involved for Lipschitz continuity which was not asked in the question. So I can edit in either fix. – RRL Feb 02 '22 at 17:35
  • You just need to keep $z$ inside the closed interval where the bounds, $M$ and $m$, are defined and you need to keep $z-y$ bounded away from $0$. – RRL Feb 02 '22 at 17:40
  • How do we keep $z$ within the bounds of $[a+\delta,a-\delta]$? Do we need to add an extra cushion when we define where we are drawing are $x$ and $y$ from? For example, $a \lt a+\delta\lt a+2\delta \leq x \lt y \leq b-2\delta \lt b -\delta \lt b$? – S.C. Feb 02 '22 at 17:52
  • 1
    Basically yes. Take $a < c \leqslant x < y \leqslant d < b$. Fix $z \in (d,b)$ and let $\delta$ be defined more or less as before but with $a < a+\delta < c$ and $z \leqslant b-\delta < b$. Then $f(z) - f(x) < M-m$ and $f(y) - f(x) \leqslant \frac{y-x}{z-x}(M-m) < \frac{y-x}{z-d}(M-m)$. Now we have $|f(y) - f(z)| < \frac{M-m}{z-d}|y-x| = C|y-x|$ where C is a constant independent of $x,y$. We then have the much stronger Lipschitz continuity. – RRL Feb 02 '22 at 18:03