Ph · Physics

What Variables Does the Action Depend On?

Published By the 9to5Science editorial team

At a glance

  1. 1. Specify the path

    In Lagrangian mechanics, the action is a functional of the system’s trajectory over a time interval.

  2. 2. Evaluate the Lagrangian

    At each time, the Lagrangian uses the coordinates, their time derivatives, time, and any specified parameters or external data.

  3. 3. Integrate over time

    Integrate the Lagrangian between the chosen initial and final times to obtain one number for that path.

  4. 4. Vary admissible paths

    Hamilton’s principle compares paths with the same fixed endpoints; the physical path makes the first-order action change vanish.

Advertisement

In classical mechanics, the action is not usually a function of a particle’s position at one instant. It is a functional: an input is an entire trajectory over a time interval, and the output is a number. This distinction explains why the action can be varied to find the equations of motion.

The action as a functional of a path

For generalized coordinates q1(t),…,qn(t)q_1(t),\ldots,q_n(t), the action between times t1t_1 and t2t_2 is

S[q]=∫t1t2L(q1(t),…,qn(t),q˙1(t),…,q˙n(t),t) dt.S[q]=\int_{t_1}^{t_2} L(q_1(t),\ldots,q_n(t),\dot q_1(t),\ldots,\dot q_n(t),t)\,dt.

Here LL is the Lagrangian, often kinetic energy minus potential energy, and q˙i=dqi/dt\dot q_i=dq_i/dt. The notation S[q]S[q] emphasizes that the input is the set of functions qi(t)q_i(t), not just a list of coordinate values. The integral assigns one action value to each admissible path.

The action also depends on the chosen time interval and on the Lagrangian’s specified parameters or external data. For example, mass, coupling constants, and a prescribed external force may enter LL. If the Lagrangian explicitly depends on time, then the time dependence is included inside the integral as well.

What varies in Hamilton’s principle?

To derive the equations of motion, compare a path q(t)q(t) with nearby paths. For fixed endpoints, write a varied path as

qϵ(t)=q(t)+ϵη(t),η(t1)=η(t2)=0.q_\epsilon(t)=q(t)+\epsilon\eta(t), \qquad \eta(t_1)=\eta(t_2)=0.

The action changes as ϵ\epsilon changes. Hamilton’s principle requires the first-order change to vanish at the physical path: δS=0\delta S=0. This does not generally mean that the action is the smallest possible value; “stationary” includes minima, maxima, and saddle points.

The endpoint conditions matter. In the usual fixed-endpoint version, the initial and final times and coordinates are held fixed during the variation. They are boundary data for the comparison, not independent values that can be changed freely in that variation. Other variational problems can allow endpoints to move, but then their boundary conditions and resulting equations must be adjusted.

Worked example: a free particle

For a free particle of mass mm moving in one dimension, the Lagrangian is L=12mq˙2L=\tfrac12m\dot q^2. Let the interval have duration TT, and compare paths with the same endpoints separated by distance vTvT:

qϵ(t)=q0+vt+ϵsin⁡ ⁣(πtT),0≤t≤T.q_\epsilon(t)=q_0+vt+\epsilon\sin\!\left(\frac{\pi t}{T}\right), \qquad 0\leq t\leq T.

Every value of ϵ\epsilon gives the same positions at the endpoints, because the sine term vanishes there. The velocity is

q˙ϵ(t)=v+ϵπTcos⁡ ⁣(πtT).\dot q_\epsilon(t)=v+\epsilon\frac{\pi}{T}\cos\!\left(\frac{\pi t}{T}\right).

Substituting this velocity into the action gives

S[qϵ]=m2∫0T(v+ϵπTcos⁡ ⁣(πtT))2dt=12mv2T+mϵ2π24T.\begin{aligned} S[q_\epsilon] &=\frac{m}{2}\int_0^T\left(v+\epsilon\frac{\pi}{T}\cos\!\left(\frac{\pi t}{T}\right)\right)^2dt\\ &=\frac12mv^2T+\frac{m\epsilon^2\pi^2}{4T}. \end{aligned}

The term linear in ϵ\epsilon integrates to zero, so the first-order change in action vanishes at ϵ=0\epsilon=0. For instance, take m=2 kgm=2\,\mathrm{kg}, T=2 sT=2\,\mathrm{s}, v=1 m/sv=1\,\mathrm{m/s}, and ϵ=0.1 m\epsilon=0.1\,\mathrm{m}. The straight path has action 2 J s2\,\mathrm{J\,s}, while the varied path has action about 2.0247 J s2.0247\,\mathrm{J\,s}. The action depends on the chosen trajectory, even though the endpoints are the same.

From the action functional to endpoint functions

There is a related use of the symbol SS. If you first choose the path that solves the equations of motion for given endpoints, then evaluate the action on that path, the result can be written as a function of endpoint data, for example S(qf,tf;qi,ti)S(q_f,t_f;q_i,t_i). This is the Hamilton principal function. It is different from the action functional before a path has been selected: the functional takes a path as input, while the principal function takes boundary data and refers to the classical path connecting them.

In field theory, the same idea applies with a field configuration replacing the particle’s trajectory. The action is then a functional of fields over a spacetime region.

Common mistakes

  • Calling SS a function only of position. The action depends on a whole history q(t)q(t); knowing the position at one instant is not enough to calculate it.
  • Treating qq and q˙\dot q as independent paths. In the ordinary Lagrangian action, velocity is the time derivative of the coordinate path. The Lagrangian uses both, but a path variation changes them consistently.
  • Forgetting the interval or system data. Changing the limits, mass, potential, or external fields can change the action even if a path’s coordinate values are otherwise unchanged.
  • Confusing the action with its stationary value. The action functional can be evaluated on many paths. The principal function is the action evaluated on a classical path with specified boundary data.

References

  1. Classical Mechanics, Herbert Goldstein, Charles Poole, and John Safko
  2. The Variational Principles of Mechanics, Cornelius Lanczos

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