Multivariable calculus
Directional derivative of e^(2x - y) at (1, 2)
At (1, 2) the exponent 2x - y equals 0, so f equals 1 there and the gradient is (2, -1). Dotting with the unit direction (-0.8, 0.6) gives -11/5, that is -2.2. The value is negative because that direction points almost straight down the surface.
At x = 1, y = 2, in the unit direction (-0.8, 0.6).
One exponential, two chain factors
The exponential reproduces itself and each partial multiplies by the partial of the exponent. Here the exponent contributes in the slot and in the slot.
At the exponent is , so the common factor is 1 and the gradient is simply . Choosing a point on the line is what makes the arithmetic clean.
The mistake: losing the 2 or the minus
Writing without the 2 gives a gradient of and an answer of . Writing without the minus gives and an answer of . Neither is close.
There is also a reading mistake. A negative directional derivative does not mean the function is negative; is positive everywhere. It means the value is falling as you move that way, from 1 toward smaller positive numbers.
You can see why from the exponent alone. Moving along decreases and increases , so drops and the exponential follows it down.
Close to the steepest descent
The fastest decrease at a point runs along , at rate . Here that is , in the direction .
- Our direction is about 10.3 degrees off that steepest descent direction
- The rate is therefore about 98.4 percent of the fastest possible drop
- Any direction perpendicular to , such as , gives exactly 0
The level curves are the lines , which is why a whole family of points shares the same behaviour along a fixed direction.
The build re-checks that (-0.8, 0.6) has length 1, rebuilds the gradient of e^(2x - y) at (1, 2) by central differences on the function itself, and fails unless the dot product is still -2.2.
Frequently asked questions
Why is the gradient exactly (2, -1) and not something with an e in it?
Because the point sits on the line , where the common factor equals 1. At the same formulas give instead.
What is the most negative directional derivative possible at (1, 2)?
It is , reached in the direction . Our value of is only just above that floor.