2.1.17 · D2Analytical Mechanics

Visual walkthrough — Hamilton-Jacobi equation

3,226 words15 min readBack to topic

Step 0 — The stage: what "phase space" and a "trajectory" mean

Before any equation, fix the picture in your head.

  • A mechanical system with one degree of freedom has a position (where the thing is) and a momentum (how much motion it carries: mass times velocity for a simple particle).
  • Plot horizontally and vertically. This plane is phase space. One dot is the complete state of the system right now.
  • As time flows, the dot moves, tracing a curve — the trajectory.

Figure s01 — Phase space and one trajectory. The blue curve is the history; the yellow dot is the state right now.

Figure — Hamilton-Jacobi equation

Look at the blue curve: the dot at each instant is the system. Newton would push this dot step by step. We are going to find a change of coordinates that freezes the dot in a new frame.


Step 1 — The wish: coordinates where nothing moves

WHAT. We introduce brand-new coordinates that describe the same physics, chosen so that in these new axes the trajectory is a single stationary point — it does not move at all.

WHY. If and (recall the dot means , the time rate of change), then and are just fixed numbers. The motion is then read off by pure algebra: no differential equation left to solve. This is the entire dream of Hamilton-Jacobi.

PICTURE. Same trajectory, two coordinate grids. In the old grid the state sweeps a curve; in the new grid it is one frozen dot.

Figure s02 — Old moving vs new frozen. The white arrow is the canonical map that sends the sweeping curve to a single green dot.

Figure — Hamilton-Jacobi equation

  • — old position and momentum, the moving dot.
  • — new position and momentum; our goal is that these are constants.

The question of the whole chapter: which change of variables achieves this, and is it allowed?


Step 2 — "Allowed" means canonical: the rulebook we must obey

WHAT. Not every change of variables is legal. A legal one is a canonical transformation — it keeps the shape of the laws of motion intact.

WHY. Hamilton's Equations read

  • — the time rates of change of position and momentum (dot = ).
  • — the Hamiltonian, the system's energy written as a function of and .
  • — "how fast changes if I nudge while holding fixed"; it turns out to equal .
  • The minus sign in the second equation is what makes phase-space flow swirl rather than spread — it is the signature of Hamiltonian dynamics.

A canonical transformation is precisely one after which the new variables obey the same-shaped equations with some new energy : is the new Hamiltonian (playfully, the "Kamiltonian").

PICTURE. Both grids carry the same swirl pattern. A canonical map is a bendy re-labelling of phase space that never breaks the swirl.

Figure s03 — The swirl is preserved. Each blue arrow is the flow ; a canonical map must not tear this pattern.

Figure — Hamilton-Jacobi equation

Step 3 — The bridge between old and new: a generating function

WHAT. How do we actually specify a canonical map? Through a single generating function. We use the type-2 kind, — it depends on the old position and the new momentum .

WHY type-2 and not another? We want the new momenta to be the constants we froze in Step 1. A type-2 function treats as an independent input, so it is the natural tool to "design constant new momenta."

WHERE the three relations come from. A canonical transformation can be built by demanding that the old and new descriptions give the same action principle. In the action principle the old variables contribute and the new ones contribute . These two may differ only by the total time-derivative of some function — otherwise the variational principle would change and the map would not be canonical. Choosing that function to depend on (type-2), the bookkeeping is cleanest if we add , which gives Expand and match the coefficients of the independent rates and (and the leftover constant piece). Matching gives ; matching gives ; the leftover gives :

Read each one as a sentence:

  • — the old momentum is the slope of as you slide (holding fixed). (This is the relation that will let us hunt momenta as derivatives.)
  • — the new coordinate is the slope of as you slide the new momentum.
  • — the new energy equals the old energy plus how fast itself changes in time. (The explicit-time term is the knob we will exploit.)

WHEN is this a genuine transformation? For these slope relations to be invertible — so that from we can actually recover and vice versa — the second-derivative matrix (the Hessian) of must not degenerate: If this determinant were zero, the map would collapse dimensions and fail to be a bona-fide canonical transformation. We assume it holds.

PICTURE. sits like a landscape above the plane; its slopes in the two directions emit the values and , while its slope in time feeds the extra term into .

Figure s04 — The -landscape emits and . Slope in the -direction gives ; slope in the -direction gives .

Figure — Hamilton-Jacobi equation

Step 4 — The killer demand: force the new energy to vanish

WHAT. We now make the boldest possible choice: demand

WHY. Feed into the new Hamilton's equations from Step 2:

  • — the new coordinate never changes (dot = ).
  • — the new momentum never changes.

Both are constant — exactly the frozen dot of Step 1. We are buying trivial dynamics by imposing the strongest condition available on . This is not a random trick; is the mathematical spelling of "make the new variables stand still."

PICTURE. A flat energy surface ( over all of new phase space) means zero slope in every direction, so both flow rates die — the dot is nailed in place.

Figure s05 — Flat new energy freezes the dot. With everywhere, every slope of vanishes, so .

Figure — Hamilton-Jacobi equation

Step 5 — Assemble the equation: substitute the rulebook into

WHAT. Take the type-2 relation for and set it to zero:

Now use the other type-2 relation, , to eliminate every momentum inside . Wherever asked for , we hand it instead:

