First, find the critical points of f {\displaystyle \displaystyle f} (where f x = f y = 0 {\displaystyle \displaystyle f_{x}=f_{y}=0} ) in the interior of the domain, then check the boundary. The extrema must be at one of the critical points, or on the boundary.