Skip to content

A solution of the Hamilton–Jacobi equation becomes a method for mechanics when its parameters recover the missing initial data. The decisive condition is an invertible mixed derivative matrix, not simply an expression that satisfies the PDE. We derive that condition, separate a central potential in polar coordinates, and reconstruct a noncircular Kepler orbit. Everything is local on a specified momentum branch until we explain how turning points connect the branches.

Required background. Use canonical brackets and canonical transformations, and differentiate an integral with respect to a parameter. The needed generating-function identity is derived below.

Helpful background. Analytic continuation, branches and monodromy explains why a branch choice is part of an inverse formula.

A complete integral generates trajectories

Section titled “A complete integral generates trajectories”

Let H(q,p,t)H(q,p,t) be a smooth Hamiltonian on a canonical chart of a 2n2n-dimensional phase space, with {qi,pj}=δij\{q_i,p_j\}=\delta_{ij}. A function S(q,α,t)S(q,\alpha,t) satisfies the Hamilton–Jacobi equation if

∂tS+H(q,∂qS,t)=0.\partial_t S+H(q,\partial_qS,t)=0.

Here α=(α1,…,αn)\alpha=(\alpha_1,\ldots,\alpha_n) are independent parameters. We call this a complete integral on the chart when

det⁡(∂2S∂qi∂αj)≠0.\det\left(\frac{\partial^2S}{\partial q_i\partial\alpha_j}\right)\ne0.

This condition lets us invert p=∂qSp=\partial_qS for α\alpha at fixed q,tq,t. It also lets us solve β=∂αS\beta=\partial_\alpha S for qq at fixed α,t\alpha,t. An arbitrary additive constant in SS does not count as one of the nn parameters: it contributes a zero column to this matrix.

The generating-function identity is

dS=∑ipi dqi+∑jβj dαj−H dt.dS=\sum_i p_i\,dq_i+\sum_j\beta_j\,d\alpha_j-H\,dt.

Thus (β,α)(\beta,\alpha) are canonical coordinates and momenta, respectively, and the transformed Hamiltonian is H+St=0H+S_t=0. Both are constant along the physical trajectory. Given q(0),p(0)q(0),p(0), first determine α\alpha from p(0)=Sq(q(0),α,0)p(0)=S_q(q(0),\alpha,0), then compute β=Sα(q(0),α,0)\beta=S_\alpha(q(0),\alpha,0). The implicit equations

β=Sα(q(t),α,t),p(t)=Sq(q(t),α,t)\beta=S_\alpha(q(t),\alpha,t),\qquad p(t)=S_q(q(t),\alpha,t)

reconstruct the solution while the chart stays regular. The relation between the Hamilton–Jacobi equation and this canonical transformation is developed in Tong, §4.7–4.7.1, equations (4.184)–(4.195), pp.122–125 (PDF); our notation uses SS for the time-dependent function.

There is a useful direct check. Differentiating the PDE with respect to qiq_i, and imposing q˙j=Hpj\dot q_j=H_{p_j}, gives

ddtSqi=Sqit+∑jSqiqjHpj=−Hqi.\frac d{dt}S_{q_i} =S_{q_it}+\sum_jS_{q_iq_j}H_{p_j} =-H_{q_i}.

Hence the reconstructed momentum obeys the second Hamilton equation. The mixed-rank condition lets the constants of integration parametrize the initial momenta locally.

Additive separation and its regular domain

Section titled “Additive separation and its regular domain”

For an autonomous Hamiltonian, write

S(q,α,t)=W(q,α)−E(α)t.S(q,\alpha,t)=W(q,\alpha)-E(\alpha)t.

Then H(q,Wq)=E(α)H(q,W_q)=E(\alpha). Additive separation means that, in suitable canonical coordinates,

W(q,α)=∑i=1nWi(qi,α).W(q,\alpha)=\sum_{i=1}^n W_i(q_i,\alpha).

