For a composition f(g(x)), the derivative is f'(g(x)) times g'(x); a network is a long composition of layers, so the loss gradient is a product of layer-wise derivatives computed from the output backward.
The Jacobian is the matrix of all first-order partial derivatives of a vector-valued function (rows are outputs, columns are inputs); backpropagation multiplies Jacobians (in practice, vector-Jacobian products) layer by layer.
Long products of Jacobians whose values are below or above 1 are the mathematical cause of vanishing and exploding gradients.
Loading…