14.158 min read
Non-Canonical Case: Input is a Scalar
A "non-canonical" case occurs when the outer function takes a scalar input — even though generally functions map for .
Here is scalar-valued, and acts on its scalar output. So : a vector-valued function of a scalar-valued function of .
The Jacobian: . Here is an column vector (derivative of a curve) and is a row vector (Jacobian of a scalar function). Their product is — the right size.
Formal View
Theorem 14.9 — Chain Rule: Scalar Intermediate Variable
For and , let . Then
where is the tangent vector to the curve .
Why This Matters
This case arises when composing a scalar-valued function with a vector-valued activation or embedding.
- Softmax layer: applied to a linear score — gradient flows back via this chain rule
- Parametric curves defined by where maps inputs to a curve parameter
- Signal processing: applying a nonlinear transform to a linear combination of inputs
Quiz
Question 1
For where and , the Jacobian is a matrix of size:
Common Mistakes
- Confusing the order: the outer function is (vector-valued), not (scalar).
- Writing the product as (wrong order) — must be (column) times (row).