Reading and display settings

Appearance

System follows your operating system and keeps following it, even if you change it later. The header's sun, moon and monitor cycle the same three options.

Text size (%) 100%

Default. Scales every text size on the site, equations and tables included.

Reading width 70ch

How much text runs across one line of prose. Narrower is easier to track; wider fits more on screen.

Line spacing 1.6

The leading on body text. Taller leading helps a tired eye stay on the line.

Density

Padding and gaps around controls, cards, and tables — how much breathing room the layout leaves itself.

Motion

System follows your operating system. Reduced removes every transition on this site. Full keeps them on unless your system asks for less.

Volume I built the derivative and the integral of a function. Volume II lets the function move. A vector field assigns an arrow to every point; a line integral totals those arrows along a path; divergence and curl describe how the field spreads and spins; and one theorem - Green, Stokes and the divergence theorem, all the same statement - says the total on a boundary equals the total inside it. From there it is a short step to the Jacobian determinant, to constrained optimisation, and to the matrix calculus that makes backpropagation mechanical.

The last five parts are where this volume earns its keep elsewhere on the site: optimizers and the curvature that governs their convergence (handing off to Nonlinear Optimization), probability densities and the KL divergence, ODE integration, differentiation on a manifold of rotations, and optimising over whole trajectories. The first volume is the prerequisite; nothing here needs more than it taught.

The parts

Part 1
Vector fields

A particle-flow canvas you edit by hand: arrows at every point, streamlines through them, and the two numbers that describe how a field changes.

Part 2
Line integrals & conservative fields

Drag a path through a field and compare the work done; when the answer depends only on the endpoints, a potential surface is hiding underneath.

Part 3
Divergence and curl

Drop a shrinking box probe and a paddlewheel into a field you shape, and read off outflow and rotation point by point.

Part 4
Green, Stokes, Divergence: one theorem

Grow and shrink a region and watch the boundary total and the interior total stay equal - the Fundamental Theorem wearing three different costumes.

Part 5
The Jacobian determinant

Deform a grid and watch cell areas scale by the determinant, the factor that makes a change of variables exact.

Part 6
Multiple integrals & coordinates

Double and triple integrals swept in polar, cylindrical and spherical coordinates, with the volume element each one brings.

Part 7
Lagrange multipliers & KKT

Drag a constraint against the level sets of an objective and watch tangency appear as the condition for a constrained optimum, KKT inequalities included.

Part 8
Matrix calculus

Layout conventions, a shape checker, and the handful of matrix-derivative identities that do most of the work in machine learning.

Part 9
Backpropagation is the chain rule

Build a small computation graph, run it forward, and watch the adjoints fill in backwards - the chain rule as an algorithm.

Part 10
Curvature and convergence

Race gradient descent, momentum and Adam on a surface you shape, and see how the condition number explains every zig-zag and slow crawl.

Part 11
Calculus of probability

Push a Gaussian through a map, follow how densities transform with the Jacobian, and meet reparameterisation and the KL divergence.

Part 12
Differential equations

A slope field you drop solutions into, Euler versus RK4 versus exact, and the pendulum and unicycle that turn into stability questions.

Part 13
Calculus on manifolds

A naive update versus an exponential-map update on a sphere, and why rotations do not add - differentiation where the space is curved.

Part 14
Calculus of variations & optimal control

Drag two endpoints and watch the minimum-jerk path re-solve itself: optimising over whole functions, and the route to trajectory optimisation.

Reference

Start at Part 1 →