Let $f$ be a real-valued function. Suppose I want to find a local maximum of $f$, but I decide to work with an ''approximation'' to $f$ --let us call it $g$. What is a suitable notion of ''approximation'' that gives conditions so that the critical points of $g$ approximate those of $f$, and such that the critical points of $g$ behave as those of $f$?