Skip to content
Tutorials Center
My learning

Topics

Classical Mechanics: Lagrangian and Hamiltonian Tutorial

Learn Classical Mechanics: Lagrangian and Hamiltonian step by step: 44 lessons in 9 chapters with examples, quizzes, diagrams and practice.

Start learning →

of lessons completed

Getting Started

  1. 1 Course Map: Classical Mechanics from Forces to Action Start here: who this course is for, what you need to know, how to study it, and a map of all nine chapters from Newton's laws to Hamilton's equations.
  2. 2 Why Lagrange and Hamilton? See why physicists moved beyond Newton's force vectors: bead-on-a-hoop motivation, a short history, and a comparison of the Newtonian, Lagrangian and Hamiltonian pictures.
  3. 3 The Math Toolkit: Partial Derivatives and the Chain Rule Learn the three calculus tools used all course long: partial derivatives, the chain rule, and total time derivatives of functions like L(q, qฬ‡, t), with worked examples.
  4. 4 Generalized Coordinates and Degrees of Freedom Learn how to count degrees of freedom, choose generalized coordinates for pendulums and other systems, and write kinetic energy in those coordinates, with symbolic Python.
  5. 5 Chapter 1 Review: Getting Started Review chapter 1 with a one-page poster, a recap table and a ten-question quiz on generalized coordinates, degrees of freedom, partial derivatives and the chain rule.

Newtonian Mechanics Revisited

  1. 6 Newtonian Mechanics Overview: The Vector Picture A fast, careful review of Newton's laws, momentum, energy and angular momentum, and a map of chapter 2 on systems of particles, constraints and conservative forces.
  2. 7 Systems of Particles and the Center of Mass Derive how internal forces cancel in a system of particles, how the center of mass moves, and how total momentum, angular momentum and energy split into two parts.
  3. 8 Constraints and the Pendulum: The Newtonian Way Solve the simple pendulum with Newton's laws, find the tension, see when a string goes slack, and learn why unknown constraint forces motivate the Lagrangian approach.
  4. 9 Conservative Forces, Potential Energy and Energy Diagrams Learn what makes a force conservative, how F = โˆ’โˆ‡V works, how to read energy diagrams with turning points and equilibria, and how to compute a period from energy.
  5. 10 Chapter 2 Review: Newtonian Mechanics Revisited Review Newton's laws, systems of particles, constraint forces and conservative forces with a one-page poster, a recap table and a ten-question quiz.

Calculus of Variations

  1. 11 Calculus of Variations Overview: Optimizing Whole Paths Meet the central idea of chapter 3: choosing a whole function, not a number, to make an integral stationary. Includes a roadmap and a first numerical experiment.
  2. 12 Functionals and the Euler-Lagrange Equation Derive the Euler-Lagrange equation from the idea of a stationary functional, learn the special cases and Beltrami identity, and check solutions with symbolic and numerical Python.
  3. 13 The Brachistochrone and Other Classic Paths Solve the brachistochrone (fastest descent) problem with the Beltrami identity, discover the cycloid, compare slide times numerically, and meet the tautochrone.
  4. 14 Constraints, Lagrange Multipliers and the Catenary Learn Lagrange multipliers for ordinary calculus and for variational problems with a fixed length, then derive and compute the catenary shape of a hanging chain.
  5. 15 Chapter 3 Review: Calculus of Variations Review functionals, the Euler-Lagrange equation, the brachistochrone, the catenary and Lagrange multipliers with a one-page poster, recap table and ten-question quiz.

Lagrangian Mechanics

  1. 16 Lagrangian Mechanics Overview: The Five-Step Recipe Preview Lagrangian mechanics: the five-step recipe from coordinates to equations of motion, tested on a harmonic oscillator and a free particle in polar coordinates.
  2. 17 From D'Alembert's Principle to Lagrange's Equations Derive Lagrange's equations from Newton's laws through virtual work and D'Alembert's principle, with generalized forces, dissipation, and symbolic checks in Python.
  3. 18 Worked Examples: Atwood Machine and Bead on a Rotating Hoop Apply the five-step Lagrangian recipe to an Atwood machine and a bead on a rotating hoop, recover the tension afterwards, and explain the hoop's bifurcation with an effective potential.
  4. 19 Generalized Momentum and Velocity-Dependent Potentials Define generalized (canonical) momentum, see cyclic coordinates, and derive the Lorentz force from the Lagrangian L = ยฝmvยฒ โˆ’ qฯ† + q vยทA, with a cyclotron and Eร—B drift simulation.
  5. 20 Chapter 4 Review: Lagrangian Mechanics Review the Lagrangian recipe, D'Alembert's principle, worked examples, generalized momentum and the Lorentz force with a one-page poster, recap table and ten-question quiz.

