Chain rule
The rule of calculus for the derivative of a function of a function: the derivative of a composite is the product of the derivatives, the outside one taken at the inside value. Rates multiply along a chain of steps, which is also how a neural network works out how changing an early setting changes the final result.
Example: sin(x²) has derivative cos(x²) × 2x; e^(−x) has derivative −e^(−x).
ⓘ Technical definition
If y = f(g(x)), then dy/dx = f′(g(x)) g′(x), or dy/dx = (dy/du)(du/dx) with u = g(x). Backpropagation applies the chain rule through each layer's computation graph to compute parameter gradients in O(parameters) time.
→ First introduced in: Rules of differentiation: sin, cos, exp and the chain rule
composite function
A function of a function: do one function, the inside function, then apply a second one, the outside function, to its result.
Example: sin(2x) is the sine of 2x: first double, then take the sine.
ⓘ Technical definition
(f ∘ g)(x) = f(g(x)): g is the inside function, f the outside. Its derivative is given by the chain rule, f′(g(x)) g′(x).
→ First introduced in: Rules of differentiation: sin, cos, exp and the chain rule