Lagrangian of a double pendulum system (with a spring)

Click For Summary
SUMMARY

The discussion focuses on deriving the Lagrangian for a double pendulum system with a spring, involving two masses, m_1 and m_2, connected by a spring of constant k. The Lagrangian is expressed as L = T - U, where T represents the total kinetic energy and U represents the total potential energy, including contributions from gravitational forces and the spring. The user attempts to express the kinetic and potential energies using generalized coordinates (r, θ, φ) but questions the inclusion of the unstretched length l_0 of the spring in the final expression.

PREREQUISITES
  • Understanding of Lagrangian mechanics
  • Familiarity with kinetic and potential energy equations
  • Knowledge of generalized coordinates in multi-body systems
  • Basic principles of spring mechanics and Hooke's Law
NEXT STEPS
  • Explore the derivation of the Lagrangian for systems with springs in "Classical Mechanics" by Herbert Goldstein
  • Study the application of generalized coordinates in "Analytical Mechanics" by Fowles and Cassiday
  • Investigate the role of unstretched length in spring potential energy calculations
  • Learn about the Euler-Lagrange equation for deriving equations of motion in Lagrangian mechanics
USEFUL FOR

Students and professionals in physics, particularly those studying classical mechanics, as well as engineers working on dynamic systems involving springs and pendulums.

Je m'appelle
Messages
117
Reaction score
0

Homework Statement


Find the Lagrangian for the double pendulum system given below, where the length of the massless, frictionless and non-extendable wire attaching m_1 is l. m_2 is attached to m_1 through a massless spring of constant k and length r. The spring may only stretch in the m_1-m_2 direction and its unstretched length is l_0. \theta and \phi are the angles of m_1 and m_2 with respect to the red y-axis.

double_pendulum_with_spring.png

Homework Equations



Lagrangian:
L = T - U

Kinetic Energy of i-th mass:

T_i = \frac{1}{2}m_i \left(\dot{x}_i^2 + \dot{y}_i^2 \right)

Potential Energy of i-th mass:
U_i = m_i g y_i

Potential Energy of the spring:
U_{spr} = \frac{1}{2}kr^2

The Attempt at a Solution


[/B]
Since I'm still learning this topic, I need someone to help me by verifying if my work is correct, as there's no solutions manual.

L = T - U = \left \{ \frac{1}{2}m_1 \left(\dot{x}_1^2 + \dot{y}_1^2 \right) - m_1gy_1 \right \} + \left \{ \frac{1}{2}m_2 \left(\dot{x}_2^2 + \dot{y}_2^2 \right) - m_2gy_2 \right \} - \frac{1}{2}k r^2

I'm considering \left(r, \theta, \phi \right) as my generalized coordinates

\left\{\begin{matrix}<br /> x_1&amp; =&amp; l \sin \theta &amp;\\<br /> x_2&amp; =&amp; l \sin \theta + r \sin \phi &amp;\\<br /> y_1 &amp;=&amp; l \cos \theta &amp;\\<br /> y_2 &amp;=&amp; l \cos \theta + r \cos \phi&amp;<br /> \end{matrix}\right.

Plugging those in the original lagrangian yields

\begin{align*} L = \left \{ \frac{1}{2}m_1 \left(l^2\dot{\theta}^2 \cos^2 \theta + l^2\dot{\theta}^2 \sin^2 \theta \right) - m_1gl \cos \theta \right \}\\<br /> + \left \{ \frac{1}{2}m_2 \left(l^2\dot{\theta}^2 \cos^2 \theta + r^2\dot{\phi}^2 \cos^2 \phi + 2lr \dot{\theta} \dot{\phi} \cos \theta \cos \phi + l^2 \dot{\theta}^2 \sin^2 \theta + r^2 \dot{\phi}^2 \sin^2 \phi + 2lr \dot{\theta} \dot{\phi} \sin \theta \sin \phi \right)\\<br /> - m_2g \left( l \cos \theta + r \cos \theta \right) \right \} - \frac{1}{2}k r^2 \end{align*}

which summarizes to

L = \left \{ \frac{1}{2}m_1 \left(l^2\dot{\theta}^2 \right) - m_1gl \cos \theta \right \} + \left \{ \frac{1}{2}m_2 \left(l^2\dot{\theta}^2 + r^2\dot{\phi}^2 + 2lr \dot{\theta} \dot{\phi} \cos \left(\theta-\phi \right)\right) - m_2g \left( l \cos \theta + r \cos \phi\right) \right \} - \frac{1}{2}k r^2

Is this correct? Something tells me it isn't, is there another way of representing r? Also, I haven't used l_0 which was given in the problem statement, and I feel like it should be there in the lagrangian somewhere.
 

Attachments

  • double_pendulum_with_spring.png
    double_pendulum_with_spring.png
    1.4 KB · Views: 910
Last edited:
Physics news on Phys.org
Je m'appelle said:
... through a massless spring of constant k and length r.
Je m'appelle said:
... and its unstretched length is ##l_0.##
What is the difference between ##l_0## and ##r##? I would assume that ##r## is the stretched or compressed length of the spring in which case the elastic potential energy should be ... ?
 
Sorry, the comment above answers your question.
 
Last edited:

Similar threads

Replies
9
Views
4K
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 21 ·
Replies
21
Views
5K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
10K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
1
Views
2K