Multivariable calculus
Functions of many variables: partial derivatives, the gradient, Jacobians and Hessians. The language in which a neural network with a billion parameters is trained.
13 topics
Real problems have many inputs: the pixels of an image, the joints of a robot, the weights of a network. The derivative generalizes to a vector (the gradient) or a matrix (the Jacobian), and second derivatives to a matrix (the Hessian). The single most important chain in modern computing starts here:
∇f → gradient descent → loss function → backpropagation → neural networks → deep learning
Topics
Functions of several variables
(or ): many inputs, one (or many) outputs. With two inputs the graph is a surface over the plane; with a million inputs — the weights of a model — we reason with its level sets and its gradient.
Surfaces and level sets
Three ways to describe a surface: a graph , a level set (implicit), or a parametrization . Contour maps of loss functions and the isosurfaces of medical imaging are level sets.
Limits and continuity in several variables
Same – definition with instead of . New subtlety: the point can be approached along infinitely many paths, and the limit must agree on all of them.
Partial derivatives
: the derivative with respect to one variable, holding the others fixed. Each answers "how sensitive is the output to this input?" — for a neural network, to this weight.
Gradient
: the vector of all partial derivatives. It points in the direction of steepest ascent, its length is that steepest slope, and it is perpendicular to the level sets. Walk against it and you go downhill fastest.
Directional derivative
The rate of change of moving in a unit direction : . It proves that is the direction of steepest descent, and it is what forward-mode AD computes (a Jacobian–vector product).
Total differential and linearization
Near a point, a differentiable function is approximately linear: . The graph has a tangent plane, and small input errors propagate linearly.
Multivariable chain rule
When a variable influences the output through several paths, add the contributions of every path, each the product of the local derivatives along it: . In matrix form, Jacobians multiply. This is exactly what backpropagation computes on a network's graph.
Jacobian matrix
For , the matrix of all partial derivatives : the best linear approximation of near a point. Its determinant measures how stretches volumes.
Hessian matrix
The matrix of second partial derivatives : the curvature of in every direction. Its eigenvalues classify critical points (minimum, maximum, saddle) and control how fast optimizers can go.
Extrema in several variables
Solve , then classify with the Hessian. For least squares this gives the normal equations — linear regression in closed form.
Multiple integrals and change of variables
Integrals over regions of : volumes, masses, probabilities of random vectors. Computed as iterated integrals (Fubini) and transformed with the Jacobian determinant: .
Curvature (basic differential geometry)
How fast a curve turns ( of the best-fitting circle) or how a surface bends (mean and Gaussian curvature). Graphics and CAD use it to judge smoothness, smooth meshes and design roads and rails.
Where this area leads in computing
ℒ AI and machine learning ★★★★★
- Linear regression★★★★★←Extrema in several variables
- Loss function★★★★★←Functions of several variables
- Gradient descent★★★★★←Gradient, Directional derivative
- Automatic differentiation★★★★★←Directional derivative, Multivariable chain rule, Jacobian matrix
- Backpropagation★★★★★←Partial derivatives, Multivariable chain rule
- Loss landscape★★★★★←Surfaces and level sets, Hessian matrix, Extrema in several variables
- Second-order (Hessian-based) optimization★★★★★←Hessian matrix
- Generative models★★★★★←Jacobian matrix, Multiple integrals and change of variables
3D Computer graphics ★★★★★
- Surface normals★★★★★←Surfaces and level sets, Gradient
- Signed distance fields and ray marching★★★★★←Surfaces and level sets, Gradient
- Mesh processing (discrete differential geometry)★★★★★←Curvature (basic differential geometry)
- Bézier curves and splines★★★★★←Curvature (basic differential geometry)
- The rendering equation★★★★★←Multiple integrals and change of variables
⚙ Robotics and control ★★★★★
- Robot Jacobian (velocity kinematics)★★★★★←Jacobian matrix
- Inverse kinematics★★★★★←Jacobian matrix
- Control theory★★★★★←Total differential and linearization
- Kalman filter★★★★★←Total differential and linearization, Jacobian matrix
- Trajectory optimization and MPC★★★★★←Curvature (basic differential geometry)