Visual walkthrough — Hamilton's equations of motion
We only assume you know from Lagrangian Mechanics one thing: a system has a function called the Lagrangian, and its motion obeys the Euler–Lagrange rule. We rebuild everything else.
Step 1 — A curve, and the slope of that curve
WHAT. Fix a position and time , and let the velocity (the rate the position changes, "how fast") be the only thing we vary. Then becomes an ordinary curve: horizontal axis , vertical axis .
WHY. Everything Hamilton does is a trick about slopes of this curve. Before we can trade for something else, we must look at what the curve of versus even is. For a free particle , so it is a simple upward bowl (a parabola).
PICTURE. Look at the pale-yellow curve. At one chosen point on it, the chalk-blue line is tangent — it just grazes the curve. Its steepness (rise over run) is the number we are about to name.

Step 2 — Reading a point on the curve two ways
WHAT. The bowl-shaped curve can be described by listing every point — OR by listing every tangent line: its slope and where that tangent hits the vertical axis.
WHY. This is the deep idea behind the Legendre Transform (see Legendre Transform). A convex curve is completely pinned down by its family of tangent lines. So instead of "the height at velocity ," we may hand someone "the slope and the intercept." No information is lost — we just changed which variable we hold in our hand from to .
PICTURE. The blue tangent line, extended, crosses the vertical axis at a negative height. Call the positive distance from the origin down to that intercept our new quantity .

Step 3 — Why the velocity vanishes: watch the tangent slide
WHAT. Nudge a tiny bit. The curve height changes by (slope times step). At the same time changes by . Subtract, as demands.
WHY. We want to forget entirely. Let's see the cancellation happen, not just claim it.
PICTURE. Two nearby tangent lines: as steps right by , the extra bit the curve climbs is exactly the extra bit the term climbs. They erase each other, leaving only the change coming from moving.

The two middle terms are equal and opposite because by definition (Step 1). The velocity's differential is gone.
Step 4 — Feeding in Euler–Lagrange to name the leftover slopes
WHAT. Two pieces remain from Step 3: the term with and the term with . Euler–Lagrange lets us relabel the term.
WHY. Right now the coefficient is — written in Lagrangian language. We want it in momentum language so both equations look symmetric.
PICTURE. Euler–Lagrange says: "the rate the momentum-slope changes in time equals the position-slope of ." Follow the chalk-pink arrow from the time-derivative of across to .

So the leftover from Step 3 becomes
Each term now speaks only of , , and . Good — that matches what is allowed to depend on.
Step 5 — Matching two expressions for the same
WHAT. We have two formulas for the same small change . One we just derived (Step 4). The other is what calculus always says for a function of .
WHY. If two expressions equal the same for every independent wiggle , , , then the coefficient sitting on each wiggle must match separately. That is how we read off the equations.
PICTURE. Line up the two rows. The coefficient of on top must equal the coefficient of on the bottom; likewise for and . Matching colours show the pairings.

Step 6 — WHY the minus sign is not optional: the flow must swirl
WHAT. Draw the velocity field in phase space (axes horizontal, vertical). At each point the state moves with velocity .
WHY. The minus flips one component of the gradient by . Instead of flowing downhill toward lowest (which a plus-plus rule would do, and everything would collapse to a point), the state flows around the hills of constant . Motion is perpetual, energy is preserved — this is the seed of Phase Space and Liouville's Theorem.
PICTURE. Left panel: the wrong plus-plus field — every arrow points to the pit, motion dies. Right panel: the correct Hamilton field — arrows circle the contours of , tracing a closed loop.

Step 7 — Degenerate & edge cases (never leave a gap)
WHAT & WHY & PICTURE together, because each is a special reading of the same figure below.

- Free particle, . has no inside, so : momentum is constant. Phase-space lines are horizontal (top panel) — the state slides right at fixed height.
- At an equilibrium ( and ). Both velocities vanish: the state is a fixed point and never moves (centre dot).
- Curve not convex (inflection, ). The slope no longer uniquely picks a — the Legendre step of Step 2 cannot be inverted. This is the singular case where the whole Hamiltonian recipe stalls (bottom panel: two velocities share one slope).
- explicitly time-dependent. Then , so and drifts: . Energy is no longer conserved even though the two canonical equations still hold unchanged.
The one-picture summary
Everything on this page is one journey: curve → its slope → intercept → strip out → match differentials → circulate. The final board compresses it.

Recall Feynman retelling — the whole walkthrough in plain words
Picture the Lagrangian as a curved hill whose height depends on how fast you're going. The slope of that hill — how much the height changes per unit of extra speed — is a number we christen momentum, . That's Step 1.
Now here's the clever swap: a smooth hill can be described entirely by its slopes and where each tangent line hits the wall. So instead of carrying "how fast," we carry "the slope ." The distance from the origin to where the tangent line crosses gives a brand-new quantity, , the energy of the system. That's Steps 2–3, and the beautiful thing is that when you do the bookkeeping, the "how fast" term cancels itself out perfectly — because was the slope that multiplied it.
Feed in the one law from Lagrange (Step 4), line up two ways of writing the same tiny change in (Step 5), and out drop two twin rules: position chases how grows with momentum; momentum gets pushed opposite to how grows with position. That opposite — the minus sign — is the hero (Step 6): it makes the state circle the energy hills forever instead of rolling down and dying. Plot position sideways and momentum up, and the system draws a closed loop, like a clock hand that never winds down.
And the fine print (Step 7): if the hill isn't curved enough, you can't recover speed from slope and the trick breaks; if the hill itself changes with time, the energy loop slowly grows or shrinks. Everything else — Poisson Brackets, Canonical Transformations, Hamilton-Jacobi Theory, Noether's Theorem — is built on this single circulating picture.