Each summand still depends on all the separation constants. Separation converts the PDE to ordinary equations for Wi′W_i', but the resulting relations must determine the constants independently and have real solutions in the intended region. A square root obtained from the equations carries a sign, and a complex separated solution is not automatically a real mechanical trajectory. See Sklyanin 1995, §2.1, equations (2.3)–(2.9), pp.3–4 (PDF) for the distinction between separated relations and their canonical realization. His displayed classical bracket convention orders momentum before coordinate; all brackets here use the site convention above.

Separation is coordinate dependent. If the ansatz W=∑iWi(qi)W=\sum_i W_i(q_i) fails in one chart, a canonical transformation may still separate the equation. A complete integral gives local trajectories. Compact invariant tori and global action–angle variables require further hypotheses on the fibration.

Central motion in polar canonical coordinates

Section titled “Central motion in polar canonical coordinates”

Consider a particle of mass m>0m\gt0 in the punctured plane, with a smooth radial potential V(r)V(r) and r>0r\gt0. On an angular chart,

H=pr22m+pθ22mr2+V(r),pθ=ℓ.H=\frac{p_r^2}{2m}+\frac{p_\theta^2}{2mr^2}+V(r), \qquad p_\theta=\ell.

The equality pxdx+pydy=prdr+ℓdθp_xdx+p_ydy=p_rdr+\ell d\theta fixes the momenta. In particular pr=mr˙p_r=m\dot r and ℓ=mr2θ˙\ell=mr^2\dot\theta; the angular momentum is not mθ˙m\dot\theta.

Choose parameters (E,ℓ)(E,\ell) and a connected interval where

F(r;E,ℓ)=2m[E−V(r)]−ℓ2r2>0.F(r;E,\ell)=2m[E-V(r)]-\frac{\ell^2}{r^2}\gt0.

For a fixed branch sign σ∈{+1,−1}\sigma\in\{+1,-1\}, let

W(r,θ;E,ℓ)=ℓθ+∫r∗rσF(s;E,ℓ) ds.W(r,\theta;E,\ell) =\ell\theta+\int_{r_*}^{r}\sigma\sqrt{F(s;E,\ell)}\,ds.

The reference point r∗r_* is fixed within a common regular neighborhood of the parameters. Then pr=σFp_r=\sigma\sqrt F and pθ=ℓp_\theta=\ell, so substitution proves the PDE. More strongly,

∂(pr,pθ)∂(E,ℓ)=(m/pr−ℓ/(r2pr)01).\frac{\partial(p_r,p_\theta)}{\partial(E,\ell)} =\begin{pmatrix} m/p_r&-\ell/(r^2p_r)\\ 0&1 \end{pmatrix}.

Its determinant is m/pr≠0m/p_r\ne0. The complete-integral chart covers either inward or outward motion, excluding a radial turning point where pr=0p_r=0.

The two constant derivatives now give actual quadratures:

t+βE=∫r∗rmpr(s) ds,θ−βℓ=∫r∗rℓs2pr(s) ds.\begin{aligned} t+\beta_E&=\int_{r_*}^{r}\frac m{p_r(s)}\,ds,\\ \theta-\beta_\ell&=\int_{r_*}^{r}\frac{\ell}{s^2p_r(s)}\,ds. \end{aligned}

Differentiating the first yields r˙=pr/m\dot r=p_r/m; dividing the second by the first yields θ˙=ℓ/(mr2)\dot\theta=\ell/(mr^2). The derivatives of WW recover both the geometric orbit and the time parametrization. The two constants E,ℓE,\ell alone would leave the starting time and orientation unspecified.

Worked reconstruction: an eccentric Kepler ellipse

Section titled “Worked reconstruction: an eccentric Kepler ellipse”

Set V(r)=−k/rV(r)=-k/r, with k>0k\gt0. For bound noncollision motion take E<0E\lt0, ℓ≠0\ell\ne0, and

