TL:DR, if you have a function centered at "a" with the derivative at "a" being positive, can the function not be increasing around a? What does that mean about points around "a"?
I had a problem given to me in a math tutorial recently that asked:
Construct a function f satisfying all the following properties:
•Domain f = $\mathbb{R}$
•f is continuous
•$f^{\prime}(0)=0$
•f does not have a local extremum at $0$.
•There isn’t an interval centered at $0$ on which $f$ is increasing.
•There isn’t an interval centered at $0$ on which $f$ is decreasing.
The function we were shown that worked was $f(x) = \displaystyle \lim_{c \to x}c^{2}\sin(\frac{1}{c})$.
I was wondering if instead, the derivative of some number "$a$" was strictly larger than zero ($f^{\prime}(a)>0$) and the extremum was at "$a$" and the intervals centred at "$a$" if a function could be created to meet the criteria. Can you think of criteria that could be removed to make this work if it doesn't? Would love to learn more about these types of derivative questions, since this one was quite confusing and interesting.
The function $f$ defined by $$ f(x) = \begin{cases} x^2 \sin\left(\frac1x\right) & x\neq 0, \\ 0 & x = 0 \end{cases} $$ has some interesting properties beyond the listed ones. One of these is, no matter how small a neighborhood around $0$ you take, there is always an interval in that neighborhood on which $f'(x) > \frac12$ and an interval on which on which $f'(x) < -\frac12.$
So let $g(x) = 3f(x) + x.$ Then we have $g'(0) = 1 > 0.$ Moreover, if $N$ is a neighborhood of $0$ (that is, $N$ is an interval centered at $0$), then
So $g(x) = 3f(x) + x$ is a function with the following properties:
If you want all those properties to apply at $x=a$ for some fixed non-zero number $a$ instead of at $x=0,$ just replace $g$ by the function $h$ defined by $h(x) = g(x - a).$