Multivariable calculus
Gradient of e^(xy): Components and Saddle Point
For f(x, y) = e^(xy) the gradient is (y e^(xy), x e^(xy)), that is e^(xy) times the vector (y, x). Differentiate the exponential, which reproduces itself, then multiply by the partial derivative of the exponent xy. The only point where this gradient vanishes is the origin, and that point is a saddle.
The exponential survives, the exponent supplies the factor
With and , the chain rule gives . Differentiating the exponential changes nothing about it, so the entire difference between the two components is the derivative of the exponent.
The factor that appears is the other variable, which surprises people at first. Along a horizontal line, is an exponential in with growth rate , so the slope is proportional to . That is precisely what says.
One critical point, and it is a saddle
Since is never zero, requires and at the same time. The origin is the only candidate for a maximum or minimum, and .
Walk away from it along two lines to see what kind of point it is.
- Along : , so the origin looks like a minimum from this direction.
- Along : , so it looks like a maximum from that one.
Higher one way and lower the other is the definition of a saddle. The level curves make the same point: means , a family of hyperbolas whose degenerate member is the pair of axes crossing at the origin.
Away from the origin the vector grows fast. At , , pointing outward along the line , which is the direction in which increases fastest.
The mistake: treating e^(xy) like e^x
The usual wrong answer is , from a reflex that the derivative of an exponential is itself. That rule applies to ; the moment the exponent is anything else, the chain rule attaches its derivative.
A second wrong answer, , multiplies by the whole exponent instead of by its derivative.
One test point will not catch both, so use two.
- At the function is constant in , since for every , so the true partial is . The answer gives there and is exposed, while gives and slips through.
- At the true partial is , while gives . Avoid as a test point: there and are both , every stray factor equals , and the true answer and both wrong ones all return .
Frequently asked questions
Why does the partial of contain and not ?
Because with held fixed the function is , an exponential whose growth rate is that constant. The derivative of is , and here , so the factor out front is .
Is the origin a maximum, minimum or saddle for ?
A saddle. Along the line the function is , which rises above , and along it is , which falls below . The Hessian test agrees: at the origin, which is negative.