Small oscillations of a simple pendulum placed on a moving block

Click For Summary
The discussion focuses on deriving the equations of motion for a simple pendulum placed on a moving block using Lagrangian mechanics. The Lagrangian has been established, and participants explore whether to simplify it for small oscillations before applying Lagrange's equations. There is a consensus that while higher-order terms can be ignored for small angles, terms up to second order in theta must be retained to ensure accurate linear equations of motion. Suggestions include defining new generalized coordinates to decouple the equations, although some participants prefer sticking to more straightforward methods for clarity. The conversation emphasizes the importance of careful mathematical handling to derive the correct motion equations.
  • #31
Now differentiate your result and sub into your other equation ( which is correlates to applying conservation of energy), eliminating ##\ddot x##.
 
Physics news on Phys.org
  • #32
erobz said:
Now differentiate your result and sub into your other equation ( which is correlates to applying conservation of energy), eliminating ##\ddot x##.
Good idea. Thanks. I'll try it tomorrow. It's too late here. (About 5 A.M.)
 
  • #33
MatinSAR said:
Do you mean that I can use conservation of momentum P→ in horizontal direction?(Or using conservation of T+U?)
Both.
 
  • #34
erobz said:
Now differentiate your result and sub into your other equation ( which is correlates to applying conservation of energy), eliminating ##\ddot x##.
From first equation I get: $$\ddot x = \dfrac {ml\dot \theta^2\sin \theta-ml\ddot \theta \cos \theta}{M+m}$$Then I use it for second equation, I get: $$g\sin \theta + \dfrac {ml\dot \theta^2\sin \theta \cos \theta-ml\ddot \theta \cos ^2 \theta}{M+m}-l\ddot \theta=0 $$ Do you think can I solve for ##\theta (t)##? Personally I don't see any way ...
Orodruin said:
Both.
Ok. Conservation of momentum gives us: $$M\dot x +m(\dot x + l\dot \theta \cos \theta)=A$$$$ \dot x = \dfrac {A-ml\dot \theta \cos \theta}{M+m} $$ And conservation of energy gives: $$ (M+m)\dot x^2+ml^2 \ddot \theta+ml\dot x \dot \theta \cos \theta - 2mgl\cos \theta=B $$ Should I substitute ##\dot x ## from first equation to second equation, then solve for ##\theta (t)## ?

Is finding ##\theta (t)## and ##x(t)## really this hard? Or is the problem with my method? Because the TA said this is an easy question.
 
Last edited:
  • #35
You can make things easier by just assuming the CoM frame. This gives a direct constraint on the relation between ##x## and ##\theta##. You can also expand the Lagrangian to second order around the potential minimum. There are many tricks you can employ.
 
  • #36
You also do not need to solve for ##\theta##. Just looking at the total energy expression (expanded for small oscillations) will give you the frequency directly when comparing to the harmonic oscillator energy.
 
  • #37
Orodruin said:
You also do not need to solve for ##\theta##. Just looking at the total energy expression (expanded for small oscillations) will give you the frequency directly when comparing to the harmonic oscillator energy.
I don't know about CoM frame. So I think I'm going to expand it for small oscillations. I think I should read about oscillations, then try to solve ...
 
  • #38
MatinSAR said:
I think I should read about oscillations, then try to solve ...
This should perhaps be your first step when trying to solve a problem regarding oscillations…
 
  • #39
Orodruin said:
This should perhaps be your first step when trying to solve a problem regarding oscillations…
I thought that I can find equation of motion without knowing g much about oscillations because this assignment is related to lagrangian mechanics. And I read lagrangian mechanics, not oscillations. Thanks for your help anyway. I will try again after reviewing about oscillations ...
 
  • #40
@MatinSAR, I'm jumping into the thread a bit late in the day, but would like to add this…

In your post #21, I agree with your EL equation for ##\theta##:
##-mgl \sin \theta -ml\ddot x \cos \theta - ml^2 \ddot \theta=0##
(but would drop the minus signs).

But you may have made a mistake with the EL equation for ##x##.

Using your expression for ##L## (which I agree with), and at risk of being accused of doing too much:

##L=\dfrac {M+m}{2}\dot x^2+ml\dot x \dot \theta \cos \theta + \dfrac 1 2 m l^2 \dot \theta^2 +mgl\cos \theta##

##\dfrac {\partial L} {\partial x}=0##

##\dfrac {\partial L} {\partial \dot x}= (M+m)\dot x +ml\dot \theta \cos \theta##

