Maxima and minima are extrema of a real-valued function. A global maximum of on its domain is a point with for every ; a global minimum reverses the inequality. A local extremum requires the inequality only in a neighbourhood of the point within . In constrained optimization, is the feasible set, so an extremum is tested relative to the constraints rather than in every ambient direction. Thus a constrained local maximum or local minimum can occur at a boundary point without being an interior critical point.
A local extremum of a real-valued function is either a local maximum or a local minimum, with comparisons restricted to a neighbourhood in its domain. A differentiable interior local extremum is a stationary point, but the converse can fail, as at zero shows.