Spring-mass system with a pendulum using Lagrangian dynamics

In summary, I'm stuck in a problem of a spring mass system with a pendulum attached to it. I'm trying to find the movement equation for the mass, using Lagrangian dynamics, but I'm not very good in Lagrangian mechanics and I'm stuck in a problem of understanding how potential energy works in the system. Can anyone help me?
  • #1
MarkTheQuark
5
2
I'm stuck in a problem of a spring mass system with a pendulum attached to it as showed in the figure below:

My goal is to find the movement equation for the mass, using Lagrangian dynamics.

If the spring moves, the wire will move the same amount. Therefore, we can write the x and y position of the mass in terms of this displacement, the length of the wire, and the theta angle.

The problem I'm having is getting to identify the potential energy of the spring, using these terms so that when solving the LaGrange equation it gives a restoring force term of the spring.

Can anyone help me identifying this?
Screenshot_2022-05-20-02-36-19-986_com.google.android.apps.docs.jpg
 
  • Like
Likes Delta2
Physics news on Phys.org
  • #2
I am not very good in Lagrangian mechanics but if we use $$r(t),\theta(t)$$ for the position of the mass, then the contribution to Lagrangian from the potential energy of the spring should be $$\frac{1}{2}k((r(t)-r(0))^2$$ assuming that at t=0 the spring is at its natural length.

I believe there is more to the Lagrangian from the gravitational potential energy of the mass.
 
  • Like
Likes MarkTheQuark and PhDeezNutz
  • #3
MarkTheQuark said:
I'm stuck in a problem of a spring mass system with a pendulum attached to it as showed in the figure below:

My goal is to find the movement equation for the mass, using Lagrangian dynamics.

If the spring moves, the wire will move the same amount. Therefore, we can write the x and y position of the mass in terms of this displacement, the length of the wire, and the theta angle.

The problem I'm having is getting to identify the potential energy of the spring, using these terms so that when solving the LaGrange equation it gives a restoring force term of the spring.

Can anyone help me identifying this?View attachment 301707
This looks like homework. You need to show us your best effort. See the guidelines:

https://www.physicsforums.com/help/homeworkhelp/
 
  • Like
Likes MarkTheQuark
  • #4
I like @Delta2 ‘s suggestion. Treat ##r(0)## as the natural spring/wire length and ##r(t)## as the new length. Then the spring potential energy is exactly what he mentioned. Just add a gravitational term ##mg(r(t)-r(0))## and you've fully formed your Lagrangian.

Edit: You still have to form your kinetic terms.
 
  • Like
Likes Delta2 and MarkTheQuark
  • #5
I think the gravitational potential energy depends on ##\theta## too.
 
  • Like
Likes MarkTheQuark and PhDeezNutz
  • #6
Delta2 said:
I think the gravitational potential energy depends on ##\theta## too.
I really ought to start thinking before I start posting. Of course you are right. Tack on a ##\cos \theta##.
 
  • Like
Likes Delta2
  • #7
PhDeezNutz said:
I like @Delta2 ‘s suggestion. Treat ##r(0)## as the natural spring/wire length and ##r(t)## as the new length. Then the spring potential energy is exactly what he mentioned. Just add a gravitational term ##mg(r(t)-r(0))## and you've fully formed your Lagrangian.
It's not usual to express the quantities in a Lagrangian as a function of time, as these are quantities associated with a configuration space. In fact, in the Lagrangian formalism it's important that they are not the time dependent quantities associated with the system's evolution, but abstract quantities in configuration space.

The gravitational term depends on ##r## and ##\theta##.
 
  • Like
  • Informative
Likes MarkTheQuark, Delta2 and PhDeezNutz
  • #8
@PeroK I definitely agree. IIRC the EL equation (at least the one I know) was derived without an explicit dependence on ##t##.
 
  • Like
Likes MarkTheQuark
  • #9
PeroK said:
It's not usual to express the quantities in a Lagrangian as a function of time, as these are quantities associated with a configuration space. In fact, in the Lagrangian formalism it's important that they are not the time dependent quantities associated with the system's evolution, but abstract quantities in configuration space.

The gravitational term depends on ##r## and ##\theta##.
I don't fully understand this comment, when we going to add the kinetic energy term of Lagrangian we going to use some ##\dot r## and ##\dot \theta## terms with the dot denoting the derivative with respect to time...
 
  • Like
Likes MarkTheQuark
  • #10
Delta2 said:
I don't fully understand this comment, when we going to add the kinetic energy term of Lagrangian we going to use some ##\dot r## and ##\dot \theta## terms with the dot denoting the derivative with respect to time...
In the Lagrangian formalism ##r##, ##\dot r## and ##t## are independent abstract variables.

In particular, ##\dot r \not \equiv \frac{ dr} {dt} ##.

PS This particular Lagrangian is time-independent.
 
  • Like
Likes MarkTheQuark
  • #11
when we write ##\frac{\partial L}{\partial \dot x}## we consider ##\dot x## as an independent variable;
when we write ##\frac{d}{dt}\frac{\partial L}{\partial \dot x}## we consider both ##\dot x,x## as functions of time
 
  • Like
Likes Delta2 and MarkTheQuark
  • #12
Yes ok I think I get it now, it is like when we have the function## f(x,y) ##and we form the function ##g(t)=f(x(t),y(t)) ##then according to the chain rule it will be $$\frac{dg}{dt}=\frac{\partial f}{\partial x}\frac{dx}{dt}+\frac{\partial f}{\partial y}\frac{dy}{dt}$$ so though x and y are both functions of time so they can't be independent, we treat them as independent variables when taking the partial derivatives of f with respect to x and y.
 
  • #13
wrobel said:
when we write ##\frac{\partial L}{\partial \dot x}## we consider ##\dot x## as an independent variable;
when we write ##\frac{d}{dt}\frac{\partial L}{\partial \dot x}## we consider both ##\dot x,x## as functions of time
To add to this, once we have the abstract quantities ##\frac{\partial L}{\partial x}## and ##\frac{\partial L}{\partial \dot x}##, we then transform them to time-dependent dynamic quantities and assert that when we evaluate these quantities along a trajectory that represents a valid solution of the system, then the following equation holds:
$$\frac{d}{dt}\frac{\partial L}{\partial \dot x} = \frac{\partial L}{\partial x}$$Which we should all agree is the product of inspirational human thought!
 
  • Like
  • Informative
Likes Delta2 and MarkTheQuark
  • #14
PeroK said:
In the Lagrangian formalism ##r##, ##\dot r## and ##t## are independent abstract variables.

In particular, ##\dot r \not \equiv \frac{ dr} {dt} ##.

PS This particular Lagrangian is time-independent.
More specifically, the Lagrangian is a (possibly also time dependent - although not in this case) function on the tangent bundle of configuration space. The action along a curve ##\gamma## in configuration space is then defined as the time integral of the Lagrangian evaluated along the corresponding curve ##(\gamma,\dot\gamma)## in the tangent bundle, where ##\dot\gamma## is the tangent vector of ##\gamma##. The equations if motion that single out a particular time evolution are then given by the principle of stationary action.
 
  • #15
Orodruin said:
More specifically, the Lagrangian is a (possibly also time dependent - although not in this case) function on the tangent bundle of configuration space. The action along a curve ##\gamma## in configuration space is then defined as the time integral of the Lagrangian evaluated along the corresponding curve ##(\gamma,\dot\gamma)## in the tangent bundle, where ##\dot\gamma## is the tangent vector of ##\gamma##. The equations if motion that single out a particular time evolution are then given by the principle of stationary action.
Sorry for this as I haven't read any good textbook on Lagrangian Mechanics, if we want to calculate the action for some path in the configuration space, we 'll replace in the Lagrangian ##q=q(t)## and ##\dot q=\frac{dq}{dt}## or we can take ##q,\dot q## as independent and replace them with whatever functions of t we like, I mean not necessarily the one being the derivative/integral of the other?
 
  • #16
Although you could technically compute the action for any path in the tangent bundle, the principle of least action works with paths on configuration space and their corresponding path in the tangent bundle.

If you would try arbitrary paths in the tangent bundle you would just end up with having all partial derivatives of the Lagrangian equal to zero because ##\delta q## and ##\delta \dot q## would be independent variations.
 
  • Like
Likes MarkTheQuark and Delta2

1. What is a spring-mass system with a pendulum using Lagrangian dynamics?

A spring-mass system with a pendulum using Lagrangian dynamics is a physical system that consists of a mass attached to a spring and a pendulum. The motion of this system can be described using Lagrangian dynamics, which is a mathematical framework for analyzing the dynamics of mechanical systems.

2. How is Lagrangian dynamics used to describe the motion of this system?

Lagrangian dynamics uses the concept of energy to describe the motion of a system. In this case, the energy of the system is the sum of the potential energy stored in the spring and the gravitational potential energy of the pendulum. By finding the minimum of this energy, the equations of motion for the system can be derived.

3. What are the applications of a spring-mass system with a pendulum using Lagrangian dynamics?

This system has various applications in physics and engineering, such as in the study of oscillations and vibrations, as well as in the design of mechanical systems such as clocks and suspension systems. It also serves as a useful example for understanding the principles of Lagrangian dynamics.

4. How does the length of the pendulum affect the motion of the system?

The length of the pendulum affects the period of oscillation of the system. A longer pendulum will have a longer period, while a shorter pendulum will have a shorter period. This is because the length of the pendulum affects the gravitational potential energy of the system, which is a key component in the equations of motion.

5. Can Lagrangian dynamics be applied to more complex systems?

Yes, Lagrangian dynamics can be applied to a wide range of systems, from simple mechanical systems like the spring-mass system with a pendulum to more complex systems such as multi-body systems and systems with constraints. It is a powerful tool for analyzing the dynamics of various physical systems.

Similar threads

  • Advanced Physics Homework Help
Replies
9
Views
3K
  • Advanced Physics Homework Help
Replies
3
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
726
  • Advanced Physics Homework Help
Replies
9
Views
2K
  • Advanced Physics Homework Help
Replies
9
Views
2K
Replies
12
Views
364
  • Advanced Physics Homework Help
Replies
6
Views
2K
Replies
2
Views
74
Replies
25
Views
3K
  • Advanced Physics Homework Help
Replies
2
Views
4K
Back
Top