How do I know if the Hamiltonian is constant?

  • Context: Graduate 
  • Thread starter Thread starter komodekork
  • Start date Start date
  • Tags Tags
    Constant Hamiltonian
Click For Summary

Discussion Overview

The discussion revolves around the conditions under which the Hamiltonian is considered constant in a dynamical system. Participants explore the implications of time dependence in the Hamiltonian and the generalized coordinates, as well as the relationships defined by Hamilton's equations. The conversation includes theoretical considerations and specific examples related to classical mechanics.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest that if the Hamiltonian does not explicitly depend on time, it may be constant, but they question whether to treat generalized coordinates as constants or functions of time when differentiating.
  • There is a discussion about the differentiation of the Hamiltonian and whether it should yield zero if the Hamiltonian is constant.
  • One participant proposes that the equality of mixed partials is relevant, while another later corrects this to reference Hamilton's equations.
  • Concerns are raised about the correctness of the Hamiltonian representation for an oscillator, with a participant noting that the second term should be positive rather than negative.
  • Another participant expresses uncertainty about the nature of their Hamiltonian and whether it accurately represents the system they are analyzing.
  • There is a suggestion to express the Hamiltonian in terms of momentum and position rather than generalized coordinates and velocities to assess its constancy.
  • One participant proposes substituting the generalized coordinate into the Hamiltonian to check for time dependence.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether the Hamiltonian is constant, as there are multiple competing views regarding the treatment of variables and the implications of time dependence.

Contextual Notes

Participants express uncertainty about the definitions and representations of their Hamiltonians, and there are unresolved questions about the implications of specific mathematical steps and assumptions regarding the system being analyzed.

komodekork
Messages
17
Reaction score
0
Lets say H = \frac{m}{2} (\dot{Q}^2 - \omega^2 Q^2 )
where Q is the generalized coordinate.
It doesn't explicitly depend on time, but the Q and the \dot{Q} does.
If i differentiate it with respect to time it should be zero if it's constant, right?
So i guess my question is should i treat the Q's as constants or as functions depending on time when i differentiate?
 
Last edited:
Physics news on Phys.org
komodekork said:
Lets say H = \frac{m}{2} (\dot{Q}^2 - \omega^2 Q^2 )
where Q is the generalized coordinate.
It doesn't explicitly depend on time, but the Q and the \dot{Q} does.
If i differentiate it with respect to time it should be zero if it's constant, right?
So i guess my question is should i treat the Q's as constants or as functions depending on time when i differentiate?

If you want to view it like that, then if the Hamiltonian is explicitly independent of time, then it just comes from equality of mixed partials.

\dot{H}=\frac{\partial H}{\partial q}\dot{q}+\frac{\partial H}{\partial p}\dot{p} =<br /> \frac{\partial H}{\partial q} \left(\frac{\partial H}{\partial p}\right)+<br /> \frac{\partial H}{\partial p}\left(-\frac{\partial H}{\partial q}\right)<br /> =0
 
Last edited:
RedX said:
If you want to view it like that, then if the Hamiltonian is explicitly independent of time, then it just comes from equality of mixed partials.
I don't understand what you mean, could you please explain?
 
komodekork said:
I don't understand what you mean, could you please explain?

oops, you're right. it's not equality of mixed partials, but comes from Hamilton's equations.

so take H=.5(p2+q2)

Then dH/dp=p and dH/dq=q
But p.=-q and q.=p

So H.=p(-q)+q(p)=0
 
Hm...
I don't know if I see what you are getting at. I'm not sure if you are telling me that what you did is right or wrong.

Should it be \frac{d}{dt}(H) = m ( \dot{Q} \ddot{Q} - \omega^2 Q \dot{Q} )

or just

\frac{d}{dt}(H) = 0
 
komodekork said:
Hm...
I don't know if I see what you are getting at. I'm not sure if you are telling me that what you did is right or wrong.

Should it be \frac{d}{dt}(H) = m ( \dot{Q} \ddot{Q} - \omega^2 Q \dot{Q} )

or just

\frac{d}{dt}(H) = 0

oops, sorry. First of all, your Hamiltonian doesn't represent an oscillator. If it does, then the second term should be + rather than -:
<br /> H = \frac{m}{2} (\dot{Q}^2 + \omega^2 Q^2 )<br />

So as you say: <br /> \frac{d}{dt}(H) = m ( \dot{Q} \ddot{Q} + \omega^2 Q \dot{Q} ) <br />

Now from the equations of motion of an oscillator, \ddot{Q}=-\omega^2 Q. PLugging that in should get you zero.
 
I don't know what my Hamilton represents. I may have done something wrong.

I all i got is this lagrangian L = \frac{m}{2} (\dot{q}^2 sin^2(\omega t) + \dot{q} q \omega sin(2\omega t) + \omega^2 q^2)
and this new coordinate Q = q sin(\omega t)

after this substitution i get L = \frac{m}{2} (\dot{Q}^2 + \omega^2 Q^2)

then i make the Hamiltonian H = p\dot{Q} - L

and get H = \frac{m}{2}(\dot{Q}^2 - \omega^2 Q^2)



Then the question is, is the Hamiltonian constant?

Thanks for helping me out btw.
 
But forget all of that, just in a genreal case,
if H=H( \dot{q},q) is it constant just because it's not H=H(p,q,t)?
Or because it cancels out?
 
Last edited:
you need to write your Hamiltonian in terms of p and q not in terms of q and q-dot,
and THEN if time doesn't appear explicitly it's conserved.
 
  • #10
komodekork said:
I don't know what my Hamilton represents. I may have done something wrong.

I all i got is this lagrangian L = \frac{m}{2} (\dot{q}^2 sin^2(\omega t) + \dot{q} q \omega sin(2\omega t) + \omega^2 q^2)
and this new coordinate Q = q sin(\omega t)

after this substitution i get L = \frac{m}{2} (\dot{Q}^2 + \omega^2 Q^2)

then i make the Hamiltonian H = p\dot{Q} - L

and get H = \frac{m}{2}(\dot{Q}^2 - \omega^2 Q^2)



Then the question is, is the Hamiltonian constant?

Thanks for helping me out btw.

Can't you just plug in <br /> Q = q sin(\omega t)<br /> into your Hamiltonian H = \frac{m}{2}(\dot{Q}^2 - \omega^2 Q^2), and see if the time-dependence vanishes?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K