KNOWPIA
WELCOME TO KNOWPIA

In physics, **Hamiltonian mechanics** is a reformulation of Lagrangian mechanics emerged in 1833. Introduced by Sir William Rowan Hamilton,^{[1]} Hamiltonian mechanics replaces (generalized) velocities used in Lagrangian mechanics with (generalized) *momenta*. Both theories provide interpretations of classical mechanics and describe the same physical phenomena.

Hamiltonian mechanics has a close relationship with geometry (notably, symplectic geometry and Poisson structures) and serves as a link between classical and quantum mechanics.

Let be a mechanical system with the configuration space and the smooth Lagrangian Select a standard coordinate system on The quantities are called *momenta*. (Also *generalized momenta*, *conjugate momenta*, and *canonical momenta*). For a time instant the Legendre transformation of is defined as the map which is assumed to have a smooth inverse For a system with degrees of freedom, the Lagrangian mechanics defines the *energy function*

The Legendre transform of turns into a function known as the *Hamiltonian*. The Hamiltonian satisfies

In phase space coordinates , the ( -dimensional) Euler–Lagrange equation

The Hamiltonian is the Legendre transform of the Lagrangian , thus one has

and thus

Besides, since the Euler-Lagrange equations yield

Let be the set of smooth paths for which and The action functional is defined via

A simple interpretation of Hamiltonian mechanics comes from its application on a one-dimensional system consisting of one nonrelativistic particle of mass m. The value of the Hamiltonian is the total energy of the system, in this case the sum of kinetic and potential energy, traditionally denoted T and V, respectively. Here p is the momentum mv and q is the space coordinate. Then

In this example, the time derivative of q is the velocity, and so the first Hamilton equation means that the particle's velocity equals the derivative of its kinetic energy with respect to its momentum. The time derivative of the momentum p equals the *Newtonian force*, and so the second Hamilton equation means that the force equals the negative gradient of potential energy.

A spherical pendulum consists of a mass *m* moving without friction on the surface of a sphere. The only forces acting on the mass are the reaction from the sphere and gravity. Spherical coordinates are used to describe the position of the mass in terms of (*r*, *θ*, *φ*), where *r* is fixed, *r* = *ℓ*.

The Lagrangian for this system is^{[2]}

Thus the Hamiltonian is

Hamilton's equations can be derived by a calculation with the Lagrangian , generalized positions q^{i}, and generalized velocities ^{i}, where .^{[3]} Here we work off-shell, meaning , , are independent coordinates in phase space, not constrained to follow any equations of motion (in particular, is not a derivative of ). The total differential of the Lagrangian is:

After rearranging, one obtains:

The term in parentheses on the left-hand side is just the Hamiltonian defined previously, therefore:

One may also calculate the total differential of the Hamiltonian with respect to coordinates , , instead of , , , yielding:

One may now equate these two expressions for , one in terms of , the other in terms of :

Since these calculations are off-shell, one can equate the respective coefficients of , , on the two sides:

On-shell, one substitutes parametric functions which define a trajectory in phase space with velocities , obeying Lagrange's equations:

Rearranging and writing in terms of the on-shell gives:

Thus Lagrange's equations are equivalent to Hamilton's equations:

In the case of time-independent and , i.e. , Hamilton's equations consist of 2*n* first-order differential equations, while Lagrange's equations consist of n second-order equations. Hamilton's equations usually do not reduce the difficulty of finding explicit solutions, but important theoretical results can be derived from them, because coordinates and momenta are independent variables with nearly symmetric roles.

Hamilton's equations have another advantage over Lagrange's equations: if a system has a symmetry, so that some coordinate does not occur in the Hamiltonian (i.e. a *cyclic coordinate*), the corresponding momentum coordinate is conserved along each trajectory, and that coordinate can be reduced to a constant in the other equations of the set. This effectively reduces the problem from n coordinates to (*n* − 1) coordinates: this is the basis of symplectic reduction in geometry. In the Lagrangian framework, the conservation of momentum also follows immediately, however all the generalized velocities still occur in the Lagrangian, and a system of equations in n coordinates still has to be solved.^{[4]}

The Lagrangian and Hamiltonian approaches provide the groundwork for deeper results in classical mechanics, and suggest analogous formulations in quantum mechanics: the path integral formulation and the Schrödinger equation.

