I have a Hamiltonian:
H=˙qp−L=12m˙q2+kq212−aq
In a system with one coordinate q (where L is the Lagrangian). One of the Hamilton equations is:
˙q=−∂H∂p
But when I try to derive H with respect to p, I get very confused. What is the derivative of q with respect to p=m˙q, for instance? When I boil it right down, my confusion stems from the fact that I realize I don't know what that partial derivative means. A partial derivative of a multi-variable function should be taken with respect to an index (you just specify which variable, thought of as a "slot" in the function, you're deriving with respect to). I suppose I'm not clear on what multi-variable function H represents (I mean, q and ˙q are functions of t, so you could say it's a one variable function...), or how I should interpret p as a variable.
I have similar difficulties with the equation ˙p=∂H∂q, although I think I can understand ∂H∂t=dLdt. The left hand side should give m˙q¨q+kq˙q−a˙q, right?
Answer
Let's restrict the discussion to one spatial dimension for simplicity.
What's going on with partial derivatives?
The lagrangian is a function of two real variables. We commonly label these variables q,˙q because of their physical significance. For example, the lagrangian for a one-dimensional simple harmonic oscillator is L(q,˙q)=12m˙q2−12kq2
What exactly is the hamiltonian...really?
Now, the Hamiltonian is also a function of two real variables, and we conventionally call them q and p, but how is this function generated from a given Lagrangian L? Well we need to be careful here because this is where physicists tend to really abuse notation.
What we do, is we first define a function ˉp (the canonical momentum conjugate to q) as a certain derivative of the Lagrangian: ˉp=∂L∂˙q,
Next, we write the relation p=ˉp(q,˙q),
Note that intuitively what's happening here is that the Hamiltonian is defined "as a function of q and p; you should never be writing it "as a function of q and ˙q."
Example. Consider, again, the one-dimensional simple harmonic oscillator. We have ˉp(q,˙q)=∂L∂˙q(q,˙q)=m˙q
What about Hamilton's equations etc.?
Now, that we know what the hamiltonian is and how it's computed, let's address equations like Hamilton's equations: ˙q=∂H∂p,˙p=−∂H∂q,
To interpret this properly, we note that in the Hamiltonian formulation, the state of the system at any given time t consists of a pair (q(t),p(t)) giving the value of the position of the system and of its canonical momentum at that time t. Actually, in order to avoid perpetuating common confusions, let's use a different notation and write (γq(t),γp(t)) for the state of the system at time t and reserve q and p for labels of the argument of H.
Then Hamilton's equations are really saying that if the pair (γq(t),γp(t)) is a physical motion realized by the system, then ˙γq(t)=∂H∂p(γq(t),γp(t)),˙γp(t)=−∂H∂q(γq(t),γp(t)).
You can always stave-off this ambiguity by using different notations for these animals in the different contexts as I have done here. However, once you know what you're doing, you can happily once again revert back to overloading the symbols you're using, and you probably won't make a mistake either procedurally, or conceptually. In fact, in practice almost everyone who knows what he's doing does this because it's faster.
No comments:
Post a Comment