Multivariable calculus

Critical Points of sin(x) e^(-y^2)

Every critical point of f(x,y) = sin(x) e^(-y^2) has y = 0 with x an odd multiple of pi/2. At (pi/2, 0) the second partials are f_xx = -1, f_yy = -2 and f_xy = 0, so D = 2 and the point is a local maximum of value 1. At (-pi/2, 0), D = 2 with f_xx = 1, a local minimum of value -1.

f(x,y)=sinx  ey2f(x,y) = \sin x \; e^{-y^{2}}
  • (1.5707963267948966,0)\left(1.5707963267948966, 0\right) local maximumdiscriminant D = 2
  • (1.5707963267948966,0)\left(-1.5707963267948966, 0\right) local minimumdiscriminant D = 2

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

One equation eliminates the other's easy branch

The two partials look very different, because xx sits inside a sine and yy inside a Gaussian.

fx=cosx  ey2,fy=2ysinx  ey2\frac{\partial f}{\partial x} = \cos x \; e^{-y^{2}}, \qquad \frac{\partial f}{\partial y} = -2y \sin x \; e^{-y^{2}}

The exponential is never zero, so the first equation reduces to cosx=0\cos x = 0, meaning x=π2+mπx = \frac{\pi}{2} + m\pi. That is the key step, because it settles the second equation as well.

The second equation factors as y=0y = 0 or sinx=0\sin x = 0. But cosx=0\cos x = 0 forces sinx=±1\sin x = \pm 1, so the branch sinx=0\sin x = 0 is already ruled out. Only y=0y = 0 survives.

cosx=0    sinx=±1    2ysinxey2=0 only when y=0\cos x = 0 \implies \sin x = \pm 1 \implies -2y\sin x\,e^{-y^{2}} = 0 \text{ only when } y = 0

So every critical point sits on the xx-axis at an odd multiple of π2\frac{\pi}{2}. There are infinitely many, spaced π\pi apart, and they alternate between maxima and minima.

A sine ridge damped by a Gaussian

The second partials keep the same split: the xx derivative only touches the sine, the yy derivative only touches the Gaussian.

fxx=sinx  ey2,fyy=(4y22)sinx  ey2,fxy=2ycosx  ey2f_{xx} = -\sin x \; e^{-y^{2}}, \qquad f_{yy} = \left(4y^{2}-2\right)\sin x \; e^{-y^{2}}, \qquad f_{xy} = -2y\cos x \; e^{-y^{2}}

At any critical point y=0y = 0, so the exponential equals 1 and fxy=0f_{xy} = 0. That leaves fxx=sinxf_{xx} = -\sin x and fyy=2sinxf_{yy} = -2\sin x, whose product is D=2sin2x=2D = 2\sin^{2}x = 2, since sinx=±1\sin x = \pm 1 there. The discriminant is the same positive number at every critical point, so fxxf_{xx} decides every classification on its own.

At (π2,0)\left(\frac{\pi}{2}, 0\right), sinx=1\sin x = 1, so fxx=1<0f_{xx} = -1 < 0 and the point is a local maximum with f=1f = 1. At (π2,0)\left(-\frac{\pi}{2}, 0\right), sinx=1\sin x = -1, so fxx=1>0f_{xx} = 1 > 0 and it is a local minimum with f=1f = -1. Adding 2π2\pi to xx returns the same behaviour, so maxima appear at π2+2kπ\frac{\pi}{2} + 2k\pi and minima at π2+2kπ-\frac{\pi}{2} + 2k\pi.

Geometrically, the sine wave along the xx-axis is a ridge, and the factor ey2e^{-y^{2}} pulls every cross-section toward zero as you move away from that axis. The damping is what makes the crest of the sine a genuine local maximum in both directions rather than a flat ridge line.

The mistake students make

The frequent error is losing the factor of 2y-2y from the chain rule and writing fy=sinx  ey2f_y = \sin x\;e^{-y^{2}}. That expression is zero only when sinx=0\sin x = 0, which contradicts cosx=0\cos x = 0, so a student who makes this slip concludes the surface has no critical points at all. That conclusion is self-refuting: ff is smooth on the whole plane and actually attains the value 1, and a function that attains a maximum at an interior point must have a vanishing gradient there. Reaching no critical points is a signal to recheck the chain rule.

yey2=ey2y(y2)=2yey2\frac{\partial}{\partial y}e^{-y^{2}} = e^{-y^{2}} \cdot \frac{\partial}{\partial y}\left(-y^{2}\right) = -2y\,e^{-y^{2}}

The opposite error is solving 2ysinxey2=0-2y\sin x\,e^{-y^{2}} = 0 by picking sinx=0\sin x = 0 and pairing it with cosx=0\cos x = 0 from the other equation. No angle has both a zero sine and a zero cosine, since sin2x+cos2x=1\sin^{2}x + \cos^{2}x = 1. Checking that identity is the fastest way to kill an impossible branch.

  • Solve cosx=0\cos x = 0 first, since the exponential factor makes it the cleaner equation.
  • Record what that forces: sinx=±1\sin x = \pm 1, never 0.
  • Feed that into the second equation, where it leaves y=0y = 0 as the only option.
  • Classify using fxx=sinxf_{xx} = -\sin x, which alternates in sign as xx steps by π\pi.

Frequently asked questions

Why can this page not list every critical point?

Because ff has period 2π2\pi in xx: the sine repeats and the Gaussian does not involve xx at all. Every point (π2+mπ,0)\left(\frac{\pi}{2} + m\pi, 0\right) is critical, which is an infinite set. The two listed are representatives, one of each behaviour, and every other critical point is a translate of one of them with the same discriminant of 2.

What happens at (3pi/2, 0)?

That is π2-\frac{\pi}{2} shifted by 2π2\pi, so it is a local minimum with the same numbers: sinx=1\sin x = -1 gives fxx=1f_{xx} = 1, fyy=2f_{yy} = 2, fxy=0f_{xy} = 0 and D=2D = 2, with f=1f = -1. The pattern along the xx-axis alternates maximum, minimum, maximum every π\pi units, and the discriminant is 2 at every one of them.