Critical points and behavior of a function