Determining constrained extrema

Problem 5, Section 14.8, Stewart's Calculus, 8e

Find the extreme values of the function f(x,y)=xy subject to the constraint 4x2+y2=8.

Let g(x,y)=4x2+y2. The constrained critical points are those points that satisfy g(x,y)=8 and at which the gradient vectors βˆ‡f and βˆ‡g are parallel. So we first compute those gradient vectors:

βˆ‡f=[yx]andβˆ‡g=[8x2y].

Using the "determinant trick", these vectors are parallel exactly when the determinant of the 2Γ—2 matrix with these vectors as its column vanishes. So we compute

det[y8xx2y]=yβ‹…2yβˆ’8xβ‹…x=2y2βˆ’8x2.

So now we need to solve the system of equations

4x2+y2=82y2βˆ’8x2=0.

There are various ways we can solve these two equations. For instance, we might solve the second equation for y2 to get y2=4x2, and then substitute that into the first equation to get 4x2+(4x2)=8, which simplifies to x2=1, and so either x=1 or x=βˆ’1. Since y2=4x2, both of these cases imply y2=4, and so either y=2 or y=βˆ’2. Note that this means we've found four points, namely (1,2),(1,βˆ’2),(βˆ’1,2), and (βˆ’1,βˆ’2).

To determine the max and min values of f, we now simply evaluate f at each of these four points. The highest value is the max and the lowest value is the min.