# Hamilton's equations of motion?

Hi,
This is on my electrodynamics homework and I haven't been able to get anywhere with it. Here it is:

The Hamiltonian of a particle of mass m, charge q, position r, momentum p, in an external field defined by a vector potential A(r,t) and scalar potential $$\phi$$(r,t) is given below:

H(r,p) = (1/2m)[p - qA(r,t)]2 + q$$\phi$$(r,t) = (1/2m)(pjpj - 2qpjAj +q2AjAj) + q$$\phi$$

Calculate Hamilton's equations of motion. You can use the relations

$$\frac{\partial p_{j}}{\partial p_{i}} = \delta _{ij}$$

and

$$\frac{\partial p_{j}}{\partial r_{i}} = 0.$$

So, attempted solution...
according to my notes, these equations of motion are

$$\frac{\partial H}{\partial p_{i}} = \frac{dr_{i}}{dt}$$

and

$$\frac{\partial H}{\partial r_{i}} = -\frac{dp_{i}}{dt}$$

What I tried to do is stick the Hamiltonian into the two equations, but I am a bit confused about what the j and i subscripts are all about. I assumed they meant j = x,y,z, so I put H into those equations to get expressions for j = x, y and z.

I got

$$\frac{dH}{dp_{x}} = 1/m(p_{x} - qA_{x})$$ and equivalent for y and z,

and

$$\frac{dH}{dr_{x}} = 1/2m(-2qp_{x}(d/dr_{x})A_{x} + q^{2}(d/dr_{x})A^{2}_{x}$$ and equivalent for y and z.

This is pretty much as far as I have got with this (ie. nowhere). I don't really understand what I'm supposed to be doing (ie. what the point of putting H into these equations is), and I dont see what use the 2 relations I was given in the question are. I have given all the information the question has. Can anyone shed any light on what the hell this question is on about?
Is there some way of rewriting the vector and scalar potentials in terms of momentum or something?
I am totally lost here and my notes barely even touch on this stuff.

Thanks.

I'm certain you are correct about the subscripts, thats pretty standard notation.

The relations:
∂pj/∂pi = δij
&
∂pj/∂ri = 0

I BELIEVE are essentially just stating the independence of each component of p & r, that is... pi does not depend on pj ∀ i ≠j and pi has no dependence on position... your end results for pi
should not contain any rx ry or rz in them,
UP TO: this point i could be wrong about something.

beyond that the equations of motion are as you already listed them (according to your notes) so I believe you're supposed to be solving the differential equations:
aka eliminate the time derivative part of the equations to get equations momentum equations ∈ pᵢ and position equations ∈ rᵢ .. the "relations" I believe are there to make all this easier.
Its been a while since I've taken any electrodynamics (even then it was more introductory-ish) and i'm not really familiar with the hamilton's equations (maybe i didn't use them in my class) but it seems to me the "point of this" may be to show you how using the hamiltonian can make your life, in general, a lot easier .... sorry if i'm wrong about anything! I hope it helps

Hi,
This is on my electrodynamics homework and I haven't been able to get anywhere with it. Here it is:

The Hamiltonian of a particle of mass m, charge q, position r, momentum p, in an external field defined by a vector potential A(r,t) and scalar potential $$\phi$$(r,t) is given below:

$$H(\mathbf{r},\mathbf{p})=\frac{1}{2m}\left(\mathbf{p}-q\mathbf{A}(\mathbf{r},t)\right)^2+q\phi(\mathbf{r},t)=\frac{1}{2}\left(p_jp_j-2q_jA_j+q^2A_jA_j\right)+q\phi_j$$
...

I got

$$\frac{dH}{dp_{x}} = 1/m(p_{x} - qA_{x})$$ and equivalent for y and z,

and

$$\frac{dH}{dr_{x}} = 1/2m(-2qp_{x}(d/dr_{x})A_{x} + q^{2}(d/dr_{x})A^{2}_{x})$$
and equivalent for y and z.

You're missing a term in one of your equations of motion above.

You have a particle moving about in some vector & scalar fields that just happen to be electromagnetic in nature and you're using Hamilton's equations of motion to determine how the particle would move in the field. This sounds an awful lot like normal Classical Mechanics, it just happens that you're looking at particles in an E&M field. I believe the exercise is to show you the wide use of Hamilton's EOM.