- The value of the Hamiltonian is the total energy of the system if and only if the energy function has the same property. (See definition of ).
^{[clarification needed]} - when , form a solution of Hamilton's equations. Indeed, and everything but the final term cancels out.
- does not change under
*point transformations*, i.e. smooth changes of space coordinates. (Follows from the invariance of the energy function under point transformations. The invariance of can be established directly). - (See
*§ Deriving Hamilton's equations*). - . (Compare Hamilton's and Euler-Lagrange equations or see
*§ Deriving Hamilton's equations*). - if and only if .A coordinate for which the last equation holds is called
*cyclic*(or*ignorable*). Every cyclic coordinate reduces the number of degrees of freedom by , causes the corresponding momentum to be conserved, and makes Hamilton's equations easier to solve.

In its application to a given system, the Hamiltonian is often taken to be

where is the kinetic energy and is the potential energy. Using this relation can be simpler than first calculating the Lagrangian, and then deriving the Hamiltonian from the Lagrangian. However, the relation is not true for all systems.

The relation holds true for nonrelativistic systems when all of the following conditions are satisfied^{[5]}^{[6]}

where is time, is the number of degrees of freedom of the system, and each is an arbitrary scalar function of .

In words, this means that the relation holds true if does not contain time as an explicit variable (it is scleronomic), does not contain generalised velocity as an explicit variable, and each term of is quadratic in generalised velocity.

Preliminary to this proof, it is important to address an ambiguity in the related mathematical notation. While a change of variables can be used to equate , it is important to note that . In this case, the right hand side always evaluates to 0. To perform a change of variables inside of a partial derivative, the multivariable chain rule should be used. Hence, to avoid ambiguity, the function arguments of any term inside of a partial derivative should be stated.

Additionally, this proof uses the notation to imply that .

Starting from definitions of the Hamiltonian, generalized momenta, and Lagrangian for an degrees of freedom system

Substituting the generalized momenta into the Hamiltonian gives

Substituting the Lagrangian into the result gives

Now assume that

and also assume that

Applying these assumptions results in

Next assume that T is of the form

where each is an arbitrary scalar function of .

Differentiating this with respect to , , gives

Splitting the summation, evaluating the partial derivative, and rejoining the summation gives

Summing (this multiplied by ) over results in

This simplification is a result of Euler's homogeneous function theorem.

Hence, the Hamiltonian becomes

For a system of point masses, the requirement for to be quadratic in generalised velocity is always satisfied for the case where , which is a requirement for anyway.

Consider the kinetic energy for a system of N point masses. If it is assumed that , then it can be shown that (See *Scleronomous § Application*). Therefore, the kinetic energy is

The chain rule for many variables can be used to expand the velocity

Resulting in

This is of the required form.

If the conditions for are satisfied, then conservation of the Hamiltonian implies conservation of energy. This requires the additional condition that does not contain time as an explicit variable.

With respect to the extended Euler-Lagrange formulation (See *Lagrangian mechanics § Extensions to include non-conservative forces*), the Rayleigh dissipation function represents energy dissipation by nature. Therefore, energy is not conserved when . This is similar to the velocity dependent potential.

In summary, the requirements for to be satisfied for a nonrelativistic system are^{[5]}^{[6]}

- is a homogeneous quadratic function in

A sufficient illustration of Hamiltonian mechanics is given by the Hamiltonian of a charged particle in an electromagnetic field. In Cartesian coordinates the Lagrangian of a non-relativistic classical particle in an electromagnetic field is (in SI Units):

This Lagrangian, combined with Euler–Lagrange equation, produces the Lorentz force law

The canonical momenta are given by:

The Hamiltonian, as the Legendre transformation of the Lagrangian, is therefore:

This equation is used frequently in quantum mechanics.

Under gauge transformation:

In quantum mechanics, the wave function will also undergo a local U(1) group transformation^{[7]} during the Gauge Transformation, which implies that all physical results must be invariant under local U(1) transformations.

The relativistic Lagrangian for a particle (rest mass and charge ) is given by:

Thus the particle's canonical momentum is

Solving for the velocity, we get

So the Hamiltonian is

This results in the force equation (equivalent to the Euler–Lagrange equation)

The above derivation makes use of the vector calculus identity:

An equivalent expression for the Hamiltonian as function of the relativistic (kinetic) momentum, , is

This has the advantage that kinetic momentum can be measured experimentally whereas canonical momentum cannot. Notice that the Hamiltonian (total energy) can be viewed as the sum of the relativistic energy (kinetic+rest), , plus the potential energy, .

The Hamiltonian can induce a symplectic structure on a smooth even-dimensional manifold *M*^{2n} in several equivalent ways, the best known being the following:^{[8]}

As a closed nondegenerate symplectic 2-form *ω*. According to the Darboux's theorem, in a small neighbourhood around any point on M there exist suitable local coordinates (*canonical* or *symplectic* coordinates) in which the symplectic form becomes:

(In algebraic terms, one would say that the -modules and are isomorphic). If , then, for every fixed , , and . is known as a Hamiltonian vector field. The respective differential equation on

A Hamiltonian system may be understood as a fiber bundle E over time R, with the fiber E_{t} being the position space at time *t* ∈ *R*. The Lagrangian is thus a function on the jet bundle J over E; taking the fiberwise Legendre transform of the Lagrangian produces a function on the dual bundle over time whose fiber at t is the cotangent space *T*^{∗}*E _{t}*, which comes equipped with a natural symplectic form, and this latter function is the Hamiltonian. The correspondence between Lagrangian and Hamiltonian mechanics is achieved with the tautological one-form.

Any smooth real-valued function H on a symplectic manifold can be used to define a Hamiltonian system. The function H is known as "the Hamiltonian" or "the energy function." The symplectic manifold is then called the phase space. The Hamiltonian induces a special vector field on the symplectic manifold, known as the Hamiltonian vector field.

The Hamiltonian vector field induces a Hamiltonian flow on the manifold. This is a one-parameter family of transformations of the manifold (the parameter of the curves is commonly called "the time"); in other words, an isotopy of symplectomorphisms, starting with the identity. By Liouville's theorem, each symplectomorphism preserves the volume form on the phase space. The collection of symplectomorphisms induced by the Hamiltonian flow is commonly called "the Hamiltonian mechanics" of the Hamiltonian system.

The symplectic structure induces a Poisson bracket. The Poisson bracket gives the space of functions on the manifold the structure of a Lie algebra.

If F and G are smooth functions on M then the smooth function *ω*(*J*(*dF*), *J*(*dG*)) is properly defined; it is called a *Poisson bracket* of functions F and G and is denoted {*F*, *G*}. The Poisson bracket has the following properties:

- bilinearity
- antisymmetry
- Leibniz rule:
- Jacobi identity:
- non-degeneracy: if the point x on M is not critical for F then a smooth function G exists such that .

Given a function f

This is called Liouville's theorem. Every smooth function G over the symplectic manifold generates a one-parameter family of symplectomorphisms and if {*G*, *H*} = 0, then G is conserved and the symplectomorphisms are symmetry transformations.

A Hamiltonian may have multiple conserved quantities *G*_{i}. If the symplectic manifold has dimension 2*n* and there are n functionally independent conserved quantities G_{i} which are in involution (i.e., {*G*_{i}, *G*_{j}} = 0), then the Hamiltonian is Liouville integrable. The Liouville–Arnold theorem says that, locally, any Liouville integrable Hamiltonian can be transformed via a symplectomorphism into a new Hamiltonian with the conserved quantities G_{i} as coordinates; the new coordinates are called *action–angle coordinates*. The transformed Hamiltonian depends only on the *G*_{i}, and hence the equations of motion have the simple form

The integrability of Hamiltonian vector fields is an open question. In general, Hamiltonian systems are chaotic; concepts of measure, completeness, integrability and stability are poorly defined.

An important special case consists of those Hamiltonians that are quadratic forms, that is, Hamiltonians that can be written as

If one considers a Riemannian manifold or a pseudo-Riemannian manifold, the Riemannian metric induces a linear isomorphism between the tangent and cotangent bundles. (See *Musical isomorphism*). Using this isomorphism, one can define a cometric. (In coordinates, the matrix defining the cometric is the inverse of the matrix defining the metric.) The solutions to the Hamilton–Jacobi equations for this Hamiltonian are then the same as the geodesics on the manifold. In particular, the Hamiltonian flow in this case is the same thing as the geodesic flow. The existence of such solutions, and the completeness of the set of solutions, are discussed in detail in the article on geodesics. See also *Geodesics as Hamiltonian flows*.

When the cometric is degenerate, then it is not invertible. In this case, one does not have a Riemannian manifold, as one does not have a metric. However, the Hamiltonian still exists. In the case where the cometric is degenerate at every point q of the configuration space manifold Q, so that the rank of the cometric is less than the dimension of the manifold Q, one has a sub-Riemannian manifold.

The Hamiltonian in this case is known as a **sub-Riemannian Hamiltonian**. Every such Hamiltonian uniquely determines the cometric, and vice versa. This implies that every sub-Riemannian manifold is uniquely determined by its sub-Riemannian Hamiltonian, and that the converse is true: every sub-Riemannian manifold has a unique sub-Riemannian Hamiltonian. The existence of sub-Riemannian geodesics is given by the Chow–Rashevskii theorem.

The continuous, real-valued Heisenberg group provides a simple example of a sub-Riemannian manifold. For the Heisenberg group, the Hamiltonian is given by

Hamiltonian systems can be generalized in various ways. Instead of simply looking at the algebra of smooth functions over a symplectic manifold, Hamiltonian mechanics can be formulated on general commutative unital real Poisson algebras. A state is a continuous linear functional on the Poisson algebra (equipped with some suitable topology) such that for any element A of the algebra, *A*^{2} maps to a nonnegative real number.

A further generalization is given by Nambu dynamics.

Hamilton's equations above work well for classical mechanics, but not for quantum mechanics, since the differential equations discussed assume that one can specify the exact position and momentum of the particle simultaneously at any point in time. However, the equations can be further generalized to then be extended to apply to quantum mechanics as well as to classical mechanics, through the deformation of the Poisson algebra over p and q to the algebra of Moyal brackets.

Specifically, the more general form of the Hamilton's equation reads

- Canonical transformation
- Classical field theory
- Hamiltonian field theory
- Covariant Hamiltonian field theory
- Classical mechanics
- Dynamical systems theory
- Hamiltonian system
- Hamilton–Jacobi equation
- Hamilton–Jacobi–Einstein equation
- Lagrangian mechanics
- Maxwell's equations
- Hamiltonian (quantum mechanics)
- Quantum Hamilton's equations
- Quantum field theory
- Hamiltonian optics
- De Donder–Weyl theory
- Geometric mechanics
- Routhian mechanics
- Nambu mechanics
- Hamiltonian fluid mechanics
- Hamiltonian vector field

**^**Hamilton, William Rowan, Sir (1833).*On a general method of expressing the paths of light, & of the planets, by the coefficients of a characteristic function*. Printed by P.D. Hardy. OCLC 68159539.`{{cite book}}`

: CS1 maint: multiple names: authors list (link)**^**Landau & Lifshitz 1976, pp. 33–34**^**This derivation is along the lines as given in Arnol'd 1989, pp. 65–66**^**Goldstein, Poole & Safko 2002, pp. 347–349- ^
^{a}^{b}Malham 2016, pp. 49–50 - ^
^{a}^{b}Landau & Lifshitz 1976, p. 14 **^**Zinn-Justin, Jean; Guida, Riccardo (2008-12-04). "Gauge invariance".*Scholarpedia*.**3**(12): 8287. Bibcode:2008SchpJ...3.8287Z. doi:10.4249/scholarpedia.8287. ISSN 1941-6016.**^**Arnol'd, Kozlov & Neĩshtadt 1988, §3. Hamiltonian mechanics.**^**Arnol'd, Kozlov & Neĩshtadt 1988

- Landau, Lev Davidovich; Lifshitz, Evgenii Mikhailovich (1976).
*Mechanics*. Course of Theoretical Physics. Vol. 1. Sykes, J. B. (John Bradbury), Bell, J. S. (3rd ed.). Oxford. ISBN 0-08-021022-8. OCLC 2591126.`{{cite book}}`

: CS1 maint: location missing publisher (link) - Abraham, R.; Marsden, J.E. (1978).
*Foundations of mechanics*(2d ed., rev., enl., and reset ed.). Reading, Mass.: Benjamin/Cummings Pub. Co. ISBN 0-8053-0102-X. OCLC 3516353. - Arnol'd, V. I.; Kozlov, V. V.; Neĩshtadt, A. I. (1988). "Mathematical aspects of classical and celestial mechanics".
*Encyclopaedia of Mathematical Sciences, Dynamical Systems III*. Vol. 3. Anosov, D. V. Berlin: Springer-Verlag. ISBN 0-387-17002-2. OCLC 16404140. - Arnol'd, V. I. (1989).
*Mathematical methods of classical mechanics*(2nd ed.). New York: Springer-Verlag. ISBN 0-387-96890-3. OCLC 18681352. - Goldstein, Herbert; Poole, Charles P. Jr.; Safko, John L. (2002).
*Classical mechanics*(3rd ed.). San Francisco: Addison Wesley. ISBN 0-201-31611-0. OCLC 47056311. - Vinogradov, A. M.; Kupershmidt, B A (1977-08-31). "The structure of Hamiltonian mechanics".
*Russian Mathematical Surveys*.**32**(4): 177–243. Bibcode:1977RuMaS..32..177V. doi:10.1070/RM1977v032n04ABEH001642. ISSN 0036-0279. S2CID 250805957.

Wikimedia Commons has media related to Hamiltonian mechanics.

- Binney, James J.,
*Classical Mechanics (lecture notes)*(PDF), University of Oxford, retrieved 27 October 2010 - Tong, David,
*Classical Dynamics (Cambridge lecture notes)*, University of Cambridge, retrieved 27 October 2010 - Hamilton, William Rowan,
*On a General Method in Dynamics*, Trinity College Dublin - Malham, Simon J.A. (2016),
*An introduction to Lagrangian and Hamiltonian mechanics (lecture notes)*(PDF) - Morin, David (2008),
*Introduction to Classical Mechanics (Additional material: The Hamiltonian method)*(PDF)