Formalism of dynamics
Define the Lagrangian $$ \begin{align*} L(\v x,\dv x, t) = T - V \end{align*} $$ where
-
$t$ is the independent variable;
-
$\v x=(x,y,z)$ are the dependent variables;
-
$T$ is the kinetic energy;
-
$V$ is the potential energy.
Given the Lagrangian $L(\v x,\dv x, t)$, define the action $$ \begin{align*} S[\v x] = \int_{t_1}^{t_2} L\, dt. \end{align*} $$
The motion of the system is such that action is minimised.
Examples: Newton second law, central forces
We can consider $N$ particles in the same formalism: consider the configuration space $\R^{3N}$. We use a single generalised position $\v q\in\R^{3N}$ to represent all $N$ positions and a single Lagrangian $L(\v q, \dv q, t)$.
Suppose there is a family of transformations $\v x(t) \to \v X(t,s)$ with parameter $s$ satisfying $\v x(t) = \v X(t,0)$.
We say this is a (continuous) symmetry of a function $f(\v x, \dv x, t)$ if $$ \begin{align*} \dd{s} f(\v X(t,s), \dv X(t,s), t) = 0. \end{align*} $$
Examples: conservation of momentum, angular momentum.
Define the Hamiltonian as $$ \begin{align*} H(\v q, \v p, t) = \sup_{\dv q} \left[\v p\cdot\dv q - L(\v q,\dv q,t)\right], \end{align*} $$ i.e. the Legendre transform of the Lagrangian $L(\v q, \dv q, t)$ with respect to the generalised velocity $\dv q$.
$\v p$ is called the generalised momentum. $(\v q,\v p)$ is called a conjugate pair.
Assuming the convexity of $L$ with respect to $\dv q$, the Hamiltonian is $$ \begin{align*} H(\v q,\v p,t) = \v p\cdot \dv q - L(\v q,\dv q, t)\qquad \text{with $\dv q$ such that } p_i = \pdfd{L}{\dot q_i}. \end{align*} $$
Example (Hamiltonian with non-relativistic kinetic energy)
By the principle of least action, the Hamiltonian $H(\v q, \v p, t)$ satisfies Hamilton's equations $$ \begin{align*} \dot q_i = \pdfd{H}{p_i}, \qquad \dot p_i = -\pdfd{H}{q_i}, \qquad \pdfd{H}{t} = -\pdfd{L}{t}. \end{align*} $$ (Caution: in the last equation, $\left.\pdd{t}\right|_{\v q,\v p} \neq \left.\pdd{t}\right|_{\v q,\dv q}$.)
Suppose the Hamiltonian $H$ of a system does not depend explicitly on time, i.e. $\partial L/\partial t = -\partial H/\partial t = 0$.
Then $H$ is constant, i.e. $dH/dt = 0$.
We now have mulitple formulations of dynamics:
-
Newton's equations: second order DEs $$ \begin{align*} m\ddv x = \v F; \end{align*} $$
-
Lagrangian and least action: integral (or Euler-Lagrange) $$ \begin{align*} \int L\, dt \text{ minimised}; \end{align*} $$
-
Hamilton's equations: 1st order PDEs $$ \begin{align*} \dv q = \pdfd{H}{\v p}, \qquad \dv p = -\pdfd{H}{\v q}. \end{align*} $$