I need to construct a real function with is exactly $C^2$ (that is, it is continuous and two times differentiable but it is not three times differentiable) such that its first derivative never vanishes.
I tried
$x^5 \sin(\frac{1}{x}) + \exp(x)$
$x^{\frac{5}{2}} + \exp(x)$
${|x|}^3 + \exp(x)$
all these functions are exactly $C^2$, but their first derivatives vanish in some point(s). :(
As for "does not vanish everywhere" I mean that if f:U->R is the function that I am looking for, with U an open connected set of R, then either df(x)/dx >0 or df(x)/dx <0 or all x in U.
– JI-br May 17 '17 at 23:10