Multivariable calculus

Critical Points of xy - x^2 y - xy^2

f(x,y) = xy - x^2 y - xy^2 factors as xy(1 - x - y) and has four critical points. The three triangle corners (0,0), (1,0) and (0,1) are saddles, each with discriminant D = -1. The centroid (1/3, 1/3) is a local maximum with D = 1/3 and value 1/27.

f(x,y)=xyx2yxy2=xy(1xy)f(x,y) = xy - x^{2}y - xy^{2} = xy(1 - x - y)
  • (0,0)\left(0, 0\right) saddle pointdiscriminant D = -1
  • (1,0)\left(1, 0\right) saddle pointdiscriminant D = -1
  • (0,1)\left(0, 1\right) saddle pointdiscriminant D = -1
  • (0.3333333333333333,0.3333333333333333)\left(0.3333333333333333, 0.3333333333333333\right) local maximumdiscriminant D = 0.3333333333333333

Two factored equations, four combinations

Differentiate and factor each partial straight away. The factoring is what makes the system tractable.

fx=y(12xy),fy=x(1x2y)\frac{\partial f}{\partial x} = y(1 - 2x - y), \qquad \frac{\partial f}{\partial y} = x(1 - x - 2y)

Each equation offers two ways to be zero, so there are four combinations to check.

  • y=0y = 0 and x=0x = 0: the point (0,0)(0,0).
  • y=0y = 0 and 1x2y=01 - x - 2y = 0: gives x=1x = 1, the point (1,0)(1,0).
  • 12xy=01 - 2x - y = 0 and x=0x = 0: gives y=1y = 1, the point (0,1)(0,1).
  • 2x+y=12x + y = 1 and x+2y=1x + 2y = 1 together: gives x=y=13x = y = \tfrac{1}{3}.

The three corner points are where the lines x=0x = 0, y=0y = 0 and x+y=1x + y = 1 meet, and the fourth point is the centroid of that triangle.

Classifying the four

fxx=2y,fyy=2x,fxy=12x2yf_{xx} = -2y, \qquad f_{yy} = -2x, \qquad f_{xy} = 1 - 2x - 2y
D(x,y)=4xy(12x2y)2D(x,y) = 4xy - (1 - 2x - 2y)^{2}

At each of the three corners the product xyxy is zero and the mixed partial is ±1\pm 1, so D=1<0D = -1 < 0 and all three are saddles, each at height f=0f = 0. At (13,13)\left(\tfrac{1}{3},\tfrac{1}{3}\right) you get 4xy=494xy = \tfrac{4}{9} and fxy=13f_{xy} = -\tfrac{1}{3}, so D=4919=13>0D = \tfrac{4}{9} - \tfrac{1}{9} = \tfrac{1}{3} > 0.

There fxx=23<0f_{xx} = -\tfrac{2}{3} < 0, so the centroid is a local maximum, with f(13,13)=127f\left(\tfrac{1}{3},\tfrac{1}{3}\right) = \tfrac{1}{27}. That is the familiar result that the product of three quantities with a fixed sum is largest when they are equal.

The mistake students make

Cancelling the leading factors is fatal here. From y(12xy)=0y(1 - 2x - y) = 0 and x(1x2y)=0x(1 - x - 2y) = 0, dividing by yy and by xx leaves only the linear system and only the centroid. Three of the four critical points vanish, and they happen to be the three saddles.

The second slip is pairing the cases carelessly. You must combine one factor from the first equation with one factor from the second, all four ways, then solve each pair. Combining y=0y = 0 with x=0x = 0 is one case; combining y=0y = 0 with 1x2y=01 - x - 2y = 0 is a different one.

Frequently asked questions

Why do all three corner points have the same discriminant?

At each corner two of the three factors of ff vanish, which forces xy=0xy = 0 and fxy=±1f_{xy} = \pm 1, so D=01=1D = 0 - 1 = -1 every time. Geometrically each corner is where two of the zero lines of ff cross at an angle, and ff changes sign as you step across either line, so the four sectors meeting at that corner alternate in sign. That is a saddle. The alternation is what does the work, not the crossing by itself: x2y2x^{2}y^{2} also vanishes on two crossing lines, but it never changes sign, and its origin is a minimum.

Is the local maximum a global maximum?

No. Take x=y=tx = y = -t with t>0t > 0: then f=t2(1+2t)f = t^{2}(1 + 2t), which grows without bound. For example f(5,5)=275f(-5,-5) = 275, far above 127\tfrac{1}{27}. The value 127\tfrac{1}{27} is the largest only near that point, and it is the largest on the closed triangle.