Find the differential function $f:\mathbb{R}\to\mathbb{R}$ satisfies the following conditions:
(1) $1\le f'(x)\le 2$ for all $x\in\mathbb{R}$,
(2) $f(1)=2$ and $f(2)=3$.
I guess the answer is $f(x)=x+1$ by M.V.T. or Rolle's theorem.
So, I tried with M.V.T and Rolle's theorem, but can't prove it rigorously.
Can anyone help me? Thank you!
Define $ g(x)=x+1.$
Note that $f'(x)\ge g'(x)=1$ and $f(1)=g(1)=2.$
Therefore $f(x)\ge g(x)$ for $ x\ge 1$
Since $g(2)=f(2)$, we realize that $f'(x)$ does not exceed $g'(x)$ at any point between $1$ and $2$.
Therefore $ f'(x)=g'(x)=1$
Thus $f(x) =x+C$.
From $f(1)=2$ we find $C=1$, that is $f(x)=x+1.$