How does a network know how to change a weight buried ten layers deep? The chain rule: the derivative of a composition is the product of the derivatives — (f∘g)′ = f′(g(x))·g′(x). Backpropagation is nothing more than the chain rule applied backward through the layers, multiplying local gradients from the loss to every weight. Leibniz’s 300-year-old calculus is the engine of every deep net.
The demo differentiates (2x+1)² both by the chain rule and directly — they agree: live demo
“Backpropagation is a new deep-learning invention.” — it is the chain rule (Leibniz), reverse-mode autodiff; applied to nets by Werbos 1974, popularized by Rumelhart-Hinton-Williams 1986. cited
A gradient, threaded back through every layer. calculus
On i-13, d/dx (2x+1)² at x=1 is 12 by the chain rule (2·3·2) and 12 directly (8x+4):