0<e=1+2Eℓ2mk2<1.0\lt e=\sqrt{1+\frac{2E\ell^2}{mk^2}}\lt1.

The limiting value e=0e=0 describes circular motion and needs a different radial chart. Set

a=−k2E,b0=ℓ2mk=a(1−e2).a=-\frac{k}{2E},\qquad b_0=\frac{\ell^2}{mk}=a(1-e^2).

Here aa and b0b_0 have length units. With u=1/ru=1/r, the orbit quadrature implies

(dudθ)2=2mEℓ2+2mkℓ2u−u2.\left(\frac{du}{d\theta}\right)^2 =\frac{2mE}{\ell^2}+\frac{2mk}{\ell^2}u-u^2.

Completing the square and fixing the orientation of periapsis gives

r(θ)=b01+ecos⁡(θ−θp).r(\theta)=\frac{b_0}{1+e\cos(\theta-\theta_{\mathrm p})}.

This conic equation is not yet the full solution. For ℓ>0\ell\gt0, introduce a continuously increasing eccentric anomaly η\eta, with

r=a(1−ecos⁡η),n=kma3.r=a(1-e\cos\eta),\qquad n=\sqrt{\frac{k}{ma^3}}.

Substitution in the radial energy equation and continuity through the apses give

t−tp=η−esin⁡ηn.t-t_{\mathrm p}=\frac{\eta-e\sin\eta}{n}.

The derivative (1−ecos⁡η)/n(1-e\cos\eta)/n is strictly positive, so this equation has a unique increasing inverse on the unwrapped real line. Angular reconstruction can use

cos⁡(θ−θp)=cos⁡η−e1−ecos⁡η,sin⁡(θ−θp)=1−e2sin⁡η1−ecos⁡η.\cos(\theta-\theta_{\mathrm p}) =\frac{\cos\eta-e}{1-e\cos\eta},\qquad \sin(\theta-\theta_{\mathrm p}) =\frac{\sqrt{1-e^2}\sin\eta}{1-e\cos\eta}.

Using both sine and cosine, with a continuous angle, avoids the quadrant loss of a lone inverse tangent. For ℓ<0\ell\lt0, reverse angular orientation while retaining increasing physical time.

For a dimensionless check choose m=k=1m=k=1, E=−1/2E=-1/2 and ℓ=3/2\ell=\sqrt3/2. Then a=1a=1, e=1/2e=1/2, the apses are r−=1/2r_-=1/2 and r+=3/2r_+=3/2, and the period is 2π2\pi. At η=π/2\eta=\pi/2,

t−tp=π2−12,r=1,pr=12,θ−θp=2π3.t-t_{\mathrm p}=\frac\pi2-\frac12,\quad r=1,\quad p_r=\frac12,\quad \theta-\theta_{\mathrm p}=\frac{2\pi}{3}.

The energy check is pr2/2+ℓ2/(2r2)−1/r=1/8+3/8−1=−1/2p_r^2/2+\ell^2/(2r^2)-1/r=1/8+3/8-1=-1/2. The nonzero radial momentum checks the full orbit away from a specially stationary point.

The geometric and temporal quadratures above are derived here from the separated Hamiltonian. Tong, §4.5.4, equation (4.146) and the following radial action calculation, pp.111–112 (PDF) provides the same effective radial Hamiltonian and its action integral; the present treatment keeps the integration constants and real branches explicit.

At a simple root of FF, prp_r changes sign. The mechanical solution is smooth, but rr ceases to be a good monotone variable for time and the chosen branch of WW ceases to be one chart. Continue by the inward branch after apocenter and the outward branch after pericenter, matching time and angle continuously. Quadratures, real domains and reconstruction develops that step without silently reversing time.

