Lagrangian Mechanics: Solving $\mathcal{L}(X,x,\dot{X},\dot{x})$ for 2 Masses

In summary, the Lagrangian for two equal mass particles confined to the $x$ axis and connected by a spring with potential energy $U = \frac{1}{2}kx^2$ is given by $\mathcal{L} = T - U$, where $T$ is the kinetic energy and $U$ is the potential energy. By rewriting the Lagrangian in terms of the new variables $X$ and $x$, and solving for the original variables $x_1$ and $x_2$, the two Lagrange equations for $X$ and $x$ can be obtained.
  • #1
Dustinsfl
2,281
5
Write down the Lagrangian $\mathcal{L}(x_1,x_2,\dot{x}_1,\dot{x}_2)$ for two particles of equal masses, $m_1 = m_2 = m$, confined to the $x$ axis and connected by a spring with potential energy $U = \frac{1}{2}kx^2$. [Here $x$ is the extension of the spring, $x = (x_1 - x_2 - \ell)$ where $\ell$ is the spring's unstretched length, and I assume that mass 1 remains to the right of mass 2 at all times.]

The Lagrangian, $\mathcal{L} = T - U$, is the kinetic minus the potential energy.
\begin{alignat*}{3}
\mathcal{L} & = & T - U\\
& = & \frac{1}{2}m\left(\dot{x}_1^2 + \dot{x}_2^2\right) - \frac{1}{2}k(x_1 - x_2 - \ell)^2
\end{alignat*}

Rewrite $\mathcal{L}$ in terms of the new variables $X = \frac{1}{2}(x_1 + x_2)$ (the CM position) and $x$ (the extension), and write down the two Lagrange equations for $X$ and $x$.

The solution has:
Let $x = x_1 - x_2 - \ell$
Where did this piece come from (below). I see that adding them together produces $X$.
\begin{alignat}{3}
x_1 & = & X + \frac{x}{2} + \frac{\ell}{2}\\
x_2 & = & X - \frac{x}{2} - \frac{\ell}{2}
\end{alignat}
 
Mathematics news on Phys.org
  • #2
You have two equations:
\begin{align*}
X&= \frac{1}{2}\,(x_{1}+x_{2})\\
x&= x_{1}-x_{2}-\ell.
\end{align*}
In order to see how $L$ is using these new variables, you must solve for the original variables $x_{1}$ and $x_{2}$, and then plug those expressions into the $L$ that you know. So the two equations at the bottom of your post are simply using standard solving methods (elimination, substitution) to write the old variables in terms of the new.
 
Last edited:

FAQ: Lagrangian Mechanics: Solving $\mathcal{L}(X,x,\dot{X},\dot{x})$ for 2 Masses

What is Lagrangian Mechanics?

Lagrangian Mechanics is a mathematical framework used to describe the motion of a system of particles. It is based on the concept of minimizing the action, which is defined as the integral of the Lagrangian function over time.

What is the Lagrangian function?

The Lagrangian function, denoted as $\mathcal{L}$, is a function of the generalized coordinates and their derivatives. It represents the kinetic and potential energy of the system and is used to derive the equations of motion.

How do you solve for two masses using Lagrangian Mechanics?

To solve for two masses using Lagrangian Mechanics, you first need to identify the generalized coordinates and the Lagrangian function for the system. Then, you can use the Euler-Lagrange equations to derive the equations of motion for each mass. Finally, you can solve these equations to determine the motion of the masses over time.

What are the advantages of using Lagrangian Mechanics?

One of the main advantages of using Lagrangian Mechanics is that it provides a more intuitive way to describe the motion of a system compared to traditional Newtonian mechanics. It also allows for the use of generalized coordinates, which can simplify the equations of motion for complex systems.

Are there any limitations to Lagrangian Mechanics?

While Lagrangian Mechanics is a powerful tool, it does have some limitations. It can only be applied to systems with conservative forces, and it cannot account for dissipative forces such as friction. It also requires a significant amount of mathematical background to use effectively.

Back
Top