Lagrangian Mechanics

Lagrangian

Lagrangian is defined as L=TV where T is the kinetic energy and V is the potential energy.

When there is no non-conservative force, the Euler-Lagrange equation (Lagrange's equation) holds ddt(L˙qj)=Lqj where qj belongs to a set of generalized coordinates. The Lagrange's equation will yield the equation of motion in Newton's second law. No new physics here. It is useful when we do not know the constraint force.

Checkpoint

A block of mass m is placed on a frictionless incline of mass M, which is placed on a frictionless horizontal surface. Both the block and the incline are at rest. At time t=0, they are released to move freely. Using the coordinate set as shown in the image below , find the equations of motion of the block and the incline.

The constraint is 0y2x2x1=tanα, that is y2=(x1x2)tanα˙y2=(˙x2˙x2)tanα The kinetic energy is T=12M˙x21+12m(˙x22+˙y22) and the potential energy is V=mgy2 As y2 is dependent variable according to the constraint, it has to be expressed in terms of x1 and x2 in the Lagrangian L=TV=12M˙x21+12m(x22+y22)+mgy2=12M˙x21+12m(˙x22+tan2α(˙x1˙x2)2)mgtanα(x1x2). Hence, the equations of motion are ddtL˙x1Lx1=0mtan2α(¨x1¨x2)+M¨x1=mgtanα¨x1(mtan2α+M)=mtan2α¨x2mgtanα¨x1=mtanα(tanα¨x2g)mtan2α+M.
ddtL˙x2Lx2=0m¨x2(¨x1¨x2)tan2α=mgtanα¨x2(1+tan2α)=tan2α¨x1+gtanα¨x2=sin2α¨x1+gsinαcosα. Substitute (2) into (1), we have ¨x1=mgsinαcosαM+msin2α and ¨x2=MgsinαcosαM+msin2α. By the constraint, ¨y2=(M+m)gsin2αM+msin2α

Noether's Theorem

When a mathematical object is invariant under a transformation, we say that the mathematical object has a symmetry. When a mathematical object is invariant in time at any point of its motion path, we say that the mathematical object is conserved. Action is defined as St2t1L(q(s),˙q(s))dt Suppose the action has a symmetry under a transformation qq and ϵ(q)qq, i.e. δS=0=t2t1(Lqϵ+(L˙q)dϵdt)dt Integrating the second term by part, (L˙q)dϵdtdt=L˙xϵ(ϵddtL˙q)dt we have 0=[ϵL˙q]t2t1+[t2t1ϵ(LqddtL˙q)dt] As Lagrangian is defined such that it satisfies the relationship ddt(L˙q)Lq=0 so [L˙qϵ]t2t1=0 for arbitrary t2 and t1, i.e. L˙qϵ is constant over time. This is called the Noether's theorem.

Coupled Oscillations

The Lagrangian of the system is L=TV=(12m˙x12+12m˙x22)(12Kx21+12K(x2x1)2+12Kx22) The Lagrange's equations are then solved to give the equations of motion m¨x1+(K+K)x1Kx2=0m¨x2Kx1+(K+K)x2=0 Adding and subtracting the two equations m(¨x2+¨x1)+K(x2+x1)=0m(¨x2¨x1)+(K+2K)(x2x1)=0 Let Q1x2+x1 and Q2x2x1 The equations of motion become m¨Q1+KQ1=0m¨Q2+(K+2K)Q2=0 Their general solutions are Q1(t)=a1cos(ω1tδ1) where ω21=KmQ2(t)=a2cos(ω2tδ2) where ω22=K+2Km Q1 and Q2 are called the normal mode coordinates. ω1 and ω2 are called normal mode frequencies. We have the solutions x1(t)=Q1Q22=a12cos(ω1tδ1)a22cos(ω2tδ2)x2(t)=Q1+Q22=a12cos(ω1tδ1)+a22cos(ω2tδ2)
Example

Two pendulums of length l and masses m are connected with a massless spring with spring constant k and relaxed length d. Find the general solution of the motion of the masses in small oscillation.

Solution: The coordinates of the two masses are {x1=lsinθ1y1=lcosθ1 and {x2=d+lsinθ2y2=lcosθ2. Their velocities are {˙x1=l˙θ1cosθ1˙y1=l˙θ1sinθ1 and {˙x2=l˙θ2cosθ2˙y2=l˙θ2sinθ2 The distance between the masses is s=(y1y2)2+(x1x2)2=l2(cosθ1cosθ2)2+(lsinθ1lsinθ2d)2=2l22l2cos(θ1θ2)2dl(sinθ1sinθ2)+d2 As the oscillation is small, applying Taylor series approximation, we have cos(θ1θ2)112(θ1θ2)2 and sinθ1sinθ2=θ1θ2. So, sl2(θ1θ2)2+2dl(θ2θ1)+d2=l(θ2θ1)+d The kinetic energy of the system is T=12m(˙x21+˙y21)+12m(˙x22+˙y22)=12ml2˙θ21+12ml2˙θ22=12ml2(˙θ21+˙θ22) and the potential energy of the system is V=12k(sd)2+mgy1+mgy2=12kl2(θ2θ1)2mglcosθ1mglcosθ2=12kl2(θ2θ1)2mgl(112θ21)mgl(112θ22) So, the Lagrangian is L=TV=12ml2(˙θ21+˙θ22)12kl2(θ2θ1)2+mgl(112θ21)+mgl(112θ22) The equations of motion are ddtL˙θ1=Lθ1ml2¨θ1kl2(θ2θ1)+mglθ1=0ddtL˙θ2=Lθ2ml2¨θ2+kl2(θ2θ1)+mglθ2=0 Assuming the solutions to be θ1=a1cos(ωtδ)θ2=a2cos(ωtδ), we have (ml2ω2kl2mgl)a1+kl2a2=0kl2a1+(ml2ω2kl2mgl)a2=0 To have non-trivial solutions, |ml2ω2kl2mglkl2kl2ml2ω2kl2mgl|=0(ml2ω2mgl)(ml2ω22kl2mgl)=0 So, ω2=gl or ω2=gl+2km For ω2=gl, substitute into equation of motion, (ml2ω2kl2mgl)a1+kl2a2=0(ml2(gl)kl2mgl)a1+kl2a2=0a1=a2 Similarly, for ω2=gl+2km, a1=a2 So, the general solution is [θ1(t)θ2(t)]=C[a1cos(ω1tδ1)a1cos(ω1tδ1)]+D[a2cos(ω2tδ2)a2cos(ω2tδ2)], where C and D are constants and ω1=gl and ω2=gl+2km

Checkpoint

Two beads of equal masses m are put on a frictionless incline and connected by a spring with force constant k and a relaxed length l0. At t=0, x1=2l0, x2=4l0 and both beads are at rest. Find x1(t) and x2(t) as a function of time.

The kinetic energy of the system is T=12m˙x21+12m˙x22 and the potential energy of the system is V=mgx1sinθ+mgx2sinθ+12k(x2x1l0)2 So, the Lagrangian is L=TV=12m˙x21+12m˙x22[mgx1sinθ+mgx2sinθ+12k(x2x1l0)2] The equations of motion are ddtL˙x1=Lx1m¨x1=mgsinθ+k(x2x1l0)ddtL˙x2=Lx2m¨x2=mgsinθk(x2x1l0) Subtracting the two equations, ¨x1¨x2=(2km)(x2x1l0) Let Q=x2x1l0 The equations of motion become ¨Q=2kmQ The general solution is Q(t)=acos(ωt+δ) Applying initial conditions, Q(t)=x2(t)x1(t)l0=l0cos(2kmt) Thus, ¨x1=gsinθ+(kl0m)cos(2kmt). Hence, x1(t)=gt2sinθ+at+bl02cos(2kmt) Applying initial conditions, x1=gt2sinθl02cos(2kmt)+52l0x2=gt2sinθ+l02cos(2kmt)+72l0

Comments

Popular Posts