The other way to do mechanics, the part that doesn't involve forces and momentum and stuff, is Lagrangians.

Lagrangian mechanics is absolutely crazy, but you'll love it.

The first step is to define your system in terms of a collection of coordinates, and their time derivates. These coordinates depend on whatever's convenient for the system. A particle moving freely in 3D space will typically have these coordinates be x, y, and z. A bob swinging on a pendulum might have one coordinate, θ.

The second step is to calculate the kinetic and potential energies T and U of the system when it is at a certain coordinate. The Lagrangian of the system L is then just T - U.

The third step is to find the motion of the system. This is described by the Euler-Lagrange equation, , with q being a coordinate.

## Free Particle

The simplest example of a Lagrangian is a particle moving around freely, under some potential defined at the point (x,y,z) as V(x,y,z). The coordinates used are x, y and z.

The kinetic energy of the particle is , as normal, which for this particle is .

The potential energy was defined above as . This is just a function in x, y and z, and can be any potential you like.

The Lagrangian is hence .

Now, all that's left is to plug this into the Euler-Lagrange equation, . For x, y and z these are

But wait! We know that , which means that these three equations are

It's Newton's law!

## Pendulum

Of course, that's pretty uninspiring. Newton's laws are basic and describe how forces work. They're not too much of an interesting result; anyone could tell you that a particle under an external force follows Newton's laws.

So, let's try something else. Let's do a pendulum, of length l with a bob of mass m. We'll use the generalised coordinates r and θ.

The velocity of the bob of a pendulum is , so the kinetic energy is .

The potential energy of the bob is . The first part is simple: it's just U = mgh, but for the height of the bob above the ground. The second part, V(r), is the tiny potential created by the pendulum stretching infinitesimally.

So, the Lagragian of this system is

Putting this into the Euler-Lagrange equation with θ gives

Which can be rewritten as

For small values of θ, , and the pendulum has a fixed length r = l, so

This is simple harmonic motion with an angular frequency , as you expect from a pendulum. Personally, I think that this is a better derivation that using forces.

Putting this into the Euler-Lagrange equation with r gives

The derivative of potential with respect to r is the tension in the pendulum rod, so

However, we know that the rod has a fixed length l. This means that (otherwise the rod would be stretching or shrinking), so

This is the expression for the tension in a pendulum! You can see the terms for the centripetal force, and the force to counteract gravity. Neat!

## Conservation

One cool thing you can do with Lagrangians is find out some conserved quantities.

In Cartesian coordinates, so , and hence if there are no external forces.

When you put this in the Euler-Lagrange equation, you get , , and , which shows that those three quantities do not change over time. In other words, momentum is conserved!

In cylindrical coordinates, . This results in the three conserved quantities , , and , which is conservation of linear momentum and conservation of angular momentum! Cool!

In spherical coordinates, . This results in the three conserved quantities , , and . Even more conserved quantities, fun for the whole family!