Partial derivatives
The topic Derivatives and Taylor series gave us the derivative of a function of one variable: the best linear approximation near a point. A model's loss depends on all of its parameters at once, and a network has millions of them. We need derivatives in many variables.
The simplest idea is to freeze every variable but one and differentiate along that one. This is the partial derivative. For and the -th basis vector ,
The other coordinates act as constants, so every rule from one-variable calculus applies unchanged.
The running example of this topic is a small loss surface, a bowl with two parameters:
It is a quadratic form with a positive definite , as in the topic Symmetric matrices and quadratic forms. Holding fixed and then fixed gives
In a real loss the roles are worth keeping straight. For a linear model with one feature and the squared error on one example, , the data and are constants. The parameters and are the variables.