The Energy Function and Jacobi Integral
Between the Earth and the Moon there is a gate. Not a physical structure — an energetic one: a narrow neck in an invisible surface that a spacecraft simply cannot cross unless a single number, computed once at engine cutoff, is small enough. Fire your trans-lunar burn a hundred metres per second too gently and the gate stays sealed; the Moon remains on the far side of a forbidden region no amount of clever steering can enter. That number is the Jacobi integral, and the strangest thing about it is what it is not: it is not the energy. In the rotating frame where the Earth and Moon stand still, the mechanical energy is not conserved at all — yet this other quantity, built from the Lagrangian by a fixed recipe, sits perfectly constant for the entire mission. The recipe is the energy function , and this article is about the two separate questions it forces you to keep apart. First: is conserved? That depends only on whether the Lagrangian carries an explicit clock — . Second: is the energy ? That depends on something entirely different — whether the coordinates connect to inertial space without time creeping into the transformation. The two switches flip independently, and every famous "paradox" about energy in rotating frames, cranked wires, and moving supports is someone conflating them. Master the distinction and you own the cleanest conservation law in Lagrangian mechanics — the one that guides real spacecraft today.
- The energy function is — a fixed recipe applied to any Lagrangian, engineered so the Euler–Lagrange equations cancel every implicit time dependence.
- Its evolution law is : is conserved exactly when the Lagrangian has no explicit time dependence.
- Whether equals the mechanical energy is a separate question: it requires the kinetic energy to be purely quadratic in the velocities (), which holds when the coordinate transformation to inertial space is time-independent (scleronomic).
- With moving constraints or rotating frames, and the general result is — conserved, but not the energy.
- The classic payoff is the Jacobi integral of the circular restricted three-body problem: conserved in the rotating frame while the inertial energy is not, it bounds all possible motion through zero-velocity surfaces.
- Numerically equals the Hamiltonian; the Legendre transform to changes the variables, not the value.
- Key idea: is conserved iff has no explicit time dependence; it equals only when, in addition, the kinetic energy is homogeneous quadratic in the velocities (time-independent constraints).
Where this lives today
The Jacobi integral is working infrastructure. Every libration-point mission — JWST holding station around Sun–Earth , the Artemis-era Gateway riding its near-rectilinear halo orbit around Earth–Moon — is designed on CR3BP energy surfaces first, with the Jacobi constant selecting which families of halo and Lyapunov orbits exist and how much station-keeping they cost. Low-energy transfers thread the / necks at Jacobi constants barely below critical, trading months of flight time for hundreds of metres per second of fuel; trajectory designers speak of "opening the gate" in exactly the sense of worked example 2, and mission-design software exposes as a first-class plotting variable next to . The same integral organizes structure far beyond spacecraft. In galactic dynamics, a star cluster orbiting a galaxy is a restricted three-body problem writ large: the cluster's tidal (Jacobi) radius is set by the / zero-velocity surfaces, and stars that leak across the gates form the leading and trailing tidal streams that the Gaia catalogue now maps in exquisite detail across the Milky Way halo. Fitting those streams — today a standard technique for weighing the Galaxy's dark matter — begins with the same equation (9) you used above, with a galaxy where the Earth was and a globular cluster where the spacecraft sat.
The physical picture
Every system answers two independent questions, and the entire content of this article is that they are different questions. Question one: does the Lagrangian carry an explicit clock — does appear anywhere other than inside and ? If not, the number built by the recipe above cannot change: nothing in the dynamics distinguishes this instant from the next, so the quantity that tracks "the ticking of the clock" has nothing to track. Question two: do the generalized coordinates connect to inertial space through a frozen map , or does the map itself move — a crank turning, a support oscillating, a frame rotating? A frozen map keeps the kinetic energy purely quadratic in the velocities and collapses to the familiar . A moving map injects linear and velocity-independent pieces into , and becomes something else — still perfectly lawful, still possibly conserved, but no longer the number a lab-frame calorimeter would report.
The picture to hold onto for the moving-map case is a bead threaded on a straight horizontal wire that a motor cranks at fixed angular velocity . As the bead drifts outward the motor must torque harder and harder to keep the wire's rotation rate fixed, pumping energy into the bead: the lab-frame energy climbs relentlessly. And yet the Lagrangian, written in the natural coordinate along the wire, contains no explicit at all — so something is conserved. That something is : kinetic-looking term minus the centrifugal term. The conserved quantity has a sign flip exactly where the naive energy has a plus, and the gap between the two is precisely the work the motor feeds in.
Finally, keep one bookkeeping fact in view: is numerically the same object as the Hamiltonian. It is the Hamiltonian wearing velocity clothes — expressed in rather than . The Legendre transform that produces , treated fully in the Hamiltonian formalism, changes which variables are independent, never the value. Everything proved about here transfers to wholesale.
The recipe and its master equation
Start from any Lagrangian with generalized momenta (their anatomy is the business of generalized forces and momenta). The energy function is the combination
where: — the energy function (called the Jacobi integral when it is conserved); the sum runs over all generalized velocities. The combination looks arbitrary until you watch it under differentiation: it is engineered so that every way can change through the motion itself cancels by the equations of motion, leaving only the explicit ticking of the clock. For the simplest case the recipe gives — the energy, with the sign of flipped back to plus by the subtraction.
We are deriving the single most useful identity of this article: along any actual trajectory, — the energy function changes only through the explicit time dependence of the Lagrangian. The strategy is direct: differentiate the definition (1) with the product rule, expand with the chain rule, and watch two separate cancellations do the work — the terms cancel identically (pure algebra, no physics), while the terms cancel only on-shell, by the Euler–Lagrange equations. That second cancellation is where the physics enters, so keep the two kinds of cancellation distinct: the identity is a statement about solutions, not about arbitrary curves.
Step 1. Differentiate the definition of totally with respect to time, using the product rule on each :
Step 2. Expand the last term with the chain rule — changes because , , and possibly the clock all advance:
Why the distinction matters: is the change of along the trajectory; is the change of at frozen — the part contributed by the clock alone. Conflating them is the single most common error in this derivation.
Step 3. Subtract. The terms cancel identically — no equations of motion needed — leaving
Step 4. Now impose that the trajectory is a solution. Each bracket is exactly the left side of an Euler–Lagrange equation and vanishes on-shell:
where: the right side is evaluated holding and fixed. Why this is a conservation theorem: if never appears explicitly in , the right side is identically zero and is a constant of the motion — no further conditions, no assumptions about the form of , no requirement that constraints be time-independent.
Step 5. Read equation (2) physically even when it is not zero: is the power flowing into the system through whatever makes the Lagrangian time-dependent — a driven support, a ramped field, a scheduled crank. The energy function leaks at exactly the rate the external schedule injects. As a quick check: for equation (2) reduces to — the elementary driven-potential result.
Equation (2) settles the conservation question completely. It says nothing yet about the identity question — whether the conserved number is the mechanical energy. For that we need to look inside the kinetic energy.
When is h the energy? The anatomy of T
Suppose the particle positions connect to the generalized coordinates through a map that may carry explicit time, — time appears when a constraint moves on a schedule (a rotating wire, an oscillating support), which is what rheonomic means (see the classification of constraints). Differentiating the map gives each particle's velocity, and squaring it sorts the kinetic energy by powers of :
where: is the familiar quadratic form; and are cross terms between the -motion and the map's own drift velocity . If the map is frozen — scleronomic constraints — then and , vanish identically: the kinetic energy is purely quadratic. A moving map is the only way and get in.
Go deeper · Derivation B · 2 minWhat Survives the Recipe: h Equals T2 Minus T0 Plus V
The goal is the exact identity for any Lagrangian with velocity-independent potential — the formula that answers "is the energy?" in complete generality. The tool is Euler's theorem on homogeneous functions: a function satisfying obeys . The strategy is to apply the theorem degree by degree to the decomposition (3) and feed the result into the definition (1). Watch two things: the potential contributes nothing to the momentum sum (it has no in it), and the linear piece cancels out of entirely — a small algebraic miracle with physical consequences, because is exactly where Coriolis-type terms live.
Step 1. Apply Euler's theorem to each homogeneous piece of . Degree 2 returns twice itself, degree 1 returns itself once, degree 0 returns nothing:
Why you can trust this without expanding any matrices: differentiating a quadratic form in and re-contracting with doubles it; doing the same to a linear form reproduces it; has no to differentiate.
Step 2. Insert into the definition of , using :
Step 3. Collect:
where: has cancelled between the momentum sum and . Why the cancellation matters physically: in a uniformly rotating frame is the Coriolis coupling — the term that bends trajectories without doing work. It bends the motion but leaves no fingerprint on the conserved number.
Step 4. Specialize to a frozen map. Scleronomic constraints give , hence
where: is the ordinary mechanical energy. Why both conditions were needed: equation (5) already assumed velocity-independent; equation (6) additionally needs . Drop either and detaches from .
Step 5. Note the sign structure of (5): enters with a minus sign, while in the energy it enters with a plus. Whenever a moving map generates a , the conserved and the lab energy differ by — a computable, generally time-varying gap that the constraint's driver supplies. The bead example below realizes the sign flip of explicitly, and the rotating-frame derivation recovers the Jacobi constant, including the conventional factor .
Which statement answers which question
| you are asked | the test | the tool |
|---|---|---|
| is anything conserved here? | does appear explicitly in ? | master equation (2) |
| is the conserved thing the energy? | is purely quadratic () and velocity-free? | anatomy result (5), (6) |
| what exactly is conserved in a rotating frame? | compute in that frame | Jacobi integral (8) |
| how fast does energy leak in a driven system? | evaluate | master equation (2) as a power balance |
| what is in momentum variables? | Legendre transform, same value | the Hamiltonian, deferred to the canonical formalism |
The Jacobi integral of the rotating frame
The reward for all this care is the celebrated conserved quantity of the circular restricted three-body problem (CR3BP): a test particle — spacecraft, asteroid, ballistic Moon probe — moving in the gravity of two primaries (Earth and Moon, say) that circle their common barycentre at fixed angular velocity . In the inertial frame the potential rotates, energy is not conserved, and no first integral is available. The masterstroke is to ride the rotation.
Go deeper · Derivation C · 2 minThe Jacobi Integral of the Circular Restricted Three-Body Problem
We derive the one conserved quantity the restricted three-body problem possesses: the Jacobi integral. The strategy is a frame change followed by pattern-matching against the general theory above. In the frame co-rotating with the primaries at constant , both primaries stand still, so the gravitational potential loses its clock — the Lagrangian becomes time-independent and the master equation (2) hands us a conserved for free. The real work is identifying , , in the rotating coordinates and applying ; the watch-out is that the answer is not the rotating-frame kinetic-plus-potential energy — the centrifugal term enters with the opposite sign, exactly as the general theory demands.
Step 1. Relate velocities. A particle at rotating-frame position with rotating-frame velocity has inertial velocity . The Lagrangian is the inertial kinetic energy minus the gravitational potential, expressed in rotating coordinates:
Step 2. Expand and sort by powers of the rotating-frame velocities:
Why each piece is what it is: is the kinetic energy the rotating observer would naively write; is the Coriolis coupling, linear in velocity; is the sweep energy of the frame itself at the particle's position — the term that will become the centrifugal potential.
Step 3. Check the clock. is constant and the primaries are pinned at fixed rotating-frame positions, so with no explicit : , and by the master equation (2) is conserved.
Step 4. Apply the anatomy result (5), , remembering the sign flip on :
where: the middle term is the centrifugal potential — the of the frame, subtracted. The Coriolis piece has vanished from the conserved quantity entirely, though it very much remains in the equations of motion. Astronomers quote the same content as the Jacobi constant , so that
where: is the rotating-frame speed squared. Why the repackaging is useful: with fixed by initial conditions, demanding carves configuration space into allowed and forbidden regions bounded by the zero-velocity curves — motion is trapped without solving any equation of motion.
Step 5. Extract the punchline. Setting in (9) defines the zero-velocity surfaces for a given . For large (gentle launches) the allowed region near the Earth is a closed pocket: the spacecraft physically cannot leave it. As drops past the critical value at the interior Lagrange point , the pocket around the Earth and the pocket around the Moon connect through a neck — the gate opens. Note the two structural features of the result: the conventional factor in the definition of , and the complete vanishing of the Coriolis term from the conserved integral — present in the equations of motion, absent from the constant.
The same construction with a bead and a motor instead of a Moon and a month is worked numerically below — the physics is identical, only the hardware budget differs.
Limiting cases
| case | result | meaning |
|---|---|---|
| scleronomic constraints, | , conserved | both switches favourable: the textbook conservation law, equation (6) |
| moving constraint, no explicit in | Jacobi-integral regime: cranked wire, CR3BP — conserved but not the energy | |
| explicit in | driven systems: leaks at exactly the drive's power | |
| in the rotating frame | , | the Jacobi integral degrades gracefully into the ordinary energy |
| charged particle, static fields | the magnetic term, linear in , cancels from like any | |
| relativistic free particle | the recipe (1) applied to returns the total relativistic energy |
Worked examples
1 · The bead on a cranked wire, with numbers (confidence builder)
A bead of mass slides without friction on a straight horizontal wire that a motor spins at constant . At the bead is at from the axis, at rest along the wire. Find the conserved quantity, the motion, and the energy the motor has supplied by .
Step 1. Build the Lagrangian. With the wire's angle enslaved to the clock, , the bead's only freedom is : and , so . No explicit appears — was absorbed into the coordinate choice — so is conserved.
Step 2. Sort the kinetic energy: , , . The rotation converted what looks like kinetic energy into a velocity-independent — the rheonomic signature. By equation (5), . At : , and it stays there forever.
Step 3. Solve the motion. The Euler–Lagrange equation is — centrifugal runaway — with solution for this release. At : , , , so and .
Step 4. Audit both meters. and . The conserved quantity checks: ✓. The lab energy is — it started at and has grown by a factor of 27. The motor supplied in a fifth of a second, and its instantaneous power at that moment, , is climbing exponentially. Holding "constant angular velocity" is expensive; the conserved knew that without ever consulting the motor.
2 · Opening the lunar gate (exam level)
A spacecraft sits in a circular parking orbit at 200 km altitude (, inertial speed ). Using the planar Earth-Moon CR3BP with , mean separation , and frame angular rate : (a) find its Jacobi constant; (b) decide whether the Moon is reachable; (c) find the perigee speed at which the gate opens, given .
Step 1. Set up units. Lengths in units of , speeds in units of . The Earth sits at , so the parking orbit is at , i.e. from the Earth. The rotating-frame speed subtracts the frame sweep : units.
Step 2. Evaluate the Jacobi constant (9) in nondimensional form, . The terms: (negligible this deep in the well), , , . So .
Step 3. Compare with the gate. : the zero-velocity surface is a small closed shell around the Earth, and the Moon lies deep inside the forbidden region. No trajectory, however cleverly steered, reaches the Moon on this budget — the verdict required no trajectory integration at all, which is exactly the power of the integral.
Step 4. Open the gate. Increasing perigee speed lowers (speed enters with a minus sign). Setting with all position terms fixed: must absorb units², giving units , i.e. an inertial perigee speed .
Step 5. Sanity-check against known mission numbers. Circular speed there is and parabolic escape is : the Moon gate opens just shy of escaping Earth entirely, which is why every trans-lunar injection in history is a near-escape burn. A real TLI targeting gives — both gates wide open, with margin for the three-dimensional, Sun-perturbed reality.
Origins · 1 minCarl Gustav Jacob Jacobi and how this was discovered
Jacobi was the most formidable pure calculator of nineteenth-century mechanics — a Berlin-born prodigy who taught at Königsberg for seventeen years and made elliptic functions, determinants, and partial differential equations into precision instruments. His 1836 note to the Paris Academy dropped a bombshell into celestial mechanics: the restricted three-body problem, hopeless in the inertial frame, admits an exact integral in the rotating frame — the quantity now bearing his name — even though the energy itself is not conserved there. Characteristically, he found it by trusting the formalism rather than physical intuition; asked what mathematics was for, he famously answered "the honour of the human spirit." The integral seeded G. W. Hill's proof that the Moon cannot wander off, Poincaré's discovery that it is essentially the only integral the problem has, and — a century and a half later — the energy bookkeeping of every low-energy lunar mission. His broader legacy in this course is everywhere: the Jacobi identity, Jacobians, and the Hamilton–Jacobi equation that closes the classical story.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §2.7 (energy function) and §3.3 (Jacobi integral) · Landau & Lifshitz, Mechanics, 3rd ed., §6 (conservation of energy) · Morin, Introduction to Classical Mechanics, Ch. 6 (the Lagrangian method) · Taylor, Classical Mechanics, §7.8 (conservation of energy in Lagrangian mechanics) The key symbolic results are: the master equation derived from the Euler–Lagrange equations; Euler's homogeneous-function theorem giving ; and the rotating-frame Lagrangian yielding . Worked-example numbers on this page (bead: J, J at s, motor input 2.63 J; lunar gate: , , gate-opening perigee speed 10.86 km/s vs escape 11.01 km/s) are illustrative arithmetic recomputed from the boxed formulas with , km, km/s.
Builds on: The Lagrangian Function · The Euler-Lagrange Equations · Generalized Forces and Generalized Momenta · Generalized Coordinates and Configuration Space · Constraints and Their Classification Leads to: Symmetries and Continuous Transformations · Cyclic Coordinates and Conservation of Conjugate Momenta · Hamilton's Principle of Stationary Action
Is h just the Hamiltonian with a different name?
Numerically yes, conceptually almost. The energy function and the Hamiltonian have the same value on any state; they differ in which variables are treated as independent. is obtained from by the Legendre transform — invert for the velocities and substitute — which requires the Hessian to be invertible. The distinction earns its keep later: the whole canonical formalism (Poisson brackets, phase flow, canonical transformations) needs as a function of , while everything in this article works directly in velocity variables. Goldstein keeps the separate symbol precisely to flag the difference in functional dependence.
The bead's energy grew by a factor of 27 in a fifth of a second. Who paid, and is energy conservation violated?
The motor paid, through the constraint force, and global energy conservation is intact. The wire must push the bead sideways (perpendicular to the wire) to keep it co-rotating; that push is a genuine force doing genuine work at rate , which you can check equals exactly. What is remarkable is that the Lagrangian analysis never needed to model any of this: choosing the coordinate along the wire absorbed the drive into the coordinate map, the clock disappeared from , and a conserved emerged that silently accounts for the motor. If the motor instead struggled and sagged, would no longer be , explicit time would enter , and neither nor would be constant.
Why does T0 enter h with a minus sign when it enters the energy with a plus sign?
Trace it through the recipe. The momentum sum weights each homogeneous piece by its degree — — so contributes nothing there. Then the subtracts all of once, including . Net: , , . The physical reading of the flip: is the frame's own sweep energy at your position, and in the conserved bookkeeping it plays the role of a potential well (the centrifugal potential ), not a kinetic asset. That is why zero-velocity curves exist at all: shapes the landscape rather than adding to the budget.
Can h and E both be conserved and still be different numbers?
Yes, and the free particle in a rotating frame is the cleanest case. Describe an interaction-free particle from a turntable rotating at constant : the Lagrangian has no explicit time, so is conserved; meanwhile the inertial energy is trivially conserved too. But , where is the (also conserved) angular momentum about the rotation axis — three constants, two of them independent, no contradiction. This identity holds generally for uniformly rotating frames and is the fastest way to convert between the Jacobi integral and inertial-frame quantities; astronomers use exactly this to relate to a comet's inertial orbital elements in the Tisserand criterion.
Why do astronomers write C = −2h instead of just using h?
Convention with a purpose. Multiplying by (and dividing by mass) turns the zero-velocity condition into the tidy evaluated at — all terms positive, larger meaning less energetic and more confined, which matches the intuition of "climbing out of a well." It also makes landmark values easy to tabulate: for the Earth–Moon system and , so a glance at a spacecraft's against the row of critical values tells you instantly which gates are open. The physics content is identical to ; only the packaging differs, and you should be fluent in both directions of the conversion.
Does a magnetic field break the equality h = T + V, since its potential depends on velocity?
It threatens to, and then doesn't — for a reason you can now diagnose in one line. The electromagnetic Lagrangian has a velocity-linear interaction term, which behaves exactly like a : the momentum sum reproduces it once, the removes it once, and it cancels from entirely. The result is — kinetic plus electric potential energy only. The magnetic field steers the motion (it is very much present in the equations of motion) but leaves no trace in the conserved number, the same disappearing act the Coriolis term performs in the rotating frame. For static fields , so this is conserved — the familiar statement that magnetic forces do no work, upgraded to a Lagrangian theorem.
If L has explicit time dependence, is the energy function useless?
Not at all — equation (2) is then a precision instrument rather than a conservation law. tells you the exact instantaneous power the time dependence injects, which is the starting point for driven-system energetics, parametric amplification, and perturbation theory. Two special regimes are worth knowing. If the drive is periodic, is not conserved but its change over one period can average to zero or pump steadily, which is how parametric resonance is diagnosed. If the drive is slow compared with the internal motion, changes but a subtler quantity — the action integral — is nearly frozen; those adiabatic invariants are treated in their own article later in the track and inherit everything from equation (2).
Is h always the energy in some cleverly chosen frame?
Often, not always — and the counterexamples matter. For a uniformly rotating frame, is a linear combination of inertial conserved quantities, and you may regard it as "the energy in the co-rotating sense." But the theorem is coordinate-fact, not frame-fact: choose deliberately weird generalized coordinates (say, for a system with no physical drift) and you manufacture , pieces and a corresponding that matches no observer's calorimeter, while remaining exactly conserved if lost its clock. The honest statement: is the Noether charge of time-translation invariance in your chosen description — the article on Noether's theorem makes that construction general — and its physical costume depends on how the description was cut.