I have a bunch of polynomial functions example easily (e.g. $x^2$), but have trouble coming up with a non-polynomial function.
I was thinking of defining $f(x) = e^{-x}$ for $x<0$ and $f(x) = e^{x}$ for $x \ge 0$. But it suffers the same problem as $g(x) = |x|$ because derivative does not exist at $x = 0$.
Is there any hint for this?
By a theorem of Darboux, a derivative has the Intermediate Value Property. So it cannot be positive at $0$ and negative somewhere else without being $0$ somewhere in between.