Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

In this chapter, we will introduce the Lagrangian and the Euler-Lagrange method for solving physics problems. This technique represents another tool in your physics toolkit, much like how we can use energy conservation, momentum conservation, and Newton’s laws to solve physics problems.

12.1 Introduction to the Lagrangian Method

Consider the case of a single particle being acted on by a conservative force in 1-D (x−(x-axis). From the energy equations, we can say that:

F=−∂U∂xF = - \frac{\partial U}{\partial x}

But from Newton’s laws, we can also write the force as

F=dpdt=mdvdt=mdx˙dtF = \frac{\mathrm{d}p}{\mathrm{d}t} = m \frac{\mathrm{d}v}{\mathrm{d}t} = m \frac{\mathrm{d}\dot{x}}{\mathrm{d}t}

for constant mass. We can therefore relate the force to the kinetic energy, because the kinetic energy depends on the velocity, K=12mx˙2K = \frac{1}{2} m\dot{x}^{2}.

dKdx˙=mx˙,ddt(dKdx˙)=mdx˙dt=F.\frac{\mathrm{d}K}{\mathrm{d}\dot{x}}=m\dot{x}, \qquad \frac{\mathrm{d}}{\mathrm{d}t}\left(\frac{\mathrm{d}K}{\mathrm{d}\dot{x}}\right) =m\frac{\mathrm{d}\dot{x}}{\mathrm{d}t}=F.

We can combine these two force equations to say that:

ddt(dKdx˙)=−dUdx\frac{\mathrm{d}}{\mathrm{d}t} \Bigg(\frac{\mathrm{d}K}{\mathrm{d}\dot{x}} \Bigg) = - \frac{\mathrm{d}U}{\mathrm{d}x}

The above equation is a function of the kinetic and potential energies. So we define the Lagrangian as:

L=K−UL = K - U

where LL is the Lagrangian. This is the same symbol used for angular momentum in this text, so check the surrounding equations before deciding which quantity LL means.

LL is a function of position and velocity. That is, L=L(x,x˙L = L(x,\dot{x} ) in 1-D, because K=K(x˙K = K(\dot{x} ) and U=U(x)U = U(x). In this case, KK is not a function of position and UU is not a function of velocity. As such,

∂L∂x=−∂U∂x\frac{\partial L}{\partial x} = - \frac{\partial U}{\partial x}
∂L∂x˙=∂K∂x˙\frac{\partial L}{\partial \dot{x}} = \frac{\partial K}{\partial \dot{x}}

where ∂\partial indicates a partial derivative. For a partial derivative, you hold all other variables constant and only take the derivative with respect to the one variable.

Therefore, we can rewrite ddt(dKdx˙)=−dUdx\frac{\mathrm{d}}{\mathrm{d}t}\left(\frac{\mathrm{d}K}{\mathrm{d}\dot{x}}\right)=-\frac{\mathrm{d}U}{\mathrm{d}x}, which we had before as:

ddt(∂L∂x˙)=∂L∂x\frac{\mathrm{d}}{\mathrm{d}t} \Bigg(\frac{\partial L}{\partial \dot{x}} \Bigg) = \frac{\partial L}{\partial x}

This is the Euler-Lagrange equation. The above example is for 1-D motion in the xx-axis, but in practice, you can apply the arguments to represent the Euler-Lagrange equations in other (independent) coordinates. In its general form, the Euler-Lagrange equation is:

ddt(∂L∂x˙i)=∂L∂xi\frac{\mathrm{d}}{\mathrm{d}t} \Bigg(\frac{\partial L}{\partial \dot{x}_{i}} \Bigg) = \frac{\partial L}{\partial x_{i}}

Here xix_i is an independent generalized coordinate, such as a Cartesian position, a radius, or an angle. Write one Euler–Lagrange equation for each independent coordinate and solve the equations together when they are coupled.

The Lagrangian method represents yet another way you can solve problems in physics. For the rest of the chapter, we will look at a few examples.

12.2 Application to 1-D Problems

12.3 Application in 2-D

12.4 Example Problem: Sphere on an Incline

The following problem includes rolling and translational motion.

12.5 Challenging Problem: Particle on a Wire

For this problem, the solution is not a simple differential equation. Consider whether you would try to solve this problem using Newton’s Laws or energy conservation.

12.6 Real-World Applications

Initially, it might seem like the Euler-Lagrange Method is unnecessarily complicated, but we’re really just touching the edge of what it can be used for. Remember that this textbook is still mostly focusing on simple, idealized problems. The real world of experimentation and research is much more complex, and many physics problems don’t have simple, analytical solutions and can only be probed numerically using computers.

Lagrangian mechanics helps simplify the calculations for complex or even chaotic systems where forces are hard to define or the initial conditions can drastically change the outcome (e.g., consider the motion of a double pendulum). In terms of physics research, solving problems with the Euler-Lagrange method is often more efficient when mapping the motion of stars in galactic mergers or near supermassive black holes, tracing particle collisions in accelerators, solving problems in fluid mechanics, or tracking systems of particles in thermodynamics or quantum mechanics. The Euler-Lagrange equations are a tool to break down big problems into smaller calculations.

One common application of Lagrangian mechanics is with magnetohydrodynamics (MHD), which is the study of fluids that conduct electricity. MHD is used in many branches of physics, but one example is nuclear fusion experimentation, where many experiments seek to produce energy by magnetically confining a fast-moving plasma in a torus. MHD research must solve various equations such as the equation of state, mass continuity, Faraday’s law, and Ohm’s law simultaneously for the entire system, and these equations are usually non-linear with time. As such, Lagrangian mechanics are often employed to simplify the problem.

For more information: Wikipedia webpage on MHD, listing various forms and equations. MIT news article on a compact fusion-reactor design.

12.7 Summary on the Lagrange Method

12.8 Practice Problems

See Appendix C for answers to the practice problems.