Let $f$ be a function that is continuous on some interval $I .$ Suppose $c$ is a critical number of $f$ and $(a, b)$ is some open interval in $I$ containing $c$. Prove that if $f^{\prime}(x)$ has the same sign on both sides of $c,$ then $f(c)$ is neither a local maximum value nor a local minimum value.