Consider the case of a canonical transformation of the second type
Substituting into Equation 8.4:
And we obtain the transformation equations:
As a notational convention, we will use \(S(q_i,P_i,t)\) instead of \(F_2\) (as will see that it is equal to the action). We can also take \(S(q_i,P_i,t)\) as the generator of a canonical transformation with the above equations, since this will guarantee that the canonical equations are satisfied. In fact, we can choose any form that we wish for \(S\), since the above equations guarantee that the canonical equations are satisfied. Let’s then choose the particular case that gives \(K=0\). This is a nice choice, since K will then be independent of all the variables, and all \(Q_i\) and \(P_i\) are cyclic:
We have thus changed the problem of dynamics to one of finding a transformation that gives all cyclic coordinates. Note that this is not necessarily more straightforward mathematically (in fact, it is usually much harder).
Imposing that \(K=0\) gives us:
which is a partial differential equation for \(S\) and is called the “Hamilton-Jacobi equation”. The function \(S\) is called “Hamilton’s principal function”. In the transformed coordinates, the solutions are trivial constants:
Is is clear that by combining this with the transformation equations, the problem is solved if all of the \(\alpha_i\) and \(\beta_i\) are known. Typically, one does not need to refer to \(P_i\) and \(Q_i\) in the Hamilton-Jacobi formalism, since these are constants of motion. To highlight this, they are usually called \(\alpha_i\) and \(\beta_i\):
Connection to the Lagrangian and action
Noting that \(S\) depends on the \(q_i\) and the constants \(\alpha_i\), we can ask how \(S\) changes with time along the path of the system (the path where the \(P_i\) are constant and equal to \(\alpha_i\)):
Using the transformation equations:
It is thus clear that \(S\) is equal to the action within an additive constant.
If the Hamiltonian does not depend on time, then \(H\) is a constant of the motion, call it \(E\). If this is the case, one can assume a form for \(S\) where the time variable is separated out:
Where \(W\) is called “Hamilton’s characteristic function”.
Example 8-5
The Hamiltonian is given by:
We can write this in terms of Hamilton’s principal function to get the Hamilton-Jacobi equation:
Since the Hamiltonian does not depend on time, we can try a solution using separation of variables:
which we substitute back into the Hamilton Jacobi equation:
Since the left side only depends on \(q\) the partial derivatives can be made into total derivatives. It is also clear that the constant \(\alpha\) is equal to energy, since it is equal to the Hamiltonian.
We also know that we have a second constant of motion, \(\beta\):
Which we can invert to get \(q\):
Similarly, the momentum is given by: