Orbiting planets and pendulum illustrating classical mechanics principles

Introduction to the Lagrangian

PHYS 201 · Gravity Oscillations and Lagrangian

Lagrangian mechanics reformulates motion using energy and generalized coordinates. This lesson introduces the action principle, Euler-Lagrange equation, and simple examples.

Key equations

ec{F}=m ec{a}L=T-US=int_{t_1}^{t_2} L,dt rac{d}{dt}left( rac{partial L}{partial dot{q}} ight)- rac{partial L}{partial q}=0T= rac{1}{2}mdot{x}^2L= rac{1}{2}mdot{x}^2 rac{d}{dt}(mdot{x})=0mddot{x}=0U= rac{1}{2}kx^2L= rac{1}{2}mdot{x}^2- rac{1}{2}kx^2mddot{x}+kx=0

Learning objectives

  • Define the Lagrangian as kinetic energy minus potential energy.
  • Explain generalized coordinates and the action principle.
  • Use the Euler-Lagrange equation in simple one-coordinate systems.
  • Recognize why Lagrangian mechanics is useful for constrained systems.

A different formulation of mechanics

Newtonian mechanics focuses on forces and acceleration:

ec{F}=m ec{a}

Lagrangian mechanics reformulates mechanics using energy-like quantities and generalized coordinates. It is especially powerful for constrained systems, rotating systems, and advanced theoretical physics.

The central quantity is the Lagrangian:

L=TUL=T-U

where TT is kinetic energy and UU is potential energy. The symbol LL here does not mean angular momentum; context matters.

Generalized coordinates

A generalized coordinate is any variable that describes the configuration of a system. It might be a distance xx, an angle heta heta, or several coordinates q1,q2,ldotsq_1,q_2,ldots.

For a pendulum, the angle heta heta is often a better coordinate than x and y because the bob is constrained to move along a circular arc. The constraint is built into the coordinate choice.

In Lagrangian mechanics, a coordinate is usually written as qq, and its time derivative is dotqdot{q}.

The action principle

The action is defined as

S=intt1t2L,dtS=int_{t_1}^{t_2} L,dt

Hamilton's principle says the actual path taken by a system makes the action stationary compared with nearby possible paths. Stationary usually means minimum in simple examples, but more generally it means the first variation is zero.

This principle may sound abstract, but it produces the equations of motion.

Euler-Lagrange equation

For one generalized coordinate qq, the equation of motion is

ight)- rac{partial L}{partial q}=0$$ This is the Euler-Lagrange equation. It replaces direct force analysis with a procedure based on $T$ and $U$. ## Simple example: free particle For a free particle moving in one dimension with no potential energy, $$T= rac{1}{2}mdot{x}^2$$ $$U=0$$ so $$L= rac{1}{2}mdot{x}^2$$ Compute $$ rac{partial L}{partial dot{x}}=mdot{x}$$ and $$ rac{partial L}{partial x}=0$$ The Euler-Lagrange equation gives $$ rac{d}{dt}(mdot{x})=0$$ so $$mddot{x}=0$$ This is Newton's first law for a free particle. ## Spring-mass example For a mass on a spring, $$T= rac{1}{2}mdot{x}^2$$ $$U= rac{1}{2}kx^2$$ so $$L= rac{1}{2}mdot{x}^2- rac{1}{2}kx^2$$ Then $$ rac{partial L}{partial dot{x}}=mdot{x}$$ and $$ rac{partial L}{partial x}=-kx$$ Euler-Lagrange gives $$mddot{x}+kx=0$$ which is the simple harmonic oscillator equation. ## Why Lagrangian mechanics is useful The Lagrangian method handles constraints elegantly. Instead of calculating constraint forces that may do no work, you can choose coordinates that automatically satisfy the constraints. This is especially useful for pendulums, rolling systems, coupled oscillators, beads on wires, and advanced field theories. It also reveals deep connections between symmetry and conservation laws. If the Lagrangian does not depend on a coordinate, the corresponding generalized momentum is conserved. This idea leads to Noether's theorem in advanced physics. ## The big idea Lagrangian mechanics describes motion using $L=T-U$ and the action principle. The Euler-Lagrange equation generates equations of motion from energy expressions and generalized coordinates. It reproduces Newtonian results but often does so more cleanly, especially for constrained and advanced systems.

Ask your AI physics guide

AI Physics Chat· Classical Mechanics — Introduction to the Lagrangian

Ask anything about Classical Mechanics — Introduction to the Lagrangian, or choose a suggested question below.

AI responses are educational and may not be perfectly accurate. Press Enter to send, Shift+Enter for new line.