i. The Lagrangian is

with critical points whenever



- If
, then
. - If
, then
. - Either value of
found above requires that either
or
, so we get the same critical points as in the previous two cases.
We have
,
,
, and
, so
has a minimum value of 9 and a maximum value of 182.25.
ii. The Lagrangian is

with critical points whenever
(because we assume
)



- If
, then
. - If
, then
, and with
we have
.
We have
,
,
, and
. So
has a maximum value of 61 and a minimum value of -60.