Calculus studies local change; optimization uses local change to choose better parameters. The useful mental model is: derivatives describe sensitivity, Taylor expansions approximate functions locally, and optimizers use those local signals to move through a loss surface.
Core sequence:
- Taylor Expansion - approximates a function near a point using derivatives.
- Gradient - gives the direction of steepest local increase for scalar-valued functions.
- Chain Rule (Multivariable) - composes derivatives through nested functions.
- Jacobian Matrix - organizes first derivatives for vector-valued functions.
- Hessian Matrix - organizes second derivatives and captures local curvature.
- Convexity - identifies problems where local minima are global minima.
- Computation Graphs - represents composed functions so derivatives can be propagated mechanically.
- Stochastic Gradient Descent - updates parameters using noisy gradient estimates from minibatches.
- Momentum - smooths update directions by accumulating velocity.
- Adam Optimizer - adapts per-parameter learning rates using first and second moment estimates.
- Learning Rate Schedules - controls step size over training.
How the pieces fit:
- Taylor expansion is the local approximation that makes gradient methods sensible.
- Gradients, Jacobians, and Hessians expose first-order and second-order structure.
- The chain rule and computation graphs are the basis of backpropagation.
- Convexity gives guarantees; nonconvex neural networks rely on heuristics and scale instead.
- SGD, momentum, Adam, and schedules are practical rules for turning derivatives into parameter updates.
Core equations to keep active:
- First-order Taylor approximation:
- Second-order Taylor approximation:
- Gradient descent:
- Multivariable chain rule:
- Jacobian:
- Hessian:
- Convexity:
- Momentum: ,
- Adam update direction:
See also: Backpropagation, Linear Algebra