Use Lagrange multipliers to find the absolute maximum and minimum of constrained to the circle . Start by setting .
Now compute:
Now solve the following system of equations for , , and :

The solutions will be the extrema (unless there are corners that need to be checked too). Write the extrema in order of increasing -values.

The maximum value for when constrained to the set above is . The minimum value for when constrained to the set above is .