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 , and the path of a system follows the stationary action principle . The Euler-Lagrange equation gives the equations of motion in generalized coordinates. The Hamiltonian is formed using , where .
Hamilton's equations describe evolution in phase space using and .
Key Facts
- The action is , and physical motion satisfies .
- For conservative mechanical systems, the Lagrangian is often , where is kinetic energy and is potential energy.
- The Euler-Lagrange equation for each generalized coordinate is .
- The generalized momentum conjugate to is .
- The Hamiltonian is the Legendre transform after writing velocities in terms of and .
- Hamilton's equations are and .
- If , then is cyclic and the conjugate momentum is conserved.
- If and standard conditions hold, then the Hamiltonian is conserved and often equals the total energy .
Vocabulary
- Generalized coordinate
- A variable that describes the configuration of a system using coordinates adapted to its constraints.
- Lagrangian
- The function , often equal to , used to derive equations of motion from the action.
- Action
- The time integral whose stationary value determines the physical path of a system.
- Canonical momentum
- The momentum conjugate to the generalized coordinate .
- Hamiltonian
- The function that generates motion in phase space.
- Cyclic coordinate
- A coordinate that does not appear explicitly in , causing its conjugate momentum to be conserved.
Common Mistakes to Avoid
- Using instead of for a standard conservative system is wrong because the sign of the potential energy controls the correct force direction.
- Treating and as dependent during partial differentiation is wrong because and are computed by holding the other variable fixed.
- Forgetting the total time derivative in is wrong because the derivative must include time dependence through and .
- Assuming 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 appears in is wrong because cyclic means itself is absent from , not its velocity.
Practice Questions
- 1 For a one-dimensional mass with , use the Euler-Lagrange equation to derive the equation of motion.
- 2 Given , find the canonical momentum and construct the Hamiltonian .
- 3 For a particle in polar coordinates with , identify the cyclic coordinate and its conserved momentum.
- 4 Explain why generalized coordinates are useful for a pendulum or bead-on-wire system compared with Cartesian coordinates.
Understanding Classical Mechanics Lagrangian and Hamiltonian
Stationary action does not mean that a moving object chooses the shortest path through space. It compares whole histories between fixed starting and ending times. A small imagined change in the path produces no first order change in the action for the real motion.
This idea can seem abstract, but it reproduces familiar results. For a ball moving under gravity, it gives the same acceleration found from Newton's second law.
Its advantage appears when forces are hard to list separately, while the system's energy and geometry are easy to describe. The method treats all allowed motions at once, then selects the physically consistent one.
Generalized coordinates are chosen to match the system, not necessarily to match horizontal, vertical, and depth directions. A pendulum can be described by one angle because its rod fixes the distance from the pivot. A bead sliding on a curved wire needs only one coordinate along the wire.
These choices build constraints into the description from the start. This reduces the number of unknowns and avoids calculating constraint forces that do no useful work. When choosing coordinates, count the independent ways the system can move.
Then express every position, speed, and energy in terms of those coordinates and their rates of change. Careful geometry matters more than advanced calculus at this stage.
Canonical momentum deserves special attention because it is not always ordinary mass times velocity. For a particle described with Cartesian position coordinates and no velocity dependent interactions, the two are the same. In polar coordinates, however, the momentum linked to angle includes the distance from the origin.
It represents angular momentum rather than simple sideways motion. This is why the meaning of momentum depends on the coordinate selected. The Hamiltonian description uses coordinates and their canonical momenta as separate axes in phase space.
One point in phase space specifies a complete instantaneous state. Its motion through phase space tracks how position and momentum change together. This viewpoint is useful in orbital motion, oscillations, statistical physics, and later quantum mechanics.
Conservation laws come from symmetries, which are features of a system that remain unchanged under a transformation. If rotating a system around an axis changes nothing, angular momentum about that axis is conserved. If shifting the entire experiment through time changes nothing, energy is usually conserved.
A cyclic coordinate signals one of these symmetries directly. For example, if a potential does not depend on a pendulum's angle around a vertical axis, the associated angular momentum stays fixed. Students should check units, signs, and hidden time dependence before claiming conservation.
Friction, driving forces, or a moving support can make the energy change. Practice by deriving a simple pendulum or spring equation from energy expressions, then compare the result with the force based equation. This comparison makes the formalism feel like a reliable tool rather than a list of rules.