Member-only story

Introduction to Lagrangian Mechanics

Rhett Allain
9 min readDec 31, 2020

Photo: Rhett Allain

I’ll be honest. There is a lot of stuff to talk about when we are talking about the Lagrangian. It’s not super simple — but it is super powerful.

Newtonian Mechanics

Before jumping into Lagrangian mechanics, let’s think about Newtonian mechanics. At the most basic level, this uses the momentum principle and the work-energy principle:

Newtonian mechanics works best if you can calculate the forces directly. Some examples of calculated forces would be:

  • The gravitational force
  • Air resistance
  • The force from a spring
  • Electromagnetic forces

For example, consider a mass hanging vertically on a spring.

Image: Rhett Allain

Since you can get an expression for both the spring force and the gravitational force, you can use the momentum principle to find the acceleration and find an equation of motion (yes, you need to solve a differential equation).

But what about something like this mass swinging on a string (pendulum).

What’s the problem here? In this case you again have the gravitational force — but there is also the force from the string. This string force (tension) changes in both magnitude AND direction. There is no simple equation for tension here because it’s a constraint force. The string applies whatever force it needs in order to keep the mass at the same distance from the pivot point.

There are some tricks to deal with these constraint forces — for example, you could switch to polar coordinates where the tension doesn’t even matter. But that means you need the acceleration in polar coordinates. It’s not as simple as it should be. Here is that solution (if you are interested):

Rhett Allain
Rhett Allain

Written by Rhett Allain

Physics faculty, science blogger of all things geek. Technical Consultant for CBS MacGyver and MythBusters. WIRED blogger.

Responses (6)

Write a response

Some references you may find interesting:
1 - Goldstein - Classical Mechanics
2 - Lagrangian Dynamics by D.A.Wells in Schaum's Series

--

How can this method be used to model a point that vibrates in 2D space (Cartesian or polar), due to random noise, where there is no mass or gravity to utilize; but readings of (x,y) position are available from which we can deduce instantaneous velocity and acceleration?
Thanks!

--

Some essential Classical Mech! Loved it. Much less painful for students without having to worry about new vocabulary such as ‘variational Calculus‘ ‘Functionals’ etc.
I am curious about the time of flight of 1.1 s (rather than 1 s) in the plots with…

--