Hamilton-Jacobi Equation
In the winter of 1925–26, Erwin Schrödinger went looking for a wave equation and started from a piece of pure classical mechanics: the Hamilton-Jacobi equation. That is how central this object is — it is simultaneously the endpoint of the canonical-transformation program and the doorstep of quantum theory. The idea behind it is the boldest move in mechanics. Instead of integrating coupled equations of motion, demand a canonical transformation so radical that the new Hamiltonian vanishes identically. In the new coordinates nothing moves: every and every is frozen. All the dynamics gets compressed into the transformation itself, and the condition that such a transformation exist is a single first-order partial differential equation for its generating function — the Hamilton-Jacobi equation. The audacity pays twice. Practically, a complete integral turns the entire solution of the mechanics problem into differentiation and algebra: the constants are the new momenta, their conjugates are the other constants, and no further integration is ever needed. Conceptually, the level surfaces propagate through configuration space like wavefronts, with trajectories threading them as rays — Hamilton's optical-mechanical analogy, the very bridge Schrödinger crossed. You arrive here with the type-2 generating machinery and Hamilton's principal function already in hand; this article welds them into the equation itself, proves the recipe extracts the true motion, and solves the harmonic oscillator without ever touching its equation of motion.
- The Hamilton-Jacobi (HJ) equation is the single first-order nonlinear PDE for a generating function that transforms the dynamics into one in which all new coordinates and momenta are constants.
- You need a complete integral — a solution carrying nontrivial constants with — not the general solution; the constants become the new momenta.
- Jacobi's theorem guarantees the recipe: setting and reproduces exactly the trajectories of Hamilton's equations, by algebra alone.
- Along the actual motion is the classical action ; its level surfaces move through configuration space as wavefronts with trajectories as rays.
- When is time-independent, splits off the time; the reduced equation for Hamilton's characteristic function and its separable solutions are the gateway to action-angle variables and integrability.
- Key idea: find a canonical transformation that makes the new Hamiltonian zero. The generating function that does this satisfies ; its solution turns the equations of motion into trivial statements that the new coordinates and momenta are constant.
Where this lives today
The HJ equation never retired; it changed industries. Its modern descendant, the Hamilton-Jacobi-Bellman equation of optimal control, is the same "one function generates all trajectories" idea with the action replaced by a cost-to-go: the value function of an optimal-control problem obeys a first-order nonlinear PDE that is formally an HJ equation with a minimization inside the Hamiltonian. Every trajectory-optimization stack — rocket-landing guidance, robot motion planning, autonomous-vehicle planners, and the continuous-time limits of reinforcement learning — is solving a Hamilton-Jacobi problem, and the 2020s wave of neural PDE solvers has made "learning the value function" synonymous with learning . Level-set methods in computational geometry propagate interfaces with HJ equations too: the same wavefronts, now tracking tumor boundaries in medical imaging or flame fronts in engines. In physics proper, the equation remains the semiclassical workhorse. Attosecond spectroscopy and strong-field ionization are analyzed with trajectories carrying eikonal phases ; gravitational-wave source modeling uses HJ separability of geodesics in the Kerr geometry (Carter's constant is a separation constant of exactly the kind this chapter studies); and in 2026 the semiclassical propagators inside molecular-dynamics codes still evaluate along classical paths to interpolate quantum amplitudes between them.
The physical picture
Picture the function painted over configuration space, and watch its level surfaces . They form a family of moving fronts, and the momentum at any point is the gradient — perpendicular to the local front. Particle trajectories are the rays that pierce the fronts at right angles, exactly as light rays pierce optical wavefronts. The HJ equation is nothing but the propagation law of these mechanical wavefronts. This is not a metaphor bolted on afterwards: Hamilton derived the mechanics and the optics from the same variational structure in the 1830s, and Schrödinger ran the analogy in reverse to guess what "mechanical wave optics" should look like.
The second picture is bookkeeping. Any mechanics problem hides constants of integration — the initial conditions. Hamilton-Jacobi theory is an accounting scheme that makes all explicit coordinates of a frozen phase space: choosing a complete integral packages of them as the new momenta , and differentiation produces the other as . The flow that looks complicated in becomes a single motionless point in :
Be honest about when this wins. Trading ordinary differential equations for one nonlinear PDE is, in general, a bad trade — PDEs are harder. The method earns its keep in the cases where the PDE falls apart additively, , each piece solvable by a one-dimensional integral. That separability is the hidden hypothesis behind every HJ success story, is governed by its own theory (the Staeckel conditions, next in this chapter), and is far from generic — it is, in fact, the classical definition of an integrable system.
The equation and its machinery
The derivation is a three-line argument sitting on the type-2 generating machinery you already own. Recall from the canon of generating-function theory that a type-2 function generates a canonical transformation through , , and transforms the Hamiltonian by . Write for the we seek and demand the most extreme simplification imaginable — . Substituting the generating relations into that demand yields the master equation:
where: — the Hamiltonian, with every momentum replaced by ; — Hamilton's principal function, the unknown. Read its anatomy: one equation, first order, in the variables , and nonlinear whenever is quadratic in the momenta — for it reads , with the characteristic squared gradient of an eikonal equation. Nothing about the system was assumed: every Hamiltonian has an HJ equation. What is special is when it can be solved. What counts as "solved" is the next subtlety, and it is where most first encounters go wrong. A first-order PDE has a general solution involving an arbitrary function — useless here. What the method needs is a complete integral:
where: — independent nontrivial constants of integration; — an additive constant, physically irrelevant since only derivatives of enter the theory. The determinant condition is not pedantry: it certifies that the genuinely deform the solution in independent directions, and it is exactly the invertibility you need in the next step. The are then identified with the new momenta — a free choice, made once, that fixes the transformation. With a complete integral in hand, the motion is extracted with no further integration:
where: — the new constant coordinates , fixed by initial conditions along with the . The first set of equations contains explicitly and — thanks to the determinant condition in (2) — can be inverted for ; the second set then evaluates the momenta along the way. That this algebra reproduces the true dynamics is Jacobi's theorem, proved below; it is the license for the whole enterprise. Two structural facts complete the toolkit. First, along the actual motion the principal function is the classical action: , so evaluated on the trajectory — the full story of what that means lives in the companion article on Hamilton's principal function. Second, whenever has no explicit time dependence, energy is conserved and the time variable splits off linearly:
where: — Hamilton's characteristic function; — the conserved energy, serving as one of the 's. The reduced, time-free PDE for is the time-independent HJ equation, and it is the workhorse: separation of variables, action variables , and the frequencies all grow out of it. Each of those has its own article later in this chapter; here we only note that (4) is where they plug in.
Which equation answers which question
| you want | use | notes |
|---|---|---|
| the master PDE | , eq. (1) | valid for any , time-dependent or not |
| what "a solution" must mean | complete integral, eq. (2) | constants + non-degeneracy; NOT the general solution |
| the trajectory | , invert for , eq. (3) | pure algebra; Jacobi's theorem is the warrant |
| the momenta | , eq. (3) | evaluate along |
| conserved-energy systems | , eq. (4) | hands off to the time-independent HJ equation |
| a periodic degree of freedom | hands off to action-angle variables |
We derive equation (1) by demanding that a type-2 generating function produce a new Hamiltonian that is identically zero. The strategy is minimal: quote the three transformation rules that the type-2 machinery already gives us, impose , and substitute. The one point requiring genuine care is what the demand buys: must hold as an identity in the new variables, which is what freezes every and — a weaker demand (like constant) freezes fewer things and leads to the characteristic-function variant instead.
Step 1. Let be a type-2 generating function. From the canon of generating-function theory, it defines a canonical transformation through
Why type 2: we want the new momenta to end up being the constants , so the generating function should have the old coordinates and NEW momenta as its natural arguments — exactly the type-2 signature.
Step 2. Impose the design goal . Hamilton's equations in the new variables then read
Why this is the boldest possible choice: every canonical variable is now a constant of the motion. The dynamics has not disappeared — it has been shoved entirely into the time dependence of the transformation generated by .
Step 3. Write out using the first and third rules of Step 1. Since and every inside equals ,
Why this is now a PDE for alone: the momenta have been eliminated in favor of derivatives of the unknown function — one scalar equation in the independent variables .
Step 4. Count constants to see what a useful solution must carry. A first-order PDE in variables admits solutions with constants of integration; one is purely additive (only derivatives of appear anywhere), leaving meaningful constants — precisely enough to serve as the new momenta . The non-degeneracy makes that identification legitimate. Note: setting instead constant for conservative systems yields the characteristic-function route , confirming the two standard forms are the same demand at different strengths.
Go deeper · Derivation B · 1 minJacobi's theorem — the algebraic recipe really solves the dynamics
The recipe of equation (3) makes a strong claim: differentiate a complete integral, set the derivatives equal to constants, invert — and the functions , you obtain satisfy Hamilton's equations exactly. We prove it directly. The strategy is to differentiate the defining relations with respect to time along the candidate motion and against the HJ equation, then use the non-degeneracy condition to cancel the resulting linear systems. Watch the determinant condition do real work in both halves — without it the argument (and the method) genuinely fails.
Step 1. Differentiate the HJ equation — an identity in — with respect to at fixed :
Why enters only through : the Hamiltonian has no idea the constants exist; they live inside the solution, so the chain rule routes every -dependence through the second derivatives of .
Step 2. Differentiate the candidate relation totally with respect to time along the motion :
Step 3. Subtract Step 1 from Step 2. The mixed time terms cancel, leaving
Why this forces the first Hamilton equation: the matrix is nonsingular by the completeness condition (2), so the only vector it annihilates is zero — hence for every .
Step 4. Now differentiate the HJ identity with respect to at fixed :
Step 5. Differentiate the momentum relation totally with respect to time, using from Step 3:
Step 6. Compare Steps 4 and 5: the double sums are identical, so
which is the second Hamilton equation. The recipe is vindicated: any complete integral of one PDE encodes every trajectory of the -dimensional flow, unpacked by differentiation and inversion alone. Both Hamilton equations emerged with the correct signs, and each half of the argument visibly consumed the non-degeneracy of .
Go deeper · Derivation C · 1 minSolving the harmonic oscillator with no equation of motion
We solve end-to-end by the HJ method: separate off time, integrate one quadrature, apply the -recipe, and recover the familiar sinusoid — never once writing . The strategy showcases the standard workflow for any conserved-energy problem: , solve for , and differentiate with respect to the constant before doing the harder integral — the step ordering that saves labor is half the lesson here.
Step 1. is time-independent, so write with the energy as the single constant . The time-independent HJ equation reads
Step 2. Solve algebraically for the gradient — this is the momentum function:
Why we do not integrate yet: the recipe needs , and differentiating under the integral sign first produces a much easier integral than itself (which is an area integral giving arcsine plus a square-root term).
Step 3. Apply the recipe , differentiating under the integral sign:
Step 4. Evaluate the quadrature. With the integral is a standard arcsine:
Step 5. Invert for the trajectory and read off the momentum:
Why this is the complete answer: amplitude fixed by the constant , phase by the constant — the two initial conditions in their HJ costume. The pair automatically satisfies , a free consistency check.
Step 6. Harvest the action variable while the machinery is warm. The orbit is the phase ellipse of area , so
Why this matters downstream: the frequency emerged from pure differentiation of — the pattern that action-angle theory industrializes for every separable system. *The result reproduces with ; the check matches the known SHO phase-space area.*
A glimpse of wave mechanics
The optical analogy is quantitative, and one substitution shows it. Write a quantum wavefunction in polar form, , insert it into the Schrödinger equation, and expand in powers of : at order the phase obeys exactly the Hamilton-Jacobi equation , while order makes the amplitude flow like a conserved fluid with velocity — the WKB transport equation. Classical mechanics is the eikonal (geometrical-optics) limit of quantum mechanics, with as the phase and trajectories as the rays. The single-valuedness of around a closed orbit then forces — Bohr-Sommerfeld quantization, born directly from the HJ structure. The full derivation, the quantum potential it exposes, and its semiclassical consequences belong to the connection-to-Schrödinger article at the end of this chapter; here it is enough to see why Schrödinger reached for this equation first.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| time-independent | time separates; solve for the characteristic function | |
| fully separable | each coordinate reduced to a quadrature — the integrable, Liouville-Arnold case | |
| cyclic coordinate | conserved ; a cyclic coordinate's share of is linear — separation at its most trivial | |
| free particle | the complete integral is exact plane-wave phase; fronts advance at , half the particle speed | |
| eikonal limit of QM | , | Schrödinger reduces to HJ at leading order; WKB amplitude at next order |
Worked examples
1 · A stone in gravity, by wavefront (confidence builder)
A stone of mass moves vertically in uniform gravity, , with total energy . Solve by Hamilton-Jacobi: find , the maximum height, and the speed at . (.)
Step 1. Time-independent problem: with , so .
Step 2. Apply the recipe before integrating: . The integral evaluates to , so .
Step 3. Invert: , i.e. — the parabola of free fall, produced by algebra. The momentum follows as , linear in time as it must be.
Step 4. Numbers. Maximum height (where , at ): . Speed at the ground: , so . Cross-check: ✓.
2 · The quantum fingerprint of a classical calculation (exam level)
The HCl molecule vibrates like a harmonic oscillator with angular frequency and reduced mass . Using the HJ solution of the oscillator, (a) find the action variable demanded by Bohr-Sommerfeld quantization in the ground state, (b) the corresponding classical energy, and (c) the classical amplitude of that orbit. (.)
Step 1. From the HJ derivation, the oscillator's action variable is . Bohr-Sommerfeld with demands .
Step 2. Energy: — the zero-point energy of the molecular vibration, and exactly because the semiclassical spectrum happens to be exact for the oscillator.
Step 3. Amplitude from the HJ trajectory : the prefactor is the amplitude, . The denominator is (a chemically sensible bond stiffness), so — about , roughly 8% of the 0.127 nm bond length.
Step 4. The moral: a classical PDE, solved once, delivered the quantization-ready invariant , the correct zero-point energy scale, and the physical amplitude of a molecular vibration. This is HJ theory functioning as the load-bearing bridge between mechanics and quantum theory — the reason it is the final classical formalism before wavefunctions.
Origins · 1 minCarl Gustav Jacob Jacobi and how this was discovered
Jacobi took Hamilton's optical-mechanical papers of 1834–35 — which Hamilton himself regarded chiefly as a triumph of formal optics — and turned them into a working method for dynamics. Where Hamilton required his principal function to satisfy two PDEs simultaneously, Jacobi saw that a single equation suffices, that any complete integral (not some canonical "true" solution) unlocks the motion, and he proved the theorem that bears out the recipe. His Königsberg lectures of 1842–43, published posthumously as the Vorlesungen über Dynamik, made the method a discipline: there he separated the two-center problem, invented elliptic coordinates for mechanics, and solved geodesics on the ellipsoid — a problem thought hopeless. A prodigious calculator in an era of great ones, Jacobi believed mathematics should be pursued "for the honor of the human spirit" — and his refinement of Hamilton's idea became, ninety years later, the exact scaffold on which Schrödinger hung wave mechanics.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., Ch. 10 · Landau & Lifshitz, Mechanics, 3rd ed., §47-48 · Morin, Introduction to Classical Mechanics, Ch. 15 (appendix) · Taylor, Classical Mechanics, Ch. 13 · Arnold, Mathematical Methods of Classical Mechanics, §46-47 Key results to keep in mind: the HJ equation follows from demanding for a type-2 generating function; the SHO solution reproduces and ; the eikonal expansion of the Schrödinger equation yields the HJ equation at and the continuity equation at ; and Bohr-Sommerfeld gives for the oscillator. Worked-example numbers on this page (, for the stone; , for HCl) are illustrative arithmetic computed from the boxed formulas.
Builds on: Generating Function to a Trivial Hamiltonian · Hamilton's Principal Function · Liouville Integrable Systems Leads to: Time-Independent Hamilton-Jacobi Equation · Hamilton's Characteristic Function · Separation of Variables in Hamilton-Jacobi Theory · Action-Angle Variables · Staeckel Conditions for Separability
Isn't trading 2n ODEs for one nonlinear PDE a terrible deal? PDEs are harder than ODEs
Yes — in general it is a terrible deal, and admitting that is the beginning of wisdom about this method. A generic nonlinear first-order PDE in many variables is hopeless. The trade wins in exactly one circumstance: when the PDE separates additively, , so that each piece satisfies a one-variable ODE solvable by quadrature. Separability is rare and precious — it is essentially the definition of a classically integrable system, and the Staeckel conditions later in this chapter tell you when orthogonal coordinates achieve it. The honest scoreboard: for separable systems HJ is the most efficient solution technology ever built; for non-separable ones it is a conceptual (still profound) reformulation, and you integrate numerically like everyone else.
What exactly is the difference between a complete integral and the general solution of the HJ equation?
The general solution of a first-order PDE depends on an arbitrary function — an infinite-dimensional family. A complete integral depends on just constants (plus the trivial additive one), with the non-degeneracy . It is a much smaller object, and it is all you need: Jacobi's theorem shows every trajectory of the system is recovered from it by differentiation and inversion. In fact the general solution can be reconstructed from a complete integral by envelope constructions, so nothing is lost. The practical rule: hunt for constants, verify the determinant, stop. Demanding more generality than that is the most common way to convince yourself the method is unusable.
Do the alphas have to be the energy and things like it, or can I choose them freely?
Freer than you might think, and the freedom is the point. Any independent constants parametrizing a complete integral are legitimate new momenta — energy, an initial momentum, an angular momentum, a separation constant with no obvious name. Different complete integrals of the same HJ equation give different but equally valid frozen coordinate systems, related to each other by canonical transformations among the constants. What you must NOT do is change interpretation midstream: once you pick the complete integral, the meaning of each is fixed by that choice (e.g. with in one dimension, is minus the time of passage through a reference point). The action variables are simply the canonically best choice of 's for periodic systems — best because their conjugates advance linearly in time.
Where does the HJ equation come from if I believe in the action principle rather than canonical transformations?
From differentiating the action with respect to its endpoint. Define as the action evaluated along the true trajectory arriving at position at time (from fixed initial data). Endpoint variation of the action gives and — and inserting the first into the second is literally the HJ equation: . So the equation is the statement "the action-as-function-of-endpoint has momentum for its space gradient and minus energy for its time derivative." The canonical-transformation derivation and this variational one are two roofs over the same room; the companion article on Hamilton's principal function builds the second route in full.
Why does S equal W minus Et only for time-independent Hamiltonians, and what breaks otherwise?
The ansatz solves the HJ equation only if plugging it in removes all explicit time dependence: requires to contain no . If depends on time — a driven oscillator, say — energy is not conserved, no single constant exists, and time refuses to separate; you must attack the full -variable PDE or find a cleverer separation (sometimes a time-dependent canonical pre-transformation restores separability, e.g. moving to an oscillating frame). The split, when valid, has a clean reading: the stationary fronts sit in configuration space while the moving fronts sweep across them at rate — the classical shadow of a stationary quantum state's phase rotating at frequency .
Is S a physically measurable field, or just bookkeeping?
Classically, itself is gauge-like — only its derivatives are physical (, ), and the additive constant is meaningless. But differences of between paths are measurable the moment quantum mechanics enters, because is a phase. The Aharonov-Bohm effect, matter-wave interferometry, and every semiclassical interference pattern measure between alternative classical paths in units of . So the honest answer is layered: within pure classical mechanics is an extraordinarily efficient bookkeeping device; the moment is switched on, it is promoted to the phase of the wavefunction, and interference makes it experimentally visible. That promotion is why the eikonal limit works and why HJ theory, uniquely among classical formalisms, survives the quantum transition intact.
The HJ equation is one equation, but Hamilton's equations are 2n. Where did the information go?
Into the function's arguments. A solution of the single PDE is not one function of and — it is an -parameter family of them, and the completeness condition guarantees the family is genuinely -dimensional. Each member of the family carries a Lagrangian submanifold's worth of trajectories (all initial positions with momenta at ), and sweeping the 's covers all of phase space. So the counting balances: constants in the family plus constants from the extraction recipe equals the initial conditions of the ODE system. The PDE looks smaller only because a function of variables is a vastly bigger object than a finite list of ODE solutions.
Why do wavefronts of S move at a different speed than the particles?
Because front speed and ray speed answer different questions. For a free particle with , a surface of constant satisfies , so the front advances at — half the particle velocity . In general , while the particle moves at : their product is (up to the potential's offset), not their ratio one. This is precisely the phase-velocity/group-velocity split of wave optics — fronts are phase, particles are group — and de Broglie leaned on exactly this classical fact when assigning matter waves a phase velocity exceeding without contradiction. Seeing it appear already in pure mechanics is one of the quiet delights of HJ theory.