research41 min studyLesson 767 in Mathematics

Continuity equations and the Benamou–Brenier formula

Express quadratic transport as minimum kinetic action while stating the weak continuity and integrability conditions needed for measure-valued paths.

On this page

What you’ll understand

  • State the dynamic formulation with finite-second-moment endpoints.
  • Interpret the continuity equation distributionally, including moving atoms.
  • Compute action and distinguish constant-speed transport from an unnecessarily fast schedule.

A static coupling records origins and destinations without naming the route or speed between them. The Benamou–Brenier formulation instead optimizes a moving distribution and its velocity field. Mass conservation appears as a continuity equation, and the objective is integrated squared speed. The two minimum values coincide for quadratic transport. To use this identity correctly, one must allow weak measure-valued solutions, require finite kinetic action, and keep the time interval and cost normalization fixed.

A moving measure needs a weak conservation law

Let the endpoints belong to P₂ of real d-space. Use admissible curves ρ in C([0, 1]; P₂) for the W₂ metric and Borel velocity fields vₜ with finite integral of |vₜ|² against ρₜ dt, satisfying the continuity equation in distributions with the prescribed endpoints. W₂ continuity includes continuous bounded-test averages and matching second-moment continuity. The finite-action continuity equation then gives an absolutely continuous metric curve, with square-integrable metric speed bounded by the velocity norm.

The equation says that probability changes only through transport flux, not creation or destruction. In weak form, differentiation of an observable integrates its spatial gradient against velocity and mass, with the corresponding endpoint terms for time-dependent tests. This formulation includes atoms following differentiable paths. Writing a classical density derivative would wrongly exclude them. Velocities are determined only where the measure places mass; their values on empty regions cannot change the action.

∂tρt+∇ ⁣⋅(ρtvt)=0,∫01 ⁣∫∣vt(x)∣2 dρt(x) dt<∞\partial_t\rho_t+\nabla\!\cdot(\rho_t v_t)=0,\qquad \int_0^1\!\int |v_t(x)|^2\,d\rho_t(x)\,dt<\infty
The conservation equation is distributional, the curve has probability endpoints in P₂, and admissibility includes W₂ continuity and square-integrable velocity on the unit interval.↔ Scroll wide equations horizontally.

Minimum action recovers the static squared distance

The dynamic theorem identifies W₂ squared with the infimum of kinetic action over these admissible pairs. Our static ground cost is |x − y|², so no factor one-half appears. A time interval of length L would change the minimum action to W₂ squared divided by L; moving the same distance more quickly costs more. The unit interval is therefore an essential part of the displayed formula.

An optimal static coupling supplies an upper-bound construction by straight particle paths. Jensen’s inequality relates a path’s squared net displacement to its integrated squared speed, suggesting the reverse bound. Turning an arbitrary admissible measure curve into such particle paths requires a superposition theorem or the full dynamic proof; this paragraph is motivation, not an elementary proof of that representation. Under the stated Euclidean P₂ framework the theorem provides equality and the constant-speed displacement curve is a minimizer.

W2(μ0,μ1)2=inf⁡ρ,v∫01 ⁣∫∣vt(x)∣2 dρt(x) dt,ρ0=μ0, ρ1=μ1W_2(\mu_0,\mu_1)^2=\inf_{\rho,v}\int_0^1\!\int |v_t(x)|^2\,d\rho_t(x)\,dt,\qquad \rho_0=\mu_0,\ \rho_1=\mu_1
The infimum ranges over admissible weak continuity-equation pairs. The action uses squared speed with no one-half factor on the unit time interval.↔ Scroll wide equations horizontally.

Density and flux reveal the convex structure

When a path has a density r and flux m = rv, the integrand becomes |m|²/r. Its lower-semicontinuous extension is zero at (r, m) = (0, 0) and infinite when r = 0 but m is nonzero. This perspective function is jointly convex, while the conservation law is linear in density and flux. Those facts motivate convex numerical formulations; choosing velocity and density as independent variables obscures this structure.

The density notation is a useful special case, not permission to ignore singular endpoints or weak boundary conditions. A mesh-based implementation needs a specific discrete conservation law and a convention at zero density. Numerical diffusion may alter the represented path even when the endpoint histograms look right. Before interpreting a computed action as W₂ squared, verify conservation, endpoint constraints, and discretization error rather than only a visually smooth animation.

Constant-speed translation of a Gaussian

Transport N(0, 1) to N(3, 1) on the line during one unit of time. Check a density path, its continuity equation, and its optimal kinetic action.

  1. Choose ρₜ = N(3t, 1) and the constant velocity vₜ = 3. Its smooth density rₜ(x) is the standard Gaussian density evaluated at x − 3t, so ∂ₜrₜ = −3∂ₓrₜ.

  2. The flux derivative is ∂ₓ(3rₜ) = 3∂ₓrₜ. The two terms cancel, the endpoints are correct, and the action is ∫₀¹9∫rₜ dx dt = 9.

  3. Any endpoint coupling has E(Y − X) = 3, so Jensen gives E|Y − X|² ≥ 9. Translation Y = X + 3 attains this lower bound. Hence the static squared distance and the constructed dynamic action both equal nine.

The result

The translating Gaussian satisfies mass conservation and minimizes action at 9. Its fixed speed matches the endpoint quadratic transport cost.

Explore the model

Interactive lab

Interactive lab · vectors

Squared speed in a translation action

Pause and Reset, then set both angle = 0 degrees and magnitude = 3. Predict the velocity components (3, 0) and squared speed 9. Interpret that constant vector as translating an entire probability measure for one unit of time, giving action 9. The lab displays a single vector and its components; it does not evolve a density, check a continuity equation, or solve the dynamic minimization.

Squared speed in a translation actionPlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forFor a constant translation, integrating squared speed against a unit probability measure leaves exactly the squared vector magnitude.

Check your understanding

Which statement correctly treats the path ρₜ = δ₂ₜ?

Try it yourself

Compare two paths from δ₀ to δ₂: constant position z(t) = 2t, and z(t) = 4t for t ≤ 1/2 followed by z(t) = 2. Check weak conservation and compute both actions.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

For a moving atom, test the equation against a smooth function along its path. The second path has velocity four for half the time and zero afterward.

Compare with the solution

Both paths are absolutely continuous and induce weak continuity-equation solutions with velocity equal to their almost-everywhere path derivative. For a smooth spatial test φ, the identity is dφ(z(t))/dt = φ′(z(t))z′(t), including the second path almost everywhere across its corner. The constant-speed action is ∫₀¹2² dt = 4. The early-fast path has action (1/2)4² + (1/2)0² = 8. Both have the same endpoints and total displacement, but only the constant-speed path attains W₂² = 4. Concentrating movement into half the time doubles the action.

Take it with you

  • The dynamic formulation minimizes squared-speed action under weak mass conservation.
  • Finite-action measure paths include moving atoms as well as smooth densities.
  • Time reparameterization changes kinetic action even when endpoints and traveled segments agree.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.