Here's the problem . . .
Prove or disprove:$\;$If $f:[0,1]\to\mathbb{R}$ is a twice differentiable function such that
- $f(0)=f(1)=0$.
- $|f''(x)|\le 2$ for all $x\in[0,1]$.
then $|f(x)-f(y)|\le|x-y|$ for all $x,y\in[0,1]$.
Some context . . .
This problem was posted yesterdayby @Alex (user 1258161)
https://math.stackexchange.com/questions/4829557/
but was closed for lack of context, and then deleted by the post author.
I found the problem interesting so I tried it just for fun.
Considering the possibility that the claim might be false, I first tried to construct a counterexample. Not finding one, I tried to prove the claim, but so far without success. Perhaps I'm missing something simple, a commonly used approach or a standard trick.
In any case, as shown below, I made some progress, and perhaps my partial results could be of some use in the quest for a complete solution.
Attempting to prove the claim, here's what I tried . . .
Assume the hypothesis and suppose $|f(u)-f(v)| > |u-v|$ for some $u,v\in[0,1]$.
Our goal is to derive a contradiction.
We can assume
- $u < v$, else replace $f(x)$ by $f(1-x)$.
- $f(u) > f(v)$, else replace $f(x)$ by $-f(x)$.
Thus we have $f(u)-f(v) > v-u$.
By the MVT, there exists $a\in(u,v)$ such that $f(u)-f(v)=f'(a)(u-v)$, hence $f'(a) < -1$.
By the MVT, for arbitrary $x\in[0,1]{\setminus}\{a\}$, there exists $b$ with $\min(x,a) < b < \max(x,a)$ such that $f'(x)-f'(a)=f''(b)(x-a)$, so $f'(x) < 1$.
Thus we have $f'(x) < 1$ for all $x\in[0,1]$.
Then by the MVT
- Since $f(0)=0$, it follows that $f(x) < x$ for all $x\in(0,1]$.
- Since $f(1)=0$, it follows that $f(x) > x-1$ for all $x\in[0,1)$.
By Rolle's Theorem, there exists $c\in(0,1)$ such that $f'(c)=0$.
By the MVT, for arbitrary $x\in[0,1]{\setminus}\{c\}$, there exists $d$ with $\min(x,c) < d < \max(x,c)$ such that $f'(x)-f'(c)=f''(d)(x-c)$, so $f'(x) > -2$.
Thus we have $f'(x) > -2$ for all $x\in[0,1]$.
Then by the MVT
- Since $f(0)=0$, it follows that $f(x) > -2x$ for all $x\in(0,1]$.
- Since $f(1)=0$, it follows that $f(x) < 2-2x$ for all $x\in[0,1)$.
Then we have
- $f(x) < \min(x,2-2x)$ for all $x\in(0,1)$, hence $f(x) < 2/3$ for all $x\in[0,1]$.
- $f(x) > \max(-2x,x-1)$ for all $x\in(0,1)$, hence $f(x) > -2/3$ for all $x\in[0,1]$.
That's my progress so far.
How to resolve the problem?
By $\lvert f''(x) \rvert \leq 2$ and the MVT, we have $\lvert f'(x) - f'(y) \rvert \leq 2 \lvert x - y \rvert.$ Now, suppose $\exists c \in (0, 1)$ such that $f'(c) > 1$ for contradiction. Then, for all $t \in (0, 1)$, $$f'(c) - f'(t) \leq 2 \lvert t - c \rvert \implies f'(t) \geq f'(c) - 2 \lvert t - c \rvert > 1 - 2 \lvert t - c \rvert,$$ implying $$\begin{split} f(1) - f(0) &= \int_0^1 f'(t) dt \\ &> \int_0^1 (1 - 2 \lvert t - c \rvert) dt \\ &= \int_0^c (1+2(t-c)) dt + \int_c^1 (1-2(t-c)) dt \\ &= [t + (t-c)^2]_0^c + [t-(t-c)^2]_c^1\\ & = c - c^2 + (1-(1-c)^2) - c \\ &= -2c^2+2c \\ &= 2c(1-c)\\ &> 0, \end{split}$$ contradicting $f(0) = f(1)$. Therefore, $\forall c \in (0, 1), f'(c) \leq 1$. Similarly, $\forall c \in (0, 1), f'(c) \geq -1$. In other words, $\forall c \in (0, 1),\lvert f'(c) \rvert \leq 1$, and by the MVT, we have the desired inequality.