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.
- saddle pointdiscriminant D = -1
- saddle pointdiscriminant D = -1
- saddle pointdiscriminant D = -1
- 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.
Each equation offers two ways to be zero, so there are four combinations to check.
- and : the point .
- and : gives , the point .
- and : gives , the point .
- and together: gives .
The three corner points are where the lines , and meet, and the fourth point is the centroid of that triangle.
Classifying the four
At each of the three corners the product is zero and the mixed partial is , so and all three are saddles, each at height . At you get and , so .
There , so the centroid is a local maximum, with . 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 and , dividing by and by 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 with is one case; combining with 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 vanish, which forces and , so every time. Geometrically each corner is where two of the zero lines of cross at an angle, and 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: 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 with : then , which grows without bound. For example , far above . The value is the largest only near that point, and it is the largest on the closed triangle.