The constraint equation is
so we begin by computing
and
The equation becomes which we turn into two equations by looking at the - and -components separately:
Plugging (from the second equation) in for in the first gives
which we rearrange to get So either or
Case 1: if then but is not a point on the ellipse! So we get no solutions from this case.
Case 2: if then so we can plug that in for in the constraint equation (the one that defines the ellipse) to get
which we can solve to get In summary, there are four possible points to consider: and By evaluating at each of these four points, we deduce that and maximize the function on the ellipse, and and minimize the function on the ellipse.