THE LAGRANGIAN

Recast all of mechanics as a single function L = T − V and let one equation fall out of it. The Euler–Lagrange equation d/dt(∂L/∂q̇) − ∂L/∂q = 0 reproduces Newton's F = ma, works in any coordinate system, and turns every symmetry into a conservation law. Rendered, not quoted.

SOURCE Lagrange, Mécanique analytique (1788) — the origin of the Euler–Lagrange equation. archive.org scan — 1788 treatise, no canonical DOI: AMBER.

Blue Team · builds & defends
3

The Model

State a system by two coordinates: position q and velocity . Write one scalar, the Lagrangian:

L(q, q̇) = T(q̇) − V(q) kinetic minus potential energy

The true motion is the one that makes the action S = ∫ L dt stationary. Setting δS = 0 gives the Euler–Lagrange equation for every coordinate:

d/dt(∂L/∂q̇) − ∂L/∂q = 0

For L = ½mv² − V(x) this is exactly m ẍ = −dV/dx — Newton, recovered from a scalar.

5

The Lineage

Mechanics from one function — Lagrange, 1788. The action the-principle-of-least-action is what L extremizes; the Legendre transform carries L into its twin, the-hamiltonian (H = T + V, phase space). Noether reads conservation laws off L's symmetries. Same physics, three coordinate-free faces.

7

The Witness

Re-runs the full selfcheck() live against the engine's pure functions — Newton recovery, cyclic momentum, the pendulum EOM, coordinate independence, and symplectic energy conservation. Confirms green; flips red the instant window 6 corrupts the sign of V.

WITNESS — awaiting boot
The Machine
4

Data In IN ↓

Natural units: m = 1, k = 1, g = 1, l = 1. A potential V(q), a coordinate q, and a Lagrangian L = T − V. Nothing else — no forces are supplied; they are derived.

0

The Panel LIT

Live engine. Forces come from numeric derivatives of L; the pendulum is advanced by a symplectic (leapfrog) integrator that conserves energy.

computing…

Phase portrait θ vs θ̇ — a closed orbit means energy is conserved.

LIT — awaiting boot
8

Data Out OUT ↓

Proven, from the pure functions:

Red Team · attacks & breaks
1

The Adversary WALL

“A scalar cannot contain a vector law. T − V is bookkeeping; the physics is still F = ma, so the Lagrangian adds nothing.”

Rebuttal: the sign and structure are forced. Only T − V makes δS = 0 reproduce Newton; T + V gives an anti-restoring force (see window 6). And the payoff is real — constraints, curved coordinates, and fields all follow the same one equation with no free-body diagrams.

2

The Graveyard

“L is total energy, T + V.” No — L = T − V. Energy T + V is the Hamiltonian.

“Plain Euler integration conserves energy.” No — explicit Euler pumps energy and spirals out; only a symplectic scheme keeps the orbit closed.

“The equations only hold in Cartesian coordinates.” No — Euler–Lagrange is coordinate-free; polar gives the same physics.

6

The Tamper

The disclosed planted void. Flip the Lagrangian to L = T + V (plus, not minus). The Euler–Lagrange force becomes m a = +dV/dx — anti-restoring, physically wrong. The Witness (7) catches it live.