Multivariable calculus

Critical Points of sin(x) sin(y)

The critical points of f(x,y) = sin(x) sin(y) fall into two families. Where x and y are both integer multiples of pi, D = -1 and the point is a saddle, as at the origin. Where both are odd multiples of pi/2, D = 1: (pi/2, pi/2) is a local max of value 1 and (pi/2, -pi/2) is a local min of value -1.

f(x,y)=sinxsinyf(x,y) = \sin x \, \sin y
  • (0,0)\left(0, 0\right) saddle pointdiscriminant D = -1
  • (1.5707963267948966,1.5707963267948966)\left(1.5707963267948966, 1.5707963267948966\right) local maximumdiscriminant D = 1
  • (1.5707963267948966,1.5707963267948966)\left(1.5707963267948966, -1.5707963267948966\right) local minimumdiscriminant D = 1

These are not necessarily all of them; the page says which it covers.

Setting both partials to zero at once

A critical point needs fx\frac{\partial f}{\partial x} and fy\frac{\partial f}{\partial y} to vanish at the same point. Differentiate one variable at a time, holding the other fixed, and each derivative comes out as a single product.

fx=cosxsiny,fy=sinxcosy\frac{\partial f}{\partial x} = \cos x \, \sin y, \qquad \frac{\partial f}{\partial y} = \sin x \, \cos y

A product is zero when a factor is zero, so each equation splits in two. The first forces cosx=0\cos x = 0 or siny=0\sin y = 0. The second forces sinx=0\sin x = 0 or cosy=0\cos y = 0. That is four combinations to test, and two of them die immediately: cosx\cos x and sinx\sin x are never zero at the same xx, and the same goes for cosy\cos y and siny\sin y.

The two surviving combinations are the entire critical set.

  • cosx=0\cos x = 0 and cosy=0\cos y = 0, so x=π2+mπx = \frac{\pi}{2} + m\pi and y=π2+nπy = \frac{\pi}{2} + n\pi for integers mm and nn.
  • sinx=0\sin x = 0 and siny=0\sin y = 0, so x=mπx = m\pi and y=nπy = n\pi.

Both families are infinite grids, which is why the points listed on this page are one representative of each behaviour rather than a finished catalogue.

One discriminant for each grid

Because ff is a function of xx alone times a function of yy alone, the second partials are short.

fxx=sinxsiny,fyy=sinxsiny,fxy=cosxcosyf_{xx} = -\sin x \, \sin y, \qquad f_{yy} = -\sin x \, \sin y, \qquad f_{xy} = \cos x \, \cos y

On the grid where sinx=siny=0\sin x = \sin y = 0, both diagonal entries vanish and fxy=±1f_{xy} = \pm 1, so D=fxy2=1D = -f_{xy}^{2} = -1 at every one of those points. A negative discriminant is a saddle and no further work is needed.

D(0,0)=(0)(0)(1)2=1<0D(0,0) = (0)(0) - (1)^{2} = -1 < 0

On the grid where cosx=cosy=0\cos x = \cos y = 0 the mixed partial is zero and fxx=fyy=sinxsiny=ff_{xx} = f_{yy} = -\sin x \sin y = -f. At (π2,π2)\left(\frac{\pi}{2}, \frac{\pi}{2}\right) that value is 1-1, giving D=1>0D = 1 > 0 with fxx<0f_{xx} < 0: a local maximum, and f=1f = 1 there. At (π2,π2)\left(\frac{\pi}{2}, -\frac{\pi}{2}\right) the product sinxsiny\sin x \sin y flips sign, so fxx=1>0f_{xx} = 1 > 0 and the point is a local minimum with f=1f = -1.

Those two values are also the global extremes. Since sinx1|\sin x| \le 1 and siny1|\sin y| \le 1, the product never leaves [1,1][-1, 1], and both bounds are attained.

The mistake students make

The usual wrong turn is treating the two equations one at a time instead of together. A student reads cosxsiny=0\cos x \sin y = 0, writes x=π2x = \frac{\pi}{2}, then reads sinxcosy=0\sin x \cos y = 0, writes x=0x = 0, sees a contradiction and concludes there are no critical points. The contradiction is manufactured: the two equations can be satisfied by different factors, and enumerating the four cases is what keeps that straight.

  • Factor both equations before substituting anything.
  • List all four pairings of one factor from each equation.
  • Discard the pairings that ask a sine and a cosine of the same variable to vanish together.
  • Solve what is left, and remember that each solution repeats with period π\pi.

The second slip is calling the origin a minimum because f(0,0)=0f(0,0) = 0 and ff looks positive nearby. Check the sign in two directions: f(0.1,0.1)>0f(0.1, 0.1) > 0 but f(0.1,0.1)<0f(0.1, -0.1) < 0. Both signs occur arbitrarily close to the origin, which is exactly what D<0D < 0 is telling you. Near (0,0)(0,0) the surface behaves like xyxy.

Frequently asked questions

Why is the second derivative test never inconclusive on this surface?

Because DD only ever takes the values 1-1 and 11 at a critical point. On the sinx=siny=0\sin x = \sin y = 0 grid, fxx=fyy=0f_{xx} = f_{yy} = 0 and fxy=±1f_{xy} = \pm 1, giving D=1D = -1. On the cosx=cosy=0\cos x = \cos y = 0 grid, fxy=0f_{xy} = 0 and fxx=fyy=±1f_{xx} = f_{yy} = \pm 1, giving D=1D = 1. Since DD is never zero there, the test always decides.

Are the local maxima also global maxima?

Yes. Both factors are bounded by 1 in absolute value, so f1|f| \le 1 everywhere, and f(π2,π2)=1f\left(\frac{\pi}{2}, \frac{\pi}{2}\right) = 1 reaches that ceiling. The same argument makes every local minimum a global minimum with value 1-1. A bounded periodic surface like this one has no distinction between local and global at its extreme values.