Science:Math Exam Resources/Courses/MATH200/December 2012/Question 04/Hint 2

From UBC Wiki

To handle the boundary case, break up the boundary into 4 cases: , , , and . For the first line, you get a new function , which you can then optimize subject to the constraint . The other lines are similar.