[Physics] Conjugate momentum in Cartesian coordinates

classical-mechanicscoordinate systemslagrangian-formalismmomentum

The conjugate Hamiltonian can be defined from the Lagrangian as,

$$ p_i ~=~ \frac{\partial L}{\partial \dot{q}^i}$$

Typically the momenta components are given in spherical polars $(r, \theta, \phi)$.

How would one find the momenta in Cartesian coordinates?

I suspect that it will just transform as the spatial coordinates do, but am unable to show this. Example attempt at the x-component:

$$ p_x = \frac{\partial L}{\partial \dot{x}} = \frac{\partial L}{\partial \dot{r}} \frac{\partial \dot{r}}{\partial \dot{x}} = p_r \frac{\partial \dot{r}}{\partial \dot{x}}$$

But cannot see where to go from here.

Edits in response to comments

Some context: I am writing some code that takes a dataset of momentum vectors in Cartesian coordinates (not produced by me) and another set of vectors in spherical coordinates (also not produced by me), and calculates the angle between any two vectors.

To do this I need to first convert the momentum vectors in spherical coordinates, into Cartesian coordinates. Therefore I want a general transformation from momenta expressed in spherical coordinates, to Cartesian coordinates.

Best Answer

How does one find the canonical momenta in cartesian coordinates? Easy: they're given by $$ p_i=\frac{\partial L}{\partial \dot q_i}, \tag 1 $$ where $q_i=x_i$ is a cartesian coordinate. That's all you can say in the general case, without specifying a Lagrangian.


In the initial case where $L=\frac12 m \sum_i \dot x_i^2-V(x)$, then the canonical momenta are computed in every analytical mechanics textbook, and the partial derivative is particularly simple to work out: $$ p_i=\frac{\partial L}{\partial \dot x_i}=\frac{\partial }{\partial \dot x_i}\frac12 m \sum_j \dot x_j^2 = m\dot x_i, $$ i.e. the canonical momentum coincides with the kinematic momentum $m\dot x_i$. However, this is not the only possible case (for example, it is common to have $L=\frac m2 \sum_i(\dot x_i-A_i(x))^2$, in which case the canonical momentum $p_i = m(\dot x_i-A_i(x))$ differs from the kinematic momentum by a gauge-dependent vector potential $A(x)$), but since you do not give more information, there's nothing more that one can say beyond the definition $(1)$.

Related Question