CALCULUS / OVERVIEW
Calculus — The Full Map
The mathematics of change — essential for understanding ML optimization
EXPLANATION
Calculus is the mathematics of change and accumulation. For machine learning, it is not optional — every training algorithm is calculus in disguise. Why calculus matters for ML: • Gradient descent → follows the negative gradient of the loss function • Backpropagation → chain rule applied recursively through a computation graph • Loss surfaces → understanding minima, maxima, saddle points • Optimization → knowing when and why algorithms converge Two branches: • Differential calculus → rates of change, derivatives, gradients • Integral calculus → accumulation, areas, expectations in probability The key insight: a derivative tells you the slope at a point — which direction makes the function increase fastest. Gradient descent goes the opposite direction to minimize loss. This appendix focuses on differential calculus — the branch directly used in deep learning. We follow Sebastian Raschka's notation from "Introduction to Artificial Neural Networks and Deep Learning."
DIAGRAM
DIFFERENTIAL CALCULUS INTEGRAL CALCULUS ───────────────────────── ────────────────────────── Limits & continuity Antiderivatives Derivatives Definite integrals Differentiation rules Area under curve Partial derivatives Expected value (probability) Gradients ← ML critical Fundamental theorem Chain rule ← backprop Hessian ← 2nd order opt ───────────────────────── ML connection: f(x) = loss function f'(x) = gradient x = x - lr * f'(x) ← gradient descent step
CODE