In physics, and more specifically in
Hamiltonian mechanics
Hamiltonian mechanics emerged in 1833 as a reformulation of Lagrangian mechanics. Introduced by Sir William Rowan Hamilton, Hamiltonian mechanics replaces (generalized) velocities \dot q^i used in Lagrangian mechanics with (generalized) ''momen ...
, a generating function is, loosely, a function whose partial derivatives generate the differential equations that determine a system's dynamics. Common examples are the
partition function of statistical mechanics, the Hamiltonian, and the function which acts as a bridge between two sets of canonical variables when performing a
canonical transformation
In Hamiltonian mechanics, a canonical transformation is a change of canonical coordinates that preserves the form of Hamilton's equations. This is sometimes known as form invariance. It need not preserve the form of the Hamiltonian itself. Canon ...
.
In canonical transformations
There are four basic generating functions, summarized by the following table:
Example
Sometimes a given Hamiltonian can be turned into one that looks like the
harmonic oscillator
In classical mechanics, a harmonic oscillator is a system that, when displaced from its Mechanical equilibrium, equilibrium position, experiences a restoring force ''F'' Proportionality (mathematics), proportional to the displacement ''x'':
\v ...
Hamiltonian, which is
:
For example, with the Hamiltonian
:
where ''p'' is the generalized momentum and ''q'' is the generalized coordinate, a good canonical transformation to choose would be
This turns the Hamiltonian into
:
which is in the form of the harmonic oscillator Hamiltonian.
The generating function ''F'' for this transformation is of the third kind,
:
To find ''F'' explicitly, use the equation for its derivative from the table above,
:
and substitute the expression for ''P'' from equation (), expressed in terms of ''p'' and ''Q'':
:
Integrating this with respect to ''Q'' results in an equation for the generating function of the transformation given by equation ():
::
To confirm that this is the correct generating function, verify that it matches ():
:
See also
*
Hamilton–Jacobi equation
In physics, the Hamilton–Jacobi equation, named after William Rowan Hamilton and Carl Gustav Jacob Jacobi, is an alternative formulation of classical mechanics, equivalent to other formulations such as Newton's laws of motion, Lagrangian mechan ...
*
Poisson bracket
In mathematics and classical mechanics, the Poisson bracket is an important binary operation in Hamiltonian mechanics, playing a central role in Hamilton's equations of motion, which govern the time evolution of a Hamiltonian dynamical system. T ...
References
Further reading
* {{cite book, title=Classical Mechanics, last1=Goldstein, first1=Herbert, last2=Poole, first2=C. P., last3=Safko, first3=J. L., publisher=Addison-Wesley, year=2001, isbn=978-0-201-65702-9, edition=3rd
Classical mechanics
Hamiltonian mechanics