##\dfrac {d}{dt} \dfrac {\partial L}{\partial \dot x}=(M+m)\ddot x
+ml(\ddot \theta \cos \theta - \dot \theta^2 \sin \theta)##
(Slightly fiddly; note you need to use both product and chain rules to differentiate the ##\dot \theta \cos \theta## term.)

##\dfrac {d}{dt} \dfrac {\partial L}{\partial \dot x} - \dfrac {\partial L} {\partial x} =0 \implies (M+m)\ddot x +ml(\ddot \theta \cos \theta - \dot \theta^2 \sin \theta) = 0##

Then, for ##\theta \ll 1##, you can use ##\sin \theta \approx \theta## to get rid of ##\sin##. It may be OK to use ##\cos \theta \approx 1## rather than ##\cos \theta \approx 1 - \frac{\theta^2}2## but that could be contentious.
 
  • #41
Steve4Physics said:
@MatinSAR, I'm jumping into the thread a bit late in the day, but would like to add this…
Thanks a lot for your help ...
Steve4Physics said:
Then, for ##\theta \ll 1##, you can use ##\sin \theta \approx \theta## to get rid of ##\sin##. It may be OK to use ##\cos \theta \approx 1## rather than ##\cos \theta \approx 1 - \frac{\theta^2}2## but that could be contentious.
Do you mean that I can substitute ##\sin \theta \approx \theta## and ##\cos \theta \approx 1## into the Euler-Lagrange equations to find ##x(t)## and ##\theta (t)##? These approximations were stated in the question, but I wasn’t sure at which part I could use them.
 
  • #42
MatinSAR said:
Do you mean that I can substitute ##\sin \theta \approx \theta## and ##\cos \theta \approx 1## into the Euler-Lagrange equations to find ##x(t)## and ##\theta (t)##?
Well, that's what I'd do!

Providing ##\theta## is small (i.e. you are dealing only with small amplitudes) they are pretty good approximations. For example, consider ##\theta = 0.1rad## (a little under ##6^o##).

##\sin (0.1) \approx 0.0998##. So replacing ##\sin \theta## by ##\theta## introduces an error of around 0.2%.

##\cos(0.1) \approx 0.995## So replacing ##\cos \theta## by 1 introduces an error of about 0.5%

Even more accurate for smaller angles of course.

A better approximation is ##\cos \theta \approx 1 - \frac{\theta^2}2## if you wanted to try. But I think it will hinder rather than help here.

MatinSAR said:
These approximations were stated in the question,
That suggests you are expected to use them (where appropriate).

It would have been helpful (and could still be helpful) if you posted the complete question so we had all relevant information!

MatinSAR said:
but I wasn’t sure at which part I could use them.
Best not to use them early on, or you can lose information, notably when differentiating. But now you have the final 'exact' equations (in Post #40) it looks like a good time to make any valid approximations.

(By the way, I'm assuming that you are required to solve the problem with a simple/direct Lagrangian approach using ##x## and ##\theta##. So you are not expected to use any of the alternative approaches others have suggested. )
 
  • Like
Likes MatinSAR and erobz
  • #43
MatinSAR said:
These approximations were stated in the question, but I wasn’t sure at which part I could use them.
If the problem tells you to explicitly use the small angle approximation ##\cos \theta \approx 1 ##, then I think you must use it?

I thought your question was when you could use a small angle approximation, and I think everyone @kuruman, @Orodruin were expecting ##\cos \theta \approx 1 - \frac{\theta^2}{2} ## as the approximation when it was said it shouldn't matter whether it was used before or after the application of the Euler-Lagrange equations. As @Steve4Physics points out, you left out some pertinent info.
 
Last edited:
  • #44
erobz said:
I thought your question was when you could use a small angle approximation, and I think everyone @kuruman, @Orodruin were expecting ##\cos \theta \approx 1 - \frac{\theta^2}{2} ## as the approximation when it was said it shouldn't matter whether it was used before or after the application of the Lagrangian.
As I said early on:
Orodruin said:
Yes, you can expand the Lagrangian for small ##\theta## and then apply the EL equation, but if you want linear EoMs, you need to expand to second order in ##\theta##.
If you want to end up with a linearized equation of motion you must keep the quadratic terms in the Lagrangian as those are exactly the terms that give you linear terms in thd eom.
 
  • Like
Likes MatinSAR and erobz
  • #45
Orodruin said:
As I said early on:

If you want to end up with a linearized equation of motion you must keep the quadratic terms in the Lagrangian as those are exactly the terms that give you linear terms in thd eom.
Yeah, I meant everyone except Matin thought… turning cosine into 1 before the application of the derivative seems obviously problematic. When I said "I think everyone"-and listed you in there, it was intended to be a quiet nod to the OP they should be more clear about the required approximation. I certainly wasn't underestimating anyone's understanding of the problem (if anyone doesn't understand its me), sorry if it came off that way.

To be clear. @MatinSAR The answer to your original question is no, don't turn cosine into the constant 1 before the derivative!
 
Last edited:
  • #46
Thank you to everyone for his help. I am trying to understand.
 
  • #47
MatinSAR said:
I am trying to understand.
Well, are you still on the fence about it?
 
  • #48
erobz said:
Well, are you still on the fence about it?
I have two equations which were mentioned in post #40. As I understand I can't directly use approximations.
 
  • #49
MatinSAR said:
I have two equations which were mentioned in post #40. As I understand I can't directly use approximations.
The two equations you have after you apply the partial derivatives ( Euler-Lagrange Equations) are exact. You can apply the approximation ## \cos \theta \approx 1 ## to those. What you can't do is apply that approximation of ## \cos \theta \approx 1## to the original Lagrangian ( i.e. the equation you begin with ##L = T - U##).
 
  • Like
Likes Steve4Physics and MatinSAR
  • #50
Steve4Physics said:
It would have been helpful (and could still be helpful) if you posted the complete question so we had all relevant information!
Everything was mentioned in original post except the approximations of ##\cos \theta =1## and ##\sin \theta =\theta##. I am sorry that I didn't mention them.
Steve4Physics said:
But now you have the final 'exact' equations (in Post #40) it looks like a good time to make any valid approximations.

(By the way, I'm assuming that you are required to solve the problem with a simple/direct Lagrangian approach using ##x## and ##\theta##. So you are not expected to use any of the alternative approaches others have suggested. )
Thanks for your time @Steve4Physics ...
erobz said:
The two equations you have after you apply the partial derivatives are exact. You can apply the approximation ## \cos \theta \approx 1 ## to those. What you can't do is apply that approximation of ## \cos \theta \approx 1## to the original Lagrangian ( i.e. the equation you begin with ##L = T - U##).
This is what I wanted to do. I am going to try ... Thanks again.
 
  • #51
MatinSAR said:
Thanks a lot for your help ...

Do you mean that I can substitute ##\sin \theta \approx \theta## and ##\cos \theta \approx 1## into the Euler-Lagrange equations to find ##x(t)## and ##\theta (t)##? These approximations were stated in the question, but I wasn’t sure at which part I could use them.
You can only use them safely once you have done all the differentiation. For example:
$$x = l\cos \theta$$$$\dot x = -l(\sin \theta)\dot \theta \approx - l\theta \dot \theta$$But, NOT:
$$x \approx l$$$$\dot x \approx 0$$
 
  • #52
I mean, ultimately it is what I already said, you need to include up to quadratic terms in the Lagrangian if you want to have the linearised equations of motion. This is relatively easy to see. Suppose you have a Lagrangian that you expand to linear order in ##\theta## and its derivative ##\dot\theta##, then
$$
\mathcal L = \mathcal L_0 + \theta \mathcal L_1 + \dot\theta \mathcal L_1' + \mathcal O(\theta^2)
$$
where ##\mathcal L_0##, ##\mathcal L_1##, and ##\mathcal L_1'## do not depend on ##\theta## or its derivatives and the ##\mathcal O(\theta^2)## indicates not only second order terms or higher in ##\theta##, but also in its derivatives. The Euler-Lagrange equation for ##\theta## is then on the form
$$
\frac{\partial \mathcal L}{\partial \theta} - \frac{d}{dt} \frac{\partial \mathcal L}{\partial \dot\theta}
= \mathcal L_1 - \frac{d}{dt}\mathcal L_1' + \mathcal O(\theta) = 0.
$$
Ignoring the ##\mathcal O(\theta^2)## terms in the Lagrangian is therefore going to lead to ignoring ##\mathcal O(\theta)## terms in the equations of motion - i.e., we will not have a proper linearisation of the EoM. However, if we do the same thing while keeping the ##\theta^2## terms but ignoring the ##\mathcal O (\theta^3)## terms, the terms missing from the EoM will all be ##\mathcal O(\theta^2)## and therefore irrelevant to the linearisation of the EoM.
 
  • Like
Likes MatinSAR and PeroK
  • #53
@Steve4Physics @erobz @PeroK
Hello. First of all, thank you for your time. You have helped a lot. I am writing this after reading your posts. If I am wrong again, I don’t want to waste your time with this question. So, if I am wrong, please just let me know. I prefer to wait for the TA to solve it next week.
I rewrite equations in post #40:$$ (M+m)\ddot x +ml(\ddot \theta \cos \theta - \dot \theta^2 \sin \theta) = 0$$$$mgl \sin \theta+ml\ddot x \cos \theta + ml^2 \ddot \theta=0$$ We have these approximations: $$\cos \theta \approx 1$$$$\sin \theta \approx \theta $$ $$ \theta ^2 = \dot \theta ^2 \approx 0$$
After substituting we get: $$(M+m)\ddot x +ml\ddot \theta = 0$$$$mgl\theta + ml\ddot x+ml^2\ddot \theta =0$$ After solving for ##\ddot x## in first equation and substituting in second, we get: $$ \ddot x =\dfrac {-ml\ddot \theta}{M+m}$$ $$ mgl\theta + ml\dfrac {-ml\ddot \theta}{M+m}+ml^2\ddot \theta =0 $$ Simplifying : $$ (ml^2 - \dfrac {m^2l^2}{M+m})\ddot \theta +mgl \theta = 0 $$
Now, I have equations of motion: $$\ddot \theta + \dfrac {mgl}{(ml^2 - \dfrac {m^2l^2}{M+m})}\theta = 0 $$ $$ \ddot x =\dfrac {-ml\ddot \theta}{M+m}$$
To find the frequencies of small oscillations, I use the formula ##f = \omega / 2\pi##. I think ##\omega## is the coefficient of ##\theta## in the above equation.
 
  • #54
@Orodruin Thanks a lot for your help. I’m sorry if I’m not educated enough to understand your posts well.

Orodruin said:
I mean, ultimately it is what I already said, you need to include up to quadratic terms in the Lagrangian if you want to have the linearised equations of motion. This is relatively easy to see. Suppose you have a Lagrangian that you expand to linear order in ##\theta## and its derivative ##\dot\theta##, then
$$
\mathcal L = \mathcal L_0 + \theta \mathcal L_1 + \dot\theta \mathcal L_1' + \mathcal O(\theta^2)
$$
Are you writing the Lagrangian near equilibrium points using Taylor series?
 
  • #55
MatinSAR said:
Are you writing the Lagrangian near equilibrium points using Taylor series?
Yes.
 
  • #56
MatinSAR said:
To find the frequencies of small oscillations, I use the formula ##f = \omega / 2\pi##. I think ##\omega## is the coefficient of ##\theta## in the above equation.
Not exactly. It has the wrong dimensions to be a frequency.

Are you familiar with the differential equation governing the harmonic oscillator?
 
  • #57
Orodruin said:
Yes.
So, if I write the Lagrangian this way… Can I substitute those approximations into this Lagrangian? Then, I apply the Euler-Lagrange equations to find ##x(t)## and ##\theta (t) ##.
Or should I apply EL equations before applying approximations?
Orodruin said:
Are you familiar with the differential equation governing the harmonic oscillator?
Yes. For small oscillations, we have: $$ \ddot \theta + \omega ^2 \theta = 0$$
 
  • #58
MatinSAR said:
So, if I write the Lagrangian this way… Can I substitute those approximations into this Lagrangian? Then, I apply the Euler-Lagrange equations to find ##x(t)## and ##\theta (t) ##.
The entire point of the post was to show that you need to include up to second order terms to het the correct linearised behaviour. If you include the quadratic terms, sure, as long as ##\theta## is small.

MatinSAR said:
Yes. For small oscillations, we have: $$ \ddot \theta + \omega ^2 \theta = 0$$
 
  • #59
MatinSAR said:
Or should I apply EL equations before applying approximations?
According to @PeroK, I should differentiate first. I am asking again because your way seems different to me…
 
  • #60
MatinSAR said:
According to @PeroK, I should differentiate first. I am asking again because your way seems different to me…
It doesn’t matter if you do it consistently, ie, keep one order higher in ##\theta## and derivatives if you expand before applying the EL equation.
 

Similar threads

Replies
1
Views
1K
Replies
4
Views
4K
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
982
Replies
5
Views
1K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 9 ·
Replies
9
Views
670