I'm in this class and i'm really stuck too. I tried doing the same but i have no idea how to progress from there.

I've pretty much got this stuff done now actually, I was trying to make things more complicated than they needed to be.
All this question wanted was to get simplified expressions of dH/dP and dH/dr, for use in the later questions, but you have to really be careful with the i and j subscripts.

Also the dH/dr that I got on here is wrong.

this is useful for the later questions, if you really are trying to do the same homework as me:

http://quantummechanics.ucsd.edu/ph130a/130_notes/node302.html

For this thing $$\frac{\partial p_{j}}{\partial p_{i}} = \delta _{ij}$$

does it mean any component over any different component is equal to the same thing?

i took that to mean that it is equal to 1 if i=j, and it is equal to zero if i=/= j. think its called a kronecker delta.
it helps simplify the dH/dp equation of motion.

look on that link I pasted, its slightly different because it starts off with q as a momentum vector, and uses e as the charge, but you can follow it through to the final lorentz force derivation.

i took that to mean that it is equal to 1 if i=j, and it is equal to zero if i=/= j. think its called a kronecker delta.

That's correct.

oh ok. thanks! maybe that will help. kronecker delta rings a bell

I'll have a look through that site too.

I got same for dH/dr but with the the + q dI(r,t) / dr on the end

what I currently have is:

$$\ \frac{\partial H}{\partial r_{i}} = (\frac{q^2A_{j}}{m} - \frac{qp_{j}}{m})\frac{\partial A_{j}}{\partial r_{i}} + q\frac{\partial \Phi}{\partial r_{i}}$$

im 95% sure thats right

what I currently have is:

$$\ \frac{\partial H}{\partial r_{i}} = (\frac{q^2A_{j}}{m} - \frac{qp_{j}}{m})\frac{\partial A_{j}}{\partial r_{i}} + q\frac{\partial \Phi}{\partial r_{i}}$$

im 95% sure thats right

I think you may be a little off there...I get:

$$\frac{\partial H}{\partial r_i}=\frac{1}{2m}\left[q^2\frac{\partial\left(A_iA_j\right)}{\partial r_i}-2qp_i\frac{\partial A_i}{\partial r_i}\right]+q\frac{\partial\phi}{\partial r_i}$$

Just because $$\partial_{r_i}p_j=0$$ doesn't mean that $$\partial_{r_i}A_j=0$$ as well.

where have you got the $$\ A_{i}$$ parts from? all I have is 2 j's.
I have used what I got in the last part of the question, and I'm almost finished it, it seems to agree with what is on that link too.

actually you might be making the same mistake I did.

what I was doing was just using one subscript, like I changed the equations of motion from the notes to have j's instead of i's, so I was differentiating with respect to j. I've changed that now and differentiated the hamilton with respect to i... the subscripts seem to be important... you will see at the end why.

I get this

dH/dri = 1/2m (q^2*dAj^2/dri - 2*q*pj*dAj/dri) + q*dI/dri

dH/dpi = 1/2m ( dpj^2/dpi - q*Aj*dpj/dpi)

(sorry im too confused about how to use the latex code!)

ah, I havent differentiated Aj2, ive chain ruled AjAj which i think gives a different result, other than that I think we get the same?

It looks like you've done dAjAj/dri = 2* dAj/dri which i don't think works

I'll try see if i can get the same though!

i said (d/dri)AjAj = Aj(d/dri)Aj + Aj(d/dri)Aj = 2Aj(d/dri)Aj

where have you got the $$\ A_{i}$$ parts from? all I have is 2 j's.
I have used what I got in the last part of the question, and I'm almost finished it, it seems to agree with what is on that link too.

actually you might be making the same mistake I did.

what I was doing was just using one subscript, like I changed the equations of motion from the notes to have j's instead of i's, so I was differentiating with respect to j. I've changed that now and differentiated the hamilton with respect to i... the subscripts seem to be important... you will see at the end why.

Either way, you should have $$\partial_{r_i}(A_jA_j)$$ or $$\partial_{r_i}(A_iA_i)$$ or whatever indices you should choose. What you did is let one of those two A's not be acted on by $$\partial_{r_i}$$ and I don't believe you can do that.

i said (d/dri)AjAj = Aj(d/dri)Aj + Aj(d/dri)Aj = 2Aj(d/dri)Aj

ah ok, that makes sense. can't see anything wrong then.