Can one use a regular Hamilton–Jacobi chart at an apsis? Keep ℓ\ell fixed and take prp_r as the independent variable there. Write Veff=V+ℓ2/(2mr2)V_{\rm eff}=V+\ell^2/(2mr^2). At a simple apsis Veff′V_{\rm eff}' is nonzero, so the energy equation determines a smooth rr as a function of pr,E,ℓp_r,E,\ell. A local radial generating function is −∫r dpr-\int r\,dp_r. Indeed, if ww is the radial summand of WW, then dw=pr drdw=p_r\,dr at fixed parameters and d(w−rpr)=−r dprd(w-rp_r)=-r\,dp_r.

For the eccentric orbit above, Veff′V_{\rm eff}' equals −2-2 at periapsis and 2/92/9 at apoapsis. Implicit differentiation at fixed pr,ℓp_r,\ell gives

∂r∂E∣pr,ℓ=1Veff′(r).\left.\frac{\partial r}{\partial E}\right|_{p_r,\ell} =\frac{1}{V_{\rm eff}'(r)}.

The mixed radial derivative of the new generating function is therefore 1/21/2 and −9/2-9/2, respectively. Both are finite and nonzero. In mechanical terms p˙r=−Veff′\dot p_r=-V_{\rm eff}' has a definite sign through either apsis, so momentum can serve as the local coordinate while rr reverses. At a circular orbit the derivative of the effective potential also vanishes and this repair no longer applies. Stäckel systems extend separation to a family of commuting Hamiltonians.

1. Does an additive constant complete a solution?

Section titled “1. Does an additive constant complete a solution?”

For the free particle on the line, compare S=p0q−p02t/(2m)+cS=p_0q-p_0^2t/(2m)+c with S=αq−α2t/(2m)S=\alpha q-\alpha^2t/(2m). Which parameter gives a complete integral?

Solution. With p0p_0 fixed, Sqc=0S_{qc}=0, so varying cc changes no momentum and is not complete. In the second expression Sqα=1S_{q\alpha}=1. The constant β=Sα=q−αt/m\beta=S_\alpha=q-\alpha t/m is the initial position, while α\alpha is the momentum.

Let V=mr2ω2/2V=mr^2\omega^2/2 and ℓ≠0\ell\ne0. Find the allowed turning radii and the condition for two distinct positive roots.

Solution. Setting y=r2y=r^2 in F=0F=0 gives m2ω2y2−2mEy+ℓ2=0m^2\omega^2y^2-2mEy+\ell^2=0. Thus

r±2=E±E2−ω2ℓ2mω2.r_\pm^2=\frac{E\pm\sqrt{E^2-\omega^2\ell^2}}{m\omega^2}.

Two roots require E>ω∣ℓ∣E\gt\omega|\ell|; equality is circular motion. The same (E,ℓ)(E,\ell) mixed determinant is m/prm/p_r between the roots. It does not become a regular radial chart at the circle.

In the dimensionless eccentric example, take r(0)=1r(0)=1, pr(0)=1/2p_r(0)=1/2 and θ(0)=0\theta(0)=0. Find tpt_{\mathrm p} and θp\theta_{\mathrm p}.

Solution. The outward sign selects η(0)=π/2\eta(0)=\pi/2, rather than 3π/23\pi/2. Hence tp=−(π/2−1/2)t_{\mathrm p}=-(\pi/2-1/2) and θp=−2π/3\theta_{\mathrm p}=-2\pi/3 modulo 2π2\pi. Ignoring the sign of prp_r would select a different trajectory phase despite the same radius and constants E,ℓE,\ell.

The separation and reduction checks verify the mixed-derivative rank and an eccentric Kepler orbit’s energy, angular momentum and acceleration. Run the file with Python 3, NumPy, SymPy and mpmath.

  • Sklyanin, Evgeny K. “Separation of Variables. New Trends.” Progress of Theoretical Physics Supplement 118 (1995), 35–60. DOI. Author version, PDF.
  • Tong, David. Classical Dynamics, Chapter 4, “The Hamiltonian Formalism.” University of Cambridge lecture notes, undated author-hosted chapter. PDF. Locators use its printed pages.