Conservation Laws and Symmetries

  1. 21 Chapter 5 Overview: Conservation Laws and Symmetries A tour of chapter 5: how cyclic coordinates, the energy function and Noether's theorem turn the symmetries of a Lagrangian into conserved quantities.
  2. 22 Cyclic Coordinates and the Energy Function Learn why a coordinate missing from the Lagrangian conserves its momentum, how the energy function h is defined, and why h is not always T + V.
  3. 23 Noether's Theorem: Symmetry Gives Conservation A step-by-step guide to Noether's theorem for particles: shift the path, check how L changes, build the conserved charge Q, with worked examples.
  4. 24 Chapter 5 Review: Conservation Laws and Symmetries Review of cyclic coordinates, the energy function h and Noether's theorem, with a one-page picture, a recap table, a numerical conservation audit and ten questions.

Hamiltonian Mechanics

  1. 25 Chapter 6 Overview: Hamiltonian Mechanics Preview of chapter 6: replace velocities by momenta, write Hamilton's first-order equations, picture motion in phase space and use Poisson brackets.
  2. 26 The Legendre Transform and Hamilton's Equations Turn a Lagrangian into a Hamiltonian step by step with the Legendre transform, derive Hamilton's equations and apply them to oscillators, pendulums and charged particles.
  3. 27 Phase Space and Liouville's Theorem Learn to read phase portraits of the oscillator and the pendulum, see why trajectories never cross, and prove that Hamiltonian flow preserves phase-space area.
  4. 28 Poisson Brackets and Canonical Transformations Use the Poisson bracket to compute time evolution and conserved quantities, then learn canonical transformations, generating functions and action-angle variables.
  5. 29 Chapter 6 Review: Hamiltonian Mechanics Review of the Legendre transform, Hamilton's equations, phase space, Liouville's theorem, Poisson brackets and canonical transformations, with a recap table and quiz.

Central Forces and Orbits

  1. 30 Chapter 7 Overview: Central Forces and Orbits Preview of chapter 7: reduce the two-body problem, use the effective potential, and derive Kepler's laws and the shapes of orbits from conservation laws.
  2. 31 The Effective Potential and the Orbit Equation Reduce the two-body problem to one body, use conserved angular momentum to build the effective potential, derive Kepler's second law and the Binet orbit equation.
  3. 32 The Kepler Problem: Orbits Under Gravity Solve the Kepler problem: derive the conic-section orbit, the eccentricity from energy, Kepler's three laws, the vis-viva equation and the Runge-Lenz vector.
  4. 33 Chapter 7 Review: Central Forces and Orbits Review reduced mass, angular momentum, the effective potential, conic-section orbits and Kepler's laws, with a one-page picture, an orbit classifier and ten questions.

Rigid Bodies and Small Oscillations

  1. 34 Chapter 8 Overview: Rigid Bodies and Small Oscillations Preview of chapter 8: normal modes of coupled oscillators, the inertia tensor, Euler's equations and why a tennis racket tumbles when you spin it about one axis.
  2. 35 Small Oscillations and Normal Modes Linearize a system near equilibrium, solve det(K โˆ’ ฯ‰ยฒM) = 0 for the normal frequencies and modes, and apply it to coupled masses and the double pendulum.
  3. 36 The Inertia Tensor and Euler's Equations Learn the inertia tensor, principal axes and Euler's equations for rigid bodies, and see why a spinning book or tennis racket flips about its middle axis.
  4. 37 Chapter 8 Review: Rigid Bodies and Small Oscillations Review of normal modes, the inertia tensor, principal axes and Euler's equations, with a one-page picture, a chain-of-masses check and ten questions.

Projects and Practice

  1. 38 Chapter 9 Overview: Projects and Practice Plan for the last chapter: build a Lagrangian-to-simulation toolkit, study the chaotic double pendulum and symplectic integrators, then work a problem set.
  2. 39 Project: The Double Pendulum and Chaos Derive the double pendulum's equations with sympy, simulate it, check energy conservation and measure how fast two nearly identical starts drift apart.
  3. 40 Project: Symplectic Integrators Compare explicit Euler, symplectic Euler, leapfrog and RK4 on the oscillator and a Kepler orbit, and see why preserving phase-space area keeps energy bounded.
  4. 41 Practice Problem Set with Worked Answers Ten problems on Lagrangians, symmetries, Hamilton's equations, orbits, normal modes and rigid bodies, with a six-step method and worked answers checked by code.
  5. 42 Glossary of Lagrangian and Hamiltonian Mechanics Short definitions of the key terms of Lagrangian and Hamiltonian mechanics, from action and constraints to Poisson brackets, normal modes and the inertia tensor.
  6. 43 Cheat Sheet: Lagrangian and Hamiltonian Mechanics A one-page summary of the key formulas of Lagrangian and Hamiltonian mechanics, with units, sanity checks and quick calculators for orbits, oscillations and rotation.
  7. 44 Further Study: Where Lagrangian Mechanics Leads A map of the next steps after this course: quantum mechanics, statistical mechanics, relativity, field theory, differential geometry and numerical methods.