24  Calculus and Automatic Differentiation

Training a network means asking, repeatedly, how a scalar loss changes when we nudge a parameter. This chapter builds the calculus that answers it: derivatives and the local-linear view in one variable, gradients and the chain rule in many, the matrix-calculus and automatic-differentiation machinery that makes backpropagation cheap, and finally integration—the operation we will need for probability (Chapter 26) and for the differential equations of Chapter 28.

Resources and Further Reading

If you want to go deeper, the following are the canonical references we recommend, from refreshers on single-variable calculus to the matrix calculus and automatic-differentiation machinery behind backpropagation.

Books

Courses and video lectures

Tutorials, notes, and visual introductions

Automatic differentiation