Graduate → Classical mechanics → Lagrangian and Hamiltonian mechanics ↓
Euler–Lagrange equations
The Euler-Lagrange equations are a fundamental set of equations in classical mechanics, used within the framework of both Lagrangian and Hamiltonian mechanics. They allow us to find the path, or "trajectory", that a physical system takes over time. These equations are derived from the principle of minimum action, which states that the path taken by a system is one for which the action is constant (usually minimal).
Introduction to Lagrangian mechanics
Lagrangian mechanics is a reformulation of classical mechanics, introduced in the 18th century by Joseph-Louis Lagrange. Whereas Newton's laws focus on forces, Lagrangian mechanics redefines mechanics in terms of energy. It uses a function called the Lagrangian, denoted by L, which is defined as the difference between the kinetic energy (T) and potential energy (V) of a system:
L = T - V
The beauty of Lagrangian mechanics is that it simplifies the problem of determining the equations of motion for complex systems, especially when the system has constraints.
Principle of minimum action
The principle of minimum action, also known as Hamilton's principle, is a variational principle that provides the basis for Lagrangian mechanics. According to this principle, the path taken by a system between two states is the one for which the action, S, is maximized (usually minimal). The action is defined as the integral of the Lagrangian over time:
S = ∫ L dt
To find the path that takes the function to the extremum, the function is transformed and its first variation is set to zero:
δS = 0
This brings us to the Euler–Lagrange equations, which are derived by applying the calculus of variations.
Derivation of the Euler–Lagrange equations
Consider a system described by n generalized coordinates qi for i from 1 to n. The Lagrangian L is a function of these generalized coordinates, their time derivatives (velocities) dqi/dt, and time t:
L = L(q1, q2, ..., qn, t)
To derive the Euler–Lagrange equations, consider a small change in the path of the system.
qi(t) → qi(t) + δεi
where δεi is an infinitesimal variation. The action up to first order in δεi becomes as follows:
δS = ∫ (∂L/∂qi) δεi + (∂L/∂(dqi/dt)) δ(dqi/dt) dt
After integrating by parts and assuming that the divergences vanish at the endpoints, we get the Euler–Lagrange equation:
d/dt (∂L/∂(dqi/dt)) - ∂L/∂qi = 0
These are the Euler–Lagrange equations, a set of n second-order differential equations.
Examples of Lagrangian mechanics
Example 1: Simple harmonic oscillator
Consider a simple harmonic oscillator whose mass m is connected to a spring of constant k. The kinetic energy T and potential energy V are given by:
T = 1/2 m (dx/dt)^2
V = 1/2 kx^2
The Lagrangian L is:
L = T - V = 1/2 m (dx/dt)^2 - 1/2 kx^2
Applying the Euler–Lagrange equation:
d/dt (∂L/∂(dx/dt)) = ∂L/∂x
This results in the classic simple harmonic motion equation:
md2x/dt2 + kx = 0
Example 2: Pendulum
Consider a simple pendulum of length l and mass m. The motion is confined to a plane and the angle θ from the vertical is the generalized coordinate. The kinetic energy T and potential energy V are given by:
T = 1/2 m (l^2) (dθ/dt)^2
V = mgl (1 - cos θ)
The Lagrangian L is:
L = 1/2 m (l^2) (dθ/dt)^2 - mgl (1 - cos θ)
Applying the Euler-Lagrange equation we get:
ml^2 d2θ/dt2 + mgl sin θ = 0
Introduction to Hamiltonian mechanics
Hamiltonian mechanics is a further reformulation of classical mechanics, named after Sir William Rowan Hamilton. It provides a powerful framework, especially useful in more advanced mechanics, quantum mechanics, and statistical mechanics. The fundamental quantity in Hamiltonian mechanics is the Hamiltonian, denoted by H, which is often the total energy of the system (the sum of kinetic and potential energies).
From Lagrangian to Hamiltonian
Transforming from the Lagrangian to the Hamiltonian involves a process called the Legendre transformation. The generalized momentum, pi, is defined as:
pi = ∂L/∂(dqi/dt)
The Hamiltonian H is defined as a function of generalized coordinates, momentum, and time:
H(qi, pi, t) = Σ pi (dqi/dt) - L(qi, dqi/dt, t)
Hamilton's equations
Hamilton's equations of motion are derived from the Hamiltonian and are expressed as follows:
d(qi)/dt = ∂H/∂pi
d(pi)/dt = -∂H/∂qi
Example: Simple harmonic oscillator in Hamiltonian mechanics
Returning to the simple harmonic oscillator with Hamiltonian mechanics, the momentum p is given by:
p = m(d(x)/dt)
The Hamiltonian H for a simple harmonic oscillator is:
H = p(d(x)/dt) - (1/2)m(d(x)/dt)2 + 1/2 kx2
This makes it simpler:
H = p2/2m + 1/2 kx2
Applying Hamilton's equations gives the standard equations of motion:
d(x)/dt = p/m
d(p)/dt = -kx
Applications and significance
The Euler–Lagrange equations, and more generally Lagrangian and Hamiltonian mechanics, are fundamental to understanding physical systems. They are particularly useful in dealing with the following:
- Complex systems: Systems with many degrees of freedom and constraints, such as many-body systems, are simpler in this formulation.
- Field theories: such as electromagnetism and general relativity, where fields rather than particles are the primary objects of study.
- Quantum mechanics: where Hamiltonian mechanics provides a bridge to quantum systems through concepts such as operators and eigenstates.
Conclusion
The Euler-Lagrange equations are an essential component of the physicist's toolkit for exploring both classical and modern physics. Using these equations, we can determine the equations of motion for a vast array of systems and understand the principles that govern their dynamic behavior. Lagrangian and Hamiltonian methods provide powerful and elegant approaches to mechanics, highlighting the deep connection between mathematics and physics.