Directional derivative
For a function $f(x,y)$, its gradient is $$ \mrm{grad}(f) \equiv \v\nabla f \equiv \Big(\pdfd fx, \pdfd fy\Big).$$
The directional derivative of $f(x,y)$ in the direction $\vhat s$ is $$ \dfd fs = \vhat s\cdot\v\nabla f. $$
-
Direction of $\v\nabla f$ is that in which $f$ increases most rapidly.
-
Magnitude of $\v\nabla f$ is the maximum rate of change of $f$.
-
When $0 = \dfd fs = \vhat s\cdot\v\nabla f$, we have $\hat s$ being along a contour of $f$, so $\v\nabla f$ is perpendicular to the contours of $f$.