Playground

Simulations

Interactive simulations, grouped by area. Everything runs live in the browser, drag, tune and watch the maths move.

Calculus

Limits, derivatives, integrals and the geometry behind them.

Derivative as a Limit

Slide the secant line as h shrinks to zero and watch it settle into the tangent and the derivative born from a limit.

Open simulator

Partial Derivatives

Slide a vertical plane through a surface and what it cuts is one ordinary curve. The slope of its tangent is a partial derivative; turn the plane for the other.

Open simulator

Riemann Sums

Approximate the area under a curve with rectangles, then add more and thinner ones and watch the staircase converge onto the integral.

Open simulator

The Sum Rule

Add two functions and their graphs stack. Stack the heights and you stack the growths, so the slopes simply add, with no leftover term anywhere.

Open simulator

The Product Rule

A product is the area of a rectangle. Growing it adds two strips and one small corner, and only the corner is small enough to vanish in the limit.

Open simulator

The Chain Rule

Each stage stretches a small step by its own factor, so stretching twice multiplies the factors. Watch why f′ has to be read at g(x) and nowhere else.

Open simulator

Integration by Parts

Two areas that tile one rectangle: the integral you were asked for and the one you are handed back. Choosing u is choosing which of the two you would rather do.

Open simulator

Differential Equations

An equation for the slope instead of the value. Draw it everywhere and the plane fills with segments; a solution is any curve that stays tangent to them the whole way.

Open simulator

Taylor Series

Add polynomial terms one by one and watch the approximation hug a curve near a point, then fall apart past its radius of convergence.

Open simulator

Fourier Series

Stack rotating circles (epicycles) to build a square, sawtooth or triangle wave from pure sine harmonics.

Open simulator

Laplace Transform

Plot |F(s)| as a landscape over the complex plane, where poles become spikes and the Fourier transform is the slice above the imaginary axis.

Open simulator

Scalar Fields & Gradients

Drag a tiny probe through a 3D density cloud. An arrow shows the direction of steepest increase, with the gradient magnitude alongside.

Open simulator

Lagrange Multipliers

Optimize along a constraint and watch the objective contour kiss the constraint curve, exactly where the two gradients line up.

Open simulator

Line Integrals

Ride a bead along a curve through a field in 3D, adding up only the part of the field that points your way. Then bend the path and see whether the total cared.

Open simulator

Green's Theorem

Chop a wobbly region into little squares, each carrying its own spin. Every shared edge is walked twice in opposite directions, so only the rim survives.

Open simulator

Stokes' Theorem

Tile a surface with little loops and watch every shared edge cancel in pairs until only the boundary is left. Bend the surface and the answer refuses to move.

Open simulator

Gauss's Divergence Theorem

Fill a lumpy region with little boxes and count what leaks out of each. Every inner wall is shared by two boxes and cancels, leaving only the outer skin.

Open simulator

Divergence

Place a tiny material patch in a vector field and watch it expand near sources, contract near sinks, or deform at zero divergence.

Open simulator

Curl

Drop a paddle wheel into a vector field and drag it around. It spins fast in the core of a differential rotation and barely at all out at the rim.

Open simulator

Linear Algebra

Vectors, matrices and the transformations they encode.

Statistics

Randomness, distributions and the patterns that emerge from them.

Central Limit Theorem

Average samples from any distribution and watch the means pile up into a Gaussian, faster as the sample size grows.

Open simulator

Random Walk

Thousands of aimless walkers spread from a point into a Gaussian whose width grows like the square root of time, the particle view of diffusion.

Open simulator

Joint, Marginals & Conditionals

Every pair of values gets a square whose area is its probability. Drag a box over the table and read the joint, the marginals and a conditional off one selection.

Open simulator

Probability Density

No single value has any probability, only stretches do, so a density is the height whose area is that probability. Drag an interval and read off the integral.

Open simulator

Monte Carlo

Throw random darts at a square with a circle inside and count the hits. The fraction inside estimates π, converging slowly as 1/√n.

Open simulator

Bayes' Theorem

See why a 90% accurate test for a rare disease is usually wrong when it says positive. 1,000 people as dots make the posterior obvious.

Open simulator

Maximum Likelihood

Slide a Gaussian over sample data and watch the likelihood rise and fall. The best fit lands exactly on the sample mean and standard deviation.

Open simulator

Least Squares

Drag data points and fit the best line live. The residuals are drawn as literal squares, least squares minimises their total area.

Open simulator

Wasserstein Distance

Measure the distance between two distributions as the least work to reshape one into the other, the area between their CDFs.

Open simulator

Machine Learning

