Skip to main content
Physics LibreTexts

10.3: Generating Functions for Canonical Transformations

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

    In this section, we go back to considering the full action (not the abbreviated--fixed energy--action used earlier).

    Now, we've established that Hamilton’s equations in the original parameterization follow from minimizing the action in the form

    \begin{equation}
    \delta \int\left(\sum_{i} p_{i} d q_{i}-H d t\right)=0
    \end{equation}

    For a canonical transformation, by definition the new variables must also satisfy Hamilton's equations, so, working backwards, action minimization must be expressible in the new variables exactly as in the old ones:

    \begin{equation}
    \delta \int\left(\sum_{i} P_{i} d Q_{i}-H^{\prime} d t\right)=0
    \end{equation}

    Now, we’ve previously stated that two actions lead to the same equations of motion if the integrands differ by the total differential of some function F of coordinates, momenta and time. (That’s because in adding such a function to the integrand, the function’s contribution to the integral is just the difference between its values at the two (fixed) ends, so in varying the path between the ends to minimize the total integral and so generate the equations of motion, this exact differential \(dF\) makes no contribution.)

    That is to say, the two action integrals will be minimized on the same path through phase space provided the integrands differ by an exact differential:

    \begin{equation}
    \sum_{i} p_{i} d q_{i}-H d t=\sum_{i} P_{i} d Q_{i}-H^{\prime} d t+d F
    \end{equation}

    \(F\) is called the generating function of the transformation. Rearranging the equation above,

    \begin{equation}
    d F=\sum_{i} p_{i} d q_{i}-\sum_{i} P_{i} d Q_{i}+\left(H^{\prime}-H\right) d t
    \end{equation}

    Notice that the differentials here are \(\begin{equation}
    d q_{i}, d Q_{i}, d t
    \end{equation}\) so these are the natural variables for expressing the generating function.

    We will therefore write it as \(\begin{equation}
    F(q, Q, t)
    \end{equation}\),

    and from the expression for \(\begin{equation}
    d F
    \end{equation}\) above,

    \begin{equation}
    p_{i}=\frac{\partial F(q, Q, t)}{\partial q_{i}}, \quad P_{i}=-\frac{\partial F(q, Q, t)}{\partial Q_{i}}, \quad H^{\prime}=H+\frac{\partial F(q, Q, t)}{\partial t}
    \end{equation}

    Let’s reemphasize here that a canonical transformation will in general mix up coordinates and momenta—they are the same kind of variable, from this Hamiltonian perspective. They can even be exchanged: for a system with one degree of freedom, for example, the transformation

    \begin{equation}
    Q=p, \quad P=-q
    \end{equation}

    is a perfectly good canonical transformation (check out Hamilton’s equations in the new variables), even though it turns a position into a momentum and vice versa!

    If this particular transformation is applied to a simple harmonic oscillator, the Hamiltonian remains the same (we’re taking \(\begin{equation}
    H=\frac{1}{2}\left(p^{2}+q^{2}\right)
    \end{equation}\) so the differential \(dF\) of the generating function (given above) has no \(\begin{equation}
    H^{\prime}-H
    \end{equation}\) term, it is just

    \begin{equation}
    d F(q, Q)=p d q-P d Q
    \end{equation}

    The generating function for this transformation is easily found to be

    \begin{equation}
    F(q, Q)=Q q
    \end{equation}

    from which

    \begin{equation}
    d F=Q d q+q d Q=p d q-P d Q
    \end{equation}

    as required.

    Another canonical transformation for a simple harmonic oscillator is \(\begin{equation}
    q=\sqrt{2 P} \sin Q, \quad p=\sqrt{2 P} \cos Q
    \end{equation}\). You will investigate this in homework.


    This page titled 10.3: Generating Functions for Canonical Transformations is shared under a not declared license and was authored, remixed, and/or curated by Michael Fowler.

    • Was this article helpful?