Critical points of functions