Multivariable calculus

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

The only critical point of f(x,y) = x^2 + xy + y^2 - 3y is (-1, 2). The cross term gives f_xy = 1, so the discriminant is D = (2)(2) - 1^2 = 3, which is positive, and f_xx = 2 is positive, so (-1, 2) is a local minimum. The value there is f(-1, 2) = -3.

f(x,y)=x2+xy+y23yf(x,y) = x^{2} + xy + y^{2} - 3y
  • (1,2)\left(-1, 2\right) local minimumdiscriminant D = 3

Solving a linear system, not two separate equations

The xyxy term means each partial involves both variables, so the two equations have to be solved together rather than one at a time.

fx=2x+y,fy=x+2y3\frac{\partial f}{\partial x} = 2x + y, \qquad \frac{\partial f}{\partial y} = x + 2y - 3

From 2x+y=02x + y = 0 you get y=2xy = -2x. Substituting into x+2y3=0x + 2y - 3 = 0 gives x4x3=0x - 4x - 3 = 0, so 3x=3-3x = 3 and x=1x = -1, hence y=2y = 2. The system is linear with a nonzero coefficient determinant, so this is the only solution: (1,2)(-1, 2), where f=3f = -3.

Running the test with a nonzero mixed partial

fxx=2,fyy=2,fxy=1f_{xx} = 2, \qquad f_{yy} = 2, \qquad f_{xy} = 1
D=(2)(2)12=3>0D = (2)(2) - 1^{2} = 3 > 0

Since D>0D > 0 and fxx=2>0f_{xx} = 2 > 0, the point (1,2)(-1, 2) is a local minimum. The cross term costs you fxy2=1f_{xy}^{2} = 1 of discriminant, which is not enough here to change the verdict, but it is exactly the quantity that decides these cases.

The mistake students make

The error is dropping fxyf_{xy}, either by forgetting the cross term when differentiating or by using D=fxxfyyD = f_{xx}f_{yy} from habit. That shortcut gives 44 here instead of 33, which happens to reach the same conclusion, so the mistake goes unnoticed and then ruins the next problem.

See how little it takes to flip the answer. Change the function to x2+3xy+y2x^{2} + 3xy + y^{2} and the origin is its critical point, with fxx=2f_{xx} = 2, fyy=2f_{yy} = 2 and fxy=3f_{xy} = 3.

D=(2)(2)32=5<0D = (2)(2) - 3^{2} = -5 < 0

Same pure second partials, opposite verdict: that one is a saddle. The cross term is doing all the work.

Frequently asked questions

Why does the cross term not stop this from being a minimum?

For ax2+bxy+cy2ax^{2} + bxy + cy^{2} you get fxx=2af_{xx} = 2a, fyy=2cf_{yy} = 2c and fxy=bf_{xy} = b, so the discriminant is exactly 4acb24ac - b^{2}. The quadratic part therefore stays bowl shaped as long as b2<4acb^{2} < 4ac. Here b2=1b^{2} = 1 and 4ac=44ac = 4, so there is room to spare and (1,2)(-1,2) is a genuine local minimum.

Does this function have a maximum anywhere?

No. Along the line y=xy = x the function is 3x23x3x^{2} - 3x, which grows without bound as xx increases, so ff has no global maximum. It also has no other critical point, so there is no local maximum either.