Absolute extrema on a closed region

A continuous function on a closed, bounded region has a greatest and a least value, and they are found among the critical points inside and the best points on the boundary.

From Multivariable Calculus.