14.168 min read
Non-Canonical Case: Output is a Scalar
Another non-canonical case: is scalar-valued (as always), but is a trajectory (scalar input). So : a scalar function of a trajectory.
This is the "one underlying variable" case with scalar output (which we covered in section 14.10). The gradient formula is .
Geometrically: is the rate of change of the scalar field along the trajectory . This is the directional derivative of along the velocity vector . So (where the direction vector is , not necessarily unit).
Formal View
Theorem 14.10 — Rate of Change Along a Trajectory
For a differentiable scalar field and a differentiable trajectory :
This is the rate of change of along the curve .
Setting (coordinate function) gives — a sanity check.
Why This Matters
The rate of change of a scalar quantity along a trajectory is fundamental to physics and optimization.
- Physics: rate of change of potential energy along a particle's path
- Level set methods: when (constant), we get — velocity is tangent to level set
- Gradient flow: if , then — always decreases
Quiz
Question 1
If (constant) for all , what can we conclude?
Question 2
For gradient flow , the scalar field decreases along the trajectory.
Common Mistakes
- Forgetting to evaluate at , not at .
- Thinking the result is a vector — is a scalar, since is scalar.
- Confusing with — the velocity can be nonzero while moving along a level set.