Starting with:

the equations of Lagrange can be derived:

When there are additional conditions applying to the variational problem


Hamilton mechanics
The Lagrangian is given by:


In 2 dimensions holds:

If the used coordinates are canonical the Hamilton equations are the equations of motion for the system:

Coordinates are canonical if the following holds:


The Hamiltonian of a Harmonic oscillator is given by







The Hamiltonian of a charged particle with charge q in an external electromagnetic field is given by:

This Hamiltonian can be derived from the Hamiltonian of a free particle





Motion around an equilibrium, linearization
For natural systems around equilibrium the following equations are valid:


With



This leads to the eigenfrequencies of the problem:

If the equilibrium is stable holds:


The general solution is a superposition if eigenvibrations.
Phase space, Liouville's equation
In phase space holds:

If the equation of continuity,


For an arbitrary quantity A holds:

Liouville's theorem can than be written as:

Generating functions
Starting with the coordinate transformation:
one can derive the following Hamilton equations with the new Hamiltonian K:

Now, a distinction between 4 cases can be made:
1.




2.




3.




4.




The functions F1, F2, F3 and F4 are called generating functions.