Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Classical mechanics with Lagrangian and Hamiltonian methods gives a powerful way to model motion using energy instead of only forces. This cheat sheet helps students organize the main definitions, equations, and transformations used in analytical mechanics. It is especially useful for systems with constraints, generalized coordinates, or conserved quantities.

The goal is to connect physical meaning with the formulas used to derive equations of motion.

The Lagrangian is usually defined as L=TVL = T - V, and the path of a system follows the stationary action principle δS=0\delta S = 0. The Euler-Lagrange equation ddt(Lq˙i)Lqi=0\frac{d}{dt}\left(\frac{\partial L}{\partial \dot{q}_i}\right) - \frac{\partial L}{\partial q_i} = 0 gives the equations of motion in generalized coordinates. The Hamiltonian is formed using H=ipiq˙iLH = \sum_i p_i\dot{q}_i - L, where pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i}.

Hamilton's equations describe evolution in phase space using q˙i=Hpi\dot{q}_i = \frac{\partial H}{\partial p_i} and p˙i=Hqi\dot{p}_i = -\frac{\partial H}{\partial q_i}.

Key Facts

  • The action is S=t1t2L(qi,q˙i,t)dtS = \int_{t_1}^{t_2} L(q_i,\dot{q}_i,t)\,dt, and physical motion satisfies δS=0\delta S = 0.
  • For conservative mechanical systems, the Lagrangian is often L=TVL = T - V, where TT is kinetic energy and VV is potential energy.
  • The Euler-Lagrange equation for each generalized coordinate is ddt(Lq˙i)Lqi=0\frac{d}{dt}\left(\frac{\partial L}{\partial \dot{q}_i}\right) - \frac{\partial L}{\partial q_i} = 0.
  • The generalized momentum conjugate to qiq_i is pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i}.
  • The Hamiltonian is the Legendre transform H(qi,pi,t)=ipiq˙iL(qi,q˙i,t)H(q_i,p_i,t) = \sum_i p_i\dot{q}_i - L(q_i,\dot{q}_i,t) after writing velocities in terms of qiq_i and pip_i.
  • Hamilton's equations are q˙i=Hpi\dot{q}_i = \frac{\partial H}{\partial p_i} and p˙i=Hqi\dot{p}_i = -\frac{\partial H}{\partial q_i}.
  • If Lqi=0\frac{\partial L}{\partial q_i} = 0, then qiq_i is cyclic and the conjugate momentum pip_i is conserved.
  • If Lt=0\frac{\partial L}{\partial t} = 0 and standard conditions hold, then the Hamiltonian HH is conserved and often equals the total energy E=T+VE = T + V.

Vocabulary

Generalized coordinate
A variable qiq_i that describes the configuration of a system using coordinates adapted to its constraints.
Lagrangian
The function L(qi,q˙i,t)L(q_i,\dot{q}_i,t), often equal to TVT - V, used to derive equations of motion from the action.
Action
The time integral S=LdtS = \int L\,dt whose stationary value determines the physical path of a system.
Canonical momentum
The momentum pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i} conjugate to the generalized coordinate qiq_i.
Hamiltonian
The function H(qi,pi,t)=ipiq˙iLH(q_i,p_i,t) = \sum_i p_i\dot{q}_i - L that generates motion in phase space.
Cyclic coordinate
A coordinate qiq_i that does not appear explicitly in LL, causing its conjugate momentum pip_i to be conserved.

Common Mistakes to Avoid

  • Using L=T+VL = T + V instead of L=TVL = T - V for a standard conservative system is wrong because the sign of the potential energy controls the correct force direction.
  • Treating qiq_i and q˙i\dot{q}_i as dependent during partial differentiation is wrong because Lqi\frac{\partial L}{\partial q_i} and Lq˙i\frac{\partial L}{\partial \dot{q}_i} are computed by holding the other variable fixed.
  • Forgetting the total time derivative in ddt(Lq˙i)\frac{d}{dt}\left(\frac{\partial L}{\partial \dot{q}_i}\right) is wrong because the derivative must include time dependence through qi(t)q_i(t) and q˙i(t)\dot{q}_i(t).
  • Assuming HH always equals total energy is wrong because this equality can fail for time-dependent transformations, velocity-dependent potentials, or nonstandard Lagrangians.
  • Calling a coordinate cyclic just because q˙i\dot{q}_i appears in LL is wrong because cyclic means qiq_i itself is absent from LL, not its velocity.

Practice Questions

  1. 1 For a one-dimensional mass with L=12mx˙212kx2L = \frac{1}{2}m\dot{x}^2 - \frac{1}{2}kx^2, use the Euler-Lagrange equation to derive the equation of motion.
  2. 2 Given L=12mx˙2mgxL = \frac{1}{2}m\dot{x}^2 - mgx, find the canonical momentum pxp_x and construct the Hamiltonian HH.
  3. 3 For a particle in polar coordinates with L=12m(r˙2+r2θ˙2)V(r)L = \frac{1}{2}m(\dot{r}^2 + r^2\dot{\theta}^2) - V(r), identify the cyclic coordinate and its conserved momentum.
  4. 4 Explain why generalized coordinates are useful for a pendulum or bead-on-wire system compared with Cartesian coordinates.