Topper Copies

The Lagrangian of a system in two dimensions is $L = \frac{1}{2}m\dot{x}^2 + m\dot{x}\dot{y}$. Determine the Hamiltonian.

Aryan Yadav, AIR 31, 2025

let $P_x$, $P_y$ be generalized momentum

=> $P_x = \frac{\partial L}{\partial \dot{x}} = m\dot{x} + m\dot{y}$ - (1)

$P_y = \frac{\partial L}{\partial \dot{y}} = m\dot{x}$ - (2)

From (1), (2)

=> $\dot{x} = \frac{P_y}{m}$ , $\dot{y} = \frac{P_x - P_y}{m}$ - (3)

We know by transformation that

$H = \sum P\dot{q} - L$

=> $H = P_x\dot{x} + P_y\dot{y} - \frac{m\dot{x}^2}{2} - m\dot{x}\dot{y}$

Put values from (3)

=> $H = \frac{P_x P_y}{m} + \frac{P_y(P_x - P_y)}{m} - \frac{m P_y^2}{2m^2} + m\left(\frac{P_y}{m}\right)\left(\frac{P_x - P_y}{m}\right)$

=> $H = \frac{2P_xP_y - \frac{3P_y^2}{2} + P_xP_y - P_y^2}{m}$

=>