Lagrangian Mechanics: Find Lagrangian & Hamiltonian of Pendulum

Click For Summary

Homework Help Overview

The discussion revolves around finding the Lagrangian and Hamiltonian for a mass attached to a vertical spring, modeled as a pendulum. The problem involves understanding the dynamics of the system and the appropriate choice of coordinates.

Discussion Character

  • Exploratory, Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants discuss the definition of the Lagrangian as the difference between kinetic and potential energy, questioning the choice of variables and the physicality of the potential energy expression. There is mention of using generalized coordinates and the implications of constraints in the system.

Discussion Status

The discussion is active, with participants offering various perspectives on coordinate systems and potential energy definitions. Some guidance on using generalized coordinates has been provided, along with considerations for the physical implications of the chosen expressions.

Contextual Notes

There are indications of confusion regarding the potential energy expressions and the degrees of freedom in the system. Participants are exploring the implications of different coordinate choices and their effects on the formulation of the problem.

Zamarripa
Messages
11
Reaction score
0

Homework Statement


We have a mas m attached to a vertical spring of length (l+x) where l is the natural length.

Homework Equations


Find the Lagrangian and the hamiltonian of the system if it moves like a pendulum

The Attempt at a Solution


we know that the lagrangian of a system is defined as:
L=T-V

T=mv2/2
V=mgy-[kr2/2]

where
x1=(l+x)sinθ
y1=(l+x)cosθ

would you chose your variables the same way?
 
Physics news on Phys.org
The potential energy in your spring gets lower and lower as the spring extends if you use your expression for the potential energy. This is unphysical.
 
May I add that the strength of Lagrangian/Hamiltonian approach is that it takes advantages of constraints. You want to use generalized coordinates instead of familiar Cartesian coordinates.

Possible choices

l - for the length of the spring (I don't think that resting length is important for this problem, which is why I chose l )

$$\theta$$ - for angular displacement of the pendulum that this spring is attached to

I believe this system has 2 degrees of freedom and thus 2 generalized coordinates. I recall doing a problem similar to this in my Classical Mechanics lecture where the length was given as a function of t...in that case l is already predetermined and this system has only one degree of freedom $$\theta$$. I hastily thought this through and hastily wrote this response, if time permits I'll give it a more careful examination later.
 
I would use polar coordinates with the origin at the fixing point and theta the angle between the spring and the vertical. That way you have orthogonal coordinates so you don't get cross-terms in the kinetic energy, and the potential energy of the spring is expressed easily in terms of r. V is just mgr(1-cos(theta)) then.

If you define theta as the angle between the spring and the horizontal then the potential energy will be slightly neater, but then your equilibrium position will be at theta=pi/2 and that will only make life difficult if you want to find the frequency of small oscillations about the equilibrium.

If you go ahead with your coordinates, you'll find a bit of algebra will get you to polar coordinates in the end, though as has been mentioned you need to reverse the sign in your elastic potential energy. I think the sign on your gravitational potential energy needs to be reversed too, but I'm unsure of exactly how you've defined your coordinates. Just remember the gravitational potential increases as the mass moves up!
 

Similar threads

Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K
Replies
25
Views
4K
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K