Hamiltonian mechanics rewrites classical mechanics in terms of generalized coordinates and conjugate momenta . Instead of one second-order equation for position, you get two linked first-order equations that show how a system moves through phase space.
For a system with coordinates , momenta , and Hamiltonian , the equations of motion are
If you searched for "what is Hamiltonian mechanics?", that is the core answer: it is a phase-space form of mechanics where generates the time evolution of and .
What the Hamiltonian means
The Hamiltonian is a function of the variables that define the state. Its main job is to generate the equations of motion.
In many standard mechanics examples, also equals the total energy written in terms of coordinates and momenta. That identification needs conditions, so the safer statement is that the Hamiltonian often matches total energy, but not in every formulation.
What phase space shows
Phase space is the space whose axes are the coordinates and their conjugate momenta. For one degree of freedom, a state is a point , so phase space is two-dimensional. For degrees of freedom, phase space has dimensions.
This is why phase space is useful. Ordinary space tells you where a particle is. Phase space tells you where it is and the momentum paired with that coordinate. One point in phase space represents one complete instantaneous state of the model.
As time passes, that point traces out a curve. Hamilton's equations tell you the direction of motion along that curve.
Why Hamilton's equations help
Hamilton's equations split dynamics into two clean pieces:
- comes from how changes with momentum
- comes from how changes with position
That structure is useful because it turns mechanics into a consistent state-space problem. It is especially valuable in advanced mechanics, statistical mechanics, and as a bridge toward quantum mechanics.
Even in an introductory course, the payoff is clarity. You can see how coordinates, momenta, conservation laws, and geometry fit together in one framework.
Worked example: 1D harmonic oscillator
Take a mass on an ideal spring with spring constant . Let the coordinate be and the conjugate momentum be .
For this system,
The first term is kinetic energy written in terms of momentum, and the second term is the spring potential energy.
Now apply Hamilton's equations:
Those two first-order equations already describe the motion. To connect them to the familiar second-order form, differentiate with respect to time:
Then substitute :
So you recover the usual simple harmonic motion equation.
This is the main takeaway from the example: Hamiltonian mechanics does not describe a different oscillator. It describes the same physics in a form that is often easier to generalize.
Common mistakes in Hamiltonian mechanics
Assuming the Hamiltonian is always total energy
That is true for many standard mechanical systems, but not as a universal rule. The safer statement is that the Hamiltonian generates time evolution, and in many common cases it also equals total energy.
Confusing phase space with ordinary space
Phase space includes momentum coordinates as well as position coordinates. A phase-space point is not just a location in the room or along a line.
Treating as the same as in every coordinate system
In simple Cartesian cases, momentum often looks like . In more general coordinates, conjugate momentum must be defined from the model, not guessed from that formula.
Thinking first-order equations are less complete
Hamilton's equations are first-order, but together they contain the same dynamical information as the familiar second-order equations for the same system.
When Hamiltonian mechanics is used
Hamiltonian mechanics is useful when you want a structured view of classical dynamics, especially for systems with many degrees of freedom, conserved quantities, or symmetry. It is also the natural bridge to ideas in statistical mechanics and quantum theory.
For simpler problems, Newton's laws may be the fastest route. Hamiltonian mechanics becomes especially valuable when the geometry of the system matters as much as the force calculation.
Try a similar Hamiltonian mechanics problem
Start from
for a particle moving vertically near Earth's surface. Use Hamilton's equations to find and , then compare the result with the constant-acceleration model you already know.
If you want one natural next step, compare this page with simple harmonic motion. It helps to see how the same oscillator looks in Newtonian language and in Hamiltonian language.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →