Let $I \subset \mathbb{R}$ be an open interval and $f \in C^2(I,\mathbb{R})$.
I am looking for an (simple) example of $f$ with the following properties ($x_0 \in I$)
$f'$ is strictly monotonic increasing for $x < x_0$ and strictly monotonic decreasing for $x > x_0$.
However the following property must be violated on every neighborhood of $x_0$: $f''(x) > 0$ for $x < x_0$ and $f''(x) < 0$ for $x > x_0$.
The background for this question is studying points of inflection i.e. $(x_0,f(x_0))$ satisfying the first property above (or increasing/decreasing swapped) on a neighborhood of $x_0$. Now if there is a neighborhood $U \subset I$ of $x_0$ where $f''(x) < 0$ for $x < x_0$ and $f''(x) > 0$ for $x > x_0$ (or the other way around), the point $(x_0,f(x_0))$ is a point of inflection. The intention of my question was to find an (simple) example which shows that the reversed implication is wrong.
Let $$ g(x)=-\int_{x_0}^xt\sin^2\frac1t\,dt. $$ Then $g$ is strictly decreasing on $x>x_0$ and strictly increasing on $x<x_0$, but $g'$ has zeroes on any neighborhood of $x_0$. Now define $$ f(x)=\int_{x_0}^xg(t)\,dt. $$