Directional derivative

Level UniversityDifficulty ★★★★★Concept⌖ Open in the map

What is it?

The rate of change of ff moving in a unit direction uu: Duf=∇f⋅uD_u f = \nabla f\cdot u. It proves that −∇f-\nabla f is the direction of steepest descent, and it is what forward-mode AD computes (a Jacobian–vector product).

Formulas

Duf(a)=lim⁡t→0f(a+tu)−f(a)t=∇f(a)⋅uD_u f(a) = \lim_{t\to0}\frac{f(a + t u) - f(a)}{t} = \nabla f(a)\cdot u

Where it shows up in AI

  • Gradient descent★★★★★fundamentalAI and machine learning

    Among unit steps, u=−∇f/∥∇f∥u = -\nabla f/\norm{\nabla f} minimizes DufD_u f: the justification of the method.

  • Automatic differentiation★★★★★frequentAI and machine learning

    Forward-mode AD with dual numbers computes DufD_u f (a JVP) in one pass.

Where is it used?

Computing topics reachable from here, through the chain of ideas that leads to them:

This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.

↑ ↓ to navigate · ↵ · Esc