It is known that if the derivative of the function changes sign at the point — more precisely: if it changes from positive to negative (i.e., there exists such that is differentiable in the interval , and for and for ), then has a maximum at (i.e., for all ).
Show with an example that the change of sign of the derivative is not a necessary condition for the existence of a maximum. Specifically, provide a differentiable function within the interval which has a maximum at 0, but its derivative does not change sign at 0.