Vertical Spring Forced Pendulum (Lagrange equations)

Click For Summary

Homework Help Overview

The problem involves deriving the equations of motion for a pendulum attached to a spring that oscillates vertically. The original poster attempts to use generalized coordinates, specifically the height of the pendulum mass and the angle of swing, to formulate the potential and kinetic energy of the system.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the choice of coordinates and clarify whether the height variable refers to the pendulum mass or the attachment point. There are inquiries about potential missing terms in the equations of motion, particularly involving the derivatives of the coordinates.

Discussion Status

Some participants have provided guidance on the correctness of the chosen coordinates and the formulation of the equations. There is an ongoing exploration of potential errors in the calculations, particularly regarding the cancellation of terms. Multiple interpretations of the problem setup are being examined.

Contextual Notes

Participants mention the importance of careful differentiation and the potential for oversight in calculations. There is also a reference to linearization of the equations and comparison between Lagrangian and Newtonian approaches, indicating a complexity in the problem setup.

Sefrez
Messages
124
Reaction score
0

Homework Statement


The problem states that a pendulum is attached to a spring that can only oscillate in the vertical direction. I am supposed to derive equations of motion for the spring/pendulum system under my chosen generalized coordinates.

Homework Equations


Lagrange equations of motion

The Attempt at a Solution


I choose a to describe the system by the height of the pendulum mass and the angle at which it swings. So the two coordinates are y and θ, respectively.

Given a spring constant, k, and the assumption of a massless spring, I formulated the potential energy of the system to be:
U = (1/2)ky^2+mg(y-l*cos(θ))

where l is the length of the pendulum, and I have chosen the potential to be zero at y = 0 & θ = pi/2.

The kinetic energy of the system should be that given only by the mass of the pendulum. I formulated this to be:
T = (1/2)m((vx)^2 + (vy)^2) = (1/2)m((l*θ'*cos(θ))^2 + (y' + l*θ'*sin(θ))^2)

Without attempting to put up all the math on the board, I computed the Lagrange equations on y and θ, and found the two differential equations:
y'' + (k/m)y +l*θ''*sin(θ) + l*(θ')^2*cos(θ)+g = 0
and
θ'' + (1/l)y''*sin(θ) + (1/l)*g*sin(θ) = 0

I am unsure if I have made any mistakes, but am I going about this problem at all correctly?

Thanks.
 
Physics news on Phys.org
Sefrez said:
I choose a to describe the system by the height of the pendulum mass and the angle at which it swings. So the two coordinates are y and θ, respectively.

Just to be clear, did you choose y as the height of the pendulum mass or the height of the point where the pendulum is attached to the spring?

Everything looks good to me except I think you might be missing a term involving y'θ' in the following
θ'' + (1/l)y''*sin(θ) + (1/l)*g*sin(θ) = 0
 
TSny said:
Just to be clear, did you choose y as the height of the pendulum mass or the height of the point where the pendulum is attached to the spring?

Everything looks good to me except I think you might be missing a term involving y'θ' in the following

I chose y as the height of the point where the pendulum is attached to the spring. So the mass potential = 0 at y = 0 & θ = pi/2. Is this good?

As far as the y'θ' term, I was actually surprised to find out at the end that there were two terms of these that exactly canceled out. I could have made a mistake though.
 
Sefrez said:
I chose y as the height of the point where the pendulum is attached to the spring. So the mass potential = 0 at y = 0 & θ = pi/2. Is this good?
Yes, that's good.
As far as the y'θ' term, I was actually surprised to find out at the end that there were two terms of these that exactly canceled out. I could have made a mistake though.

I seem to still be getting that extra term. Hope I'm not missing something.
 
When I copy over my work in a typed version I will see if I did anything wrong. It can be easy for me to make the mistake of forgetting to continue the chain rule through when taking a full derivative versus a partial.

Thanks.
 
Hello,

I have copied over my work, and I still see the term canceling out. I have collected the calculations in a screen shot so that you can see them and see if one of us is doing it incorrectly. See in the attachment, on the last line, the first and last terms.
 

Attachments

  • p.png
    p.png
    5.4 KB · Views: 887
OK, Good. It was my mistake. I did overlook a term. Thanks for setting me straight. Hope I didn't cause you too much grief with my oversight.
 
No problem. Thanks for the help.
 
I am working on the same problem, I got stuck on the linearization of these equations.

In my form the angle is q2 and the spring length is q1, I have an additional horizontal force working on the mass, my equations look like:

q1''+q2''*l*cos(q2) -q2'^2*l*sin(q2)+k/m(q1-l0)-g=0

l/cos(q2)*q2''+q1''+g*tan(q2)=F/m

After linearization I get:

q1''+l*q2''+k/m(q1-l0)-g=0

l*q2''+q1''+g*q2=F/m

I linearized around q2 = 0, therefore sin(q2)=q2, cos(q2)=1, tan(q2)=q2 and q2'*q2=0

Obviously the linearized equation I get are only a function of q1 and q2 without their derivatives, I probably did something wrong does anyone know what I did wrong?
 
  • #10
I am working on this same problem but need to compare the lagrange solution to the Newtonian solution. I am stuck on summing the forces and moments of the problem, anyone have any ideas?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K