The kinetic energy of the system comes from the motion of the blocks and potential energy from the coupling spring. T=1/2mx˙2+1/2My˙2
V=1/2k(x−y)2
L=1/2mx˙2+1/2My˙2−1/2k(x−y)2
∂L/∂x˙=mx˙,∂L/∂x=−k(x−y)
∂L/∂y˙=My˙,∂L/∂y=k(x−y)
Lagrange's equations are written as
d/dt(∂L/∂x˙)−∂L/∂x=0,d/dt(∂L/∂y˙)−∂L/∂y=0
The equations of motion can then be written as
mx¨+k(x−y)=0
my¨+k(y−x)=0
Comments