Example 3
Consider a mass $m$ moving in two dimensions with potential energy $U(x, y)=\frac{1}{2} k r^{2},$ where $r^{2}=x^{2}+y^{2} .$ Write down the Lagrangian, using coordinates $x$ and $y,$ and find the two Lagrange equations of motion. Describe their solutions. [This is the potential energy of an ion in an "ion trap," which can be used to study the properties of individual atomic ions.]