Foundations — Hamiltonian — definition H = Σpᵢq̇ᵢ − L
This page assumes nothing. Every squiggle you will meet in the parent note is built here from the ground up, in an order where each item leans only on the ones before it.
1. A "system" and its state
Imagine a bead sliding on a wire, or a swinging pendulum. To know everything about the motion at one instant, you need two kinds of fact:
- Where is it? — a position.
- How is it moving? — a velocity (later swapped for momentum).
Everything below is machinery for writing these two facts precisely and turning one description into the other.

2. Generalized coordinate
The picture: for the pendulum in figure s01, one number — the angle from straight-down — completely fixes the bob's location. So is a generalized coordinate. We don't need and separately; the wire/rod already constrains them.
- The letter is the traditional symbol.
- The little subscript is just a label — a name tag. If a system needs three numbers to describe it, we call them . The symbol means "the -th one, whichever you like".
3. The dot: means rate of change
Where the dot comes from — the derivative. Suppose the coordinate is at time and a tiny moment later. The average speed of change is . Shrink toward zero and this ratio settles on one number — the instantaneous rate. That limiting number is what the dot denotes:
Why this tool and not another? We need to know how fast the coordinate moves right now, not on average over a whole second. Only the limit — the derivative — gives an honest "right now" answer. That is precisely the question the derivative was invented to answer.
The picture: plot against time. The dot is the steepness (slope) of that curve. Steep upward large positive ; flat ; sloping down negative.

4. The partial derivative
The parent note writes things like . Here is that symbol, from zero.
Why we need it: the Lagrangian depends on , on , and on time simultaneously. To find the momentum we must isolate the response of to velocity alone. The partial derivative is the only tool that answers "response to one input, others frozen".
The picture: think of as the height of a landscape over a floor whose two directions are (east) and (north). The partial is the slope you feel walking due north, ignoring any east–west tilt.

5. The Lagrangian
- is big when things move fast: e.g. . Depends on velocity.
- is stored energy that depends on where you are (height, spring stretch): . Usually velocity-free.
Why and not ? That minus sign is what makes the Euler–Lagrange machinery (below) reproduce Newton's laws — take it on faith here; it is developed in Lagrangian Mechanics. For this topic, is simply the raw material the Hamiltonian is built from.
6. Conjugate momentum
The picture (reusing s03): is exactly the north-slope of the -landscape. Steeper dependence of on velocity larger momentum.
Sanity check with the everyday case. For , nudging gives — ordinary "mass times velocity". So the fancy definition contains the familiar one as a special case.
7. The sum symbol
Why we need it: a system may have many coordinates. Rather than write a long chain of plus signs, packs "one term per coordinate, all added" into one compact symbol.
8. Energy words: , ,
- — kinetic energy, energy a thing has because it is moving. Larger for faster or heavier objects.
- — potential energy, energy stored by position: a raised weight, a stretched spring.
- — total energy. In a system with no friction/driving, stays constant as motion sloshes energy back and forth between and .
The parent note's punchline — " often equals " — only makes sense once you hold these three straight. is the physical energy; is a constructed quantity that sometimes, not always, coincides with it.
9. Putting the symbols to work (the Hamiltonian)
Now every piece of is defined:
| symbol | plain meaning | picture |
|---|---|---|
| position label | angle/length locating the system (s01) | |
| its velocity | slope of -vs-time graph (s02) | |
| response to velocity, others frozen | north-slope of landscape (s03) | |
| conjugate momentum | that north-slope's value | |
| , the recipe number | — | |
| add over all coordinates | — |
The parent note then trades the velocity description for the momentum description. Everything downstream — Legendre Transform, Hamilton's Canonical Equations, Phase Space, Poisson Brackets, Conservation Laws & Noether's Theorem — is built on exactly these atoms.
10. How the foundations feed the topic
Equipment checklist
Cover the right side and test yourself. If any answer surprises you, re-read that section.
What does a generalized coordinate do?
What does the overdot in mean?
Why is a derivative (not an average) the right tool for ?
What does the curly signal in ?
Geometrically, what is ?
For , what is ?
For an angle , what does give?
What does expand to for two coordinates?
Define , , , in words.
Is the same object as ?
Recall One-line summary
= where, = how fast, = the momentum that reacts to velocity, and repackages the whole system in language.