Let $f\colon (a,b) \to \mathbb{R}$ a non constant differentiable function.
Is the following statement true:
If $f$ has a local maximum and a local minimum then $f$ also does have an inflection point.
If so, how to prove it, if not, what would be a counterexample?
Remark
If there are $a_0,b_0 \in [a,b]$ with $a_0 < x_0 < b_0$ such that $f|_{(a_0,x_0)}$ is convex and $f|_{(x_0,b_0)}$ concave or vice versa, then $(x_0,f(x_0))$ is called inflection point of $f$ (Amann Escher Analysis I, p349).
Sometimes stricly concave (convex) is used in the definition. Does this change the theorem?
If the theorem is not true, does it hold if one allows only smooth functions or even more restrictive only polynomial ones (excluding linear functions)?