Let f\colon (a,b) \rightarrow \mathbb{R} be a function and suppose that x_0 \in (a,b) is a point where f has a local extremum.
In higher dimensions, exactly the same statement holds; however, the proof is slightly more complicated.