Give an example of a function $f$ that is differentiable at $x=a$ such that $f'(a)\ne0$ but yet $f$ attains a relative extremum at $x=a$.
By definition, the best I've gotten so far is using a function like $f(x)=x$ for $x=[0,1]$ since the maximum on that domain would be 1, and $f'(1)=1$, but I'm not sure if that's air tight (or even correct).