HomeMathematicsIsoperimetric Flow: Why the Circle Wins

Isoperimetric Flow: Why the Circle Wins

Interactive 2D calculus-of-variations simulator: watch a closed curve evolve under a length-preserving curvature flow, growing its enclosed area step by step until it settles on the one shape calculus proves is optimal — the circle.

Mathematics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-calculus-of-variations ↗ Open standalone

Of every closed loop with a given perimeter, the circle is the only one that maximizes the area it encloses — a result the calculus of variations proves by showing that a curve of constant curvature is the unique stationary point of the area functional under a fixed-length constraint. This simulator makes that proof visible: a closed polygon of adjustable resolution evolves under the exact gradient flow implied by the Euler–Lagrange condition, each vertex sliding along its outward normal by an amount proportional to how far its local curvature departs from the circle's constant curvature, while the total perimeter is held fixed at every step. Watch a jagged star, a blob, a square or an ellipse relax into a near-perfect circle as the isoperimetric ratio A/L² climbs toward its theoretical ceiling of 1/4π, with live readouts of perimeter, area, the curvature deviation that drives the flow, and a real convergence chart of the measured ratio against the bound.

⚙ Under the hood

Watch a closed curve evolve under a length-preserving gradient flow derived from the Euler-Lagrange condition of the isoperimetric problem, growing its enclosed area until it settles on the one shape calculus proves is optimal: the circle.

calculus of variationsisoperimetric problemEuler-LagrangeLagrange multipliercurvature flowconstrained optimization

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)