2.1.12 · D1Analytical Mechanics

Foundations — Hamilton's equations of motion

2,046 words9 min readBack to topic

This page assumes nothing. If the parent note used a symbol, we build it here from a picture first. Read top to bottom; each block earns the next.


0. What all these letters even are

Before any formula, here is the cast of characters you will meet. We define each one properly below — this is just so you know who is coming.

Symbol Said aloud Rough job
"cue" where the system is (a position)
"cue-dot" how fast that position changes (a velocity)
"pee" the "push" the system carries (momentum)
"ell" the Lagrangian — a bookkeeping quantity
"aitch" the Hamiltonian — usually the energy
"tee" time
"partial-dee" change holding others fixed
"sum" add up over all coordinates

Now we build every one of these, in order, from zero.


1. A number that can move: the variable

Imagine a bead sliding on a wire, or a pendulum swinging. To say where it is we need one number. Call it .

  • If the bead is on a straight wire, is its distance from a marked zero — like a ruler reading.
  • If it's a pendulum, could be the angle from straight-down.
Figure — Hamilton's equations of motion

Why does the topic need it? Every law of motion is ultimately a statement about how changes over time. No , nothing to describe.

If there are several moving parts, we write The little number is called a subscript (an index). We write to mean "the -th one" — a placeholder standing for all of them at once.

subscript means...
the -th coordinate; is a counter running

2. The rate of change: the dot,

Watch the bead. In a tiny sliver of time it moves a tiny distance. Speed is "distance moved ÷ time taken." As we shrink the time sliver to nearly zero, this ratio settles onto a single number: the instantaneous velocity.

What does it look like? Plot upward and time sideways. The bead's history is a curve. The dot is the steepness (slope) of that curve at each instant — steep means fast, flat means momentarily still.

Figure — Hamilton's equations of motion

Two dots, , mean the slope of the slope — how fast the velocity changes, i.e. acceleration.

pictured as...
the slope of the position-vs-time curve
means...
acceleration, the rate of change of velocity

3. Slope of a landscape, in more than one direction:

Now suppose a quantity depends on two things at once — say the height of a hilly landscape depends on how far east () and how far north () you stand: .

If I ask "how steep is the hill?", I must ask "steep in which direction?"

Figure — Hamilton's equations of motion

What it looks like: stand on the hill. Face due east and note the slope under your feet — that's . Turn to face north without moving — that new slope is . Same spot, two different steepnesses.

Why the topic needs it. Hamilton's equations say the velocity of the system equals a slope of in one direction, and the change of momentum equals minus a slope in the other direction. Without "slope in a chosen direction," you cannot even write the equations.

means...
slope of in the -direction, all other variables held fixed
Why curly instead of ?
to signal that the other variables are held constant

4. The push a system carries: momentum

For a plain particle of mass , momentum is — heavy things and fast things carry more "push." But Hamilton needs a more general momentum that works for angles, fields, weird coordinates.

You don't understand yet — that's the next section. For now hold this thought: momentum is a slope of in the velocity direction. That's why we needed first.

Why we bother with at all. Hamilton's whole trick is to stop using velocity and use this push instead. The payoff (built on the parent page) is a perfectly symmetric pair of rules for and .

For a free particle equals...
(mass times velocity), the special case of the general definition

5. Adding up over all parts:

If the system has several coordinates, we often add one term per coordinate.

For a system with one moving part, has a single term and you can mentally ignore it. It only earns its keep when there are many parts.

for a 1-part system is just...
(one term)

6. The Lagrangian — the thing we start from

The parent page begins with . Here is what it is, from zero.

Why a difference and not the sum? This is subtle and you should not memorise it as "energy." is a bookkeeping device: Nature moves a system so that a running total of over the whole path is as small as it can be (the principle of least action, from Lagrangian Mechanics). The difference is exactly the combination that makes this work. We accept it here as our given starting material.

What it depends on. is a function of position, velocity, and possibly time: . That "and time" matters later — if secretly changes with (e.g. someone is shaking the apparatus), energy need not be conserved.

in plain words...
kinetic energy minus potential energy,
depends on which variables?
position , velocity , and possibly time

7. The Hamiltonian — where we're heading

is built from by a swap called the Legendre transform (its own deep-dive: Legendre Transform). We only preview it here.

The picture that makes special: think of as a landscape over the flat map whose east-axis is and north-axis is . That map is called phase space (Phase Space and Liouville's Theorem). The system's whole life is a single point wandering on this map, and 's slopes tell it where to go next.

Figure — Hamilton's equations of motion
in the nice case equals...
the total energy
The flat map with axes and is called...
phase space

8. How the pieces fit together

position q

velocity q-dot

Lagrangian L equals T minus V

partial derivative

momentum p

Hamilton equations

summation sign

Hamiltonian H

phase space map

Hamilton equations of motion

Read it as a supply chain: position and velocity feed ; the partial derivative of in the velocity direction makes momentum ; , the sum, and assemble into ; and the slopes of are the equations of motion that the whole topic is about.


Equipment checklist

Test yourself — cover the right side. If any answer surprises you, reread that section before the parent page.

A generalized coordinate is
any single number that fixes the system's position (distance, angle, stretch, ...)
The dot in means
rate of change per unit time, i.e. , the slope of the position–time curve
Acceleration is written
(two dots), the slope of the slope
A partial derivative is
the slope of in the -direction with all other variables held fixed
The difference between and
is total change (one variable); is change with the others frozen (several variables)
Generalized momentum is defined as
; for a free particle this is
means
add over every coordinate
The Lagrangian is
, kinetic minus potential energy, a function of
The Hamiltonian is
, usually the total energy
Phase space is
the flat map whose axes are position and momentum , where the state is one point
Hamilton's two equations read
and