Classical Mechanics
To predict a moving body’s position, we need a law of motion and an initial state. Newton’s law supplies a direct calculation when the forces are known. We will recast that calculation in terms of action and energy, so the same method can later describe quantum particles and fields.
Generalized coordinates account for constraints, the Lagrangian gives equations of motion, and the Hamiltonian expresses evolution in terms of position and momentum. These are different descriptions of the same classical motion.
1. Newtonian Formulation
Newton's second law, , relates a particle's acceleration to the force on it. Given its initial position and velocity, we can solve for its later motion. For ordinary well-posed force laws, those initial conditions determine a unique trajectory.
The equation is second order in position. Integrating once gives the velocity; integrating again gives the position. For constrained motion, such as a bead on a wire, we must also account for the forces that keep the particle on its allowed path. Generalized coordinates make these constraints easier to handle.

For constant force, acceleration is constant, velocity changes linearly, and position changes quadratically.
2. Lagrangian and the Euler–Lagrange Derivation
For a pendulum, an angle describes the motion more directly than three Cartesian coordinates. The Lagrangian method works with such generalized coordinates , which specify the allowed configurations of the system.
For the usual kinetic and potential energies, define . The action is the integral of the Lagrangian along a proposed path:
The principle of stationary action states that the physical path makes the first-order change in vanish when we vary the path while keeping its endpoints fixed. Stationary does not necessarily mean a minimum.
To obtain an equation we can solve, perturb by a small function that vanishes at the endpoints. Expand to first order, then integrate the term containing the velocity variation by parts. The boundary term vanishes. Requiring the remaining integral to vanish for every allowed variation gives the Euler–Lagrange equation,
with one equation for each generalized coordinate. For , it gives , Newton's second law. The same procedure works for angular coordinates and, later, for fields.
From stationary action to the equation of motion
Write a nearby path as , where . The parameter measures the size of the change. Stationarity means
Integrate the second term by parts:
The endpoint condition removes the boundary term. Since we can vary within any part of the interval, the coefficient multiplying it must vanish throughout the path. This gives the Euler–Lagrange equation.
For a pendulum of length , choose , measured from the downward vertical. Its speed is and its height above the lowest point is , so
Then and . The equation of motion is
The string's tension does not appear: the angular coordinate already restricts the bob to its circular path.

Vary a free-particle path while fixing its endpoints. The physical path makes the first-order action variation vanish.
3. Hamiltonian and State Space
A pendulum can pass through the same angle in either direction. Its position alone does not specify what happens next. To describe its state using position and momentum, define the conjugate momentum . Then form the Hamiltonian , expressing in terms of and . This change of variables is a Legendre transform.
When we can solve the momentum definition for the velocity, the second-order Euler–Lagrange equation becomes two first-order Hamilton equations:
For the usual kinetic energy and a velocity-independent potential, is the total energy . Its independent variables are position and momentum.
Changing from velocity to momentum
For one coordinate, the differential of is
The two terms cancel because . The Euler–Lagrange equation gives , leaving
Compare the coefficients with . The first two give Hamilton's equations. The last gives ; explicit time dependence is possible in either description.
For , we have . Substitution gives , and Hamilton's equations become and . Together they reproduce Newton's law.
The pair specifies a point in phase space, the space of classical states. Position alone specifies the configuration; momentum also specifies how it is moving. Hamilton's equations determine a trajectory through phase space, and uniqueness prevents distinct trajectories from crossing at the same time.
Choosing position and momentum is useful beyond mechanics. Quantum mechanics keeps the idea of a state evolving under a Hamiltonian. We will replace phase-space points with vectors in Hilbert space and replace the classical Hamiltonian with an operator.

Two states can have the same position and opposite momenta. Phase space distinguishes them.
4. The Poisson Bracket
Once we know the state, we may want the rate of change of energy, position, or another quantity without solving the whole trajectory. The Poisson bracket expresses this calculation directly in terms of the Hamiltonian. For two quantities and , define their Poisson bracket:
Properties of the bracket
For several coordinates, sum this expression over each conjugate pair. The bracket is bilinear, meaning linear in either argument, and antisymmetric: exchanging and reverses its sign. It also satisfies the Jacobi identity, a consistency relation between nested brackets.
For a quantity with no explicit time dependence, the chain rule and Hamilton's equations give
Thus means that is conserved. For a time-independent Hamiltonian, energy conservation follows from . If also depends explicitly on time, add to its evolution equation.
In particular, : the derivatives of and with respect to themselves are one, and the cross derivatives vanish.
We have expressed motion through an evolution law and an algebra of observables. Canonical quantization uses . The classical relation becomes the quantum relation . This is a starting prescription; operator ordering can complicate the correspondence for more general quantities.
Next: First Quantization