In Lagrangian mechanics we derive how a particle will evolve using the idea that ‘total amount that happened’ from one moment to another as a particle traces out a path is minimal.
So formulated differently, the basic idea is that nature is lazy. All we have to do is find the laziest way to realize something and this is exactly how nature will behave.
Concrete
In Lagrangian mechanics we define a quantity L≡K(t)−V(q(t)) called the Lagrangian. In addition, for any trajectory q with q(t0)=a, q(t1)=b, we we define the corresponding actionS(q)≡∫t0t1L(t)dt.
The basic idea is now that nature causes particles to follow the trajectories with the least amount of action.
In the image on the right-hand side this could be the solid line denotes by q. Another path is shown as a dashed line and denoted by q(s).
The Lagrangian approach assigns to each path a quantity called action as defined above and then tells us that the correct path that an object really follows is the path with minimal action. In our example the path q could have an action of 3 and the path qs an action of 5. Hence, path q is correct and not path qs.
The mathematical toolset that we use to find the paths with minima action is known as variational calculus.
The final result using this machinery is that the path with minimal action is the one that satisfies the Euler-Lagrange equations.
Using the Lagrangian approach, we can derive Newtonian mechanics. Alternatively, we can start with Newtonian mechanics and derive Lagrangian mechanics.
Derivation of Newton's second law
A point with minimal action is S defined through the condition dsdS(qs)s=0=0 where qs=q+sδq for all δq:[t0,t1]→Rn with δq(t0)=δq(t1)=0. We want to derive F=ma⇔dsdS(qs)s=0=0for allδq:[t0,t1]→Rnwithδq(t0)=δq(t1)=0. To do this, we now use the definition of the action and the chain rule: dsdS(qs)s=0=dsd∫t0t121mq˙s(t)⋅q˙s(t)−V(qs(t))dts=0=∫t0t1dsd[21mq˙s(t)⋅q˙s(t)−V(qs(t))]dts=0=∫t0t1[mq˙s⋅dsdq˙s(t)−∇V(qs(t))⋅dsdqs(t)]dts=0 Next we note that dsdqs(t)=δq(t) so dsdq˙s(t)=dsddtdqs(t)=dtddsdqs(t)=dtdδq(t). Therefore we have dsdS(qs)s=0=∫t0t1[mq˙⋅dtdδq(t)−∇V(q(t))⋅δq(t)]dt. Finally, we can integrate by parts and note that the boundary terms vanish because δq=0 at t1 and t0: dsdS(qs)∣s=0=∫t0t1[−mq¨(t)−∇V(q(t))]⋅δq(t)dt. Looking at this, we can see that the variation of the action vanishes for all possible variations δq if and only if the term in brackets is exactly zero: −mq¨(t)−∇V(q(t))=0. Therefore, the correct path q with a minimal amount of action S is the one that follows from the equation F=ma.
Examples
Harmonic Oscillator
The Lagrangian in classical mechanics is given by the kinetic energy T minus the potential energy U:
L=T−U.
Therefore, a harmonic oscillator in the Lagrangian framework is characterized by the action
S=∫dt(2m(dtdx)−2kx2), where L=2m(dtdx)−2kx2 is the Lagrangian.
Starting from this action, we can derive the equation of motion by using the Euler-Lagrange equation.
∂x∂L−dtd(∂dotx∂L)=0
⇒mdt2d2x−kx=0
Pendulum
The Lagrangian for the pendulum can be written L=T−U=2mr2θ˙2+mgrcosθ The equation of motion is ∂θ∂L−dtd(∂dotθ∂L)=−mgrsinθ−mr2dtdθ˙=0 giving: θ¨+rgsinθ=0
Small Amplitude Approximation
If θ<<1 then sinθ≈θ and dt2d2θ+rgθ This solution describes simple harmonic motion θ=Acos(ωt−ϕ) where ω=rg and the constants A and ϕ are determined from the initial condition E.g. if θ=0,t=0 then ϕ=±2π. If dθ/dt=0,t=0 then ϕ=0, or π (depending on whether the pendulum is moving to the left or right initially) The period is τ=ω2π=2πgr
Finite Amplitude
If the amplitude is not small we have to solve the nonlinear equation dt2d2θ+rgsinθ=0 (nonlinear because sin θ is a nonlinear function of the dependent variable θ.)
The Atwood Machine
A frictionless pulley with two masses, m1 and m2, hanging from it.
We have KVso L=21(m1+m2)(dtd(ℓ−x))2=21(m1+m2)x˙2=−m1gx−m2g(ℓ−x)=K−V=21(m1+m2)x˙2+m1gx+m2g(ℓ−x) The configuration space is Q=(0,ℓ), and x∈(0,ℓ). Moreover TQ=(0,ℓ)×R∋(x,x˙). As usual L:TQ→R. Note that solutions of the Euler-Lagrange equations will only be defined for \emph{some} time t∈R, as eventually the solutions reaches the ``edge'' of Q.
The momentum is: p=∂x˙∂L=(m1+m2)x˙ and the force is: F=∂x∂L=(m1−m2)g The Euler-Lagrange equations say p˙(m1+m2)x¨x¨=F=(m1−m2)g=m1+m2m1−m2g So this is like a falling object in a downwards gravitational acceleration a=(m1+m2m1−m2)g.
We integrate the expression for x¨ twice to obtain the general solution to the motion x(t). Note that x¨=0 when m1=m2, and x¨=g if m2=0.
Reading Recommendations
The best book on Lagrangian mechanics is The Lazy Universe by Coopersmith
Many problems with solutions are collected in Schaum's Outline of Theory and Problems of Theoretical Mechanics by Murray R Spiegel