# Hamilton and Lagrange functions

1. Dec 10, 2009

### Shafikae

The hamilton function of a particle in two dimensions is given by

H = (p$$\stackrel{2}{x}$$)/2m + (p$$\stackrel{2}{y}$$)/2m + apxpy + U(x,y)
Obtain the Hamiltonian equations of motion. Find the corresponding Lagrange function and Lagrange equations.

Would it be px = dH/dpy (of course it would be partial)
and py = - dH/dpx ?
and how do we take into account the potential?

2. Dec 11, 2009

### gabbagabbahey

No, Hamilton's equations of motion are $$\dot{p_i}=-\frac{\partial H}{\partial q_i}$$ qnd $$\dot{q_i}=\frac{\partial H}{\partial p_i}$$, where $q_i$ are the generalized coordinates and $p_i$ are there corresponding momenta.

In this case, your generalized coordinates are $x$ and $y$ (i.e. $q_1=x$ and $q_2=y$) )and there corresponding momenta are $p_x$ and $p_y$ (i.e. $p_1=p_x$ and $p_2=p_y$)....