Skip to main content
Physics LibreTexts

4.6: Derivation of Hamilton’s Principle from Newton’s Laws in Cartesian Co-ordinates- Calculus of Variations Done Backwards!

  • Page ID
    29548
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    We’ve shown how, given an integrand, we can find differential equations for the path in space time between two fixed points that minimizes the corresponding path integral between those points.

    Now we’ll do the reverse: we already know the differential equations in Cartesian coordinates describing the path taken by a Newtonian particle in some potential. We’ll show how to use that knowledge to construct the integrand such that the action integral is a minimum along that path. (This follows Jeffreys and Jeffreys, Mathematical Physics.)

    We begin with the simplest nontrivial system, a particle of mass m moving in one dimension from one point to another in a specified time, we’ll assume it’s in a time-independent potential \(\begin{equation}
    U(x)
    \end{equation}\), so

    \begin{equation}
    m \ddot{x}=-d U(x) / d x
    \end{equation}

    Its path can be represented as a graph \(\begin{equation}
    x(t)
    \end{equation}\) against time—for example, for a ball thrown directly upwards in a constant gravitational field this would be a parabola.

    Initial and final positions are given: \(\begin{equation}
    x\left(t_{1}\right)=x_{1}, x\left(t_{2}\right)=x_{2}, \text { and the elapsed time is } t_{2}-t_{1}
    \end{equation}\)

    Notice we have not specified the initial velocity—we don’t have that option. The differential equation is only second order, so its solution is completely determined by the two (beginning and end) boundary conditions.

    We’re now ready to embark on the calculus of variations in reverse.

    Trivially, multiplying both sides of the equation of motion by an arbitrary infinitesimal function the equality still holds:

    \begin{equation}
    m \ddot{x} \delta x(t)=-(d U(x) / d x) \delta x(t)
    \end{equation}

    and in fact if this equation is true for arbitrary \(\begin{equation}
    \delta x(t)
    \end{equation}\), the original equation of motion holds throughout, because we can always choose a \(\begin{equation}
    \delta x(t)
    \end{equation}\) nonzero only in the neighborhood of a particular time t, from which the original equation must be true at that t.

    By analogy with Fermat’s principle in the preceding section, we can picture this \(\begin{equation}
    \delta x(t)
    \end{equation}\) as a slight variation in the path from the Newtonian trajectory, \(\begin{equation}
    x(t) \rightarrow x(t)+\delta x(t)
    \end{equation}\) and take the variation zero at the fixed ends, \(\begin{equation}
    \delta x\left(t_{1}\right)=\delta x\left(t_{2}\right)=0
    \end{equation}\)

    In Fermat’s case, the integrated time elapsed along the path was minimized—there was zero change to first order on going to a neighboring path. Developing the analogy, we’re looking for some dynamical quantity that has zero change to first order on going to a neighboring path having the same endpoints in space and time. We’ve fixed the time, what’s left to integrate along the path?

    For such a simple system, we don’t have many options! As we’ve discussed above, the equation of motion is equivalent to (putting in an overall minus sign that will prove convenient)

    \begin{equation}
    \int_{t_{1}}^{t_{2}}(-m \ddot{x}(t)-d U(x(t)) / d x) \delta x(t) d t=0 \quad \text { to leading order, for all variations } \delta x(t)
    \end{equation}

    Integrating the first term by parts (recalling \(\begin{equation}
    \delta(x)=0
    \end{equation}\) at the endpoints):

    \begin{equation}
    -\int_{t_{1}}^{t_{2}} m \ddot{x}(t) \delta x(t) d t=\int_{t_{1}}^{t_{2}} m \dot{x}(t) \delta \dot{x}(t) d t=\int_{t_{1}}^{t_{2}} \delta\left(\frac{1}{2} m \dot{x}^{2}(t)\right) d t=\int_{t_{1}}^{t_{2}} \delta T(x(t)) d t
    \end{equation}

    using the standard notation T for kinetic energy.

    The second term integrates trivially:

    \begin{equation}
    -\int_{t_{1}}^{t_{2}}(d U(x) / d x) \delta x(t) d t=-\int_{t_{1}}^{t_{2}} \delta U(x) d t
    \end{equation}

    establishing that on making an infinitesimal variation from the physical path (the one that satisfies Newton's laws) there is zero first order change in the integral of kinetic energy minus potential energy.

    The standard notation is

    \begin{equation}
    \delta S=\delta \int_{t_{1}}^{t_{2}}(T-U) d t=\delta \int_{t_{1}}^{t_{2}} L d t=0
    \end{equation}

    The integral S is called the action integral, (also known as Hamilton’s Principal Function) and the integrand T−U=L is called the Lagrangian.

    This equation is Hamilton’s Principle.

    The derivation can be extended straightforwardly to a particle in three dimensions, in fact to n interacting particles in three dimensions. We shall assume that the forces on particles can be derived from potentials, including possibly time-dependent potentials, but we exclude frictional energy dissipation in this course. (It can be handled—see for example Vujanovic and Jones, Variational Methods in Nonconservative Phenomena, Academic press, 1989.)


    • Was this article helpful?