Mathematical Methods Handbook

Variational principles in mechanics

Hamilton's principle, symmetries and conservation laws, and the canonical formalism.

In this chapter 4

Tick a unit to add it to your PDF basket.

  1. Hamilton's principle and its consequences

Hamilton's principle and its consequences

4

Application

Hamilton's principle

Adapted

Newton's equations for particles moving in a potential are exactly the Euler–Lagrange equations of the action, the time integral of kinetic minus potential energy, and they keep this form in any generalized coordinates, including moving ones.

Prerequisites: Several functions and higher derivatives

DefinitionAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §21, pp. 83–84; Arfken, Weber & Harris (2013), §22.2, pp. 1097–1098

Consider NN point particles with masses m1,…,mN>0m_1, \dots, m_N > 0 and positions r1,…,rN∈R3r_1, \dots, r_N \in \mathbb{R}^3. Collect the positions into one configuration vector x=(r1,…,rN)∈R3Nx = (r_1, \dots, r_N) \in \mathbb{R}^{3N}.

  • The forces come from a potential if there is a C2C^2 function V(t,x)V(t, x) on R×G\mathbb{R} \times G, with G⊂R3NG \subset \mathbb{R}^{3N} open, such that the force on particle kk is Fk=−∇rkV(t,x)F_k = -\nabla_{r_k} V(t, x). Time dependence of VV is allowed.
  • The kinetic energy is T(x˙)=∑k12mk∣r˙k∣2T(\dot x) = \sum_{k} \tfrac12 m_k |\dot r_k|^2 and the Lagrangian is L(t,x,x˙)=T(x˙)−V(t,x)L(t, x, \dot x) = T(\dot x) - V(t, x).
  • The action of a C2C^2 path x:[t0,t1]→Gx : [t_0, t_1] \to G is the number
S[x]=∫t0t1L(t,x(t),x˙(t)) dt.\mathcal{S}[x] = \int_{t_0}^{t_1} L\bigl(t, x(t), \dot x(t)\bigr)\, dt .
  • A path xx is a stationary path of the action if ddεS[x+εh]∣ε=0=0\frac{d}{d\varepsilon}\mathcal{S}[x + \varepsilon h]\big|_{\varepsilon = 0} = 0 for every C2C^2 function h:[t0,t1]→R3Nh : [t_0, t_1] \to \mathbb{R}^{3N} with h(t0)=h(t1)=0h(t_0) = h(t_1) = 0.
  • Generalized coordinates are given by a C2C^2 map X:R×U→GX : \mathbb{R} \times U \to G, U⊂R3NU \subset \mathbb{R}^{3N} open, such that for each fixed tt the map q↦X(t,q)q \mapsto X(t, q) is injective and its Jacobian matrix Xq=(∂Xi/∂qj)X_q = (\partial X_i / \partial q_j) is invertible. The coordinates may move with time (a rotating frame, for instance). A path x(t)=X(t,q(t))x(t) = X(t, q(t)) has velocity x˙=Xt+Xqq˙\dot x = X_t + X_q \dot q, and its Lagrangian in the new coordinates is