Term by term:

  • — the energy function, now fed the derivative of in the momentum slot.
  • — stands in for the old momentum .
  • — the time-slope of , which used to be the extra piece of ; setting moved it here.

WHY this is a win. We started with a system of coupled ordinary differential equations (Hamilton's equations). We traded them for one PDE. That trade is only worthwhile because the PDE often separates (Step 7).

PICTURE. A flow chart: the two type-2 relations pour into the box and out drops the HJ equation.

Figure s06 — Assembling the HJ equation. Both type-2 relations feed the demand ; the HJ PDE drops out.

Figure — Hamilton-Jacobi equation

Step 6 — Reading the meaning: is the action

WHAT. First, name the actor we are about to meet.

Now follow along the real trajectory and compute its total time rate of change. The chain rule gives

(The term drops out here because is a constant along the motion, so .) Now substitute the two facts we already proved:

  • (Step 3),
  • (Step 5, rearranged),

so

  • — momentum times velocity ().
  • — this combination is exactly the Lagrangian just defined.

Integrate: .

WHY this matters. is not an abstract convenience — it is the action, the very quantity minimized in Hamilton's principle. The HJ equation is the action obeying its own local law.

PICTURE. As the dot advances along the blue trajectory, accumulates the area ; the growth rate of at every instant is .

Figure s07 — accumulates the action. The shaded area under is the growing value of ; its slope at each instant equals .

Figure — Hamilton-Jacobi equation

Step 7 — Degenerate/simplifying case: when ignores time

WHAT. If has no explicit , energy is conserved. We separate variables by guessing the split

  • — the characteristic function, carrying all the -dependence.
  • — a clean straight-line-in-time piece; is the conserved energy.
  • Then automatically.

WHY. Substituting into the HJ equation, the two terms peel apart: The time has vanished; we are left with an ordinary differential equation for . This only works because was time-blind — that is the degenerate condition.

PICTURE. as a surface over : a fixed shape sliding downhill at constant rate as time increases — a rigid ramp translating in .

Figure s08 — Rigid ramp sliding in time. The shape is fixed; increasing just lowers the whole curve at constant rate .

Figure — Hamilton-Jacobi equation

Step 8 — Sanity check on the simplest system: the free particle

WHAT. Let (a mass with no forces). Its position is still our one coordinate — no new letter, the free particle simply lives on the -line.

Step-through (each move justified):

  1. HJ: replace by .
  2. Separate : energy conserved, peel off time. Here .
  3. Integrate: , so .
  4. Take as the new momentum. The new coordinate is constant: Here is simply the integration constant — it is the fixed value the constant takes, and it has the units of a time, so we name it ; physically is the instant at which the particle passes (its initial-time offset).
  5. Solve for : uniform velocity , and at the particle is at . ✅

WHY. This is the humblest possible test: a free particle must move in a straight line at constant speed, and HJ reproduces exactly that. The machinery is trustworthy.

PICTURE. In old space, marches linearly with ; in new coordinates the pair is a single frozen dot — the promise of Step 1 delivered.

Figure s09 — Free particle recovered. The blue line is at constant speed; the red dot marks where ; the green square is the frozen new state.

Figure — Hamilton-Jacobi equation

The one-picture summary

Everything above collapses into a single arrow diagram: from the two type-2 relations, through the demand, to the HJ equation, and out to frozen constants plus the recovered trajectory.

Figure s10 — The whole derivation in one picture. Type-2 relations → demand → HJ PDE → ( is the action) → frozen → trajectory by algebra.

Figure — Hamilton-Jacobi equation
Recall Feynman retelling — the whole walk in plain words

You have a dot wandering through a swirl (phase space). You wish for a magic pair of goggles that makes the dot sit perfectly still. The goggles are a canonical re-labelling — allowed only if it keeps the swirl intact. To build them you invent one landscape function : its slopes automatically tell you the old momentum () and the new position (), as long as the landscape is not degenerate (its curvature determinant is non-zero). Then you make the boldest wish possible: let the new energy be exactly zero. Zero energy means zero slope everywhere, means the dot can't move — frozen, just as desired. Writing that wish out, "old energy plus the time-slope of equals zero," and swapping every momentum for a slope of , gives you one equation: the Hamilton-Jacobi equation. The new momentum just rides along as a dial you set. And the punchline: that landscape turns out to be the action you already knew — its growth rate is the Lagrangian . Solve one PDE, follow the frozen constants back, and the whole motion drops out by algebra. That is the magic map that walks the maze for you.

Recall Rapid self-test
  • In new coordinates, what makes ? ::: The demand , since and .
  • Which type-2 relation turns into a PDE? ::: .
  • As the HJ PDE is solved, what role does play? ::: A held-fixed parameter (a dial); each value gives one solution, and becomes the conserved new momentum.
  • What condition lets the generating function define a real canonical map? ::: A non-degenerate Hessian, .
  • What is physically? ::: The action along the real path, with .
  • When does exist and what equation does it solve? ::: When is time-independent; .
  • Free-particle answer for , and what is ? ::: ; is the integration constant, the instant the particle passes .

Where next: Action-Angle Variables apply this machinery to periodic motion, and the Schrodinger Equation is what HJ becomes when you let live inside an exponential.