Ph · Physics

Hamilton’s Principal and Characteristic Functions: What’s the Difference?

Published By the 9to5Science editorial team

At a glance

  1. 1. Start with the HJ equation

    The principal function S(q,t) obeys the Hamilton–Jacobi equation and encodes the action along a classical trajectory.

  2. 2. Use time independence

    For an autonomous Hamiltonian, separate time as S = W − Et; W is the characteristic function.

  3. 3. Try additive separation

    Write W as a sum of functions of individual coordinates, then check whether the equation splits into ordinary differential equations.

  4. 4. Read off the motion

    Differentiate the complete solution with respect to its constants to obtain relations that determine the trajectory.

Hamilton’s principal and characteristic functions are two related ways of expressing the action in Hamiltonian mechanics. Their distinction is especially useful when solving the Hamilton–Jacobi equation and deciding whether a system’s motion separates into simpler coordinate equations.

The principal function depends on position and time. For an autonomous system, its time dependence can be separated, leaving the characteristic function, which depends only on position and constants such as the energy.

Hamilton’s principal function

For generalized coordinates q=(q1,…,qn)q=(q_1,\ldots,q_n), Hamilton’s principal function S(q,t)S(q,t) is the action evaluated along a classical path from a fixed initial event to the endpoint (q,t)(q,t). As a function of that endpoint, it satisfies the Hamilton–Jacobi equation:

∂S∂t+H(q1,…,qn,∂S∂q1,…,∂S∂qn,t)=0.\frac{\partial S}{\partial t}+H\left(q_1,\ldots,q_n,\frac{\partial S}{\partial q_1},\ldots,\frac{\partial S}{\partial q_n},t\right)=0.

The derivatives of SS give the canonical momenta along the corresponding path:

pi=∂S∂qi.p_i=\frac{\partial S}{\partial q_i}.

Thus, solving for SS is a way to encode the dynamics in a single function. A sufficiently general solution, called a complete integral, includes enough independent constants to specify a family of trajectories. Those constants can be related to initial conditions.

Hamilton’s characteristic function

If the Hamiltonian has no explicit time dependence, the energy is conserved and it is natural to try a separated form:

S(q,t)=W(q)−Et.S(q,t)=W(q)-Et.

Here EE is the constant energy, and W(q)W(q) is Hamilton’s characteristic function, also called the abbreviated action. Substituting this form into the Hamilton–Jacobi equation gives the time-independent equation

H(q1,…,qn,∂W∂q1,…,∂W∂qn)=E.H\left(q_1,\ldots,q_n,\frac{\partial W}{\partial q_1},\ldots,\frac{\partial W}{\partial q_n}\right)=E.

For a particular path, WW can be expressed as the integral of momentum along the path, W=∫∑ipi dqiW=\int \sum_i p_i\,dq_i. Unlike the principal function, it contains no explicit time term. The simple form S=W−EtS=W-Et relies on a time-independent Hamiltonian; it generally does not apply when the Hamiltonian depends explicitly on time.

What separability means

The Hamilton–Jacobi equation is a partial differential equation. It is separable in a chosen coordinate system when a solution can be written as a sum of single-coordinate functions, for example

W(q1,…,qn)=∑i=1nWi(qi).W(q_1,\ldots,q_n)=\sum_{i=1}^{n}W_i(q_i).

Then each momentum is pi=dWi/dqip_i=dW_i/dq_i. Substituting the sum into the fixed-energy equation may allow the equation to split into separate ordinary differential equations, one for each coordinate. The split introduces separation constants; their values, together with the energy, label the solutions. Whether this works depends on both the Hamiltonian and the coordinates: not every system is separable in every coordinate system.

Worked example: two uncoupled oscillators

Consider two coordinates with masses mm and independent oscillator frequencies ωx\omega_x and ωy\omega_y:

H=px2+py22m+m2(ωx2x2+ωy2y2).H=\frac{p_x^2+p_y^2}{2m}+\frac{m}{2}\left(\omega_x^2x^2+\omega_y^2y^2\right).

Because the Hamiltonian is time independent, use S=W−EtS=W-Et. Try W(x,y)=Wx(x)+Wy(y)W(x,y)=W_x(x)+W_y(y). The fixed-energy equation becomes

12m[(dWxdx)2+(dWydy)2]+m2(ωx2x2+ωy2y2)=E.\frac{1}{2m}\left[\left(\frac{dW_x}{dx}\right)^2+\left(\frac{dW_y}{dy}\right)^2\right]+\frac{m}{2}\left(\omega_x^2x^2+\omega_y^2y^2\right)=E.

Terms depending only on xx can be separated from terms depending only on yy by setting each coordinate’s contribution equal to a constant energy:

12m(dWxdx)2+mωx2x22=Ex,12m(dWydy)2+mωy2y22=Ey,Ex+Ey=E.\frac{1}{2m}\left(\frac{dW_x}{dx}\right)^2+\frac{m\omega_x^2x^2}{2}=E_x, \qquad \frac{1}{2m}\left(\frac{dW_y}{dy}\right)^2+\frac{m\omega_y^2y^2}{2}=E_y, \qquad E_x+E_y=E.

For example, the xx equation gives

dWxdx=±2mEx−m2ωx2x2.\frac{dW_x}{dx}=\pm\sqrt{2mE_x-m^2\omega_x^2x^2}.

For Ex>0E_x>0 and ωx>0\omega_x>0, choosing a momentum branch and integrating gives

Wx(x)=±[x22mEx−m2ωx2x2+Exωxarcsin⁡(mωxx2mEx)]+C,W_x(x)=\pm\left[\frac{x}{2}\sqrt{2mE_x-m^2\omega_x^2x^2}+\frac{E_x}{\omega_x}\arcsin\left(\frac{m\omega_xx}{\sqrt{2mE_x}}\right)\right]+C,

on a classically allowed interval, where the square root is real. The yy part has the same form with yy, EyE_y, and ωy\omega_y. The characteristic function is W=Wx+WyW=W_x+W_y, and the principal function is S=W−EtS=W-Et. The separation constants ExE_x and EyE_y express how the total energy is divided between the two independent oscillators.

Common mistakes

  • Treating SS and WW as interchangeable. SS includes time dependence; WW is the spatial part for a time-independent Hamiltonian at fixed energy.
  • Assuming every system separates. Additive separation is a property of a particular Hamiltonian in a particular coordinate system, not a universal feature.
  • Forgetting the separation constants. Splitting the equation introduces constants such as ExE_x and EyE_y; they must satisfy the original total-energy equation.
  • Ignoring momentum branches. The square root in a separated momentum equation can have either sign. The sign distinguishes directions of motion and may change at a turning point.

References

  1. Classical Mechanics, Herbert Goldstein, Charles Poole, and John Safko
  2. Mechanics, L. D. Landau and E. M. Lifshitz

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.