It's just a question to understand better convexity and function :
Let $x>\epsilon$ with $\epsilon>0$ and $f(x)$ a continuous , twice differentiable function on $(\epsilon,\infty)$ verifying the following constraints : $$\forall x>\epsilon \quad f(x)<x$$ $$\forall x>\epsilon \quad f''(x)<0$$ $$\lim_{x \to \infty }(x-f(x))=0$$
Motivation
Find a function wich behaves like $f(x)=x$ but have different properties particulary with convexity .
My try
After one hour I have found the function $f(x)=x^{x\sin\Big(\frac{1}{x}\Big)}$ but it's hard to deal with the second derivative so my question :
Have you a simpler example where we can calculate easily all the constraints ?
Thanks a lot for your help and your contribution .
You won't be able to find a convex function satisfying those constraints. If $f$ is a convex function and $f$ is differentiable, then its second derivative must be nonnegative i.e. $f''(x)\geq0$ on its domain.