Exploring The Lagrange Equation

Lucas Potrykus
ILLUMINATION
Published in
3 min readJul 31, 2023
Photo by Ben Wicks on Unsplash

The Lagrange equation, also known as the Euler-Lagrange equation (yeah, Euler always sneaks in), is a fundamental concept in classical mechanics and the Calculus of Variations. Introduced by Italian mathematician and astronomer Joseph-Louis Lagrange in the late 18th century, this equation provides a powerful framework for analyzing the dynamics of systems and solving variational problems. So, as you can imagine, it’s quite useful in both math and physics. In fact, on twitter (or rather ‘X’) I came across a problem which I was able to solve by applying this equation!

The Principle of Least Action

The foundation of the Lagrange equation is rooted in the Principle of Least Action, which states that the path taken by a physical system between two points in space and time is the one that minimizes the action integral. The action (S) for a system with a Lagrangian (L) is given by:

Screenshot taken from author’s personal online notebook

where q represents the generalised coordinates of the system, q˙​ denotes their time derivatives, and t is time.

Derivation of the Lagrange Equation

To derive the Lagrange equation, we start with the Principle of Least Action. Considering an infinitesimal variation δq in the generalized coordinates, the variation in the action δS is given by:

Screenshot taken from author’s personal online notebook

Using the principle of least action, we set δS=0, which yields our Euler-Lagrange equation:

Screenshot taken from author’s personal online notebook

This is the Lagrange equation in its most general form and holds for systems with any number of generalised coordinates and constraints. So, pretty useful!

Applications in Mechanics

The Lagrange equation provides a unified approach to analyzing the dynamics of mechanical systems. By defining an appropriate Lagrangian, one can derive the equations of motion for a wide range of physical systems, from simple pendulums and harmonic oscillators to celestial bodies moving under gravity. Cool stuff right?

Example: Simple Harmonic Oscillator

For a simple harmonic oscillator with mass m and spring constant k, the Lagrangian is given by:

Screenshot taken from author’s personal online notebook

Where T is the kinetic energy and U is the potential energy.

Applying the Lagrange equation, we obtain:

Screenshot taken from author’s personal online notebook

which is the familiar equation of motion for a simple harmonic oscillator (which, come on, should be familiar to anyone right… right?).

--

--