Multivariable calculus
Second Partials of the Gaussian e^(-x^2 - y^2)
Write E = e^(-x^2 - y^2). For the Gaussian bump f(x,y) = E the second partials are f_xx = (4x^2 - 2)E, f_yy = (4y^2 - 2)E, and the mixed partial f_xy = 4xyE. At the only critical point, the origin, the Hessian determinant is 4 and f_xx = -2, so the origin is a local maximum with value 1.
Second and mixed partials
Differentiating the bump twice
Abbreviate , and note that . That one fact drives every computation on this page.
For , differentiate the product in . The first factor gives and the second contributes .
For the mixed partial, differentiate in . The factor is now constant, so only moves and no extra term appears.
The second derivative test at the peak
Since is never zero, the equations and force . The origin is the only critical point.
Evaluate the three second partials there. With you get , , and .
Positive with negative means a local maximum, and here it is the global maximum, . Away from the origin changes sign at , which is where the profile switches from concave down at the peak to concave up in the tails. Those are the inflection points of the bell curve.
The mistake students make
The usual error is , which comes from chaining through the exponential twice but forgetting the product rule on the factor that the first derivative produced. The missing is exactly the term that makes the origin a maximum, and without it there and the test says nothing.
A second slip is a sign error on the mixed partial. Two negatives multiply, so is positive in the first quadrant, not negative.
Clairaut symmetry is easy to verify here: differentiating in gives , the same expression. Every partial of this function is a polynomial times , so all of them are continuous everywhere and the two orders can never disagree.
Frequently asked questions
Where is f_xx zero for the Gaussian bump?
Where , that is , for any . Those lines separate the concave down cap of the bump from the concave up tails.
Why is the mixed partial zero on the axes?
Because contains both and as factors, so it vanishes whenever or . The bump is symmetric about both axes, so there is no twist along them.