L~(t,q,q˙)=L(t, X(t,q), Xt(t,q)+Xq(t,q) q˙).\tilde L(t, q, \dot q) = L\bigl(t,\ X(t, q),\ X_t(t, q) + X_q(t, q)\,\dot q\bigr).
Application(Hamilton's principle)AdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §21, Theorem, pp. 84–85; Arfken, Weber & Harris (2013), §22.2, eqs. (22.37)–(22.38), p. 1098

Let VV be C2C^2 and let x:[t0,t1]→Gx : [t_0, t_1] \to G be a C2C^2 path. The following are equivalent.

  1. xx obeys Newton's equations mkr¨k=−∇rkV(t,x)m_k \ddot r_k = -\nabla_{r_k} V(t, x) for k=1,…,Nk = 1, \dots, N and all t∈[t0,t1]t \in [t_0, t_1].
  2. xx is a stationary path of the action S\mathcal{S}.
  3. For one, and then for every, system of generalized coordinates with x(t)=X(t,q(t))x(t) = X(t, q(t)) and qq of class C2C^2, Lagrange's equations hold:
ddt∂L~∂q˙j−∂L~∂qj=0(j=1,…,3N).\frac{d}{dt}\frac{\partial \tilde L}{\partial \dot q_j} - \frac{\partial \tilde L}{\partial q_j} = 0 \qquad (j = 1, \dots, 3N).
Idea of the proofOriginal

In Cartesian coordinates the Euler–Lagrange system of L=T−VL = T - V is Newton's law term by term, so 1 and 2 are the same statement. For 3, a direct computation shows that the Euler–Lagrange expressions in the new coordinates are the old ones multiplied by the transposed Jacobian XqTX_q^{\mathsf T}. An invertible matrix sends a vector to zero only if the vector is zero, so the equations hold in one system exactly when they hold in the other.

ProofAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §21, pp. 84–85; Arfken, Weber & Harris (2013), §22.2, p. 1098

Write pk=∂L/∂r˙kp_k = \partial L / \partial \dot r_k and define the Euler–Lagrange expression of LL along the path,

Ex(t)=ddtLx˙(t,x,x˙)−Lx(t,x,x˙)∈R3N,E_x(t) = \frac{d}{dt} L_{\dot x}\bigl(t, x, \dot x\bigr) - L_x\bigl(t, x, \dot x\bigr) \in \mathbb{R}^{3N},

and Eq(t)E_q(t) in the same way for L~\tilde L along qq.

  1. Stationary paths are the solutions of Ex=0E_x = 0. Because LL is C2C^2, differentiating under the integral and integrating the h˙\dot h term by parts gives

    ddεS[x+εh]∣ε=0=−∫t0t1Ex(t)⋅h(t) dt,\frac{d}{d\varepsilon}\mathcal{S}[x + \varepsilon h]\Big|_{\varepsilon=0} = -\int_{t_0}^{t_1} E_x(t)\cdot h(t)\, dt ,

    with no boundary term because h(t0)=h(t1)=0h(t_0) = h(t_1) = 0. If Ex≡0E_x \equiv 0 the right side vanishes for every hh. Conversely, if it vanishes for every admissible hh, then Ex≡0E_x \equiv 0 by the Euler–Lagrange system for several functions (the fundamental lemma applied to one component at a time).

  2. Ex=0E_x = 0 is Newton's law. For L=∑k12mk∣r˙k∣2−VL = \sum_k \tfrac12 m_k|\dot r_k|^2 - V we have ∂L/∂r˙k=mkr˙k\partial L/\partial \dot r_k = m_k \dot r_k and ∂L/∂rk=−∇rkV\partial L / \partial r_k = -\nabla_{r_k} V. The rkr_k-block of ExE_x is therefore mkr¨k+∇rkVm_k \ddot r_k + \nabla_{r_k} V. This proves 1⇔21 \Leftrightarrow 2.

  3. How the Euler–Lagrange expression transforms. Let x(t)=X(t,q(t))x(t) = X(t, q(t)). We claim

    Eq(t)=Xq(t,q(t))T Ex(t),i.e.(Eq)j=∑i∂Xi∂qj (Ex)i.E_q(t) = X_q\bigl(t, q(t)\bigr)^{\mathsf T}\, E_x(t), \qquad\text{i.e.}\qquad (E_q)_j = \sum_i \frac{\partial X_i}{\partial q_j}\,(E_x)_i .
    • Since x˙i=∂tXi+∑j(∂Xi/∂qj) q˙j\dot x_i = \partial_t X_i + \sum_j (\partial X_i/\partial q_j)\, \dot q_j, the velocity x˙i\dot x_i depends on q˙j\dot q_j with coefficient ∂Xi/∂qj\partial X_i / \partial q_j. By the chain rule, ∂L~/∂q˙j=∑iLx˙i ∂Xi/∂qj\partial \tilde L / \partial \dot q_j = \sum_i L_{\dot x_i}\, \partial X_i/\partial q_j.

    • The velocity also depends on qjq_j: ∂x˙i/∂qj=∂t∂qjXi+∑k∂qk∂qjXi q˙k\partial \dot x_i / \partial q_j = \partial_t \partial_{q_j} X_i + \sum_k \partial_{q_k}\partial_{q_j} X_i\, \dot q_k. Because XX is C2C^2 its mixed partial derivatives commute, so this is the time derivative of ∂Xi/∂qj\partial X_i / \partial q_j along the path. Hence

      ∂L~∂qj=∑i(Lxi ∂Xi∂qj+Lx˙i ddt∂Xi∂qj).\frac{\partial \tilde L}{\partial q_j} = \sum_i \Bigl( L_{x_i}\, \frac{\partial X_i}{\partial q_j} + L_{\dot x_i}\, \frac{d}{dt}\frac{\partial X_i}{\partial q_j} \Bigr).
    • By the product rule, ddt ∂L~/∂q˙j=∑i(ddtLx˙i) ∂Xi/∂qj+∑iLx˙i ddt ∂Xi/∂qj\frac{d}{dt}\, \partial \tilde L/\partial \dot q_j = \sum_i \bigl( \frac{d}{dt} L_{\dot x_i}\bigr)\, \partial X_i/\partial q_j + \sum_i L_{\dot x_i}\, \frac{d}{dt}\, \partial X_i/\partial q_j.

    • Subtracting the last two lines, the terms containing ddt ∂Xi/∂qj\frac{d}{dt}\,\partial X_i/\partial q_j cancel and the claim remains.

  4. Conclusion. The matrix XqX_q is invertible by the definition of generalized coordinates, so Eq(t)=0E_q(t) = 0 if and only if Ex(t)=0E_x(t) = 0. Thus 3 holds in a given coordinate system exactly when 2 holds, and then it holds in every system. □\square

Remark(Where the hypotheses are used)Original
  • Forces from a potential are used in step 2, where ∂L/∂rk\partial L/\partial r_k must equal the force. Friction is not of this form, and L=T−VL = T - V cannot describe it.
  • C2C^2 regularity of VV and of the path makes ExE_x continuous, which the fundamental lemma needs in step 1. C2C^2 regularity of XX is what lets mixed partial derivatives be exchanged in step 3.
  • Invertibility of XqX_q is used only in step 4. If there are fewer coordinates than 3N3N, for example a pendulum described by one angle, then XqX_q is a tall matrix and Eq=XqTEx=0E_q = X_q^{\mathsf T} E_x = 0 says only that the vector ExE_x, the mass-weighted acceleration minus the applied force, is orthogonal to every direction the constraint allows. That is precisely the statement that the constraint force does no work in any allowed displacement (an ideal constraint). This is why Hamilton's principle, written in coordinates on the constraint surface, gives the correct motion of pendulums and rigid bodies; constraints of this kind are treated in Pointwise constraints.
Remark(Stationary, not least)AdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §21, Remark 2, p. 85; Gelfand & Fomin (1963), Ch. 7, §36.2, pp. 159–160

The older name "principle of least action" claims more than is true. Take a unit-mass oscillator, L=12(q˙2−ω2q2)L = \tfrac12(\dot q^2 - \omega^2 q^2), on [0,T][0, T] with q(0)=q(T)=0q(0) = q(T) = 0. The rest state q≡0q \equiv 0 solves Lagrange's equation and has action 00. For the competitor εh\varepsilon h with h(t)=sin⁡(πt/T)h(t) = \sin(\pi t/T),

S[εh]=ε22∫0T(h˙2−ω2h2) dt=ε2T4(π2T2−ω2),\mathcal{S}[\varepsilon h] = \frac{\varepsilon^2}{2}\int_0^T \bigl(\dot h^2 - \omega^2 h^2\bigr)\, dt = \frac{\varepsilon^2 T}{4}\Bigl(\frac{\pi^2}{T^2} - \omega^2\Bigr),

which is negative as soon as T>π/ωT > \pi/\omega. Over such long intervals the true motion is a stationary point of the action, not a minimum. The threshold π/ω\pi/\omega is the first conjugate time, studied in Conjugate points and Jacobi's condition.

Example(A free particle seen from a rotating frame)Original

A particle of mass mm moves in a plane with no forces (V=0V = 0). Describe it in coordinates q=(ξ,η)q = (\xi, \eta) that rotate with constant angular velocity Ω\Omega:

x=R(Ωt) q,R(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ).x = R(\Omega t)\, q, \qquad R(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}.

Lagrangian. Since ddtR(Ωt)=ΩR(Ωt)J\frac{d}{dt}R(\Omega t) = \Omega R(\Omega t) J with J=(0−110)J = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, we get x˙=R(Ωt)(q˙+ΩJq)\dot x = R(\Omega t)(\dot q + \Omega J q). Rotations preserve length, so

L~=m2 ∣q˙+ΩJq∣2=m2[(ξ˙−Ωη)2+(η˙+Ωξ)2].\tilde L = \frac m2\, |\dot q + \Omega J q|^2 = \frac m2\Bigl[(\dot \xi - \Omega \eta)^2 + (\dot\eta + \Omega \xi)^2\Bigr].

Lagrange's equations. For ξ\xi: ∂L~/∂ξ˙=m(ξ˙−Ωη)\partial\tilde L/\partial\dot\xi = m(\dot\xi - \Omega\eta) and ∂L~/∂ξ=mΩ(η˙+Ωξ)\partial \tilde L/\partial \xi = m\Omega(\dot\eta + \Omega\xi), so m(ξ¨−Ωη˙)−mΩ(η˙+Ωξ)=0m(\ddot \xi - \Omega\dot\eta) - m\Omega(\dot \eta + \Omega \xi) = 0. Doing the same for η\eta,

ξ¨=2Ωη˙+Ω2ξ,η¨=−2Ωξ˙+Ω2η.\ddot \xi = 2\Omega\dot\eta + \Omega^2 \xi, \qquad \ddot \eta = -2\Omega\dot\xi + \Omega^2\eta .

In vector form this reads q¨=−2ΩJq˙+Ω2q\ddot q = -2\Omega J\dot q + \Omega^2 q: the term Ω2q\Omega^2 q is the centrifugal acceleration and −2ΩJq˙=(2Ωη˙, −2Ωξ˙)-2\Omega J \dot q = (2\Omega\dot\eta,\ -2\Omega\dot\xi) is the Coriolis acceleration. Both came out of the theorem, with no separate argument about non-inertial frames.

A check with numbers. Release the particle at rest in the rotating frame at q(0)=(a,0)q(0) = (a, 0). In the inertial frame it starts at (a,0)(a, 0) with velocity R(0) ΩJq(0)=(0,aΩ)R(0)\,\Omega J q(0) = (0, a\Omega), so it moves on the straight line x(t)=(a, aΩt)x(t) = (a,\ a\Omega t). Hence

q(t)=R(−Ωt) x(t)=(acos⁡Ωt+aΩtsin⁡Ωt,  −asin⁡Ωt+aΩtcos⁡Ωt).q(t) = R(-\Omega t)\, x(t) = \bigl(a\cos\Omega t + a\Omega t \sin\Omega t,\ \ -a\sin\Omega t + a\Omega t\cos\Omega t\bigr).

Substituting into the two equations above makes both residuals vanish identically. At Ωt=π/2\Omega t = \pi/2 the particle is at q=(πa/2, −a)q = (\pi a/2,\ -a), which for a=1a = 1 is (1.5708,−1)(1.5708, -1): seen from the rotating frame, the particle has drifted outward and backward against the rotation.

Exercise(The elastic pendulum)Original

What it teaches: choosing generalized coordinates adapted to the forces. A bob of mass mm hangs from a fixed point on a spring of stiffness kk and natural length ℓ0\ell_0 and moves in a vertical plane under gravity gg. Using polar coordinates (r,θ)(r, \theta), with θ\theta measured from the downward vertical, show that

L~=m2(r˙2+r2θ˙2)+mgrcos⁡θ−k2(r−ℓ0)2,\tilde L = \frac m2\bigl(\dot r^2 + r^2\dot\theta^2\bigr) + mgr\cos\theta - \frac k2 (r - \ell_0)^2,

derive mr¨=mrθ˙2+mgcos⁡θ−k(r−ℓ0)m\ddot r = mr\dot\theta^2 + mg\cos\theta - k(r - \ell_0) and ddt(mr2θ˙)=−mgrsin⁡θ\frac{d}{dt}(mr^2\dot\theta) = -mgr\sin\theta, and linearize about the hanging equilibrium. For m=0.5m = 0.5, k=50k = 50, ℓ0=0.4\ell_0 = 0.4 and g=9.81g = 9.81 (SI units) you should find req=ℓ0+mg/k=0.4981r_{\mathrm{eq}} = \ell_0 + mg/k = 0.4981, a radial frequency k/m=10\sqrt{k/m} = 10 and a swinging frequency g/req≈4.438\sqrt{g/r_{\mathrm{eq}}} \approx 4.438, in radians per second.

ApplicationOriginal

Hamilton's principle is the standard way to set up equations of motion in mechanics and engineering: one writes down TT and VV in whatever coordinates suit the problem (joint angles of a robot arm, Euler angles of a spacecraft, normal modes of a molecule) and reads off the equations, with constraint forces never appearing. In celestial mechanics and geophysical fluid dynamics, the rotating-frame Lagrangian of the example above is the starting point for the restricted three-body problem and for the Coriolis terms in atmosphere and ocean models. The same principle with a Lagrangian density gives field equations such as the wave equation (see Several independent variables), and the symmetries of LL give conservation laws through Noether's theorem.

Theorem

Noether's theorem

Adapted

If the action is unchanged by a one-parameter family of transformations of time and coordinates, an explicit combination of momenta and energy is conserved along every motion; time shifts, translations and rotations give conservation of energy, momentum and angular momentum.

Prerequisites: Hamilton's principle

DefinitionAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §20, Definition and eqs. (45)–(48), pp. 80–81

In this unit L(t,q,v)L(t, q, v) is a C2C^2 Lagrangian on R×G×Rn\mathbb{R}\times G\times\mathbb{R}^n, G⊂RnG\subset\mathbb{R}^n open, and along a curve q(t)q(t) we write

pi=∂L∂vi(t,q,q˙),E=∑i=1nq˙i pi−L(t,q,q˙)p_i = \frac{\partial L}{\partial v_i}\bigl(t, q, \dot q\bigr), \qquad E = \sum_{i=1}^n \dot q_i\, p_i - L\bigl(t, q, \dot q\bigr)

for the momenta and the energy function. For a mechanical Lagrangian L=T−VL = T - V with TT quadratic in the velocities, E=T+VE = T + V.

A one-parameter family of point transformations is a pair of functions θ(ε,t,q)∈R\theta(\varepsilon, t, q) \in \mathbb{R} and Q(ε,t,q)∈GQ(\varepsilon, t, q) \in G, of class C2C^2 in (ε,t,q)(\varepsilon, t, q) for ∣ε∣|\varepsilon| small, that reduce to the identity at ε=0\varepsilon = 0: θ(0,t,q)=t\theta(0, t, q) = t and Q(0,t,q)=qQ(0, t, q) = q. Its generators are

τ(t,q)=∂θ∂ε(0,t,q),ξ(t,q)=∂Q∂ε(0,t,q)∈Rn.\tau(t, q) = \frac{\partial \theta}{\partial \varepsilon}(0, t, q), \qquad \xi(t, q) = \frac{\partial Q}{\partial \varepsilon}(0, t, q) \in \mathbb{R}^n .

Given a C2C^2 curve q:[a,b]→Gq : [a, b] \to G, put sε(t)=θ(ε,t,q(t))s_\varepsilon(t) = \theta(\varepsilon, t, q(t)). For small ∣ε∣|\varepsilon| its derivative is close to 11 on [a,b][a, b], so sεs_\varepsilon is increasing and we may define the transformed curve qε∗q^\ast_\varepsilon on [sε(a),sε(b)][s_\varepsilon(a), s_\varepsilon(b)] by qε∗(sε(t))=Q(ε,t,q(t))q^\ast_\varepsilon\bigl(s_\varepsilon(t)\bigr) = Q\bigl(\varepsilon, t, q(t)\bigr).

The action is invariant under the family if, for every C2C^2 curve qq in GG, every interval [a,b][a, b] in its domain and every sufficiently small ∣ε∣|\varepsilon|,

∫sε(a)sε(b)L(s, qε∗(s), dqε∗ds(s)) ds=∫abL(t,q(t),q˙(t)) dt.\int_{s_\varepsilon(a)}^{s_\varepsilon(b)} L\Bigl(s,\ q^\ast_\varepsilon(s),\ \frac{dq^\ast_\varepsilon}{ds}(s)\Bigr)\, ds = \int_a^b L\bigl(t, q(t), \dot q(t)\bigr)\, dt .
Theorem(Noether's theorem)AdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §20, Theorem (Noether) and Remark, pp. 81–83

If the action of LL is invariant under a one-parameter family of point transformations with generators τ\tau and ξ\xi, then along every C2C^2 solution q(t)q(t) of the Euler–Lagrange equations of LL the quantity

I=∑i=1npi ξi(t,q)−E τ(t,q)I = \sum_{i=1}^n p_i\, \xi_i\bigl(t, q\bigr) - E\, \tau\bigl(t, q\bigr)

is constant.

Idea of the proofOriginal

Write the transformed action as an integral over the original time tt and differentiate it with respect to ε\varepsilon at ε=0\varepsilon = 0. Invariance on every subinterval forces the integrand of that derivative to vanish at each instant. This gives a pointwise identity, valid on any curve, involving LL, its partial derivatives and the generators. On a solution of the Euler–Lagrange equations, ∂L/∂q\partial L/\partial q is p˙\dot p and ∂L/∂t\partial L/\partial t is −E˙-\dot E, and the identity collapses to ddtI=0\frac{d}{dt} I = 0.

ProofAdaptedAdapted from Evans (2010), §8.6.2, proof of Theorem 1, pp. 482–483; Gelfand & Fomin (1963), Ch. 4, §20, pp. 81–83

Fix a C2C^2 curve qq and an interval [a,b][a, b]. Dots denote derivatives along the curve. Write θε(t)=θ(ε,t,q(t))\theta_\varepsilon(t) = \theta(\varepsilon, t, q(t)) and Qε(t)=Q(ε,t,q(t))Q_\varepsilon(t) = Q(\varepsilon, t, q(t)).

  1. Pull the transformed action back to [a,b][a, b]. Substitute s=θε(t)s = \theta_\varepsilon(t), so ds=θ˙ε dtds = \dot\theta_\varepsilon\, dt. By the chain rule dqε∗ds=Q˙ε/θ˙ε\frac{dq^\ast_\varepsilon}{ds} = \dot Q_\varepsilon / \dot\theta_\varepsilon. The invariance identity becomes

    ∫abΛ(ε,t) dt=∫abL(t,q,q˙) dt,Λ(ε,t)=L(θε, Qε, Q˙εθ˙ε) θ˙ε.\int_a^b \Lambda(\varepsilon, t)\, dt = \int_a^b L\bigl(t, q, \dot q\bigr)\, dt, \qquad \Lambda(\varepsilon, t) = L\Bigl(\theta_\varepsilon,\ Q_\varepsilon,\ \frac{\dot Q_\varepsilon}{\dot\theta_\varepsilon}\Bigr)\, \dot\theta_\varepsilon .
  2. Invariance on every subinterval gives a pointwise identity. The left side does not depend on ε\varepsilon. Because θ\theta and QQ are C2C^2 and qq is C2C^2, the functions θ˙ε=θt+θq⋅q˙\dot\theta_\varepsilon = \theta_t + \theta_q\cdot\dot q and Q˙ε\dot Q_\varepsilon are C1C^1 in (ε,t)(\varepsilon, t), and so is Λ\Lambda, since LL is C2C^2. Differentiating under the integral sign therefore gives ∫ab∂εΛ(0,t) dt=0\int_a^b \partial_\varepsilon\Lambda(0, t)\, dt = 0. This holds for every subinterval of the curve's domain, and ∂εΛ(0,⋅)\partial_\varepsilon\Lambda(0, \cdot) is continuous, so ∂εΛ(0,t)=0\partial_\varepsilon \Lambda(0, t) = 0 for every tt.

  3. Compute the derivative. At ε=0\varepsilon = 0 we have θ0=t\theta_0 = t, Q0=qQ_0 = q, θ˙0=1\dot\theta_0 = 1 and Q˙0=q˙\dot Q_0 = \dot q. Their ε\varepsilon-derivatives are τ\tau, ξ\xi, τ˙\dot \tau and ξ˙\dot \xi, where τ˙=ddtτ(t,q(t))\dot\tau = \frac{d}{dt}\tau(t, q(t)); for the last two we exchanged ∂ε\partial_\varepsilon with ddt\frac{d}{dt}, which is allowed because the mixed second derivatives of θ\theta and QQ are continuous. The ε\varepsilon-derivative of the velocity slot Q˙ε/θ˙ε\dot Q_\varepsilon/\dot\theta_\varepsilon is ξ˙−q˙ τ˙\dot\xi - \dot q\,\dot\tau. Hence

    0=∂εΛ(0,t)=Lt τ+Lq⋅ξ+p⋅(ξ˙−q˙ τ˙)+L τ˙=Lt τ+Lq⋅ξ+p⋅ξ˙−E τ˙.(∗)0 = \partial_\varepsilon\Lambda(0, t) = L_t\,\tau + L_q\cdot\xi + p\cdot\bigl(\dot\xi - \dot q\,\dot\tau\bigr) + L\,\dot\tau = L_t\,\tau + L_q\cdot\xi + p\cdot\dot\xi - E\,\dot\tau . \tag{$\ast$}

    So far qq was any C2C^2 curve.

  4. Use the Euler–Lagrange equations. Now let qq solve them, so Lq=p˙L_q = \dot p. Then the energy function satisfies E˙=−Lt\dot E = -L_t: differentiating E=q˙⋅p−LE = \dot q\cdot p - L gives

    E˙=q¨⋅p+q˙⋅p˙−Lt−Lq⋅q˙−p⋅q¨=q˙⋅(p˙−Lq)−Lt=−Lt.\dot E = \ddot q\cdot p + \dot q\cdot\dot p - L_t - L_q\cdot\dot q - p\cdot\ddot q = \dot q\cdot\bigl(\dot p - L_q\bigr) - L_t = -L_t .
  5. Assemble. Substituting Lq=p˙L_q = \dot p and Lt=−E˙L_t = -\dot E in (∗)(\ast),

    0=−E˙ τ+p˙⋅ξ+p⋅ξ˙−E τ˙=ddt(p⋅ξ−E τ)=dIdt.□0 = -\dot E\,\tau + \dot p\cdot\xi + p\cdot\dot\xi - E\,\dot\tau = \frac{d}{dt}\bigl(p\cdot\xi - E\,\tau\bigr) = \frac{dI}{dt} . \qquad\square
Remark(Where the hypotheses are used)Original
  • Invariance on every subinterval is what turns an integral identity into the pointwise identity (∗)(\ast) in step 2. Invariance on a single interval would give only ∫ab∂εΛ(0,t) dt=0\int_a^b \partial_\varepsilon\Lambda(0,t)\,dt = 0.
  • The Euler–Lagrange equations enter only in step 4. The identity (∗)(\ast) holds on every curve; conservation of II holds only on motions.
  • A failure of invariance. The Lagrangian L=12eγt(q˙2−ω2q2)L = \tfrac12 e^{\gamma t}\bigl(\dot q^2 - \omega^2 q^2\bigr), γ>0\gamma > 0, has Euler–Lagrange equation q¨+γq˙+ω2q=0\ddot q + \gamma\dot q + \omega^2 q = 0, a damped oscillator. It depends on tt explicitly, so the action is not invariant under time shifts. Its energy function E=12eγt(q˙2+ω2q2)E = \tfrac12 e^{\gamma t}(\dot q^2 + \omega^2 q^2) obeys E˙=−Lt=−γ2eγt(q˙2−ω2q2)\dot E = -L_t = -\tfrac{\gamma}{2} e^{\gamma t}(\dot q^2 - \omega^2 q^2), which is not zero in general.
Remark(Symmetries up to a total derivative)Original

The proof gives slightly more than the statement. Suppose that, instead of invariance, ∂εΛ(0,t)=ddtΦ(t,q(t))\partial_\varepsilon \Lambda(0, t) = \frac{d}{dt}\Phi(t, q(t)) for some C1C^1 function Φ\Phi and every C2C^2 curve. Then step 5 becomes ddt(I−Φ)=0\frac{d}{dt}(I - \Phi) = 0, so I−ΦI - \Phi is conserved. Galilean boosts are the standard case. For NN particles with masses mkm_k, total mass MM and a potential that depends only on the differences rk−rlr_k - r_l, take θ=t\theta = t and Qk=rk+εutQ_k = r_k + \varepsilon u t for a fixed vector uu. Then ξk=ut\xi_k = u t, τ=0\tau = 0, and ∂εΛ(0,t)=∑kmkr˙k⋅u=ddt(MR⋅u)\partial_\varepsilon\Lambda(0,t) = \sum_k m_k\dot r_k\cdot u = \frac{d}{dt}\bigl(M R\cdot u\bigr), where RR is the centre of mass. The conserved quantity is u⋅(Pt−MR)u\cdot(P t - M R), where PP is the total momentum. Since uu is arbitrary, R(t)=R(0)+Pt/MR(t) = R(0) + P t/M: the centre of mass moves uniformly.

Example(Energy, momentum and angular momentum)AdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §20, Example 3, p. 83; Gelfand & Fomin (1963), Ch. 4, §22, items 1–3, pp. 86–88

Take NN particles with q=(r1,…,rN)q = (r_1, \dots, r_N) and L=∑k12mk∣r˙k∣2−V(t,r1,…,rN)L = \sum_k \tfrac12 m_k|\dot r_k|^2 - V(t, r_1, \dots, r_N), so that p=(m1r˙1,…,mNr˙N)p = (m_1\dot r_1, \dots, m_N\dot r_N) and E=T+VE = T + V.

  1. Time shifts: θ=t+ε\theta = t + \varepsilon, Q=qQ = q, so τ=1\tau = 1 and ξ=0\xi = 0. Shifting a curve in time leaves its action unchanged for every curve exactly when LL does not depend on tt, that is when ∂V/∂t=0\partial V/\partial t = 0. Then I=−EI = -E: energy is conserved.
  2. Translations: θ=t\theta = t, Qk=rk+εeQ_k = r_k + \varepsilon e for all kk, with ee a fixed vector. Velocities are unchanged, so the action is invariant if V(t,r1+εe,…,rN+εe)=V(t,r1,…,rN)V(t, r_1 + \varepsilon e, \dots, r_N + \varepsilon e) = V(t, r_1, \dots, r_N). Here ξk=e\xi_k = e, τ=0\tau = 0 and I=∑kpk⋅eI = \sum_k p_k\cdot e: the component of total momentum along ee is conserved.
  3. Rotations: θ=t\theta = t, Qk=Re(ε)rkQ_k = R_e(\varepsilon) r_k, where Re(ε)R_e(\varepsilon) is the rotation by angle ε\varepsilon about the unit axis ee. Rotations preserve lengths, so TT is unchanged, and the action is invariant if VV is unchanged by rotating all particles together. The generator is ξk=e×rk\xi_k = e\times r_k, and I=∑kpk⋅(e×rk)=e⋅∑krk×pkI = \sum_k p_k\cdot(e\times r_k) = e\cdot\sum_k r_k\times p_k: the component of total angular momentum along ee is conserved.
Example(A screw symmetry)Original

Here the conserved quantity mixes angular and linear momentum, so it is not one of the familiar three. A particle of unit mass moves in R3\mathbb{R}^3 in the potential

V(x,y,z)=12w2,w=−xsin⁡(z/κ)+ycos⁡(z/κ),κ=0.5.V(x, y, z) = \tfrac12 w^2, \qquad w = -x\sin(z/\kappa) + y\cos(z/\kappa), \qquad \kappa = 0.5 .

The potential vanishes on the helicoid w=0w = 0 and grows away from it, so the particle is confined near a twisted ribbon, like a bead in the groove of a screw.

The symmetry. Let θ=t\theta = t and let Q(ε,⋅)Q(\varepsilon, \cdot) rotate (x,y)(x, y) by angle ε\varepsilon about the zz-axis while shifting zz by κε\kappa\varepsilon. The direction (cos⁡(z/κ),sin⁡(z/κ))(\cos(z/\kappa), \sin(z/\kappa)) turns by the same angle ε\varepsilon as (x,y)(x, y), and ww is the component of (x,y)(x, y) perpendicular to it, so ww is unchanged. The kinetic energy is unchanged because the map is a rigid motion. So the action is invariant, with τ=0\tau = 0 and ξ=(−y, x, κ)\xi = (-y,\ x,\ \kappa).

The conserved quantity. Noether's theorem gives

I=−y px+x py+κ pz=ℓz+κ pz,I = -y\,p_x + x\,p_y + \kappa\, p_z = \ell_z + \kappa\, p_z ,

where ℓz=xpy−ypx\ell_z = x p_y - y p_x is the zz-component of angular momentum. As a direct check, Newton's law gives ℓ˙z=−(xVy−yVx)\dot\ell_z = -(x V_y - y V_x) and p˙z=−Vz\dot p_z = -V_z, so I˙=−ξ⋅∇V\dot I = -\xi\cdot\nabla V. This is minus the derivative of VV along the screw motion, which is 00.

Numbers. Start at (x,y,z)=(1,0,0)(x, y, z) = (1, 0, 0), where w=0w = 0, with velocity (0, 0.5, 0.3)(0,\ 0.5,\ 0.3). Then ℓz=0.5\ell_z = 0.5, pz=0.3p_z = 0.3 and

I=0.5+0.5×0.3=0.65.I = 0.5 + 0.5\times 0.3 = 0.65 .

Integrating the equations of motion numerically (relative tolerance 10−1210^{-12}) gives, at t=10t = 10, ℓz≈0.661788\ell_z \approx 0.661788 and pz≈−0.023576p_z \approx -0.023576. Neither is conserved separately (ℓz\ell_z ranges over [0.5,0.677][0.5, 0.677] on 0≤t≤100 \le t \le 10), but ℓz+0.5 pz=0.650000\ell_z + 0.5\,p_z = 0.650000 to the accuracy of the integration. The energy E=12(0.52+0.32)=0.17E = \tfrac12(0.5^2 + 0.3^2) = 0.17 is also conserved, by item 1 of the previous example.

ApplicationOriginal

Noether's theorem is how conservation laws are found in practice: one lists the symmetries of the Lagrangian instead of hunting for first integrals. In the Kepler and other central-force problems, rotational symmetry gives angular momentum and hence planar orbits and Kepler's second law. In an axisymmetric magnetic-confinement device (an idealized tokamak), the invariance of a charged particle's Lagrangian under rotations about the symmetry axis conserves its canonical angular momentum about that axis, a mixture of mechanical momentum and the vector potential much as II mixes ℓz\ell_z and pzp_z in the screw example, and this is what keeps the particle's orbit close to a magnetic surface. In field theory the same argument, applied to a Lagrangian density, turns space-time translations into conservation of energy and momentum densities (see Several independent variables). On the Hamiltonian side, a quantity is conserved exactly when its Poisson bracket with the Hamiltonian vanishes (see The canonical equations).

Theorem

The canonical equations

Adapted

When velocities can be solved for in terms of momenta, the Legendre transformation turns the n second-order Euler–Lagrange equations into Hamilton's 2n first-order canonical equations, and first integrals are then recognized by a vanishing Poisson bracket.

Prerequisites: Hamilton's principle, Existence and uniqueness of solutions

DefinitionAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §16, pp. 67–69; Evans (2010), §3.3.1(b), eq. (9) and Definition, p. 114

Let L(t,q,v)L(t, q, v) be a C2C^2 function on an open set Ω⊂R×Rn×Rn\Omega \subset \mathbb{R}\times\mathbb{R}^n\times\mathbb{R}^n; vv is the slot into which the velocity q˙\dot q is substituted.

  • The canonical momentum belonging to (t,q,v)(t, q, v) is p=Lv(t,q,v)=(∂L/∂v1,…,∂L/∂vn)p = L_v(t, q, v) = (\partial L/\partial v_1, \dots, \partial L/\partial v_n).

  • Regularity hypothesis (R). There is an open set W⊂R×Rn×RnW \subset \mathbb{R}\times\mathbb{R}^n\times\mathbb{R}^n (the phase domain) and a C1C^1 map v^:W→Rn\hat v : W \to \mathbb{R}^n such that (t,q,v)↦(t,q,Lv(t,q,v))(t, q, v) \mapsto (t, q, L_v(t, q, v)) is a bijection from Ω\Omega onto WW with inverse (t,q,p)↦(t,q,v^(t,q,p))(t, q, p) \mapsto (t, q, \hat v(t, q, p)). In words: the velocity can be recovered from the momentum, smoothly.

  • The Hamiltonian is the function on WW

    H(t,q,p)=p⋅v^(t,q,p)−L(t,q,v^(t,q,p)).H(t, q, p) = p\cdot \hat v(t, q, p) - L\bigl(t, q, \hat v(t, q, p)\bigr).

    Passing from (t,q,v,L)(t, q, v, L) to (t,q,p,H)(t, q, p, H) is the Legendre transformation in the velocity variables.

  • The canonical equations (Hamilton's equations) for a curve (q(t),p(t))(q(t), p(t)) in the phase domain are

    q˙i=∂H∂pi(t,q,p),p˙i=−∂H∂qi(t,q,p)(i=1,…,n).\dot q_i = \frac{\partial H}{\partial p_i}(t, q, p), \qquad \dot p_i = -\frac{\partial H}{\partial q_i}(t, q, p) \qquad (i = 1, \dots, n).
  • The Poisson bracket of C1C^1 functions f,gf, g on WW is {f,g}=∑i(∂qif ∂pig−∂pif ∂qig)\{f, g\} = \sum_i \bigl(\partial_{q_i} f\, \partial_{p_i} g - \partial_{p_i} f\, \partial_{q_i} g\bigr). Gelfand–Fomin and Lee use this sign; some physics texts use the opposite one.

  • A first integral of the canonical equations is a C1C^1 function f(t,q,p)f(t, q, p) on WW that is constant along every solution.

TheoremAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §16, eq. (11), p. 70; Gelfand & Fomin (1963), Ch. 4, §17, eq. (13), p. 71; Evans (2010), §3.3.1(b), Theorem 2, p. 114

Assume LL is C2C^2 on Ω\Omega and satisfies (R). Then:

  1. HH is C2C^2 on WW, and for (t,q,p)∈W(t, q, p) \in W, with v^=v^(t,q,p)\hat v = \hat v(t, q, p),

    Hp=v^,Hq=−Lq(t,q,v^),Ht=−Lt(t,q,v^).H_p = \hat v, \qquad H_q = -L_q(t, q, \hat v), \qquad H_t = -L_t(t, q, \hat v).
  2. A C2C^2 curve q(t)q(t) with (t,q,q˙)∈Ω(t, q, \dot q) \in \Omega solves the Euler–Lagrange equations ddtLv−Lq=0\frac{d}{dt}L_v - L_q = 0 if and only if (q(t),p(t))(q(t), p(t)), with p(t)=Lv(t,q,q˙)p(t) = L_v(t, q, \dot q), solves the canonical equations. Conversely, if a C1C^1 curve (q,p)(q, p) in WW solves the canonical equations, then qq is C2C^2, p=Lv(t,q,q˙)p = L_v(t, q, \dot q), and qq solves the Euler–Lagrange equations.

  3. Along every solution of the canonical equations, ddtH(t,q,p)=Ht(t,q,p)\frac{d}{dt}H(t, q, p) = H_t(t, q, p). In particular, if LL does not depend on tt, then HH is a first integral.

  4. A C1C^1 function f(t,q,p)f(t, q, p) satisfies ddtf=ft+{f,H}\frac{d}{dt}f = f_t + \{f, H\} along every solution. Hence ff is a first integral if and only if ft+{f,H}=0f_t + \{f, H\} = 0 at every point of WW. If HH does not depend on qkq_k, then pkp_k is a first integral.

Idea of the proofOriginal

The defining relation p=Lvp = L_v makes the Hamiltonian insensitive, to first order, to how the velocity v^\hat v moves when (t,q,p)(t, q, p) changes. Every term in which v^\hat v is differentiated has the factor p−Lvp - L_v, which is zero. So the partial derivatives of HH are read off as if v^\hat v were constant. With these formulas, the definition of pp becomes the first canonical equation and the Euler–Lagrange equation becomes the second. The time derivative of any function along a solution is then a chain-rule computation, which is where the Poisson bracket comes from.

ProofAdaptedAdapted from Evans (2010), §3.3.1(b), proof of Theorem 2, pp. 114–115; Gelfand & Fomin (1963), Ch. 4, §16–17, pp. 69–71
  1. Derivatives of HH. By (R), Lv(t,q,v^(t,q,p))=pL_v(t, q, \hat v(t, q, p)) = p on WW. Differentiate H=p⋅v^−L(t,q,v^)H = p\cdot\hat v - L(t, q, \hat v) by the chain rule, with v^\hat v evaluated at (t,q,p)(t, q, p):

    Hpi=v^i+∑k(pk−Lvk) ∂piv^k=v^i,H_{p_i} = \hat v_i + \sum_k \bigl(p_k - L_{v_k}\bigr)\,\partial_{p_i}\hat v_k = \hat v_i , Hqi=−Lqi+∑k(pk−Lvk) ∂qiv^k=−Lqi,Ht=−Lt+∑k(pk−Lvk) ∂tv^k=−Lt.H_{q_i} = -L_{q_i} + \sum_k \bigl(p_k - L_{v_k}\bigr)\,\partial_{q_i}\hat v_k = -L_{q_i}, \qquad H_t = -L_t + \sum_k \bigl(p_k - L_{v_k}\bigr)\,\partial_t\hat v_k = -L_t .

    Each bracket vanishes by (R). The right-hand sides v^\hat v, −Lq(t,q,v^)-L_q(t, q, \hat v) and −Lt(t,q,v^)-L_t(t, q, \hat v) are C1C^1, because LL is C2C^2 and v^\hat v is C1C^1, so HH is C2C^2.

  2. Euler–Lagrange implies canonical. Let qq be a C2C^2 solution and p=Lv(t,q,q˙)p = L_v(t, q, \dot q). By (R), q˙=v^(t,q,p)\dot q = \hat v(t, q, p), so part 1 gives q˙=Hp(t,q,p)\dot q = H_p(t, q, p). The Euler–Lagrange equation says p˙=Lq(t,q,q˙)\dot p = L_q(t, q, \dot q), and by part 1 again Lq(t,q,v^)=−Hq(t,q,p)L_q(t, q, \hat v) = -H_q(t, q, p). So p˙=−Hq\dot p = -H_q.

  3. Canonical implies Euler–Lagrange. Let (q,p)(q, p) be a C1C^1 solution in WW. Then q˙=Hp=v^(t,q,p)\dot q = H_p = \hat v(t, q, p), so by (R) p=Lv(t,q,q˙)p = L_v(t, q, \dot q). Since v^\hat v is C1C^1 and qq, pp are C1C^1, q˙\dot q is C1C^1, so qq is C2C^2. Finally ddtLv(t,q,q˙)=p˙=−Hq=Lq(t,q,q˙)\frac{d}{dt}L_v(t, q, \dot q) = \dot p = -H_q = L_q(t, q, \dot q), which is the Euler–Lagrange equation.

  4. Time derivative of a function along a solution. For f∈C1(W)f \in C^1(W) and a solution (q,p)(q, p), the chain rule and the canonical equations give

    ddtf=ft+∑i(fqiq˙i+fpip˙i)=ft+∑i(fqiHpi−fpiHqi)=ft+{f,H}.\frac{d}{dt}f = f_t + \sum_i\bigl(f_{q_i}\dot q_i + f_{p_i}\dot p_i\bigr) = f_t + \sum_i\bigl(f_{q_i}H_{p_i} - f_{p_i}H_{q_i}\bigr) = f_t + \{f, H\}.
    • With f=Hf = H the bracket {H,H}\{H, H\} is zero by antisymmetry, so ddtH=Ht\frac{d}{dt}H = H_t. If LL does not depend on tt, then Ht=−Lt=0H_t = -L_t = 0 by part 1. This proves statement 3.
    • If ft+{f,H}=0f_t + \{f, H\} = 0 on WW, then ff is constant along every solution. Conversely, suppose ff is a first integral and let (t0,q0,p0)∈W(t_0, q_0, p_0) \in W. Since HH is C2C^2, the right-hand side of the canonical equations is C1C^1, hence locally Lipschitz, and by the existence and uniqueness theorem there is a solution through (q0,p0)(q_0, p_0) at time t0t_0. Along it ff is constant, so ft+{f,H}=0f_t + \{f, H\} = 0 at (t0,q0,p0)(t_0, q_0, p_0).
    • If HH does not depend on qkq_k, the second canonical equation reads p˙k=0\dot p_k = 0. □\square
Remark(Where the hypotheses are used)Original
  • Hypothesis (R) is used in every step: it makes HH well defined and it is the cancellation p−Lv=0p - L_v = 0 in part 1. By the inverse function theorem, (R) holds near any point where det⁡(∂2L/∂vi∂vj)≠0\det\bigl(\partial^2 L/\partial v_i\partial v_j\bigr) \ne 0, so the canonical equations always exist locally there. It fails for Lagrangians that are linear in the velocities, where p=Lvp = L_v does not involve vv at all, and for the length Lagrangian L=∣v∣L = |v| of a parametrized curve, where every vv in the same direction gives the same p=v/∣v∣p = v/|v| and p⋅v−Lp\cdot v - L is identically 00.
  • C2C^2 regularity of LL makes HH of class C2C^2, which is what part 4 needs to apply the existence theorem. Without existence of a solution through each point, a first integral need not satisfy ft+{f,H}=0f_t + \{f, H\} = 0 at points no solution visits.
Remark(The Legendre transformation as convex duality)AdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §18.1, eqs. (14)–(18), (23), pp. 72–75; Evans (2010), §3.3.2(a), Theorem 3, pp. 116–117

Part 1 shows that the construction can be run backwards. The "velocity" belonging to HH is Hp=v^H_p = \hat v, and v^⋅p−H=L(t,q,v^)\hat v\cdot p - H = L(t, q, \hat v). So applying the same recipe to HH returns LL: the transformation is its own inverse. Write Ωt,q={v:(t,q,v)∈Ω}\Omega_{t,q} = \{v : (t, q, v) \in \Omega\}. If moreover each Ωt,q\Omega_{t,q} is convex and ∂2L/∂v2\partial^2L/\partial v^2 is positive definite there, then for fixed (t,q,p)(t, q, p) the function v↦p⋅v−L(t,q,v)v \mapsto p\cdot v - L(t, q, v) is concave on Ωt,q\Omega_{t,q} with a critical point at v^\hat v, so

H(t,q,p)=max⁡v∈Ωt,q(p⋅v−L(t,q,v)),hencep⋅v≤L(t,q,v)+H(t,q,p)H(t, q, p) = \max_{v \in \Omega_{t,q}}\bigl(p\cdot v - L(t, q, v)\bigr), \qquad\text{hence}\qquad p\cdot v \le L(t, q, v) + H(t, q, p)

for all v∈Ωt,qv \in \Omega_{t,q} (Young's inequality). Evans takes the supremum of p⋅v−Lp\cdot v - L as the definition of HH, which also makes sense when LL is convex but not differentiable.

Example(The quadratic Lagrangian)Original

Most Lagrangians of mechanics have the form

L=12 v⋅M(t,q) v+A(t,q)⋅v−V(t,q),L = \tfrac12\, v\cdot M(t, q)\, v + A(t, q)\cdot v - V(t, q),

with MM a symmetric positive definite matrix. Then p=Mv+Ap = Mv + A, so (R) holds on all of phase space with v^=M−1(p−A)\hat v = M^{-1}(p - A). Substituting,

H=(p−A)⋅M−1(p−A)−12(p−A)⋅M−1(p−A)+V=12(p−A)⋅M−1(p−A)+V.H = (p - A)\cdot M^{-1}(p - A) - \tfrac12 (p - A)\cdot M^{-1}(p - A) + V = \tfrac12 (p - A)\cdot M^{-1}(p - A) + V .

For a charged particle, AA is the charge times the magnetic vector potential. In a rotating frame, AA comes from the frame's rotation, as below.

Example(A free particle in a rotating frame)Original

In Hamilton's principle a free particle of mass mm seen from axes rotating at angular velocity Ω\Omega has

L~=m2 ∣q˙+ΩJq∣2,J=(0−110),q=(ξ,η).\tilde L = \frac m2\,|\dot q + \Omega J q|^2, \qquad J = \begin{pmatrix} 0 & -1\\ 1 & 0\end{pmatrix}, \qquad q = (\xi, \eta).

Legendre transformation. This is the quadratic case with M=mIM = mI, A=mΩJqA = m\Omega Jq and V=−m2Ω2∣q∣2V = -\tfrac{m}{2}\Omega^2|q|^2, because ∣q˙+ΩJq∣2=∣q˙∣2+2Ω q˙⋅Jq+Ω2∣q∣2|\dot q + \Omega Jq|^2 = |\dot q|^2 + 2\Omega\,\dot q\cdot Jq + \Omega^2|q|^2. So p=m(q˙+ΩJq)p = m(\dot q + \Omega J q) and

H=∣p−mΩJq∣22m−m2 Ω2∣q∣2=∣p∣22m−Ω ℓ,ℓ=ξpη−ηpξ,H = \frac{|p - m\Omega Jq|^2}{2m} - \frac m2\,\Omega^2|q|^2 = \frac{|p|^2}{2m} - \Omega\,\ell, \qquad \ell = \xi p_\eta - \eta p_\xi ,

using p⋅Jq=ℓp\cdot Jq = \ell and ∣Jq∣=∣q∣|Jq| = |q|.

Canonical equations. ξ˙=pξ/m+Ωη\dot\xi = p_\xi/m + \Omega\eta, η˙=pη/m−Ωξ\dot\eta = p_\eta/m - \Omega\xi, p˙ξ=Ωpη\dot p_\xi = \Omega p_\eta, p˙η=−Ωpξ\dot p_\eta = -\Omega p_\xi.

First integrals. HH does not depend on tt, so it is conserved, although the coordinate change to the rotating frame depends on time. Moreover {ℓ,∣p∣2}=pη⋅2pξ−pξ⋅2pη=0\{\ell, |p|^2\} = p_\eta\cdot 2p_\xi - p_\xi\cdot 2p_\eta = 0 and {ℓ,ℓ}=0\{\ell, \ell\} = 0, so {ℓ,H}=0\{\ell, H\} = 0: ℓ\ell is conserved, and therefore so is ∣p∣2=2m(H+Ωℓ)|p|^2 = 2m(H + \Omega\ell).

Check with numbers. Take m=Ω=1m = \Omega = 1 and the motion q(t)=(cos⁡t+tsin⁡t, −sin⁡t+tcos⁡t)q(t) = (\cos t + t\sin t,\ -\sin t + t\cos t) found in the Hamilton's-principle example. At t=0t = 0: q=(1,0)q = (1, 0), q˙=(0,0)\dot q = (0, 0), p=(0,1)p = (0, 1), so ℓ=1\ell = 1 and H=12−1=−12H = \tfrac12 - 1 = -\tfrac12. At t=π/2t = \pi/2: q=(π/2,−1)q = (\pi/2, -1), q˙=(tcos⁡t, −tsin⁡t)=(0,−π/2)\dot q = (t\cos t,\ -t\sin t) = (0, -\pi/2), so p=q˙+Jq=(0,−π/2)+(1,π/2)=(1,0)p = \dot q + Jq = (0, -\pi/2) + (1, \pi/2) = (1, 0). Then ℓ=π2⋅0−(−1)⋅1=1\ell = \tfrac{\pi}{2}\cdot 0 - (-1)\cdot 1 = 1 and H=12−1=−12H = \tfrac12 - 1 = -\tfrac12, as predicted. The value −12-\tfrac12 is the inertial energy 12\tfrac12 minus Ω\Omega times the inertial angular momentum 11.

ApplicationOriginal

The canonical equations are the form in which mechanics is studied as a dynamical system: phase space (q,p)(q, p) carries a volume preserved by the flow (Liouville's theorem), which underlies equilibrium statistical mechanics, and the Poisson bracket {f,H}\{f, H\} becomes the commutator in the passage to quantum mechanics. Numerically, long-time simulations in celestial mechanics and molecular dynamics use integrators that respect the canonical structure (see Symplectic integrators). The rotating-frame Hamiltonian H=∣p∣2/2m−Ωℓ+VH = |p|^2/2m - \Omega\ell + V is the setting of the restricted three-body problem, where its conservation is known as the Jacobi integral.

Theorem · advanced

The Hamilton-Jacobi equation

Adapted

The action, viewed as a function of the endpoint, solves the first-order Hamilton–Jacobi equation; conversely, a complete integral of that equation produces all solutions of the canonical equations by differentiation and elimination alone (Jacobi's theorem).

Prerequisites: The canonical equations, Implicit and inverse function theorems, Differentiation under the integral sign, First-order equations and characteristics, Existence and uniqueness of solutions

DefinitionAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §23, eqs. (65)–(72) and Theorem 2, pp. 88–92

Let H(t,q,p)H(t, q, p) be a C2C^2 function on an open phase domain W⊂R×Rn×RnW \subset \mathbb{R}\times\mathbb{R}^n\times\mathbb{R}^n, for example the Hamiltonian of a Lagrangian LL satisfying the regularity hypothesis (R) of The canonical equations. Write ∇S=(∂S/∂q1,…,∂S/∂qn)\nabla S = (\partial S/\partial q_1, \dots, \partial S/\partial q_n).

  • The Hamilton–Jacobi equation is the first-order partial differential equation

    ∂S∂t+H(t,q,∇S)=0\frac{\partial S}{\partial t} + H\bigl(t, q, \nabla S\bigr) = 0

    for a C1C^1 function S(t,q)S(t, q) on an open set D⊂R×RnD \subset \mathbb{R}\times\mathbb{R}^n with (t,q,∇S(t,q))∈W(t, q, \nabla S(t, q)) \in W for all (t,q)∈D(t, q) \in D.

  • A complete integral is a family of solutions S(t,q,α)S(t, q, \alpha), with parameters α\alpha in an open set A⊂RnA \subset \mathbb{R}^n, such that SS is C2C^2 in all 2n+12n + 1 variables on an open set D⊂R×Rn×A\mathcal{D} \subset \mathbb{R}\times\mathbb{R}^n\times A and the mixed Hessian is nonsingular:

    det⁡(∂2S∂qi ∂αj)≠0on D.\det\Bigl(\frac{\partial^2 S}{\partial q_i\,\partial\alpha_j}\Bigr) \ne 0 \quad\text{on } \mathcal{D}.
  • Action as a function of the endpoint. Fix a starting event (t0,q0)(t_0, q_0). A field of extremals from (t0,q0)(t_0, q_0) is a C2C^2 map (t,a)↦Q(t,a)(t, a) \mapsto \mathsf{Q}(t, a) on [t0,t1)×A[t_0, t_1)\times A, A⊂RnA \subset \mathbb{R}^n open, such that each Q(⋅,a)\mathsf{Q}(\cdot, a) solves the Euler–Lagrange equations of LL with Q(t0,a)=q0\mathsf{Q}(t_0, a) = q_0, and Ψ(t,a)=(t,Q(t,a))\Psi(t, a) = (t, \mathsf{Q}(t, a)) is injective on (t0,t1)×A(t_0, t_1)\times A with det⁡Qa≠0\det \mathsf{Q}_a \ne 0 there. By the inverse function theorem D=Ψ((t0,t1)×A)D = \Psi\bigl((t_0, t_1)\times A\bigr) is open and Ψ−1\Psi^{-1} is C1C^1, so every (t,q)∈D(t, q) \in D is reached by exactly one extremal of the field, with label a(t,q)a(t, q). The action function is

    S(t,q)=∫t0tL(s, Q(s,a), ∂sQ(s,a)) ds,a=a(t,q).S(t, q) = \int_{t_0}^{t} L\bigl(s,\ \mathsf{Q}(s, a),\ \partial_s\mathsf{Q}(s, a)\bigr)\, ds, \qquad a = a(t, q).
TheoremAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §23, eqs. (69)–(72), p. 90, and Theorem 2 (Jacobi), pp. 91–93

(a) The action solves the Hamilton–Jacobi equation. Let LL be C2C^2 and satisfy (R), with Hamiltonian HH, and let SS be the action function of a field of extremals from (t0,q0)(t_0, q_0). Then SS is C1C^1 on DD,

∇S(t,q)=Lv(t,q,∂tQ(t,a))(the momentum of the extremal arriving at (t,q)),∂S∂t=−H(t,q,∇S).\nabla S(t, q) = L_v\bigl(t, q, \partial_t\mathsf{Q}(t, a)\bigr) \quad (\text{the momentum of the extremal arriving at } (t, q)), \qquad \frac{\partial S}{\partial t} = -H\bigl(t, q, \nabla S\bigr).

(b) Characteristics. Let S∈C2(D)S \in C^2(D) solve the Hamilton–Jacobi equation. If a C1C^1 curve q(t)q(t) in DD satisfies q˙=Hp(t,q,∇S(t,q))\dot q = H_p\bigl(t, q, \nabla S(t, q)\bigr), then q(t)q(t) together with p(t)=∇S(t,q(t))p(t) = \nabla S(t, q(t)) solves the canonical equations, and ddtS(t,q(t))=p⋅q˙−H\frac{d}{dt}S(t, q(t)) = p\cdot\dot q - H.

(c) Jacobi's theorem. Let S(t,q,α)S(t, q, \alpha) be a complete integral, and fix α∈A\alpha \in A and β∈Rn\beta \in \mathbb{R}^n.

  1. If a C1C^1 curve q(t)q(t), with (t,q(t),α)∈D(t, q(t), \alpha) \in \mathcal{D}, satisfies the nn equations ∂S∂αj(t,q(t),α)=βj(j=1,…,n),\frac{\partial S}{\partial \alpha_j}\bigl(t, q(t), \alpha\bigr) = \beta_j \qquad (j = 1, \dots, n), then q(t)q(t) and p(t)=∇S(t,q(t),α)p(t) = \nabla S\bigl(t, q(t), \alpha\bigr) solve the canonical equations.
  2. Every solution of the canonical equations whose value at some time t∗t_\ast satisfies p(t∗)=∇S(t∗,q(t∗),α∗)p(t_\ast) = \nabla S(t_\ast, q(t_\ast), \alpha_\ast) for some α∗\alpha_\ast with (t∗,q(t∗),α∗)∈D(t_\ast, q(t_\ast), \alpha_\ast) \in \mathcal{D} is, near t∗t_\ast, of the form in 1, with α=α∗\alpha = \alpha_\ast and β=∂αS(t∗,q(t∗),α∗)\beta = \partial_\alpha S(t_\ast, q(t_\ast), \alpha_\ast).

So the 2n2n constants (α,β)(\alpha, \beta) give a 2n2n-parameter family of motions, obtained without integrating the canonical equations; by 2 this family contains every motion whose momentum at some time t∗t_\ast equals ∇S(t∗,q(t∗),α)\nabla S(t_\ast, q(t_\ast), \alpha) for some admissible α\alpha.

Idea of the proofOriginal

For (a), vary the endpoint of the extremal. Because the path is an extremal, the change in action comes only from the endpoint, through the momentum: moving the endpoint by δq\delta q at fixed time changes SS by p⋅δqp\cdot\delta q, and waiting a time δt\delta t changes it by (L−p⋅q˙) δt=−H δt(L - p\cdot\dot q)\,\delta t = -H\,\delta t. For (b), a solution SS assigns a momentum ∇S\nabla S to every point; moving along the velocity field HpH_p and differentiating the equation in qq shows that this momentum evolves by p˙=−Hq\dot p = -H_q. So the canonical equations are the characteristic equations of the Hamilton–Jacobi equation. For (c), the quantities ∂S/∂αj\partial S/\partial\alpha_j do not change along such characteristics, because the equation holds for every α\alpha. Fixing their values pins down the curve.

ProofAdaptedAdapted from Gelfand & Fomin (1963), Ch. 4, §23, pp. 89–93

Part (a). Put σ(t,a)=∫t0tL(s,Q,∂sQ) ds\sigma(t, a) = \int_{t_0}^t L\bigl(s, \mathsf{Q}, \partial_s\mathsf{Q}\bigr)\, ds on [t0,t1)×A[t_0, t_1)\times A and P(t,a)=Lv(t,Q,∂tQ)P(t, a) = L_v\bigl(t, \mathsf{Q}, \partial_t\mathsf{Q}\bigr), the momentum along the extremal with label aa.

  1. Derivatives of σ\sigma. By the fundamental theorem of calculus, ∂tσ=L(t,Q,∂tQ)\partial_t\sigma = L\bigl(t, \mathsf{Q}, \partial_t\mathsf{Q}\bigr). The integrand is C1C^1 in aa because LL is C2C^2 and Q\mathsf{Q} is C2C^2, so we may differentiate under the integral sign:

    ∂σ∂aj=∫t0t(Lq⋅∂ajQ+Lv⋅∂s∂ajQ) ds,\frac{\partial\sigma}{\partial a_j} = \int_{t_0}^t \Bigl( L_q\cdot \partial_{a_j}\mathsf{Q} + L_v\cdot \partial_s\partial_{a_j}\mathsf{Q} \Bigr)\, ds ,

    where we used ∂aj∂sQ=∂s∂ajQ\partial_{a_j}\partial_s\mathsf{Q} = \partial_s\partial_{a_j}\mathsf{Q} (Q\mathsf{Q} is C2C^2).

  2. Use that each curve is an extremal. Along Q(⋅,a)\mathsf{Q}(\cdot, a) the Euler–Lagrange equation gives Lq=∂sPL_q = \partial_s P. The integrand is therefore ∂s(P⋅∂ajQ)\partial_s\bigl(P\cdot\partial_{a_j}\mathsf{Q}\bigr), and

    ∂σ∂aj(t,a)=P(t,a)⋅∂ajQ(t,a)−P(t0,a)⋅∂ajQ(t0,a)=P(t,a)⋅∂ajQ(t,a),\frac{\partial\sigma}{\partial a_j}(t, a) = P(t, a)\cdot\partial_{a_j}\mathsf{Q}(t, a) - P(t_0, a)\cdot\partial_{a_j}\mathsf{Q}(t_0, a) = P(t, a)\cdot\partial_{a_j}\mathsf{Q}(t, a),

    because every extremal of the field starts at q0q_0, so Q(t0,a)\mathsf{Q}(t_0, a) does not depend on aa and ∂ajQ(t0,a)=0\partial_{a_j}\mathsf{Q}(t_0, a) = 0.

  3. Transfer to SS. On (t0,t1)×A(t_0, t_1)\times A we have S(t,Q(t,a))=σ(t,a)S\bigl(t, \mathsf{Q}(t, a)\bigr) = \sigma(t, a), and S=σ∘Ψ−1S = \sigma\circ\Psi^{-1} is C1C^1. The chain rule gives

    ∇S⋅∂ajQ=∂ajσ=P⋅∂ajQ(j=1,…,n),∂tS+∇S⋅∂tQ=∂tσ=L.\nabla S\cdot\partial_{a_j}\mathsf{Q} = \partial_{a_j}\sigma = P\cdot\partial_{a_j}\mathsf{Q} \quad (j = 1, \dots, n), \qquad \partial_t S + \nabla S\cdot\partial_t\mathsf{Q} = \partial_t\sigma = L .

    The vectors ∂ajQ\partial_{a_j}\mathsf{Q} form the invertible matrix Qa\mathsf{Q}_a, so the first set of equations forces ∇S=P\nabla S = P. The second then gives ∂tS=L−P⋅∂tQ\partial_t S = L - P\cdot\partial_t\mathsf{Q}. By (R), ∂tQ=v^(t,q,P)\partial_t\mathsf{Q} = \hat v(t, q, P), so the right side is −H(t,q,P)=−H(t,q,∇S)-H(t, q, P) = -H(t, q, \nabla S).

Part (b). Let p(t)=∇S(t,q(t))p(t) = \nabla S(t, q(t)); it is C1C^1 because SS is C2C^2.

  1. Differentiating along the curve, p˙i=∂t∂qiS+∑k∂qk∂qiS  q˙k\dot p_i = \partial_t\partial_{q_i}S + \sum_k \partial_{q_k}\partial_{q_i}S\;\dot q_k.

  2. Differentiating the Hamilton–Jacobi equation with respect to qiq_i (allowed since SS is C2C^2 and HH is C1C^1), with HH and its derivatives evaluated at (t,q,∇S)(t, q, \nabla S):

    ∂qi∂tS+Hqi+∑kHpk ∂qi∂qkS=0.\partial_{q_i}\partial_t S + H_{q_i} + \sum_k H_{p_k}\,\partial_{q_i}\partial_{q_k}S = 0 .
  3. Mixed partials of SS commute, and q˙k=Hpk\dot q_k = H_{p_k} by hypothesis. Subtracting the two lines gives p˙i=−Hqi\dot p_i = -H_{q_i}. Together with q˙=Hp\dot q = H_p these are the canonical equations. Finally ddtS(t,q(t))=∂tS+∇S⋅q˙=−H+p⋅q˙\frac{d}{dt}S(t, q(t)) = \partial_t S + \nabla S\cdot\dot q = -H + p\cdot\dot q.

Part (c). All derivatives of HH are evaluated at (t,q,∇S(t,q,α))(t, q, \nabla S(t, q, \alpha)).

  1. Differentiate the equation in the parameters. For each fixed α\alpha the function S(⋅,⋅,α)S(\cdot, \cdot, \alpha) solves the Hamilton–Jacobi equation, so the identity holds on D\mathcal{D} and may be differentiated in αj\alpha_j:

    ∂αj∂tS+∑kHpk ∂αj∂qkS=0.\partial_{\alpha_j}\partial_t S + \sum_k H_{p_k}\,\partial_{\alpha_j}\partial_{q_k} S = 0 .
  2. Differentiate the defining relations along the curve. Since ∂αjS(t,q(t),α)=βj\partial_{\alpha_j}S(t, q(t), \alpha) = \beta_j is constant in tt,

    ∂t∂αjS+∑k∂qk∂αjS  q˙k=0.\partial_t\partial_{\alpha_j}S + \sum_k \partial_{q_k}\partial_{\alpha_j}S\;\dot q_k = 0 .
  3. Use the nondegeneracy. Subtracting step 7 from step 8, and exchanging mixed partials of the C2C^2 function SS,

    ∑k∂2S∂qk ∂αj (q˙k−Hpk)=0(j=1,…,n).\sum_k \frac{\partial^2 S}{\partial q_k\,\partial\alpha_j}\,\bigl(\dot q_k - H_{p_k}\bigr) = 0 \qquad (j = 1, \dots, n).

    The matrix is nonsingular, so q˙=Hp(t,q,∇S(t,q,α))\dot q = H_p\bigl(t, q, \nabla S(t, q, \alpha)\bigr). Part (b), applied to S(⋅,⋅,α)S(\cdot, \cdot, \alpha), now shows that (q,p)(q, p) solves the canonical equations. This proves 1.

  4. Every solution arises this way. Let (qˉ,pˉ)(\bar q, \bar p) be a solution with pˉ(t∗)=∇S(t∗,q∗,α∗)\bar p(t_\ast) = \nabla S(t_\ast, q_\ast, \alpha_\ast), where q∗=qˉ(t∗)q_\ast = \bar q(t_\ast), and set β=∂αS(t∗,q∗,α∗)\beta = \partial_\alpha S(t_\ast, q_\ast, \alpha_\ast). The map q↦∂αS(t,q,α∗)q \mapsto \partial_\alpha S(t, q, \alpha_\ast) has invertible Jacobian (the transpose of the mixed Hessian), so by the implicit function theorem the equations ∂αS(t,q,α∗)=β\partial_\alpha S(t, q, \alpha_\ast) = \beta define a C1C^1 curve q(t)q(t) near t∗t_\ast with q(t∗)=q∗q(t_\ast) = q_\ast. By 1, it gives a solution (q,p)(q, p) of the canonical equations with p(t∗)=∇S(t∗,q∗,α∗)=pˉ(t∗)p(t_\ast) = \nabla S(t_\ast, q_\ast, \alpha_\ast) = \bar p(t_\ast). The right-hand side of the canonical equations is C1C^1 because HH is C2C^2, so by uniqueness of solutions the two solutions coincide near t∗t_\ast. □\square

Remark(Where the hypotheses are used)Original
  • The field condition in (a), that each (t,q)(t, q) is reached by exactly one extremal of the family with det⁡Qa≠0\det\mathsf{Q}_a \ne 0, is used in step 3 to solve for ∇S\nabla S. It fails where neighbouring extremals cross. For the oscillator H=p2/2m+12mω2q2H = p^2/2m + \tfrac12 m\omega^2 q^2 with q0=0q_0 = 0, t0=0t_0 = 0, the extremals Q(t,a)=(a/ω)sin⁡ωt\mathsf{Q}(t, a) = (a/\omega)\sin\omega t form a field for 0<t<π/ω0 < t < \pi/\omega, and the action function is S=12mω q2cot⁡ωtS = \tfrac12 m\omega\, q^2\cot\omega t, which solves the Hamilton–Jacobi equation there. At t=π/ωt = \pi/\omega every extremal returns to q=0q = 0 and SS blows up. These crossing points are the conjugate points of Conjugate points and Jacobi's condition.
  • The fixed starting point is used in step 2. If the extremals started from different points, a boundary term at t0t_0 would remain.
  • The nondegeneracy det⁡(∂2S/∂q ∂α)≠0\det(\partial^2 S/\partial q\,\partial\alpha) \ne 0 is used in step 9 to cancel the matrix, and in step 10 for the implicit function theorem. A family of solutions with fewer than nn effective parameters, such as SS not depending on some αj\alpha_j, gives too few equations to determine q(t)q(t).
  • C2C^2 regularity of SS is used in step 6 and step 9, where mixed partial derivatives of SS are exchanged, and in step 7, where the Hamilton–Jacobi equation is differentiated in α\alpha. (Step 1 exchanges mixed partials of the field map Q\mathsf{Q}, which is C2C^2 by hypothesis; SS plays no part there.) Under the hypotheses of (a) the action function is in fact C2C^2, so (b) applies to it directly: ∇S=Lv(t,q,∂tQ∘Ψ−1)\nabla S = L_v\bigl(t, q, \partial_t\mathsf{Q}\circ\Psi^{-1}\bigr) is C1C^1, because LL is C2C^2, ∂tQ\partial_t\mathsf{Q} is C1C^1 and Ψ−1\Psi^{-1} is C1C^1; and then ∂tS=−H(t,q,∇S)\partial_t S = -H(t, q, \nabla S) is C1C^1 because HH is C2C^2.
Remark(Relation to the method of characteristics)AdaptedAdapted from Evans (2010), §3.2.5, Example 6, pp. 109–110

When HH is linear in pp, say H=b(t,q)⋅p+c(t,q)H = b(t, q)\cdot p + c(t, q), the Hamilton–Jacobi equation is the linear equation St+b⋅∇S=−cS_t + b\cdot\nabla S = -c treated in First-order equations and characteristics. Its characteristic curves solve q˙=b=Hp\dot q = b = H_p, and along them SS changes at the rate −c=p⋅Hp−H-c = p\cdot H_p - H. Part (b) is exactly this, extended to a general nonlinear HH. The new feature is that the characteristic speed HpH_p depends on the unknown slope ∇S\nabla S, so the slope must be carried along the characteristic too, and it evolves by p˙=−Hq\dot p = -H_q. In this sense the canonical equations are the characteristic system of the Hamilton–Jacobi equation, and conversely a solution of the PDE can be built by solving the canonical equations.

Example(Vertical throw)Original

A ball of mass mm moves vertically in uniform gravity γ\gamma, so H(q,p)=p2/2m+mγqH(q, p) = p^2/2m + m\gamma q, with qq the height.

Action function (part (a)). The extremals from (t0,q0)=(0,0)(t_0, q_0) = (0, 0) are Q(t,a)=at−12γt2\mathsf{Q}(t, a) = a t - \tfrac12\gamma t^2, and for t>0t > 0 the label of the extremal through (t,q)(t, q) is a=(q+12γt2)/ta = (q + \tfrac12\gamma t^2)/t. Integrating L=12mQ˙2−mγQL = \tfrac12 m\dot{\mathsf{Q}}^2 - m\gamma\mathsf{Q} along it gives

S(t,q)=mq22t−mγqt2−mγ2t324.S(t, q) = \frac{m q^2}{2t} - \frac{m\gamma q t}{2} - \frac{m\gamma^2 t^3}{24}.

Then ∇S=mq/t−mγt/2=m(a−γt)\nabla S = m q/t - m\gamma t/2 = m(a - \gamma t), which is the momentum mQ˙m\dot{\mathsf{Q}} at time tt. A direct computation gives St+(Sq)2/2m+mγq=0S_t + (S_q)^2/2m + m\gamma q = 0, as part (a) asserts.

A complete integral (part (c)). Try a solution affine in qq, S=(α−mγt) q+f(t)S = (\alpha - m\gamma t)\,q + f(t). Then Sq=α−mγtS_q = \alpha - m\gamma t, and the equation becomes f′(t)+(α−mγt)2/2m=0f'(t) + (\alpha - m\gamma t)^2/2m = 0, so

S(t,q,α)=(α−mγt) q+(α−mγt)36m2γ,∂2S∂q ∂α=1≠0.S(t, q, \alpha) = (\alpha - m\gamma t)\, q + \frac{(\alpha - m\gamma t)^3}{6 m^2\gamma}, \qquad \frac{\partial^2 S}{\partial q\,\partial\alpha} = 1 \ne 0 .

Jacobi's theorem gives the motion by differentiation alone:

β=∂S∂α=q+(α−mγt)22m2γ⟹q(t)=β−(α−mγt)22m2γ,p(t)=∂S∂q=α−mγt.\beta = \frac{\partial S}{\partial\alpha} = q + \frac{(\alpha - m\gamma t)^2}{2m^2\gamma} \quad\Longrightarrow\quad q(t) = \beta - \frac{(\alpha - m\gamma t)^2}{2m^2\gamma}, \qquad p(t) = \frac{\partial S}{\partial q} = \alpha - m\gamma t .

So α\alpha is the momentum at t=0t = 0 and β\beta is the height at which p=0p = 0, the top of the flight.

Numbers. Take m=2 kgm = 2\ \mathrm{kg} and γ=9.8 m/s2\gamma = 9.8\ \mathrm{m/s^2}, and throw the ball upward from q(0)=1 mq(0) = 1\ \mathrm{m} at 4.9 m/s4.9\ \mathrm{m/s}. Then α=9.8 kg m/s\alpha = 9.8\ \mathrm{kg\,m/s} and

β=1+9.822⋅22⋅9.8=1+1.225=2.225 m.\beta = 1 + \frac{9.8^2}{2\cdot 2^2\cdot 9.8} = 1 + 1.225 = 2.225\ \mathrm{m}.

The top is reached when p=0p = 0, at t=α/(mγ)=0.5 st = \alpha/(m\gamma) = 0.5\ \mathrm{s}. At t=1 st = 1\ \mathrm{s} the formulas give q=2.225−1.225=1 mq = 2.225 - 1.225 = 1\ \mathrm{m} and p=−9.8 kg m/sp = -9.8\ \mathrm{kg\,m/s}: the ball is back at its starting height, moving down at its launch speed, as energy conservation requires.

ApplicationOriginal

In geometrical optics the Hamilton–Jacobi equation becomes the eikonal equation ∣∇S∣=n(x)|\nabla S| = n(x) for the optical path length SS; its level sets are wavefronts and its characteristics are light rays, which is how ray tracing and wavefront propagation are related. In quantum mechanics, inserting ψ=eiS/ℏ\psi = e^{iS/\hbar} into the Schrödinger equation and keeping the leading order in ℏ\hbar gives the Hamilton–Jacobi equation, the starting point of the WKB approximation. In celestial mechanics, finding a complete integral by separating variables (for example S=−Et+W(q)S = -Et + W(q) when HH does not depend on tt) is the classical route to the Kepler orbits and to action–angle variables. In optimal control, the value function of a control problem satisfies a Hamilton–Jacobi–Bellman equation of the same form.