For a composition :
With this reads .
Multivariate form: if and each depends on , then .
Important
backpropagation is the chain rule applied layer by layer, reusing intermediate results. Without it, gradient-descent could not train deep neural-networks.
See also derivatives, gradients.