The object function is and the constraint is , i. e. .
By the method Lagrange multipliers, set which tells us .
Looking at the vector equation in components, we have that
Provided we don't divide by zero (so that ), we can divide (1) by (2) to yield where the first implication came by cross multiplying.
If then from the constraint we must have and .
Evaluating and .
We still need to consider the possibility that . If then (2) reads . If then (1) tells us that so that . However, does not satisfy so this is not a valid solution to the Lagrange system.
Overall have found that the maximum value is 180 and the minimum value is 80.