13.48 min read
U-Derivative for Vector-Valued Functions
For a vector-valued function , the directional derivative in direction at is the vector:
This is the Jacobian-vector product: apply the Jacobian matrix to the direction vector . The result tells us how all output components change simultaneously when we perturb the input in direction .
Component-wise: — the directional derivative of the -th component. So the vector directional derivative is just a stack of scalar directional derivatives.
Formal View
Theorem 13.1 — Directional Derivative via Jacobian
If is differentiable at and , then
This is a vector in .
Why This Matters
Jacobian-vector products (JVPs) are one of the two fundamental operations in automatic differentiation.
- Forward-mode AD: compute for a given tangent vector
- Sensitivity analysis: how much does the vector output change for a unit perturbation in direction ?
- Lanczos and Krylov methods: iterative linear algebra methods that use Jacobian-vector products without forming the full Jacobian
Quiz
Question 1
If and , then
Question 2
The directional derivative for a vector-valued function is a vector in .
Common Mistakes
- Thinking the directional derivative is always a scalar — for vector-valued functions, it is a vector.
- Computing (wrong order/transposition) instead of .