Downhill, around, and across
A landscape gives you a downhill direction. A stream function gives you contour-following motion. A periodic domain also permits a constant current around the whole space. The decomposition separates these geometries.
Pull apart a flow. Add noise. Find out what stays the same.
The arrows describe a velocity at every point. Split a random smooth field into a gradient part, a solenoidal part and a harmonic part. Adjust their strengths to rebuild the total.
The blue part organises motion down a potential; the green part moves along its own stream-function contours; the amber part carries everything across the periodic domain.
A landscape gives you a downhill direction. A stream function gives you contour-following motion. A periodic domain also permits a constant current around the whole space. The decomposition separates these geometries.
Each seed creates smooth, arbitrary vector-valued Fourier coefficients. The field is then projected into its components. These tracers have no noise; randomness enters when the field is created. Experiment 02 adds ongoing stochastic forcing.
Leaving one edge brings a tracer back at the opposite edge. Under these periodic conditions, the harmonic field is the spatial mean. Other domains and boundary conditions can give a different harmonic part and a different split.
In two dimensions, divergence is ∂xfx + ∂yfy: local expansion or compression. Scalar curl is ∂xfy − ∂yfx: local rotation. Mixed partial derivatives cancel, so
For every nonzero wavevector k, project the field’s Fourier coefficient f̂(k) parallel to k and perpendicular to k. The zero-frequency coefficient is the harmonic part. This finite Fourier projection is exact up to floating-point arithmetic; the animation uses a grid only for drawing arrows.
The sliders multiply the projected components before summing them. Because the components are orthogonal under the spatial L² inner product on this domain, their squared norms add: ‖f‖² = ‖g‖² + ‖s‖² + ‖h‖². The displayed percentages use this mathematical norm; they are not a claim about physical energy.
The potential cannot increase along pure gradient flow. This does not require divergence to be negative everywhere: a gradient field may locally expand near a maximum while still descending in φ.
Antisymmetry gives contour-following motion. Zero divergence also preserves infinitesimal area under the deterministic flow. Neither statement means that every divergence-free field conserves every physical energy you might assign to it.
The domain is [−π, π)². Twelve independent integer wavevectors carry seeded random sine and cosine vector coefficients, with high frequencies attenuated for smoothness. The mean flow points along (1, 0.35). Diagnostics use analytic mode derivatives and a 32 × 32 quadrature grid. Tracers use fourth-order Runge–Kutta steps with periodic wrapping; their finite trails are illustrative, not a density estimator.
Inward drift confines the cloud; noise spreads it out. Add rotation and probability circulates without changing the stationary density. Here, “steady” describes the distribution, not each trajectory.
Change ω while keeping κ and D fixed. The Gaussian density stays the same, but the circulating probability current changes direction and strength.
Without noise, the inward drift would pull every trajectory towards the origin. Noise continually scatters particles. Their balance produces a Gaussian cloud whose width is set by D/κ.
The number of particles expected in each region stays constant when inflow balances outflow. At equilibrium the net probability current is zero. A NESS has persistent current even though its density does not change.
The rotational drift is tangent to the circular density contours. This is deliberately an exactly solvable example. In a general noisy system, altering circulation can also alter the stationary density.
The probability density p(x, t) obeys a continuity equation—the Fokker–Planck equation for this constant diffusion:
f p transports probability with the deterministic drift; −D∇p spreads probability from dense regions to sparse regions. Stationarity asks for ∇·j* = 0, not necessarily j* = 0.
To check this, use ∇p* = −(κ/D)x p*. Diffusion cancels the inward drift in the probability current. Only circulation remains. Since R x is orthogonal to x, the circulation follows density contours and has zero divergence.
Define the stationary surprisal Φ(x) = −log p*(x). A likely state has low surprisal. For constant scalar diffusion, rearranging the current equation gives
The first term restores probability towards more likely regions. The second is the steady current velocity. Its defining constraint is weighted by the stationary density.
Here, Φ = κ|x|²/(2D) + constant. With the constant antisymmetric matrix Q = (ωD/κ)R, the drift can also be written
This is the connection to the gradient/solenoidal notation often used for stochastic systems and in Bayesian mechanics. Our sign convention puts +Q in the drift; conventions for the name Q vary. The simple expression above assumes constant coefficients. State-dependent diffusion or antisymmetric matrices require derivative terms; boundaries and topology also matter.
The deterministic drift reduces Φ, but the Itô diffusion correction offsets that decrease in the stationary ensemble. Individual noisy trajectories can move to higher surprisal. A steady state is not a continual collapse of the distribution onto its mode.
σ is the steady-state entropy production rate in units with Boltzmann’s constant kB = 1, using the standard overdamped, all-even-coordinate time reversal. It vanishes at ω = 0 and is positive otherwise. In this model a circulating drift can preserve the quadratic surprisal along its own deterministic paths while maintaining positive entropy production in the noisy steady state.
This interpretation must not be transferred unchanged to a position–momentum system. Momentum reverses sign under time reversal, and equilibrium Hamiltonian motion can have reversible phase-space current. Experiment 03 uses that different mechanical setting.
The simulation uses the exact finite-time transition for this linear Ornstein–Uhlenbeck process, rather than Euler–Maruyama. For a step Δt, rotate by ωΔt, contract by exp(−κΔt), and add independent Gaussian noise with variance (D/κ)[1 − exp(−2κΔt)] per coordinate. The initial cloud is sampled from the exact stationary Gaussian, except when “Release from one point” is chosen.
The density and current panels show stationary analytic quantities even during a transient release. During that release, the observed cloud is not yet stationary and its instantaneous current need not match j*. The 450-particle moment estimate fluctuates; it is not expected to equal the theoretical moment on every frame.
Compare the same oscillator with and without friction. Without friction, energy stays constant. With friction, trajectories lose energy and spiral towards rest—or return without oscillating if damping is strong enough.
The undamped system exchanges potential and kinetic energy. Friction makes their sum decrease. It also compresses a cloud of nearby states in phase space.
A mass on an ideal spring trades kinetic energy for potential energy and back. It can keep moving without losing total mechanical energy. The phase portrait uses position and momentum, not two positions.
Friction transfers mechanical energy to degrees of freedom outside this model, such as heat in the environment. The oscillator’s energy falls; energy conservation for a larger closed system need not fail.
The spring force is minus the gradient of a potential. In Newton’s second-order equation it supports conservative oscillation. The first-order equation “velocity equals minus a gradient” instead describes relaxation.
Use unit mass and spring stiffness. Let q be position and p momentum. The Hamiltonian is the total mechanical energy:
Differentiate H along a trajectory. The exchange terms cancel:
The conservative part (p, −q) is a rotated energy gradient. The friction part (0, −γp) is a negative gradient in phase space:
J(a, b) = (b, −a) is the conventional Hamiltonian rotation, so J = −R from the earlier experiments. Its antisymmetry ensures ∇H·J∇H = 0. This is an explicit geometric split, not a unique periodic Hodge projection of this unbounded linear field.
A is the area of a small set of initial conditions carried by the deterministic flow. Liouville’s formula gives the exponential area change. With γ = 0 the area stays fixed; with friction it contracts. This exact area ratio is distinct from the energy ratio, which also depends on the state.
| Statement | What it means | What it does not establish |
|---|---|---|
| A force is conservative | F = −∇U; its work is path independent when the potential is globally defined. | It does not mean first-order motion ẋ = F conserves U. |
| A flow is solenoidal | ∇·f = 0; deterministic flow preserves local volume. | It does not by itself specify a conserved physical energy. |
| A dynamical system conserves energy | A specified H satisfies ∇H·f = 0 along trajectories. | It does not, by itself, imply zero stochastic entropy production under every noise model. |
| A distribution is stationary | ∂tp = 0, or ∇·j* = 0. | It does not imply that individual states stop moving or that detailed balance holds. |
The useful question is always: which field, which space, which conserved quantity, which boundary conditions, and which definition of time reversal? The three experiments choose these explicitly so the visual parallels do not become false equivalences.