[Math] Direction of Gradient of a scalar function

multivariable-calculusscalar-fieldsvector analysisvectors

So I have always read that taking the gradient of a scalar function gives the direction of maximum rate of increase in that scalar field (for example Wikipedia). For the problem at hand I have a field defined numerically and I need to find the direction in which the rate of decrease of the field is maximum. I thought the gradient could just be the position vector connecting one point to another along that direction,

$$
(x-x_0)\hat{i}+(y-y_0)\hat{j} = \frac{\partial f}{\partial x}\hat{i}+\frac{\partial f}{\partial y}\hat{j}
$$

but later realized that it is obviously wrong because the dimensions are incorrect. So, what exactly is the nature of the gradient vector? It is not simply just the direction. That definition is more suitable for the unit vector of the gradient,
$$
\hat{n} = \frac{\vec{\nabla}f}{|\vec{\nabla} f|}
$$

So the relationship between $\vec{\nabla}f$ and $\vec{r}$ must be that of a multiple i.e. $\vec{\nabla}f = c \vec{r}$. But, what is c?

So in the problem, starting at a point $(x_0, y_0)$, I am trying to determine the next point $(x,y)$ to move to in the direction of maximum decrease.

Best Answer

The magnitude of the gradient represents how fast the function changes along the gradient. The gradient vector is the first term in a Taylor expansion of $f$, so if we work around a point $\vec {x_0}$ and consider a nearby point $\vec x$ we have $f(\vec x) \approx f(\vec{x_0}) + (\vec x - \vec {x_0})\cdot \vec{\nabla} f(\vec{x_0})$. The direction of maximum decrease is opposite to the gradient because it makes the cosine of the angle in the dot product $-1$. There is no information here about how far you should go in that direction. That would come from a second derivative.

Related Question