Skip to main content
Chemistry LibreTexts

1.1: The Lagrangian Formulation of Classical Mechanics

  • Page ID
  • \( \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}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    In order to begin to make a connection between the microscopic and macroscopic worlds, we need to better understand the microscopic world and the laws that govern it. We will begin placing Newton's laws of motion in a formal framework which will be heavily used in our study of classical statistical mechanics.

    First, we begin by restricting our discussion to systems for which the forces are purely conservative. Such forces are derivable from a potential energy function \(U (r_1, \cdots , r_N)\) by differentiation:

    \[ F_i = - \frac {\partial U}{\partial r_i} \nonumber \]

    It is clear that such forces cannot contain dissipative or friction terms. An important property of systems whose forces are conservative is that they conserve the total energy

    \[ E = K + U = \frac {1}{2} \sum _{i=1}^N m_i \dot {r} ^2_i + U (r_1, \cdots , r_N ) \nonumber \]

    To see this, simply differentiate the energy with respect to time:

    \[ \begin{align*} \frac {dE}{dt} &= \sum _{i=1}^N m_i \dot {r} _i \cdot \ddot {r}_i + \sum _{i=1}^N \frac {\partial U}{\partial r_i} \cdot \dot {r} _i \\[4pt] &=\sum _{i=1}^N \dot {r} _i \cdot F_i - \sum _{i=1}^N F_i \cdot \dot {r} _i \\[4pt] &= 0 \end{align*} \]

    where, the second line, the facts that \(\ddot {r} _i = \frac {F_i}{m_i} \) (Newton's law) and \(F_i = - \frac {\partial U}{\partial r_i} \) (conservative force definition) have been used. This is known as the law of conservation of energy.

    For conservative systems, there is an elegant formulation of classical mechanics known as the Lagrangian formulation. The Lagrangian function, \(L\), for a system is defined to be the difference between the kinetic and potential energies expressed as a function of positions and velocities. In order to make the nomenclature more compact, we shall introduce a shorthand for the complete set of positions in an \(N\)-particle system: \(r \equiv r_1, \cdots , r_N \) and for the velocities: \(\dot {r} \equiv \dot {r}_1, \cdots , \dot {r} _N \). Then, the Lagrangian is defined as follows:

    \[ L (r, \dot {r} ) = K - U = \sum _{i=1}^N \frac {1}{2} m_i \dot {r}^2_i - U (r_1, \cdots , r_N ) \nonumber \]

    In terms of the Lagrangian, the classical equations of motion are given by the so called Euler-Lagrange equation:

    \[ \frac {d}{dt} \left ( \frac {\partial L}{\partial \dot {r} _i} \right ) - \frac {\partial L}{\partial r_i} = 0 \nonumber \]

    The equations that result from application of the Euler-Lagrange equation to a particular Lagrangian are known as the equations of motion. The solution of the equations of motion for a given initial condition is known as a trajectory of the system. The Euler-Lagrange equation results from what is known as an action principle. We shall defer further discussion of the action principle until we study the Feynman path integral formulation of quantum statistical mechanics in terms of which the action principle emerges very naturally. For now, we accept the Euler-Lagrange equation as a definition.

    The Euler-Lagrange formulation is completely equivalent to Newton's second law. In order to see this, note that

    \[ \begin{align*} \frac {\partial L}{\partial \dot {r} _i} &= m_i \dot {r} _i \\[4pt] \frac {\partial L}{\partial r _i} &= - \frac {\partial U}{\partial r _i} = F_i \end{align*} \]


    \[ \frac {d}{dt} \left ( \frac {\partial L}{\partial \dot {r} _i} \right ) - \frac {\partial L}{\partial r _i} = m_i \ddot {r} _i - F_i = 0 \nonumber \]

    which is just Newton's equation of motion.

    An important property of the Lagrangian formulation is that it can be used to obtain the equations of motion of a system in any set of coordinates, not just the standard Cartesian coordinates, via the Euler-Lagrange equation (see problem set #1).

    This page titled 1.1: The Lagrangian Formulation of Classical Mechanics is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Mark Tuckerman.