The Chain Rule Through Two Scalar Operations
When one differentiable operation feeds another, the chain rule multiplies their relevant local derivatives along the composition.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a simple loss
Let \(u=2w\) and \(L=u^2\). At w=3, u is six and \(dL/dw=2u\cdot2=24\). Function composition fixes which intermediate each derivative uses.
Check the result independently
The combined expression is \(4w^2\), whose derivative at three is also 24. A numerical comparison can provide another check within tolerance. See finite differences.[1]