Clustering, model fitting and the ideas that turn data into predictions.

Deep Learning

Optimization, neural networks and the math that trains them.

How Layers Bend Space

Every hidden layer is two units wide, so the space it makes can be drawn. Step through the layers and watch the grid fold until one line separates the classes.

Open simulator

Gradient Descent

Tune the learning rate and the starting point, then watch optimization roll downhill into a minimum, or overshoot it and diverge.

Open simulator

Optimizers

Race SGD, Momentum, NAG, RMSProp and Adam down the same loss, drawn either as a surface you can click on or as a volumetric cloud in three parameters.

Open simulator

Neuron Activations

A network trains itself in front of you, then you draw a shape and watch it go through: every wire lit by what it carries, every neuron opened up to show the picture it looks for.

Open simulator

Embeddings & Cosine Similarity

Every word is an arrow and meaning is the direction it points. Rank the same words by cosine, by raw dot product and by straight-line distance, and watch the level sets turn from rays into rings.

Open simulator

Attention as a Soft Lookup

The mechanism on its own: a dictionary returns one value, attention returns a blend of all of them, weighted by how well each key matches the query. Sharpen it, flatten it, mask a key out.

Open simulator

Self-Attention

Where the queries and the keys come from: three projections of one X, so the sentence looks itself up. The full matrix, one head at a time, down to every multiplication.

Open simulator

Image Convolution

Slide a kernel over an image to detect edges, blur or sharpen, and see how stride, padding and dilation reshape the output feature map.

Open simulator

Generative AI

How models learn the shape of data and generate new samples from it.

Physics

Fields and the equations that move energy through space.

Electric & Magnetic Fields

Orbit a 3D scene of charges and currents, switching between electric field lines and the magnetic field around a wire.

Open simulator

Electromagnetic Waves

Drag charges through space and watch retarded E and B fields ripple outward. Build a dipole antenna and tune the medium to change wave speed and impedance.

Open simulator

Entropy

Count the arrangements behind what you can see. Entropy is a census, S = k ln Ω, and that counting alone is enough to make time run one way.

Open simulator

Heat Equation

Watch temperature diffuse across a room from a radiator and a cold window, and paint in your own heat.

Open simulator

Wave Equation

Pluck a string and watch the pulse travel and reflect. The contrast with heat: waves keep their shape and carry energy instead of smearing out.

Open simulator

Phonons

Every mass obeys Hooke’s law and pulls only on its neighbours. Out comes a pulse travelling at a speed nobody wrote down, and a shortest possible wavelength.

Open simulator

Wave Interference

Two sources of ripples cross and combine into bright and dark fringes. Drag the sources to see the pattern behind the double-slit experiment.

Open simulator

Ideal Gas

A few hundred molecules bouncing in a box. Pressure is the drumming of their impacts, temperature is how fast they are, and PV = NkT is what that adds up to.

Open simulator

Stationary Action

Bend the path a particle takes between two fixed events and watch its action get worse. Rolling that downhill turns out to be Newton in disguise.

Open simulator

Band Theory

Bring a line of atoms together and every level splits into a band. Which bands are full, and how wide the gap is, decides metal, semiconductor or rock.

Open simulator

Schrödinger Equation

Launch a quantum wave packet at a barrier taller than its energy and watch part of it tunnel through, the wave nature of matter in action.

Open simulator

Stern-Gerlach Experiment

A beam of atoms should smear into a band and arrives as two spots. Chain the analysers, turn the next one, and measuring x wipes out what was known about z.

Open simulator

Quantum Gates

Build a circuit on two qubits and watch the amplitudes, their phases and both Bloch arrows move together. Then build the one circuit whose arrows shrink to nothing.

Open simulator

Nuclear Fission

One neutron splits one nucleus and two more fly out. Turn the enrichment, the size and the control rods and watch the chain die, hold steady, or run away.

Open simulator

Nuclear Fusion

Slam light nuclei together hard enough to tunnel through their own repulsion, and chase the one line every star has to cross: power out beating power lost.

Open simulator

Special Relativity

Boost to a moving frame on a spacetime diagram and watch its axes skew: relativity of simultaneity, time dilation and length contraction, all at once.

Open simulator

Four-Vectors

One arrow in spacetime, read by many observers. Boost and both shadows change while the length refuses to: proper time, the speed of light, the rest mass.

Open simulator

General Relativity

Fall down the curved-space funnel of a black hole. Clocks run slow deep in the well and a proper meter swallows less coordinate distance near the horizon.

Open simulator

Electronics

The components a circuit is built from, opened up: charge, fields and carriers doing the work.